I made WebAPI
( ASPNET
with EF6
) with support for Get()
, Post()
and Delete()
verbs. At some point, I need to access certain values that are not returned by default by verbs, for example:
The Request Controller has a Get()
method that will return the entire listing and a Get(int id)
method that will bring the request through the ID, but if I want a request for the Id of the related establishment I would have to take all Orders and filter in the application. This stinks with me and makes the request very cumbersome.
I would like to make a Get()
that receives, for example, a parameter where
and a parameter with the value that I expect from where, for example id_estabelecimento/3
. Is it possible to do this? is there a better way to handle this type of demand?