Support modifying a transaction category #32

Merged
satprog merged 1 commits from feature/26-add-category into main 2025-03-19 21:36:31 +00:00

1 Commits

Author SHA1 Message Date
50e8269120
Support modifying a transaction category
All checks were successful
Go / build (1.22) (pull_request) Successful in 11s
Go / build (1.21) (pull_request) Successful in 11s
Go / build (1.22) (push) Successful in 1m32s
Go / build (1.21) (push) Successful in 1m35s
through the PUT /transactions/{transactionId} method.
The category is also returned on a /transaction(s) call.

Restrict the PUT to changing only the category. The other existing
attributes should remain immutable.
Remove the body of the PUT response, it isn't required, and it was
returning a 204, which shouldn't have it.

This patch also extracts the CategoryName as a separate component on the
OpenAPI spec, so that it can be reused on the Transaction.

Issues #26 and #23
2024-09-13 19:39:24 +01:00