What is an URI in REST?

Imran Khan
Imran Khan

Posted On: Feb 22, 2018

 

URI (Uniform Resource Identifiers) is used to identify each resource in the REST. An HTTP operation is called by the client application to access the resource. In the construction of a URI to identify a resource, some rules are to be followed. The resource should be defined in the plural noun. The URI is case0sensitive, so use a lowercase letter when defining a URI. There should be no spaces included in the URI. The created URI should be backward compatible.

//FORMAT for creating a URI

<protocol>://<service-name>/<ResourceType>/<ResourceID>

    Related Questions

    Please Login or Register to leave a response.

    Related Questions

    Rest API Interview Questions

    Explain What is REST?

    REST, expanded as Representational State Transfer, is an architectural style developed by Roy Fielding in 2000. REST presents a set of constraints to be used in the creation of web services. The servi...

    Rest API Interview Questions

    Enlist different types of HTTP requests supported by REST API?

    REST supports a group of HTTP methods to manipulate the request and response. They are, GET &ndash; It is used to read the representation of a resource. It usually returns the resource in XML or JSON...

    Rest API Interview Questions

    What is resource in REST API?

    In the REST architecture, every content is a resource. It can be a text file, HTML pages, images, videos, or business data. These resources are identified by the URI or global ID&rsquo;s which can be ...