Skip to content

Build Note ViewSet with CRUD endpoints #18

@RossCabrera

Description

@RossCabrera

Overview

Create Django REST Framework ViewSet for Notes with create, read, update,
delete operations. Implement user isolation and filtering.

Requirements

  • Create apps/notes/serializers.py with NoteSerializer
  • Create apps/notes/views.py with NoteViewSet
  • Implement user isolation (users can only access own notes)
  • Add filtering, searching, and ordering
  • Handle soft deletes (optional)
  • Create proper error responses

Acceptance Criteria

  • Users see only own notes (AC-NOTE-02)
  • Notes have title, description, timestamps (AC-NOTE-01)
  • Category optional on note
  • Authenticated access required
  • 404 returned for non-existent notes
  • 403 returned for unauthorized access
  • Created/updated timestamps set automatically
  • Pagination works
  • Filtering by category works
  • Searching works
  • Ordering works
  • Input validation (title required, max lengths)
  • Soft delete (optional, for data recovery)

Related User Stories

  • US-NOTE-05: Create, edit, delete notes

Related Acceptance Criteria

  • AC-NOTE-01: Notes have required fields
  • AC-NOTE-02: User isolation

Related Issues

Metadata

Metadata

Assignees

Labels

TaskGeneral work that doesn’t directly add features or fix bugs (maintenance, updates, setup tasks).backendServer-side logic, database models, APIs, authentication, and business logic

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions