mirror of
https://github.com/MeshCore-Beacon/beacon-server.git
synced 2026-09-01 16:48:19 +00:00
docs(routes api): correct list handler cursor docs
This commit is contained in:
+1
-1
@@ -1274,7 +1274,7 @@ const docTemplate = `{
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"description": "Route ID of last item for pagination",
|
||||
"description": "Epoch ms timestamp of last item for pagination",
|
||||
"name": "cursor",
|
||||
"in": "query"
|
||||
},
|
||||
|
||||
+1
-1
@@ -1272,7 +1272,7 @@
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"description": "Route ID of last item for pagination",
|
||||
"description": "Epoch ms timestamp of last item for pagination",
|
||||
"name": "cursor",
|
||||
"in": "query"
|
||||
},
|
||||
|
||||
+1
-1
@@ -1831,7 +1831,7 @@ paths:
|
||||
in: query
|
||||
name: hopCount
|
||||
type: integer
|
||||
- description: Route ID of last item for pagination
|
||||
- description: Epoch ms timestamp of last item for pagination
|
||||
in: query
|
||||
name: cursor
|
||||
type: integer
|
||||
|
||||
@@ -32,7 +32,7 @@ func RoutesRouter(reader api.Reader) http.Handler {
|
||||
// @Produce json
|
||||
// @Param iata query string false "Filter by IATA code"
|
||||
// @Param hopCount query int false "Filter by exact hop count"
|
||||
// @Param cursor query int false "Route ID of last item for pagination"
|
||||
// @Param cursor query int false "Epoch ms timestamp of last item for pagination"
|
||||
// @Param limit query int false "Max results (default 50)"
|
||||
// @Success 200 {object} []api.KnownRoute
|
||||
// @Failure 500 {object} handlers.APIError
|
||||
|
||||
Reference in New Issue
Block a user