Implements GET /categories #28

Merged
satprog merged 1 commits from feature/27-get-categories into main 2025-03-19 21:36:09 +00:00
Owner

Adds type to OpenAPI. Feature done and tested E2E.
Adds common utilities package named "golang" to overcome language
deficiencies.

Issue #27

Adds type to OpenAPI. Feature done and tested E2E. Adds common utilities package named "golang" to overcome language deficiencies. Issue #27
satprog added 4 commits 2024-06-23 19:51:33 +00:00
It adds the method to the OpenAPI spec and generates a new server
config. The requirement for the ID on the Transaction component is
removed, so that it can be reused for insertions.
It also adds two new middlewares, a logging and a spec validator. If a
request does not follow the spec, a 400 is returned immediately.

Issue: #18
Adds PUT method to OpenAPI spec.

Given that the transaction IDs are generated on server-side, for the PUT
method to remain idempotent, it can only update existing transactions.

It also adds a TransactionExists method on the DAL.

Issue: #20
The accepted practice is to retain the collection name even for a single
resource operation, like getting a specific transaction.

Also moves the PUT /transactions to /transactions/{id} which makes it
clearer that it can only be applied to an already created transaction.
Adds type to OpenAPI. Feature done and tested E2E.
Adds common utilities package named "golang" to overcome language
deficiencies.

Issue #27
satprog requested review from nunorosa 2024-06-23 19:51:51 +00:00
satprog force-pushed feature/27-get-categories from da572704d0 to 9ac249199b 2024-06-23 21:01:55 +00:00 Compare
satprog force-pushed feature/27-get-categories from 9ac249199b to 1467250db4 2024-09-13 18:19:45 +00:00 Compare
satprog added a new dependency 2024-09-13 18:23:24 +00:00
satprog merged commit 1467250db4 into main 2025-03-19 21:36:09 +00:00
satprog deleted branch feature/27-get-categories 2025-03-19 21:36:09 +00:00
Sign in to join this conversation.
No Reviewers
2 Participants
Notifications
Due Date
No due date set.
Blocks
Reference: personal-finance/datastore#28
No description provided.