3
0

update spec with descriptions

This commit is contained in:
Tit Petric 2018-06-03 13:16:29 +02:00
parent 73dae56496
commit b158804823
6 changed files with 27 additions and 0 deletions

View File

@ -1,6 +1,7 @@
[
{
"title": "Organisations",
"description": "Organisations represent a top-level grouping entity. There may be many organisations defined in a single deployment.",
"package": "crust",
"entrypoint": "organisation",
"apis": {
@ -32,6 +33,7 @@
},
{
"title": "Teams",
"description": "An organisation may have many teams. Teams may have many channels available. Access to channels may be shared between teams.",
"package": "crust",
"entrypoint": "team",
"apis": {
@ -67,6 +69,7 @@
},
{
"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 direct (between two users).",
"package": "crust",
"entrypoint": "channel",
"apis": {
@ -164,6 +167,7 @@
},
{
"title": "Files",
"description": "The Files API is an abstraction over messages that have been sent with a file attachment.",
"package": "crust",
"entrypoint": "file",
"apis": {

View File

@ -1,5 +1,6 @@
{
"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 direct (between two users).",
"Package": "crust",
"Interface": "Channel",
"Path": "/channel",

View File

@ -1,5 +1,6 @@
{
"Title": "Files",
"Description": "The Files API is an abstraction over messages that have been sent with a file attachment.",
"Package": "crust",
"Interface": "File",
"Path": "/file",

19
docs/src/message.md Normal file
View File

@ -0,0 +1,19 @@
Messages represent individual messages in the chat system. Messages are typed, indicating the event which triggered the message.
Currently expected message types are:
| Name | Description |
| ---- | ----------- |
| CREATE | The first message when the channel is created |
| TOPIC | A member changed the topic of the channel |
| RENAME | A member renamed the channel |
| MESSAGE | A member posted a message to the channel |
| FILE | A member uploaded a file to the channel |
The following event types may be sent with a message event:
| Name | Description |
| ---- | ----------- |
| CREATED | A message has been created on a channel |
| EDITED | A message has been edited by the sender |
| REMOVED | A message has been removed by the sender |

View File

@ -1,5 +1,6 @@
{
"Title": "Organisations",
"Description": "Organisations represent a top-level grouping entity. There may be many organisations defined in a single deployment.",
"Package": "crust",
"Interface": "Organisation",
"Path": "/organisation",

View File

@ -1,5 +1,6 @@
{
"Title": "Teams",
"Description": "An organisation may have many teams. Teams may have many channels available. Access to channels may be shared between teams.",
"Package": "crust",
"Interface": "Team",
"Path": "/team",