Manages reusable templates for creating notes and pages.
POST /api/v1/templates.php (Create)
- Description: Creates a new template.
- Request:
application/json1 2 3 4 5 6{ "_method": "POST", "type": "note", "name": "daily-review", "content": "## Daily Review\n\n### What went well?\n\n- \n\n### What could be improved?\n\n- " } - Response (201 Created):
1 2 3 4 5 6{ "status": "success", "data": { "message": "Template created successfully" } }
GET /api/v1/templates.php?type=note
- Description: Retrieves all available templates of a given type.
- Response (200 OK):
1 2 3 4 5 6 7 8 9{ "status": "success", "data": [ { "name": "daily-review", "content": "## Daily Review\n\n### What went well?\n\n- \n\n### What could be improved?\n\n- " } ] }