Return category on /transactions #33

Closed
satprog wants to merge 2 commits from feature/26-get-transaction-category into main

2 Commits

Author SHA1 Message Date
467afae68f
Return category on /transactions
All checks were successful
Go / build (1.21) (pull_request) Successful in 12s
Go / build (1.22) (pull_request) Successful in 11s
Issue #26
2024-09-13 19:21:39 +01:00
9e58641001
Support modifying a transaction category
Some checks failed
Go / build (1.21) (pull_request) Failing after 11s
Go / build (1.22) (pull_request) Failing after 9s
through the PUT /transactions/{transactionId} method.

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:21:19 +01:00