Skip to content

Add pagination method for NDM ListDevices. #29128

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions .apigentools-info
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@
"spec_versions": {
"v1": {
"apigentools_version": "1.6.6",
"regenerated": "2025-05-06 19:24:07.004785",
"spec_repo_commit": "1faa96a2"
"regenerated": "2025-05-07 17:09:29.851858",
"spec_repo_commit": "a1235a0d"
},
"v2": {
"apigentools_version": "1.6.6",
"regenerated": "2025-05-06 19:24:16.038799",
"spec_repo_commit": "1faa96a2"
"regenerated": "2025-05-07 17:09:39.009805",
"spec_repo_commit": "a1235a0d"
}
}
}
22 changes: 6 additions & 16 deletions data/api/v2/full_spec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -53290,22 +53290,8 @@ paths:
description: Get the list of devices.
operationId: ListDevices
parameters:
- description: The page number to fetch.
example: 0
in: query
name: page[number]
required: false
schema:
format: int64
type: integer
- description: The number of devices to return per page.
example: 10
in: query
name: page[size]
required: false
schema:
format: int64
type: integer
- $ref: '#/components/parameters/PageSize'
- $ref: '#/components/parameters/PageNumber'
- description: The field to sort the devices by.
example: status
in: query
Expand Down Expand Up @@ -53337,6 +53323,10 @@ paths:
tags:
- Network Device Monitoring
x-menu-order: 1
x-pagination:
limitParam: page[size]
pageParam: page[number]
resultsPath: data
x-undo:
type: safe
/api/v2/ndm/devices/{device_id}:
Expand Down
19 changes: 13 additions & 6 deletions data/api/v2/full_spec_deref.json
Original file line number Diff line number Diff line change
Expand Up @@ -414710,23 +414710,25 @@
"operationId": "ListDevices",
"parameters": [
{
"description": "The page number to fetch.",
"example": 0,
"description": "Size for a given page. The maximum allowed value is 100.",
"in": "query",
"name": "page[number]",
"name": "page[size]",
"required": false,
"schema": {
"default": 10,
"example": 10,
"format": "int64",
"type": "integer"
}
},
{
"description": "The number of devices to return per page.",
"example": 10,
"description": "Specific page number to return.",
"in": "query",
"name": "page[size]",
"name": "page[number]",
"required": false,
"schema": {
"default": 0,
"example": 0,
"format": "int64",
"type": "integer"
}
Expand Down Expand Up @@ -415031,6 +415033,11 @@
"Network Device Monitoring"
],
"x-menu-order": 1,
"x-pagination": {
"limitParam": "page[size]",
"pageParam": "page[number]",
"resultsPath": "data"
},
"x-undo": {
"type": "safe"
}
Expand Down
19 changes: 13 additions & 6 deletions static/resources/json/full_spec_v2.json
Original file line number Diff line number Diff line change
Expand Up @@ -414710,23 +414710,25 @@
"operationId": "ListDevices",
"parameters": [
{
"description": "The page number to fetch.",
"example": 0,
"description": "Size for a given page. The maximum allowed value is 100.",
"in": "query",
"name": "page[number]",
"name": "page[size]",
"required": false,
"schema": {
"default": 10,
"example": 10,
"format": "int64",
"type": "integer"
}
},
{
"description": "The number of devices to return per page.",
"example": 10,
"description": "Specific page number to return.",
"in": "query",
"name": "page[size]",
"name": "page[number]",
"required": false,
"schema": {
"default": 0,
"example": 0,
"format": "int64",
"type": "integer"
}
Expand Down Expand Up @@ -415031,6 +415033,11 @@
"Network Device Monitoring"
],
"x-menu-order": 1,
"x-pagination": {
"limitParam": "page[size]",
"pageParam": "page[number]",
"resultsPath": "data"
},
"x-undo": {
"type": "safe"
}
Expand Down
Loading