Is C# WebAPI worth it? Can I use standart MVC4 to create my API?
Posted
by
Steve
on Stack Overflow
See other posts from Stack Overflow
or by Steve
Published on 2013-06-29T22:18:39Z
Indexed on
2013/06/29
22:21 UTC
Read the original article
Hit count: 243
I need to build a massive API and I'm trying out WebAPI instead of default MVC4 projects and it seems that it just makes things more difficult.
- Can have only 4 methods in controller
Get, Post, Put, Delete
, if I want more I need to modify route for that particular method - FluentValidation won't work with WebAPI so I need to use DataAnnotations which I really don't want to.
- Can't use
dynamic
return data-types
My question is: Would it really be that bad if I would use MVC4 project and use default ActionResults that return Json? What are real advantages of using WebAPI, why did they even made them in the first place if you can easily convert your project to API?
© Stack Overflow or respective owner