As features are added, APIs and endpoints will be exposed by the various servers/services.
Be sure to commit changes to the documentation when such changes occur to the codebase. Follow these guidelines for specific documentation syntax:
Be sure to use ```plaintext above and below a code block of plaintext in your markdown when denoting information about an API endpoint. It looks like this:
[METHOD] [/endpoint/path]
request
body = JSON {
[property1]: [TYPE] [(required)]
[property2]: [TYPE]
}
query = {
[key1] [(required)]
[key2]
[key3]
}
response
status = [STATUS_CODE_1 | STATUS_CODE_2]
data = JSON {
[property1]: [TYPE]
[property2]: [TYPE]
}
Examples:
GET /slings
request
query = {
search (required)
page
filterInactive
}
response
status = 200 | 400 | 500
data = JSON {
success: BOOLEAN
message: STRING
}
POST /slings
request
body = JSON {
text: STRING (required)
}
response
status = 200 | 400 | 500
data = JSON {
success: BOOLEAN
message: STRING
slingId: NUMBER
}
[Event Name]
[Description of when the event is triggered]
payload: {
[key]: [TYPE]
}
Example:
client.update
Emit to the server when user has changed the state of the code editor
payload: {
text: STRING
}