Last post Nov 23, 2016 10:20 AM by sudip_inn
Nov 23, 2016 08:22 AM|sudip_inn|LINK
please tell me few scenario where people like to use OData.
i have seen people use OData along with web api but can't we use it for asp.net webform and mvc ?
Nov 23, 2016 08:33 AM|Mikesdotnetting|LINK
It is designed to be used in RESTful APIs, which is why it is used in Web API and not in MVC or Web Forms.
Nov 23, 2016 08:42 AM|sudip_inn|LINK
i know web api is rest full but why people do not consider asp.net mvc is rest full because mvc url is friendly like web api, we can decorate mvc action with http post, get etc.
so please tell me few reason for which mvc is not consider rest full. thanks
Nov 23, 2016 08:53 AM|Mikesdotnetting|LINK
why people do not consider asp.net mvc is rest full because mvc url is friendly like web api
Nov 23, 2016 09:16 AM|sudip_inn|LINK
i need bit favor from you that why some one think that ASP.NET MVC is not a RESTful service framework.
can u please give me some points on this.
how to identity something as RESTful service framework. tell me RESTful service framework features.
Nov 23, 2016 09:39 AM|Mikesdotnetting|LINK
why some one think that ASP.NET MVC is not a RESTful service framework.
A RESTful service is one that is designed to work over HTTP and to respond appropriately based on the HTTP verbs that are used to make requests. Web API is a framework that is designed to provide that capability without any configuration, and integrates
OData for that purpose.
It is possible to use MVC to build a RESTful service, but it is not designed for that. It is designed as a presentation framework. You have to do a lot more work yourself to create the service endpoints if you are using MVC instead of Web API. For example,
I don't believe there is anything that supports creating OData endpoints out of MVC controller action methods, so you have to do all the work yourself in terms of shaping the query based on parameters passed in to the method.
Microsoft recognised that using MVC to build RESTful services was hard work (because that is not what it is designed for) so they introduced Web API.
Nov 23, 2016 10:20 AM|sudip_inn|LINK
i am asking before u because u know lot about this matter.
can u plzz provide info what are feature should be there in architecture as a result we can say that is rest full or that is not rest full.
compare those feature with web api and mvc point wise as a result i can understand why some one saying web api is rest full and mvc is not.