-
-
Notifications
You must be signed in to change notification settings - Fork 8
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
Labels
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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 IDabcd
.GET /api/template?tags=%5B%22a%22%2C%22bc%22%2C%22d%22%5D
should return all the templates with tagsa
,bc
, andd
at the same time.%5B%22a%22%2C%22bc%22%2C%22d%22%5D
is nothing but the encoded form ofJSON.stringify(['a', 'bc', 'd'])
.For further discussion, use the Discussions tab or the Discord channel for the ongoing contest.
The text was updated successfully, but these errors were encountered: