Skip to content

Feat/update category#411

Open
tentse wants to merge 3 commits intodevfrom
feat/update-category
Open

Feat/update category#411
tentse wants to merge 3 commits intodevfrom
feat/update-category

Conversation

@tentse
Copy link
Copy Markdown
Member

@tentse tentse commented Feb 23, 2026

No description provided.

- Introduced CategoryPatch model to support partial updates for categories, allowing updates to title, description, and parent_id.
- Implemented the /v2/categories/{category_id} PATCH endpoint in categories.py to handle category updates.
- Added validation to ensure at least one field is provided for updates.
- Updated CategoryDatabase to include logic for updating categories in the database.
- Enhanced OpenAPI documentation to reflect the new PATCH endpoint and its parameters.
- Added comprehensive tests for the PATCH endpoint to cover various update scenarios and validation cases.
@tentse tentse requested a review from gdetari February 23, 2026 09:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant