Skip to content

Add support for search parameters #55

Open
@paramsiddharth

Description

@paramsiddharth

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.

Metadata

Metadata

Labels

enhancementNew feature or requestmediumA medium issue.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions