Reputation: 9545
when I use jquery and ajax am I using REST? Is rest just asynchronous post/get etc?
$.ajax({
type: "POST",
url: "some.php",
data: { name: "John", location: "Boston" }
}).done(function( msg ) {
alert( "Data Saved: " + msg );
});
Upvotes: 0
Views: 146
Reputation: 8401
No. It has more to do it with how the service urls are formed. And also the methods to access them GET, POST, PUT etc
Example,
GET /item/all <- Gives all items
GET /item/id <- Gives item identified by id
POST /item <- Creates new item
PUT /item/id <- Updates item identified by id
DELETE /item/id <- Deletes item identified by id
Upvotes: 2