Add status stubs

This commit is contained in:
Denis Arh
2019-04-26 11:46:33 +02:00
parent d533cca1d5
commit f8e7a2133d
6 changed files with 431 additions and 0 deletions
+49
View File
@@ -39,6 +39,55 @@
}
]
},
{
"title": "Status",
"parameters": {},
"entrypoint": "status",
"path": "/status",
"authentication": [],
"apis": [
{
"name": "list",
"path": "/",
"method": "GET",
"title": "See all current statuses"
},
{
"name": "set",
"path": "/",
"method": "POST",
"title": "Set user's status",
"parameters": {
"post": [
{
"type": "string",
"name": "icon",
"required": false,
"title": "Status icon"
},
{
"type": "string",
"name": "message",
"required": false,
"title": "Status message"
},
{
"type": "string",
"name": "expires",
"required": false,
"title": "Clear status when it expires (eg: when-active, afternoon, tomorrow 1h, 30m, 1 PM, 2019-05-20)"
}
]
}
},
{
"name": "delete",
"path": "/",
"method": "DELETE",
"title": "Clear status"
}
]
},
{
"title": "Channels",
"description": "A channel is a representation of a sequence of messages. It has meta data like channel subject. Channels may be public, private or group.",
+53
View File
@@ -0,0 +1,53 @@
{
"Title": "Status",
"Interface": "Status",
"Struct": null,
"Parameters": {},
"Protocol": "",
"Authentication": [],
"Path": "/status",
"APIs": [
{
"Name": "list",
"Method": "GET",
"Title": "See all current statuses",
"Path": "/",
"Parameters": null
},
{
"Name": "set",
"Method": "POST",
"Title": "Set user's status",
"Path": "/",
"Parameters": {
"post": [
{
"name": "icon",
"required": false,
"title": "Status icon",
"type": "string"
},
{
"name": "message",
"required": false,
"title": "Status message",
"type": "string"
},
{
"name": "expires",
"required": false,
"title": "Clear status when it expires (eg: when-active, afternoon, tomorrow 1h, 30m, 1 PM, 2019-05-20)",
"type": "string"
}
]
}
},
{
"Name": "delete",
"Method": "DELETE",
"Title": "Clear status",
"Path": "/",
"Parameters": null
}
]
}