diff options
| author | nsfisis <nsfisis@gmail.com> | 2025-12-31 01:04:44 +0900 |
|---|---|---|
| committer | nsfisis <nsfisis@gmail.com> | 2025-12-31 01:04:44 +0900 |
| commit | 9165e1d82c49f247d0d2aa763395a199d9b3f8e4 (patch) | |
| tree | fa40320377196f7de19aa8e135197bd219cda21f /docs | |
| parent | c77da463a60061877cd7ddea1bd7b723b3bf2455 (diff) | |
| download | kioku-9165e1d82c49f247d0d2aa763395a199d9b3f8e4.tar.gz kioku-9165e1d82c49f247d0d2aa763395a199d9b3f8e4.tar.zst kioku-9165e1d82c49f247d0d2aa763395a199d9b3f8e4.zip | |
feat(api): add NoteType and NoteFieldType API routes
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 <noreply@anthropic.com>
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/dev/roadmap.md | 4 |
1 files changed, 2 insertions, 2 deletions
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 |
