how to represent a resource in api 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: how to represent a resource in api

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.

Tags:

Misc Example