joukevandermaas / saule

JSON API library for ASP.Net Web API 2.
https://joukevandermaas.github.io/saule
MIT License
76 stars 37 forks source link

how to define post, patch and delete operation in the controller #115

Closed dhirajdhakal09 closed 8 years ago

dhirajdhakal09 commented 8 years ago

Hi,

I want to define a controller with Update, Insert and Delete methods.
Setting [HttpPost] will work for insertion, but how do we expose other operations like PUT, PATCH and DELETE?

joukevandermaas commented 8 years ago

The same way; [HttpPut], [HttpPatch] and [HttpDelete]. Please refer to the ASP.Net documentation for this.

dhirajdhakal09 commented 8 years ago

Thanks.

On Tue, Jun 14, 2016 at 7:14 PM, Jouke van der Maas < notifications@github.com> wrote:

Closed #115 https://github.com/joukevandermaas/saule/issues/115.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/joukevandermaas/saule/issues/115#event-691820301, or mute the thread https://github.com/notifications/unsubscribe/ASxFnb57QVJQb6mPS5PGg1ilXtJfz3Mtks5qLqzHgaJpZM4I1Kw6 .