Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How does a REST API differ from URI?

Tags:

blob

cloud

azure

The MSDN Documentation on BLOB Service REST API leads to the understanding that REST API and URI are same.Can anybody explain the difference between REST API and URI?

like image 709
Prem Avatar asked Oct 17 '25 13:10

Prem


1 Answers

A URI is used to identify a resource on the web (and other places).

A RESTful API uses URIs and HTTP GET/POST/PUT/DELETE to perform CRUD (create, read, update, delete) operations on a web service.

One of the key identifying characteristics of a REST api is that the URIs are used to directly identify resources rather than web service methods that return resources

e.g.
REST: http://example.com/api/books/1
Non REST: http://example.com/api/getbook?bookId=1

like image 176
Rob Avatar answered Oct 19 '25 04:10

Rob



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!