I'm building an API, and I'm referencing OpenAPI for certain standards and best practices.
Let's say I have a paginated endpoint, /users. /users handles pagination using query parameters, offset and limit.
So if I want the first 50 users from my API, I would call GET /users?offset=0&limit=50.
Implementing this is very straight forward, but what if an API consumer calls the following:
/users?offset=0&offset=20&limit=50&limit100`
How should an API handle multiple values when only one value is expected for each query parameter? Should I throw an error? Should I only accept the first value for each parameter?
Is there anything in the latest OpenAPI spec that covers how this should be handled?