Skip to content

Support for arbitrary query strings #1502

Open
@pofallon

Description

@pofallon

Hello! I'm trying to use the OpenAPI 3.0 spec to document an API that supports a subset of the Resource Query Language (RQL). However, because this query string format doesn't adhere to the typical name=value parameter structure, I'm struggling to express it in OpenAPI.

For example, a valid query string might be: http://localhost:5000/books?select(title,author)&gt(published,2000-06-30T12:20:08Z)&sort(published).

I wouldn't expect OpenAPI to understand RQL, but if there were a way to specify that an endpoint may have a query string, and that the query string contents are beyond the scope of OpenAPI, that would suffice. (I'm really thinking from the Swagger UI perspective -- so a user wanting to try the API can type in the entire RQL query string themselves.)

If anyone has any thoughts on other ways this can be accomplished with the existing 3.0 specification, that would be great too!

Thanks,
Paul

Metadata

Metadata

Assignees

Labels

param serializationIssues related to parameter and/or header serialization

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions