Sugar Network/API: Difference between revisions

Line 112: Line 112:
* {{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>
<div id="GET-resource"></div>


  '''GET''' /''RESOURCE''/''GUID''[?reply=''PROP''[,..]]
  '''GET''' /''RESOURCE''/''GUID''[?reply=''PROP''[,..]]
Line 121: Line 121:
* 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>
<div id="GET-property"></div>


  '''GET''' /''RESOURCE''/''GUID''/''PROP''
  '''GET''' /''RESOURCE''/''GUID''/''PROP''
Line 130: Line 130:
* property value in JSON notation for regular properties;
* property value in JSON notation for regular properties;
* raw data or redirection for BLOB properties.
* raw data or redirection for BLOB properties.
<div id="HEAD-property"></div>
'''HEAD''' /''RESOURCE''/''GUID''/''PROP''
Return property metadata for particular resource object. In addition to regular HTTP header properties, the command will return Sugar Network property metadata in header keys prefixed by {{Code|X-SN-}}.


=== Download activities ===
=== Download activities ===