O'Reilly logo

Java EE Development with Eclipse - Second Edition by Ram Kulkarni

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

REST web services

We will first start with REST web services because they are widely used and are easy to implement. REST is not necessarily a protocol but an architectural style, and is typically based on HTTP. REST web services act on the resources on the server side, and the actions are based on the HTTP method (Get, Post, Put, and Delete). The state of resources is transferred over HTTP in either the XML or the JSON format, although JSON is more popular. The resources on the server side are identified by URLs. For example, to get details of a course with ID 10, you could use the HTTP GET method with the following URL: http://<server_address>:<port>/course/10. Notice that the parameter is a part of the base URL. To add a new Course or modify ...

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