POST to rel
WARNING
This API is frozen and deprecated. Please use the fluent API from 0.9.4 on
Follows a resource's link by way of its rel and sends a POST request with data.
Signature
The method signature for POST to rel is:
parameter | description |
---|---|
resource | The body of a response from a previous request, in HAL format |
rel | The name of the link relation this POST request will follow. If not supplied, the default is self |
data | The payload to POST |
parameters | (optional) name/value pairs which will be used to create a query string. learn more |
template | (optional) if the link is templated, name/value pairs to fill the template. learn more |
headers | (optional) add to or override the default headers. learn more |
-> returns | the JSON from the payload of the response to this request |