O'Reilly logo

NetBeans IDE 8 Cookbook by Rhawi Dantas, David Salter

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Creating a REST web service

With the advent of modern web application development, REST-based web services have become a popular method of sending data from application servers to clients. Many JavaScript frameworks, such as AngularJS, have been developed that make calling REST-web services a simple and convenient way of getting data.

REST web services use different HTTP methods (GET, PUT, DELETE for example) to perform different operations. GET is typically used for retrieving data, whereas PUT is used for storing data.

Well-designed REST web services are modeled such that "reading the URL" explains what the request is for. For example, a GET request to the http://localhost/Travel/busroute/1 URL would return information about bus route number 1, ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required