forked from ondra/colnod-connector
63 lines
1.4 KiB
Plaintext
63 lines
1.4 KiB
Plaintext
FORMAT: 1A
|
|
|
|
# JSON Schema
|
|
Every request and response can have a schema. Below you will find examples
|
|
using [JSON Schema](http://json-schema.org/) to describe the format of request
|
|
and response body content.
|
|
|
|
|
|
# Notes [/AaaManager/authSession]
|
|
|
|
+ Body
|
|
|
|
+ username: spaceti (required) - User identifier
|
|
+ password: E7FEA07DBC82FB9BA34B2E453E2EFE89F0583E7187543507EF11E84726071FE428445372F2E46B455EB0C79747C51E362F403CE39473A2A8C2DFA0CE5C9826C0 (required) - sha512 password
|
|
|
|
## Get a note [POST]
|
|
Gets a single note by its unique identifier.
|
|
|
|
+ Request (application/json)
|
|
|
|
+ Body
|
|
|
|
{
|
|
"user": "String",
|
|
"password": "String ",
|
|
}
|
|
|
|
+ Schema
|
|
|
|
{
|
|
"type": "object",
|
|
"properties": {
|
|
"username": {
|
|
"type": "string"
|
|
},
|
|
"password": {
|
|
"type": "string"
|
|
},
|
|
}
|
|
}
|
|
|
|
+ Response 200 (application/json)
|
|
|
|
+ Body
|
|
|
|
{
|
|
"id": "String",
|
|
"token": "String ",
|
|
}
|
|
|
|
+ Schema
|
|
|
|
{
|
|
"type": "object",
|
|
"properties": {
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"token": {
|
|
"type": "string"
|
|
},
|
|
}
|
|
} |