Line 298: |
Line 298: |
| | | |
| * {{Code|spawn}}, by default, the command will return streamed ''text/event-stream'' MIME type data to monitor the whole launching process until exiting the application; if the {{Code|spawn}} argument is specified, the command will exit immediately with [[#Notifications|asynchronous sending]] launching events. | | * {{Code|spawn}}, by default, the command will return streamed ''text/event-stream'' MIME type data to monitor the whole launching process until exiting the application; if the {{Code|spawn}} argument is specified, the command will exit immediately with [[#Notifications|asynchronous sending]] launching events. |
− | <!--
| |
− | === Access to the Journal ===
| |
| | | |
− | It is possible to get access to local Sugar Journal using special, ''journal'', resource. API to Journal is restricted only to read-only access: | + | == Experimental API == |
| + | |
| + | There is no guaranty that the following API will be stated as stable or frozen sometime. |
| + | |
| + | === Access to Sugar Journal === |
| + | |
| + | It is possible to get access to local Sugar Journal using special, ''journal'', resource. This kind of access might be useful when local applications cannot use DBus sugar-datastore API, e.g., [[wikipedia:Javascript|Javascript]] applications. API to Journal is restricted only to read-only access: |
| | | |
| '''GET''' /journal?offset=''INTEGER''&limit=''INTEGER''[&query=''STRING''][&order_by=<nowiki>[+|-]</nowiki>''PROP''][&''QUERY_PROP''=''VALUE''[&...]] | | '''GET''' /journal?offset=''INTEGER''&limit=''INTEGER''[&query=''STRING''][&order_by=<nowiki>[+|-]</nowiki>''PROP''][&''QUERY_PROP''=''VALUE''[&...]] |
| '''GET''' /journal/''JOURNAL_ID''[?reply=''PROP''[,..]] | | '''GET''' /journal/''JOURNAL_ID''[?reply=''PROP''[,..]] |
| '''GET''' /journal/''JOURNAL_ID''/''PROPERTY'' | | '''GET''' /journal/''JOURNAL_ID''/''PROPERTY'' |
− |
| |
− | This kind of access might be useful when local applications cannot use DBus sugar-datastore API, e.g., [[wikipedia:Javascript|Javascript]] applications.
| |
− | -->
| |
| | | |
| == Usage == | | == Usage == |