From 9165e1d82c49f247d0d2aa763395a199d9b3f8e4 Mon Sep 17 00:00:00 2001 From: nsfisis Date: Wed, 31 Dec 2025 01:04:44 +0900 Subject: feat(api): add NoteType and NoteFieldType API routes MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Implement REST API endpoints for managing note types and their fields: - CRUD operations for note types (/api/note-types) - Field management nested under note types (add, update, delete, reorder) - Constraint checks to prevent deletion of note types with existing notes - Constraint checks to prevent deletion of fields with existing values 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 --- docs/dev/roadmap.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'docs/dev') diff --git a/docs/dev/roadmap.md b/docs/dev/roadmap.md index 730eca5..957f4c4 100644 --- a/docs/dev/roadmap.md +++ b/docs/dev/roadmap.md @@ -169,13 +169,13 @@ Create these as default note types for each user: ### Phase 3: Server API Routes **Tasks:** -- [ ] Add NoteType routes +- [x] Add NoteType routes - `GET /api/note-types` - List user's note types - `POST /api/note-types` - Create note type - `GET /api/note-types/:id` - Get note type with fields - `PUT /api/note-types/:id` - Update note type (name, front_template, back_template, is_reversible) - `DELETE /api/note-types/:id` - Soft delete -- [ ] Add NoteFieldType routes (nested under note-types) +- [x] Add NoteFieldType routes (nested under note-types) - `POST /api/note-types/:id/fields` - Add field - `PUT /api/note-types/:id/fields/:fieldId` - Update field - `DELETE /api/note-types/:id/fields/:fieldId` - Remove field -- cgit v1.2.3-70-g09d2