Search code examples
restful-architecture

Can asp.net mvc controller methods be considered restful?


If I perform all my operations (add item to cart, check out etc) by calls to controller methods that return JSON to my knockout.js presentation layer, can my application be considered restful?


Solution

  • Not really. There is nothing available to respond to HTTP verbs other than GET and POST. If you want you can use an ApiController class This is designed as a restful controller.