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 (
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 ...