1
0
Fork 0
Commit graph

26 commits

Author SHA1 Message Date
db6ff45c99
fix(api): Training allOf has only two items 2024-05-05 11:27:59 +02:00
d55276886b
feat(training): add Description field 2024-05-05 09:52:04 +02:00
bda8bb9e85
refactor(training): Training.Days is int8 instead of int32 2024-05-05 09:44:56 +02:00
5b204c6a75
ci: use $CI_COMMIT_REF_SLUG instead of $CI_COMMIT_BRANCH for docker image tag 2024-05-04 18:13:52 +02:00
58b017a59f
feat: implement rest server with Fiber and OpenAPI spec, bump deps, use training.InMemoryTrainingRepository 2024-05-04 17:51:11 +02:00
263bed126e
chore(deps): bump deps with oapi-codegen stuff 2024-05-04 17:49:22 +02:00
14f3209c5e
feat: add generated api server stubs and oapi-codegen config 2024-05-04 17:46:18 +02:00
36bf2d3dc9
feat(api): add servers section with local server for testing 2024-05-04 17:40:45 +02:00
2003b31f14
fix(training): check if training exists before delete 2024-05-04 17:40:03 +02:00
2f6c24652e
refactor(training): Update should just get the struct 2024-05-04 17:39:38 +02:00
04e5710b00
refactor(training): make TrainingID a type alias of uuid.UUID, not new type 2024-05-04 17:20:29 +02:00
92f2460b6b
feat(api): add TrainingID schema 2024-05-04 17:19:30 +02:00
adb793034a
feat(training): add InMemoryRepository for mocking 2024-05-04 15:16:41 +02:00
2ca890c66a
feat(api): add description to Trainings tag 2024-05-04 15:02:58 +02:00
6df8747065
feat(training): add helper methods to TrainingID type
- String()
- MarshalJSON()
- UnmarshalJSON()
2024-05-04 15:01:19 +02:00
67b12fc7af
feat(api): add validation for training.days
- minimum 1
- maximum 5
2024-05-04 15:00:48 +02:00
8ce9378a53
refactor(api): add /v1 prefix to all paths 2024-05-04 15:00:01 +02:00
24e99a3b08
refactor: extract server from main.go to it's own package 2024-05-04 12:22:42 +02:00
1413fde9f0
feat(api): add x-go-type and x-go-type-import to openapi spec 2024-05-04 11:46:45 +02:00
627be4d2f4
feat: add training type/model 2024-05-04 11:44:45 +02:00
3ee3be9e7f
feat: setup Fiber HTTP server
- graceful shutdown
- logging with zap
2024-05-04 10:01:48 +02:00
ecdf67f371
feat: add openapi spec 2024-05-03 21:58:20 +02:00
2acfb39ca5
ci: add .gitlab-ci.yml 2024-05-03 21:16:27 +02:00
ab513af9b9
chore(build): add Dockerfile 2024-05-03 21:14:18 +02:00
790c5d1f13
feat: init go app 2024-05-03 21:12:27 +02:00
53341cdc61
feat: initial commit 2024-05-03 21:07:09 +02:00