Changes

Jump to navigation Jump to search
154 bytes added ,  03:42, 30 May 2013
Line 63: Line 63:     
List of actions common of all resources.
 
List of actions common of all resources.
 +
 +
<div id="POST"></div>
    
  '''POST''' /''RESOURCE''
 
  '''POST''' /''RESOURCE''
Line 73: Line 75:  
JSON object keys to receive:
 
JSON object keys to receive:
 
* {{Code|guid}}, with globally unique identifier that specifies the created object.
 
* {{Code|guid}}, with globally unique identifier that specifies the created object.
 +
 +
<div id="PUT"></div>
    
  '''PUT''' /''RESOURCE''/''GUID''
 
  '''PUT''' /''RESOURCE''/''GUID''
Line 80: Line 84:  
JSON object keys to send:
 
JSON object keys to send:
 
* {{Code|RESOURCE}}'s properties to modify.
 
* {{Code|RESOURCE}}'s properties to modify.
 +
 +
<div id="DELETE"></div>
    
  '''DELETE''' /''RESOURCE''/''GUID''
 
  '''DELETE''' /''RESOURCE''/''GUID''
    
Delete resource object. Actual object destruction won't happen, the object will be hidden. Garbage collection of hidden objects will be processed by Network administrators. By default, this action may be called only by the {{Code|GUID}} creator.
 
Delete resource object. Actual object destruction won't happen, the object will be hidden. Garbage collection of hidden objects will be processed by Network administrators. By default, this action may be called only by the {{Code|GUID}} creator.
 +
 +
<div id="GET"></div>
    
  '''GET''' /''RESOURCE''[?offset=''INTEGER''][&limit=''INTEGER''][&query=''STRING''][&reply=''PROP''[,..]][&order_by=<nowiki>[+|-]</nowiki>''PROP''][&group_by=''PROP''][&''QUERY_PROP''=''VALUE''[&...]]
 
  '''GET''' /''RESOURCE''[?offset=''INTEGER''][&limit=''INTEGER''][&query=''STRING''][&reply=''PROP''[,..]][&order_by=<nowiki>[+|-]</nowiki>''PROP''][&group_by=''PROP''][&''QUERY_PROP''=''VALUE''[&...]]
Line 103: Line 111:  
* {{Code|total}}, total number in requested query (the reply might contain only the portion restricted by {{Code|limit}} request argument);
 
* {{Code|total}}, total number in requested query (the reply might contain only the portion restricted by {{Code|limit}} request argument);
 
* {{Code|result}}, an array of dictionaries with resource object properties, dictionaries contain at least {{Code|guid}} property.
 
* {{Code|result}}, an array of dictionaries with resource object properties, dictionaries contain at least {{Code|guid}} property.
 +
 +
<div id="GET-resource"></div>
    
  '''GET''' /''RESOURCE''/''GUID''[?reply=''PROP''[,..]]
 
  '''GET''' /''RESOURCE''/''GUID''[?reply=''PROP''[,..]]
Line 110: Line 120:  
JSON object keys to receive:
 
JSON object keys to receive:
 
* properties that were specified in {{Code|reply}} argument(s), at least {{Code|guid}}.
 
* properties that were specified in {{Code|reply}} argument(s), at least {{Code|guid}}.
 +
 +
<div id="GET-property"></div>
    
  '''GET''' /''RESOURCE''/''GUID''/''PROP''
 
  '''GET''' /''RESOURCE''/''GUID''/''PROP''

Navigation menu