I need to do rest transactions with a WebAPI. I've tried to figure out how to pass complex request parameters into the body of the request and also respect Rest standards like.
The GET method is a safe method (or nullipotent), meaning that calling it produces no side-effects: retrieving or accessing a record does not change it. The PUT and DELETE methods are idempotent, meaning that the state of the system exposed by the API is unchanged no matter how many times more than once the same request is repeated. POST is not idempotent.
Here are the standards I've come up with where q is a query parameter and b is a complex body parameter:
Get Get(q) Get(q,b)
HttpGet HttpGet HttpPut
Create Create(b) Create(q,b)
HttpPost HttpPost HttpPost
Update(q,b)
HttpPut
Delete(q) Delete(q,b)
HttpDelete HttpPut
Does this pattern really respect the REST standards?