Commit Graph

19 Commits

Author SHA1 Message Date
kiwiidb
b256a3fefe remove old api docs 2022-06-17 15:38:44 +02:00
kiwiidb
0818abdd2c change tags 2022-04-26 12:21:16 +02:00
kiwiidb
5137d966cc feature: start swagger docs 2022-04-26 12:14:50 +02:00
Stefan Kostic
7c28270c6a Add proper err response to create ctrl 2022-03-04 15:11:23 +01:00
kiwiidb
a44d9052e7 use the right struct to create user 2022-02-15 16:46:32 +01:00
Stefan Kostic
80a4d4f20c Add support for providing user name and password when creating user 2022-02-09 22:53:46 +01:00
Stefan Kostic
2748b7f2f3 Use request context in handlers 2022-02-08 13:36:50 +01:00
kiwiidb
1ae5df6b8c Feature: integration testing
Add integration tests with testify/suite. Moved some structs
outside of controller funcs so we can re-use them in the testing
package. Add CI workflow for running tests on every push.
2022-02-01 11:47:11 +01:00
kiwiidb
2915d4a094 fix 2 bugs in create user func 2022-01-19 16:59:10 +01:00
kiwiidb
8eef14fccc move service functions to service package 2022-01-19 16:10:55 +01:00
kiwiidb
cbf3cecb32 refactor create endpoint 2022-01-19 15:40:41 +01:00
kiwiidb
a83fbc6067 add constructor funcs for controllers 2022-01-19 14:35:46 +01:00
kiwiidb
790239cfa5 refactor create 2022-01-19 14:19:45 +01:00
kiwiidb
e22ab6ce49 rename context to service 2022-01-19 13:53:40 +01:00
Michael Bumann
ccc8ad8cd5 Comments 2022-01-19 11:46:10 +01:00
Michael Bumann
eb0e882941 Create user accounts on user create
Incoming: the account we debit on incoming transactions
Current: the account that we credit on incoming transactions and debit on outgoing transactions (this is the user's balance)
Outgoing: the acount we credit on outgoing transactions
Fees: the account we credit for fees
2022-01-19 10:59:40 +01:00
Viktor Patchev
919affa2db Update package name to new repo 2022-01-18 10:42:53 +01:00
Michael Bumann
95512462f6 Cleanup typos (#28)
* Typo

* Typoc
2022-01-16 14:13:45 +01:00
Roman Useinov
628071160c Cleanup (#25)
* remove cmd folder as we are going to have only one entrypoint

* get rid of pkg directory

* rename test -> integration_tests as unit tests should reside next to the actual files they are testing

* database migration WIP

* reinstate gorm boilerplate in the addinvoice for now to make it compile

* introduce migrations

* add Makefile

* don't use unsigned types for database mappings

* migrations work now

* add build target

* use echo groups

* gorm removed

* add envconfig

* fix comments
2022-01-16 00:49:19 +01:00