Changes

stoney core: Search Resource - REST API

544 bytes added, 15:29, 9 January 2014
/* Search helper */
Reseller search example: <code>https://api.example.com/v1/resellers/?q=fluffy+dragon</code>. TBD. Diese Variante beschreiben.
 
* number of entries returned '''per''' object type:
** default: 5
** max (can be raised by appropriate get parameters): 15
 
<source lang='javascript'>
{
"resellers":
{
"resources":
[
{ "id": 4000000, ... },
{ "id": 4000001, ... }
],
"location": "https://api.selfcare.com/v1/resellers/?q=fluffy+dragon"
},
"customers":
{
"resources":
[
{ "id": 5000000, ... },
{ "id": 5000001, ... }
],
"location": "https://api.selfcare.com/v1/customers/?q=fluffy+dragon"
},
...
}
</source>
[[Category: REST API]]
Bureaucrat, administrator
425
edits