Sugar Network/API: Difference between revisions
No edit summary |
|||
| Line 9: | Line 9: | ||
The API is [[Wikipedia:Restful|RESTful]] and being served via HTTP(S) using [[Wikipedia:Json|JSON]] notation. The common RESTful request url format is: | The API is [[Wikipedia:Restful|RESTful]] and being served via HTTP(S) using [[Wikipedia:Json|JSON]] notation. The common RESTful request url format is: | ||
http[s]://<SERVER>/<RESOURCE>[/<GUID|ACTION>[/<ACTION>]]? | http[s]://<SERVER>/<RESOURCE>[/<GUID|ACTION>[/<ACTION>]][?<ARG>=<>..] | ||
When: | When: | ||
| Line 18: | Line 18: | ||
Besides, particular request can send and receive data in [[Wikipedia:Json|JSON]] notation. If request processing was failed, the reply is a JSON directory that contains {{Code|error}} key with error message. | Besides, particular request can send and receive data in [[Wikipedia:Json|JSON]] notation. If request processing was failed, the reply is a JSON directory that contains {{Code|error}} key with error message. | ||
== Commons == | == Commons == | ||