Extend PATCH /category/:id to also move (parentId) alongside rename.

PATCH now accepts name (rename, re-slugify) and/or parentId (move under a
new parent, cycle/self guarded), merging both results. Renames the PATCH
docs file to category/update.md and regenerates API docs.
This commit is contained in:
seb
2026-08-03 03:05:45 +02:00
parent faefa3b9cf
commit c8f6936aa6
5 changed files with 82 additions and 34 deletions

View File

@@ -53,7 +53,7 @@ Generated from `@openapi` annotations in [`src/api/routes/`](../../src/api/route
| [`routes/category/order.md`](routes/category/order.md) | `PUT /category/order` |
| [`routes/category/tree.md`](routes/category/tree.md) | `GET /category/tree` |
| [`routes/category/delete.md`](routes/category/delete.md) | `DELETE /category/{id}` |
| [`routes/category/rename.md`](routes/category/rename.md) | `PATCH /category/{id}` |
| [`routes/category/update.md`](routes/category/update.md) | `PATCH /category/{id}` |
| [`routes/category/articles.md`](routes/category/articles.md) | `GET /category/{id}/articles` |
| [`routes/category/move.md`](routes/category/move.md) | `POST /category/{id}/move` |
| [`routes/company/list.md`](routes/company/list.md) | `GET /company` |