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

Add support for search parameters #55

Open
paramsiddharth opened this issue Jan 5, 2022 · 0 comments · Fixed by #57
Open

Add support for search parameters #55

paramsiddharth opened this issue Jan 5, 2022 · 0 comments · Fixed by #57
Assignees
Labels
enhancement New feature or request medium A medium issue.

Comments

@paramsiddharth
Copy link
Sponsor Member

Add support for search parameters

For the GET requests made to the /api/certificate and /api/template routes, query parameters may be used to filter the results to be sent back.

Examples:

  • GET /api/certificate?template=abcd should return all the certificates with the template of ID abcd.
  • GET /api/template?tags=%5B%22a%22%2C%22bc%22%2C%22d%22%5D should return all the templates with tags a, bc, and d at the same time. %5B%22a%22%2C%22bc%22%2C%22d%22%5D is nothing but the encoded form of JSON.stringify(['a', 'bc', 'd']).

For further discussion, use the Discussions tab or the Discord channel for the ongoing contest.

@paramsiddharth paramsiddharth added enhancement New feature or request medium A medium issue. labels Jan 5, 2022
@paramsiddharth paramsiddharth added this to To do in Rema via automation Jan 5, 2022
Rema automation moved this from To do to Done Jan 10, 2022
paramsiddharth pushed a commit that referenced this issue Jan 10, 2022
* added support for search parameters

* error message update
@paramsiddharth paramsiddharth self-assigned this Apr 22, 2023
Rema automation moved this from Done to In progress Apr 22, 2023
@paramsiddharth paramsiddharth removed this from In progress in Rema Nov 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request medium A medium issue.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant