12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667 |
- {
- "application": "simple storage server",
- "ver": "1.0.0",
- "entrypoint": {
- "GET": {
- "/": {
- "desc": "get information about the server API",
- "params": null,
- "return": "description of the API"
- },
- "/authentication": {
- "desc": "",
- "params": null,
- "return": [
- {
- "key": "success",
- "value": true
- },
- {
- "key": "authentication",
- "value": "boolean"
- }
- ]
- }
- },
- "POST": {
- "/register": {
- "desc": "register a new user",
- "params": [
- {
- "key": "user",
- "value": "string",
- "desc": "name of the new user"
- },
- {
- "key": "password",
- "value": "string",
- "desc": "password of the new user"
- }
- ],
- "return": [
- {
- "key": "success",
- "value": true
- }
- ]
- }
- },
- "Error": {
- "desc": "Return when error occurs",
- "returns": [
- {
- "key": "success",
- "value": false
- },
- {
- "key": "code",
- "value": "int"
- },
- {
- "key": "message",
- "value": "string"
- }
- ]
- }
- }
- }
|