Skip to content

POST Method

Jan Stefan Gehrmann edited this page Jul 18, 2017 · 3 revisions

The POST method is used to create new resources.

Usage:

//initialize the client
var client = new REST();

//fire the request
client.POST(url,true,body,function (responseText, statusCode, statusMessage) { 
    //do something
});

POST uses four parameters:

  • url
  • boolean
  • body
  • callback function

After successfully executing a post request you will get a link to the newly created resource as a response.

Go back | Continue reading

Clone this wiki locally