question

learner121-9418 avatar image
0 Votes"
learner121-9418 asked

How to do a get using a post when creating a Web API ?

I have a question on API creation, what would be the best way to create a web api with a post action to retreive
data from the db. Basically the requirement is the user will send a parameter in the request body of the post message
and we need to return the result in the response filtered based on the parameter sent.
I am also wondering why; when we have a get method the requestor would want us to implement this using a post any advantages.
Any insight on this will really help..thankyou.

windows-api
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

0 Answers