All checks were successful
Co-authored-by: Jeffrey Smith <jasafpro@gmail.com> Co-committed-by: Jeffrey Smith <jasafpro@gmail.com>
85 lines
2.0 KiB
JSON
85 lines
2.0 KiB
JSON
{
|
|
"id": "notes",
|
|
"title": "Notes",
|
|
"type": "full",
|
|
"tier": "starlark",
|
|
"route": "/s/notes",
|
|
"auth": "authenticated",
|
|
"layout": "single",
|
|
"version": "0.3.0",
|
|
"icon": "📝",
|
|
"description": "Markdown notes surface with folders, tags, and backlinks.",
|
|
"author": "switchboard",
|
|
|
|
"permissions": ["db.write"],
|
|
|
|
"api_routes": [
|
|
{"method": "GET", "path": "/notes"},
|
|
{"method": "POST", "path": "/notes"},
|
|
{"method": "GET", "path": "/notes/*"},
|
|
{"method": "PUT", "path": "/notes/*"},
|
|
{"method": "DELETE", "path": "/notes/*"},
|
|
{"method": "GET", "path": "/search"},
|
|
{"method": "GET", "path": "/stats"},
|
|
{"method": "GET", "path": "/folders"},
|
|
{"method": "POST", "path": "/folders"},
|
|
{"method": "PUT", "path": "/folders/*"},
|
|
{"method": "DELETE", "path": "/folders/*"},
|
|
{"method": "POST", "path": "/notes/move"},
|
|
{"method": "GET", "path": "/tags"},
|
|
{"method": "GET", "path": "/tags/*"},
|
|
{"method": "PUT", "path": "/tags/*"}
|
|
],
|
|
|
|
"db_tables": {
|
|
"notes": {
|
|
"columns": {
|
|
"title": "text",
|
|
"body": "text",
|
|
"folder_id": "text",
|
|
"creator_id": "text",
|
|
"updated_at": "text",
|
|
"pinned": "int",
|
|
"archived": "int"
|
|
},
|
|
"indexes": [
|
|
["folder_id"],
|
|
["creator_id"],
|
|
["pinned"],
|
|
["updated_at"]
|
|
]
|
|
},
|
|
"tags": {
|
|
"columns": {
|
|
"note_id": "text",
|
|
"tag": "text"
|
|
},
|
|
"indexes": [
|
|
["note_id"],
|
|
["tag"]
|
|
]
|
|
},
|
|
"folders": {
|
|
"columns": {
|
|
"name": "text",
|
|
"parent_id": "text",
|
|
"creator_id": "text",
|
|
"sort_order": "int"
|
|
},
|
|
"indexes": [
|
|
["parent_id"],
|
|
["creator_id"]
|
|
]
|
|
}
|
|
},
|
|
|
|
"settings": {
|
|
"default_view": {
|
|
"type": "string",
|
|
"label": "Default View",
|
|
"description": "Default note list view: recent or pinned",
|
|
"default": "recent"
|
|
}
|
|
}
|
|
}
|