Changes

Jump to navigation Jump to search
1,352 bytes added ,  16:31, 17 November 2012
Line 117: Line 117:  
Data to receive:
 
Data to receive:
 
:* property value in JSON notation.
 
:* property value in JSON notation.
 +
 +
=== Download activities ===
 +
 +
To download Sugar Activity bundle from the Sugar Network, it is required to find out the GUID of ''Implementation'' with needed activity version. To make this process more convenient for users, there is special command that requires only ''Context'' GUID (which is, in most cases, equal to Sugar Activity bundle id).
 +
 +
'''GET''' /context/''GUID''?cmd='''clone'''[&version=''VERSION''][&stability=''STABILITY''][&requires=''REQUIRES'',..]
 +
 +
This command finds out required ''Implementation'', using passed parameters, and returns its bundle. Command parameters are:
 +
 +
* {{Code|VERSION}}<br>Version to download; if omitted, most recent will be used;
 +
* {{Code|STABILITY}}<br>[[#Sugar_Network_resources|stability]] ''Implementation'' value; if omitted, ''stable'' will be used;
 +
* {{Code|REQUIRES}}<br>while uploading new versions, system will keep dependency information in ''requires'' property of ''Implementations'' resources; it is not strict information and is not being used for processing dependencies while launching, ''requires'' property exists only to simplify users driven searching; {{Code|REQUIRES}} specifies ''requires'' property to search versions (option might be multiple); for the first time, the only guarantied ''requires'' values are {{Code|sugar-''VERSION''}} with information what Sugar Shell required.
    
=== Notifications ===
 
=== Notifications ===

Navigation menu