What Does URI Stand For?
Instead, the API publishes each record with a unique uri
field. If this record is referred to by another record, then this full identifier will be used in every case. If this record should be included in a collection, this exact same identifier will be used there, too. You can reach the resource directly by requesting its URI. In the same way that we might refer to a website by its URL, we refer to records in RESTful systems by their URI*. If you need to store these somewhere for your own use, you can use whatever key you like with the local storage, you may even choose to use the uri
field as it is unique.
* URI stands for Unique Resource Identifier
Pingback: What Does URI Stand For? | Advanced PHP | Scoop.it
All URLs are URIs, but not all URIs are URLs. :-)
How do you store the URI for each record?
In a extra column in the database or do you generate one for each request?