Sugar Network/API: Difference between revisions
| Line 31: | Line 31: | ||
Create new ''RESOURCE'' object. | Create new ''RESOURCE'' object. | ||
Dictionary keys to send: | |||
: | : ''RESOURCE'' properties. | ||
Dictionary keys to receive: | |||
:* {{Code|guid}}, | :* {{Code|guid}}, with globally unique identifier that specifies created object. | ||
PUT /<RESOURCE>/<GUID> | PUT /<RESOURCE>/<GUID> | ||
| Line 41: | Line 41: | ||
Modify the specified ''RESOURCE'' object. By default, might be called only by ''RESOURCE'' creator. | Modify the specified ''RESOURCE'' object. By default, might be called only by ''RESOURCE'' creator. | ||
Dictionary keys to send: | |||
: | : ''RESOURCE'' properties to modify. | ||
DELETE /<RESOURCE>/<GUID> | DELETE /<RESOURCE>/<GUID> | ||
| Line 62: | Line 62: | ||
:* {{Code|order_by}}, ''str''<br>property to sort the resulting list by; if starts with the {{Code|-}}, the order is descending, otherwise it is ascending. | :* {{Code|order_by}}, ''str''<br>property to sort the resulting list by; if starts with the {{Code|-}}, the order is descending, otherwise it is ascending. | ||
Dictionary keys to receive: | |||
:* | :* {{Code|total}}, total number in requested query (the reply might contain only portion restricted by {{Code|limit}} request argument); | ||
:* {{Code|result}}, an array of dictionaries with ''RESOURCE'' properties, dictionaries contain at least {{Code|guid}} property. | |||
:* | |||
GET /<RESOURCE>/<GUID> | GET /<RESOURCE>/<GUID> | ||
| Line 72: | Line 70: | ||
Return ''RESOURCE'' properties the of particular object. | Return ''RESOURCE'' properties the of particular object. | ||
Dictionary keys to receive: | |||
:* | :* ''RESOURCE'' properties that contains at least {{Code|guid}} property. | ||
=== Wiki actions === | === Wiki actions === | ||