Changes

no edit summary
Line 15: Line 15:  
* ''markdown'', is a string formatted in the [[Wikipedia:Markdown|Markdown]] syntax;
 
* ''markdown'', is a string formatted in the [[Wikipedia:Markdown|Markdown]] syntax;
 
* ''blob'', is a file represented by string value which is a [[Wikipedia:Sha1|SHA-1]] digest of file's content; the file itself can be obtained from the {{Code|'''GET''' /blobs/''DIGEST''}} request;
 
* ''blob'', is a file represented by string value which is a [[Wikipedia:Sha1|SHA-1]] digest of file's content; the file itself can be obtained from the {{Code|'''GET''' /blobs/''DIGEST''}} request;
* ''aggregated'', is a list of JSON objects which has [[Sugar_Network/API#Aggregated_properties|special API]] to create, or, delete its items.
+
* ''aggregated'', is a list of JSON objects which has [[Sugar_Network/API#Aggregated_properties|special API]] to treat its items; each aggregated item has a unique identifier; items might be created not only by the object's authors.
    
<div id="resource-author"></div>
 
<div id="resource-author"></div>
Line 35: Line 35:  
'''Resource.layer'''
 
'''Resource.layer'''
   −
: This is a system level property to to track objects' condition. It is a list of states set by the system during the object life cycle. Users cannot directly write to this property. Currently supported states are:
+
This is a system level property to to track objects' condition. It is a list of states set by the system during the object life cycle. Users cannot directly write to this property. Currently supported states are:
   −
:* ''featured'', the object is popped up by node editors;
+
* ''featured'', the object is popped up by node editors;
:* ''deleted'', set after removing objects by users; right after user deletes, the object still remains in the system but becomes inaccessible to user requests;
+
* ''deleted'', set after removing objects by users; right after user deletes, the object still remains in the system but becomes inaccessible to user requests;
:* ''favorite'', applied to [[Sugar_Network/API#Client_proxy|local]] Context objects only, set if a user has ''"stared"'' the context;
+
* ''favorite'', applied to [[Sugar_Network/API#Client_proxy|local]] Context objects only, set if a user has ''"stared"'' the context;
:* ''checkin'', applied to [[Sugar_Network/API#Client_proxy|local]] Context objects only, set if a user has ''"pinned"'' the context to keep its most recent version permanently in the local system;
+
* ''checkin'', applied to [[Sugar_Network/API#Client_proxy|local]] Context objects only, set if a user has ''"pinned"'' the context to keep its most recent version permanently in the local system;
:* ''stale'', applied to [[Sugar_Network/API#Client_proxy|local]] Context objects only, set if previously checked-in Context might have more fresh releases on the server; it is not possible to filter Contexts by this state;
+
* ''stale'', applied to [[Sugar_Network/API#Client_proxy|local]] Context objects only, set if previously checked-in Context might have more fresh releases on the server; it is not possible to filter Contexts by this state;
:* ''inprogress'', applied to [[Sugar_Network/API#Client_proxy|local]] Context objects only, set if the Context is in the process of downloading content from the server; it is being temporally set before launching the Context of checking it in; it is not possible to filter Contexts by this state.
+
* ''inprogress'', applied to [[Sugar_Network/API#Client_proxy|local]] Context objects only, set if the Context is in the process of downloading content from the server; it is being temporally set before launching the Context of checking it in; it is not possible to filter Contexts by this state.
    
<div id="context-type"></div>
 
<div id="context-type"></div>
Line 48: Line 48:  
'''Context.type'''
 
'''Context.type'''
   −
: Context types:
+
Context types:
:* ''activity'', Sugar activity;
+
* ''activity'', Sugar activity;
:* ''book'', books in various forms;
+
* ''book'', books in various forms;
:* ''group'', offline discussion groups;
+
* ''group'', offline discussion groups;
:* ''package'', GNU/Linux package metadata.
+
* ''package'', GNU/Linux package metadata.
 +
 
 +
<div id="context-releases"></div>
 +
 
 +
'''Context.releases'''
 +
 
 +
Contexts with ''activity'' or ''book'' types might have releases, i.e., activity or book versions that users can download. The ''releases'' property is aggregated where each item describes one particular version. There is no need in working with the ''releases'' property directly, there are high-level API commands to [[Sugar_Network/API#Upload_releases|upload]] and [[Sugar_Network/API#Download_releases|download]] releases.
    
<div id="post-type"></div>
 
<div id="post-type"></div>
Line 58: Line 64:  
'''Post.type'''
 
'''Post.type'''
   −
:* ''review'', Review the Context;
+
* ''review'', Review the Context;
:* ''object'', Object generated by Context application;
+
* ''object'', Object generated by Context application;
:* ''question'', Q&A request;
+
* ''question'', Q&A request;
:* ''answer'', Q&A response;
+
* ''answer'', Q&A response;
:* ''issue'', Propblem with the Context;
+
* ''issue'', Propblem with the Context;
:* ''announce'', General announcement;
+
* ''announce'', General announcement;
:* ''notification'', Auto-generated Post for updates within the Context;
+
* ''notification'', Auto-generated Post for updates within the Context;
:* ''feedback'', Review parent Post;
+
* ''feedback'', Review parent Post;
:* ''post'', General purpose dependent Post.
+
* ''post'', General purpose dependent Post.