what are the resources in rest architecture code example

Example 1: how to represent a resource in restful web services

We are using http methods like
get,put,post,patch

REST uses different representations 
to define a resource like plain text,
CSV, HTML, JSON, and XML.
XML and JSON
are the most popular representations of resources.

Example 2: what are the resources in rest architecture

Resources are identified by logical URLs; 
it is the key element of a RESTful design. 
Unlike, SOAP web services in REST, you view
the product data as a resource and this 
resource should contain all the required information.

Tags:

Misc Example