REST ist just universal. It’s lightweight, and standardized between platforms, which means different techs can coexist and communicate. IT doesn’t matter if you’re in Germany or the US or anywhere, as this will work in any country.
Interviews58 answers
What are the advantages of using REST in Web API?
58 Answers
aaaa asdPosted Oct 12, 2022, 1:31 AM EDT
REST use the full features of HTTP (like URIs, request/response headers, caching, versioning, various content formats).
Use HTTP verbs.
It is useful in responsive web applications, i.e. expose your service to a broad range of clients including browsers, mobiles, iphone and tablets.
It is stateless.
It provides uniform interface.
Caching can be done.
Lightweight.
Tushar DikshitPosted Feb 7, 2018, 8:01 AM EST
Hi Vivek,
As per my understanding
First of all i would like to clear, Web api is a fully REST(Repersentational State Transfer) based service,
. It would be better if you comapre among Webservice, WCF and WebApi,
but The main focus of using webapi, is to it is consume less bandwidth, and it is working on HTTP protocal.
so if we don't need more secure data, we can use it. and its performance is best compare to other.
Hamid KhanPosted Apr 15, 2017, 4:45 AM EDT
Hi Vivek,
As per my understanding
First of all i would like to clear, Web api is a fully REST(Repersentational State Transfer) based service,
. It would be better if you comapre among Webservice, WCF and WebApi,
but The main focus of using webapi, is to it is consume less bandwidth, and it is working on HTTP protocal.
so if we don't need more secure data, we can use it. and its performance is best compare to other.
Hamid KhanPosted Apr 15, 2017, 4:44 AM EDT
REST is an architectural pattern. REST services are lightweight, and fast in comparison of SOAP. REST services can be called by any client like Mobile,Tab,Browser. REST services based on HTTP Verb, HTTP Response and HTTP request.
Khaleek AhmadPosted Feb 2, 2017, 12:57 AM EST
wcf insert,update,delete programme
ARAV RAJPUTPosted Jan 30, 2017, 8:52 PM EST
Web API support pure REST Protocol and mainly developed for mobile base application.
Thiruppathi RPosted Jan 12, 2017, 8:37 AM EST
Hi,
Could any one let me that I have created WCFRestfull services . I want to post large amount of data but it shows error:-414 Request-URI Too Long wcf
1> Can we post large amount of data in WCFRestfull service. If yes then how? If no then please let me know the reason.
2>If you have any article related to this, please share.
Thanks
Amit
Amit MishraPosted Jan 9, 2017, 11:51 PM EST
It's very light weight compare to other options
It's Transfer the data using HTTP , the most supported format like mobile, desktop , laptop etc..,
Manoj Kumar DuraisamyPosted Dec 28, 2016, 6:18 PM EST
One of the most popular types of API is REST or, as they’re sometimes known, RESTful APIs. REST or RESTful APIs were designed to take advantage of existing protocols. While REST - or Representational State Transfer - can be used over nearly any protocol, when used for web APIs it it typically takes advantage of HTTP. This means that developers have no need to install additional software or libraries when creating a REST API.
One of the key advantages of REST APIs is that they provide a great deal of flexibility. Data is not tied to resources or methods, so REST can handle multiple types of calls, return different data formats and even change structurally with the correct implementation of hypermedia. This flexibility allows developers to build an API that meets your needs while also meeting the needs of very diverse customers.
Unlike SOAP, REST is not constrained to XML, but instead can return XML, JSON, YAML or any other format depending on what the client requests. And unlike RPC, users aren’t required to know procedure names or specific parameters in a specific order.
But one of the disadvantages of RESTful APIs is that you can lose the ability to maintain state in REST, such as within sessions. It can be more difficult for newer developers to use.
It’s important to understand what makes a REST API RESTful, and why these constraints exist before building your API.
Subhashkumar YadavPosted Dec 16, 2016, 12:21 AM EST
1 - Light weight .
2 - Separation between the client and the server.
3 - The REST API is always independent of the type of platform or languages.
Mohammed Deeb HammoudehPosted Dec 14, 2016, 10:54 PM EST
the REST API always adapts to the type of syntax or platforms being used, which gives considerable freedom when changing or testing new environments within the development. With a REST API you can have PHP, Java, Python or Node.js servers. The only thing is that it is indispensable that the responses to the requests should always take place in the language used for the information exchange, normally XML or JSON
Mohini ShindePosted Dec 12, 2016, 11:36 PM EST
REST API would be processed by a set of client side language bindings, one for each of the data formats (media types)
Mohini ShindePosted Dec 12, 2016, 11:12 PM EST
Hi!
REST has advantages when:
- You have a set of resources that you want to manipulate.
- You want to support navigation between resources.
For instance, when placing an order, you receive an URI to an order confirmation resource for the order in question. Before having confirmed the order, you may even want to modify it - something that can be done with the URI of the order received when placing the order. When having confirmed the order, you receive an URI to a payment service. After having paid the order, you receive an URI to an order status resource for the order in question.
- You need scalability.
RESTful web services are tyically stateless and therefore easily scalable.
SOAP web service should also typically be stateless.
- You want to improve performance by caching web service request results at some point between the service and the consumer.
Caching on the URI of a service is very easy.
SOAP has advantages when:
- You want to publish a web service description (using WSDL).
WSDL 2 can describe RESTful web service as well. WADL is an alternative to WSDL for RESTful web services.
- You want to use security etc. that relies on the use of SOAP headers or some similar mechanism in which data is added and removed from a request.
- You want better tooling support.
- You want tested platform interoperability.
This does not mean that interoperability between platforms is easy. It just means that someone has tested it using certain web service stacks.
This is what I can think of right now. It would be interesting to hear about some other advantages/disadvantages.
Personally I feel that there is room for both SOAP and REST in my toolbox.
Shekhar PanwarPosted Nov 3, 2016, 6:27 PM EDT
Refer the following links
1.http://stackoverflow.com/questions/2191049/what-is-the-advantage-of-using-rest-instead-of-non-rest-http
2.https://www.quora.com/What-are-the-advantages-disadvantages-of-using-REST-API-over-native-libraries
Aleena SaviourPosted Nov 2, 2016, 5:26 AM EDT
Microsoft created separate framework for REST based web services development & instead of using WCF. & pros are JSON Out Put, Stateless, no more configuration & support for multiple device for less rendering data load etc.
Ramesh NikamPosted Nov 1, 2016, 2:20 PM EDT
Microsoft created separate framework for REST based web services development & instead of using WCF. & pros are JSON Out Put, Stateless, no more configuration & support for multiple device for less rendering data load etc.
Ramesh NikamPosted Nov 1, 2016, 2:20 PM EDT
Microsoft created separate framework for REST based web services development & instead of using WCF. & pros are JSON Out Put, Stateless, no more configuration & support for multiple device for less rendering data load etc.
Ramesh NikamPosted Nov 1, 2016, 2:19 PM EDT
Microsoft created separate framework for REST based web services development & instead of using WCF. & pros are JSON Out Put, Stateless, no more configuration & support for multiple device for less rendering data load etc.
Ramesh NikamPosted Nov 1, 2016, 2:19 PM EDT
The advantages of using REST in Web API? Go on http://impranshu.blogspot.in
Ayush JaiswalPosted Oct 31, 2016, 3:00 AM EDT
REST is an architectural pattern which is based on HTTP and uses HTTP requests, responses, verbs and status codes to communicate. The fact that REST services use HTTP means they can be consumed by almost any ‘online’ device or application (including IoT devices such as toasters, cars, pedometers etc) – no proprietary knowledge of the API is required.
Ayush JaiswalPosted Oct 31, 2016, 2:58 AM EDT
REST is an architectural pattern which is based on HTTP and uses HTTP requests, responses, verbs and status codes to communicate. The fact that REST services use HTTP means they can be consumed by almost any ‘online’ device or application (including IoT devices such as toasters, cars, pedometers etc) – no proprietary knowledge of the API is required.
Web API in .net is the way you write REST APIs services in .net. Web API gives you all the benefits of the .net framework and deals with a lot of the complexities of content negotiation, model binding etc that you’d have to deal with yourself without Web API.
Ayush JaiswalPosted Oct 31, 2016, 2:57 AM EDT
REST is an architectural pattern which is based on HTTP and uses HTTP requests, responses, verbs and status codes to communicate. The fact that REST services use HTTP means they can be consumed by almost any ‘online’ device or application (including IoT devices such as toasters, cars, pedometers etc) – no proprietary knowledge of the API is required.
Web API in .net is the way you write REST APIs services in .net. Web API gives you all the benefits of the .net framework and deals with a lot of the complexities of content negotiation, model binding etc that you’d have to deal with yourself without Web API.
Ayush JaiswalPosted Oct 31, 2016, 2:57 AM EDT
REST is an architectural pattern which is based on HTTP and uses HTTP requests, responses, verbs and status codes to communicate. The fact that REST services use HTTP means they can be consumed by almost any ‘online’ device or application (including IoT devices such as toasters, cars, pedometers etc) – no proprietary knowledge of the API is required.
Web API in .net is the way you write REST APIs services in .net. Web API gives you all the benefits of the .net framework and deals with a lot of the complexities of content negotiation, model binding etc that you’d have to deal with yourself without Web API.
Ayush JaiswalPosted Oct 31, 2016, 2:57 AM EDT
Today, a Web- based Application is not enough for real world Because People are so much smart they using different kind of device and mobile in daily life like iPhone, tablets and embedded system. These device have lot of apps for making the easy life. Actually we are moving from the web toward Apps World.
Shamim UddinPosted Oct 19, 2016, 1:14 AM EDT
REST has advantages when:
- You have a set of resources that you want to manipulate.
- You want to support navigation between resources.
For instance, when placing an order, you receive an URI to an order confirmation resource for the order in question. Before having confirmed the order, you may even want to modify it - something that can be done with the URI of the order received when placing the order. When having confirmed the order, you receive an URI to a payment service. After having paid the order, you receive an URI to an order status resource for the order in question.
- You need scalability.
RESTful web services are tyically stateless and therefore easily scalable.
SOAP web service should also typically be stateless.
- You want to improve performance by caching web service request results at some point between the service and the consumer.
Caching on the URI of a service is very easy.
Atul PatilPosted Oct 8, 2016, 12:03 PM EDT
REST has advantages when:
- You have a set of resources that you want to manipulate.
- You want to support navigation between resources.
For instance, when placing an order, you receive an URI to an order confirmation resource for the order in question. Before having confirmed the order, you may even want to modify it - something that can be done with the URI of the order received when placing the order. When having confirmed the order, you receive an URI to a payment service. After having paid the order, you receive an URI to an order status resource for the order in question.
- You need scalability.
RESTful web services are tyically stateless and therefore easily scalable.
SOAP web service should also typically be stateless.
- You want to improve performance by caching web service request results at some point between the service and the consumer.
Caching on the URI of a service is very easy.
Atul PatilPosted Oct 8, 2016, 12:03 PM EDT
REST has advantages when:
- You have a set of resources that you want to manipulate.
- You want to support navigation between resources.
For instance, when placing an order, you receive an URI to an order confirmation resource for the order in question. Before having confirmed the order, you may even want to modify it - something that can be done with the URI of the order received when placing the order. When having confirmed the order, you receive an URI to a payment service. After having paid the order, you receive an URI to an order status resource for the order in question.
- You need scalability.
RESTful web services are tyically stateless and therefore easily scalable.
SOAP web service should also typically be stateless.
- You want to improve performance by caching web service request results at some point between the service and the consumer.
Caching on the URI of a service is very easy.
Atul PatilPosted Oct 8, 2016, 12:02 PM EDT
Nice Bro
Jitendra singhPosted Sep 19, 2016, 9:03 PM EDT
REST is Faster than others like SOAP etc.
REST Provides output in various format like XML, JSON etc
REST requires less bandwidth and resource than others.
REST does not define too much standards like SOAP.
TechieAdmin TechieAdminPosted Sep 2, 2016, 4:05 AM EDT
Rest is Stateless and very light weight compare to web services. Rest can easily used in Mobile device application as well as Desktop application
Akash VarshneyPosted Aug 30, 2016, 9:50 PM EDT
REST means using HTTP the way it's meant to be.Have look at ones **Roy Fielding's dissertation about REST**
Some advantages are
1) Simple
2) You can make good use of HTTP cache and proxy server to help you handle high load.
3) It helps you organize even a very complex application into simple resources.
4) It makes it easy for new clients to use your application, even if you haven't designed it specifically for them (probably, because they weren't around when you created your app).
Hope It will help you :)
Suraj BinorkarPosted Aug 22, 2016, 1:36 AM EDT
Less data trasfer between client and server.
Soumalya DasPosted Aug 11, 2016, 1:53 AM EDT
It is light weight.faster and no need to to configuration settings in your web.config file like one we are doing for wcf services instead you can directly consume webapi.
Rajendra MotePosted Aug 10, 2016, 7:01 AM EDT
A "REST API" is two things: it's a web service and it's RESTful. By virtue of being a web service, you get some loose coupling. The client need not be aware of internal implementation details and there is, as you note, a real opportunity for platform/language independence.
Bikesh SrivastavaPosted Aug 4, 2016, 5:43 AM EDT
A "REST API" is two things: it's a web service and it's RESTful. By virtue of being a web service, you get some loose coupling. The client need not be aware of internal implementation details and there is, as you note, a real opportunity for platform/language independence.
Bikesh SrivastavaPosted Aug 4, 2016, 5:43 AM EDT
It supports convention-based CRUD Actions since it works with HTTP verbs GET,POST,PUT and DELETE.
Responses have an Accept header and HTTP status code.
Responses are formatted by Web API’s MediaTypeFormatter into JSON, XML or whatever format you want to add as a MediaTypeFormatter.
It may accepts and generates the content which may not be object oriented like images, PDF files etc.
It has automatic support for OData. Hence by placing the new [Queryable] attribute on a controller method that returns IQueryable, clients can use the method for OData query composition.
It can be hosted with in the applicaion or on IIS.
It also supports the MVC features such as routing, controllers, action results, filter, model binders, IOC container or dependency injection that makes it more simple and robust.
Chinmaya DashPosted Aug 2, 2016, 3:53 AM EDT
Simple service creation with Web API. With WCF REST Services, service creation is difficult.
Ayush JaiswalPosted Jul 24, 2016, 5:43 AM EDT
REST does not enforces message format as XML or JSON
It has no defined standard specifications.
REST uses the HTTP build-in headers (with a variety of media-types) to carry meta information and use the GET, POST, PUT and DELETE verbs to perform CRUD operations.
REST uses URI and methods like (GET, PUT, POST, DELETE) to expose resources.
REST is fast as compared to SOAP.
Yogendra GautamPosted Jul 19, 2016, 7:31 PM EDT
REST does not enforces message format as XML or JSON.
It has no defined standard specifications.
REST uses the HTTP build-in headers (with a variety of media-types) to carry meta information and use the GET, POST, PUT and DELETE verbs to perform CRUD operations.
REST uses URI and methods like (GET, PUT, POST, DELETE) to expose resources.
REST is fast as compared to SOAP.
Yogendra GautamPosted Jul 19, 2016, 7:30 PM EDT
consume service without create proxy class in our application.
Balamurali Krishnan RPosted Jun 17, 2016, 3:57 AM EDT
It supports convention-based CRUD Actions since it works with HTTP verbs GET,POST,PUT and DELETE.
Responses have an Accept header and HTTP status code.
Responses are formatted by Web API’s MediaTypeFormatter into JSON, XML or whatever format you want to add as a MediaTypeFormatter.
It may accepts and generates the content which may not be object oriented like images, PDF files etc.
It has automatic support for OData. Hence by placing the new [Queryable] attribute on a controller method that returns IQueryable, clients can use the method for OData query composition.
It can be hosted with in the applicaion or on IIS.
It also supports the MVC features such as routing, controllers, action results, filter, model binders, IOC container or dependency injection that makes it more simple and robust.
Keerthi VenkatesanPosted Jun 7, 2016, 9:40 PM EDT
Being RESTful offers additional benefits aimed at additional decoupling, so as to allow extreme scalability.
jitendra virkayadePosted Jun 7, 2016, 5:29 AM EDT
1.Easy to use.
2. Less data trasfer between client and server.
3. using webapi we can develop cross domain application.
Nikhil SanganiPosted Jun 6, 2016, 3:15 AM EDT
I would sum up the answer in two main reasons:
1. Simplicity - It helps you organize even a very complex application into simple resources.
2. Efficancy - You can make good use of HTTP cache and proxy server to help you handle high load.
Ervis TrupjaPosted May 27, 2016, 6:54 AM EDT
Used to build simple, non-SOAP-based HTTP Services on top of existing WCF message pipeline.
Bhuvanesh MohankumarPosted May 18, 2016, 3:52 AM EDT
Simple service creation with Web API. With WCF REST Services, service creation is difficult.
Bhuvanesh MohankumarPosted May 18, 2016, 3:51 AM EDT
REST always used to make less data transfers between client and server which makes REST an ideal for using it in mobile apps. Web API supports HTTP protocol thereby it reintroduces the old way of HTTP verbs for communication.
Keerthi VenkatesanPosted May 12, 2016, 11:37 PM EDT
1. Light weight
2. Only deal with message
3. Less configuration needed as compared to WCF
4. Inbuilt support for JSON
5. It is preferable for mobile devices as it is less weight and supports JSON message format.
6. Easy to access
7. Interoperable
8. Stateless
9. Scalable etc.
Santosh Kumar AdidawarpuPosted May 8, 2016, 8:16 AM EDT
No proxy required and also can be consumed by cross domain application and cross devices.
Bhuvanesh MohankumarPosted May 5, 2016, 10:04 AM EDT
Refer this Site
https://blogs.msdn.microsoft.com/martinkearn/2015/01/05/introduction-to-rest-and-net-web-api/
Thiruppathi RPosted May 3, 2016, 12:26 AM EDT
1) Less data transfer
2) Mainly concentrating on the data rather that it's tags
3) Faster compare with other approach
4) More useful with light weight devices (mobile, iPod's etc..)
5) Rest will only transforms data using .json or .xml formats
Ramakrishna BasagallaPosted Apr 27, 2016, 4:54 AM EDT
REST always used to make less data transfers between client and server which makes REST an ideal for using it in mobile apps. Web API supports HTTP protocol thereby it reintroduces the old way of HTTP verbs for communication.
Posted Apr 25, 2016, 3:35 AM EDT
Web API implicitly supports REST. REST has several advantages as following.
1. REST works on resource request and response model. request can easily be made using URLs.
2. Data transfer happens in JSON which is light weight.
3. Can easily be consumed in devices with low bandwidth network as data flow in less.
Prakash TripathiPosted Apr 9, 2016, 8:18 AM EDT
- Web API allows Content Negotiation- Allowing browser to decide which type of result it will require and Web API will return the required result.
- These are Pure HTML response, no SOAP overhead.
- Light weight
- Security
Rahul ChavanPosted Apr 6, 2016, 4:18 AM EDT
REST is easier to use for the most part and is more flexible. It has the following advantages when compared to SOAP:
No expensive tools require to interact with the Web service
Smaller learning curve
Efficient (SOAP uses XML for all messages, REST use JSON )
Pradeep SahooPosted Mar 21, 2016, 8:02 PM EDT
A SOAP service can support TCP and Other protocols along with HTTP. But REST Can handle only HTTP. So if your service want to http means you can use REST. It is a best choice for API development.
Maruthi PalllamalliPosted Mar 9, 2016, 1:52 AM EST
REST always used to make less data transfers between client and server which makes REST an ideal for using it in mobile apps. Web API supports HTTP protocol thereby it reintroduces the old way of HTTP verbs for communication.
Vivek KumarPosted Feb 7, 2016, 10:40 AM EST





























