Skip to content

Commit

Permalink
Fix fake pagination for sled_list_uninitialized
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewjstone committed Dec 19, 2023
1 parent e464172 commit 0633fb1
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 0 deletions.
1 change: 1 addition & 0 deletions nexus/src/external_api/http_entrypoints.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4659,6 +4659,7 @@ async fn rack_view(
}]
async fn sled_list_uninitialized(
rqctx: RequestContext<Arc<ServerContext>>,
_query_params: Query<PaginatedById>,
) -> Result<HttpResponseOk<ResultsPage<UninitializedSled>>, HttpError> {
let apictx = rqctx.context();
let handler = async {
Expand Down
32 changes: 32 additions & 0 deletions openapi/nexus.json
Original file line number Diff line number Diff line change
Expand Up @@ -4022,6 +4022,35 @@
],
"summary": "List uninitialized sleds in a given rack",
"operationId": "sled_list_uninitialized",
"parameters": [
{
"in": "query",
"name": "limit",
"description": "Maximum number of items returned by a single call",
"schema": {
"nullable": true,
"type": "integer",
"format": "uint32",
"minimum": 1
}
},
{
"in": "query",
"name": "page_token",
"description": "Token returned by previous call to retrieve the subsequent page",
"schema": {
"nullable": true,
"type": "string"
}
},
{
"in": "query",
"name": "sort_by",
"schema": {
"$ref": "#/components/schemas/IdSortMode"
}
}
],
"responses": {
"200": {
"description": "successful operation",
Expand All @@ -4039,6 +4068,9 @@
"5XX": {
"$ref": "#/components/responses/Error"
}
},
"x-dropshot-pagination": {
"required": []
}
}
},
Expand Down

0 comments on commit 0633fb1

Please sign in to comment.