Activity › Forums › Salesforce® Discussions › What is the purpose and format of URI in REST architecture?
Tagged: Rest API, Salesforce REST API, URI
-
What is the purpose and format of URI in REST architecture?
Posted by Sanjana on July 13, 2018 at 12:38 PMWhat is the purpose and format of URI in REST architecture?
Avnish Yadav replied 7 years, 8 months ago 4 Members · 3 Replies -
3 Replies
-
Purpose of an URI is to locate a resource(s) on the server hosting the web service. Another important attribute of a request is VERB which identifies the operation to be performed on the resource.
A URI is of following format −
<protocol>://<service-name>/<ResourceType>/<ResourceID>
- [adinserter block='9']
-
REST is an architectural style for networked hypermedia applications, it is primarily used to build Web services that are lightweight, maintainable, and scalable. A service based on REST is called a RESTful service. REST is not dependent on any protocol, but almost every RESTful service uses HTTP as its underlying protocol. In this article, I examine the creation of RESTful services with HTTP.
A URI (Uniform Resource Identifier) is a sequence of characters that identifies a logical or physical resource.
A URI is of following format −
<protocol>://<service-name>/<ResourceType>/<ResourceID>
Thanks
-
Hey,
The purpose of URI in REST is to locate the resources on server.
And the format of URI in REST is-
<protocol>://<service-name>/<ResourceType>/<ResourcrceID>
Thanks.
Log In to reply.