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

Allow passing Mongo REST AP GET /coll parameters such as filter, sort, keys, hint via headers #490

Open
ujibang opened this issue Dec 4, 2023 · 1 comment
Assignees
Milestone

Comments

@ujibang
Copy link
Contributor

ujibang commented Dec 4, 2023

Brief overview

the Mongo REST API allows querying collections via GET /coll?filter={...}&sort={...}&keys&hint={...} specifying query parameters using query parameters.

Allow to pass the same parameters via headers as well.

Rationale

This feature increases the security (because headers are encrypted) and simplify handling special chars (chars that need to url encoded).

Example

GET /coll/filter={"_id": {"$regex": { "^.*<variable>" }}

If <variable> = " or <variable> = \ or <variable> = + the request fails. The variable must be encoded or quoted. This makes complex building dynamically queries.

Detailed documentation

TBD

@ujibang ujibang added this to the 8.0 milestone Dec 4, 2023
@ujibang ujibang self-assigned this Dec 4, 2023
@ujibang
Copy link
Contributor Author

ujibang commented Apr 17, 2024

@ujibang ujibang modified the milestones: 8.0, 8.1 Apr 17, 2024
@ujibang ujibang modified the milestones: 8.1, 8.2 Aug 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant