0
I do not know whether I was clear in the name however I have a doubt, I possess a route as follows:
/api/produto/v1/Aplicacao/filter
where this endpoint is a GET that passes a word as parameter and it searches the words that were passed.
The question is this, I have how to do the route something like /api/produto/v1/Aplicacao/filter/categoria/{id}
, where the category id is optional and if I pass nothing in the category it uses only the route up /api/produto/v1/Aplicacao/filter
and search the word that was passed by parameter?