diff --git a/docs/docs.go b/docs/docs.go index 0598939..08f1f26 100644 --- a/docs/docs.go +++ b/docs/docs.go @@ -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" }, diff --git a/docs/swagger.json b/docs/swagger.json index 3d2a87b..0c609cf 100644 --- a/docs/swagger.json +++ b/docs/swagger.json @@ -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" }, diff --git a/docs/swagger.yaml b/docs/swagger.yaml index cb7bcb2..2779bc4 100644 --- a/docs/swagger.yaml +++ b/docs/swagger.yaml @@ -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 diff --git a/internal/api/handlers/routes.go b/internal/api/handlers/routes.go index 9a1f128..9e819ac 100644 --- a/internal/api/handlers/routes.go +++ b/internal/api/handlers/routes.go @@ -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