Changes

stoney core: REST API

272 bytes added, 16:01, 13 November 2013
/* Reseller creation (POST) */
Create a new reseller.
Required field structure'''Request'''
<pre>
POST /v1/resellers/ HTTP 1.1
"websiteURL": "https://www.example.com/"
}
}
</source>
 
'''Answer''':
<pre>
HTTP/1.1 201 Created
</pre>
<pre>
Content-Type: application/json; charset=UTF-8
Location: https://api.example.com/v1/resellers/4000001
</pre>
<source lang='javascript'>
{
"id": 4000001,
"location": "https://api.example.com/v1/resellers/4000001",
}
</source>
Bureaucrat, administrator
425
edits