Tabella Demo Server
A demo RPC API using Tabella. The OAuth 2.0 server used for authentication will accept anything as client ID. The API key for API auth is `coffee` and the bearer token for Bearer auth is `mocha`.
1.0.0
Apache-2.0Methods
Auth
close
Note
close
0
⮞ auth.sign_up
Create a new user.
Parameters
Unique username/email for a new user.
Password of the new user.
Example Request
Copy
Copied
{
"id": 1,
"method": "auth.sign_up",
"params": {
"username": "string",
"password": "string"
},
"jsonrpc": "2.0"
}
The new user object.
Example Response
Copy
Copied
{
"id": 1,
"result": {
"id": "693a29d7-7c1c-4527-a498-9096b3d35354",
"username": "string",
"password": "string"
},
"jsonrpc": "2.0"
}
0
⮞ auth.sign_in
Get a JWT for an existing user.
Parameters
Username/email of the user.
User password.
Example Request
Copy
Copied
{
"id": 1,
"method": "auth.sign_in",
"params": {
"username": "string",
"password": "string"
},
"jsonrpc": "2.0"
}
A JWT for the user with the given credentials.
Example Response
Copy
Copied
{
"id": 1,
"result": {
"access_token": "string",
"refresh_token": null,
"token_type": "string"
},
"jsonrpc": "2.0"
}
1
⮞ note.create_note
Create a new note.
lock_openParameters
Content of the note.
Tag the note for filtering.
Example Request
Copy
Copied
{
"id": 1,
"method": "note.create_note",
"params": {
"note": "string",
"tag": "string"
},
"jsonrpc": "2.0"
}
The new note.
Example Response
Copy
Copied
{
"id": 1,
"result": {
"id": "eec06933-ef77-4ac6-8a35-ec4f6b344663",
"user_id": "7161b66e-1e4b-4028-bbfa-1161b4d1478b",
"note": "string",
"tag": "string"
},
"jsonrpc": "2.0"
}
1
⮞ note.update_note
Update a new note.
lock_openParameters
ID of the note to update.
Updated note content, if provided.
Updated note tag, if provided.
Example Request
Copy
Copied
{
"id": 1,
"method": "note.update_note",
"params": {
"note_id": "5ed11499-4fe5-475f-b80e-dc670dd9262a",
"note": "string",
"tag": "string"
},
"jsonrpc": "2.0"
}
The updated note.
Example Response
Copy
Copied
{
"id": 1,
"result": {
"id": "d8fce488-629e-4b4b-a491-b8ed26e4d7aa",
"user_id": "733e55e9-b84d-490d-ad90-39c4c75f812c",
"note": "string",
"tag": "string"
},
"jsonrpc": "2.0"
}
1
⮞ note.delete_note
Delete an existing note.
lock_openParameters
Example Request
Copy
Copied
{
"id": 1,
"method": "note.delete_note",
"params": {
"note_id": "44192ab3-62e9-47b4-8ba8-2e8db95bc821"
},
"jsonrpc": "2.0"
}
Null.
Example Response
Copy
Copied
{
"id": 1,
"result": null,
"jsonrpc": "2.0"
}
1
⮞ note.get_notes
Get notes.
lock_openParameters
Optional tag to filter by.
Example Request
Copy
Copied
{
"id": 1,
"method": "note.get_notes",
"params": {
"tag": null
},
"jsonrpc": "2.0"
}
List of notes matching the filter.
Example Response
Copy
Copied
{
"id": 1,
"result": [
{
"id": "b6639933-5505-4ca5-a9dd-2fcde050edee",
"user_id": "a79b26a4-99c4-4014-8b38-f4cd06ff76c7",
"note": "string",
"tag": "string"
}
],
"jsonrpc": "2.0"
}
1
⮞ note.get_note
Get a note.
lock_openParameters
ID of the note to get.
Example Request
Copy
Copied
{
"id": 1,
"method": "note.get_note",
"params": {
"note_id": "c0dcf4c8-d6b9-46b2-85b8-7808986ac46f"
},
"jsonrpc": "2.0"
}
Note of the given ID.
Example Response
Copy
Copied
{
"id": 1,
"result": {
"id": "1fc35545-3e28-4a04-a9b6-29e9c71bec26",
"user_id": "822a0f65-66ac-471b-adc2-3f9bf6322901",
"note": "string",
"tag": "string"
},
"jsonrpc": "2.0"
}