Open
Description
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.