Sugar Network/API: Difference between revisions
| Line 247: | Line 247: | ||
* {{Code|PATH}}, is an url path; | * {{Code|PATH}}, is an url path; | ||
* {{Code|ARG<nowiki>=</nowiki>VALUE}}, request arguments as they being passed to in url. | * {{Code|ARG<nowiki>=</nowiki>VALUE}}, request arguments as they being passed to in url. | ||
{{Code|POST}} and {{Code|PUT}} commands requires data to pass, pass the following command-line arguments: | |||
* {{Code|-f FILE}} to specify the file to pass; | |||
* {{Code|-d DATA}} to specify string to pass; | |||
* {{Code|-j}} posted data should be encoded into JSON before posting. | |||
== Getting involved == | == Getting involved == | ||
{{:Sugar_Network/Feedback}} | {{:Sugar_Network/Feedback}} | ||