Skip to content
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

OpenApi Specification - ReadItemsParams missing 'page' parameter #22282

Open
joehannouch opened this issue Apr 22, 2024 · 0 comments
Open

OpenApi Specification - ReadItemsParams missing 'page' parameter #22282

joehannouch opened this issue Apr 22, 2024 · 0 comments

Comments

@joehannouch
Copy link

Describe the Bug

The generated swagger doc has the 'page' parameter missing from the ReadItemsParams.

I know that we can use limit and offset to paginate, but i'm using a mix of Orval and react query and a single page parameter is needed, I can resolve this with some work but i thought that page is worth of adding to the OAS.

https://docs.directus.io/reference/system/server.html
https://docs.directus.io/reference/query.html#page

To Reproduce

Generate the OAS:
https://docs.directus.io/reference/system/server.html
/server/specs/oas
Copy the swagger json and paste it in swagger online:
https://editor.swagger.io/

Scroll down to Get posts and check the parameters:
page is missing,
fields, limit, meta, offset, sort, filter and search are available.

Directus Version

v10.10.4

Hosting Strategy

Self-Hosted (Docker Image)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: 📋 Backlog
Development

No branches or pull requests

2 participants