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": "cd5fcfbb-670a-4e61-8db4-11bf1e55a0ec",
"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": "bc24a632-015b-4e76-b3f5-36655c5fdd8b",
"user_id": "d90d67bf-32fc-4d4a-b92d-d6b1385c3564",
"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": "e59948ab-ae07-4d5c-9271-a6b4db62a4f3",
"note": "string",
"tag": "string"
},
"jsonrpc": "2.0"
}
The updated note.
Example Response
Copy
Copied
{
"id": 1,
"result": {
"id": "0781c887-0918-4ecf-930f-d23c89f523ba",
"user_id": "b38b718a-76cb-46fa-8eea-cb4088b82c36",
"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": "905df24d-ef71-467d-8e68-802d3e03f8eb"
},
"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": "7c9ffc60-0ba6-4454-ad50-2c4e2e4d9b11",
"user_id": "8422f777-272d-45cd-821d-6c4cd23a8b2a",
"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": "b504dd34-aaa3-4522-ad85-e2c70943be70"
},
"jsonrpc": "2.0"
}
Note of the given ID.
Example Response
Copy
Copied
{
"id": 1,
"result": {
"id": "eebed2c2-ff8d-4efc-afe1-c6e3f488aa3e",
"user_id": "1b9c63e0-7427-4c84-81d2-2fff483bc14d",
"note": "string",
"tag": "string"
},
"jsonrpc": "2.0"
}