Skip to content

Commit

Permalink
Add swagger docs to document the API
Browse files Browse the repository at this point in the history
Signed-off-by: Jo Vandeginste <Jo.Vandeginste@kuleuven.be>
  • Loading branch information
jovandeginste committed Apr 14, 2024
1 parent 4f5f81a commit 09043af
Show file tree
Hide file tree
Showing 238 changed files with 48,548 additions and 14,293 deletions.
1 change: 1 addition & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@
/assets/output.css
/vendor/
/pkg/
/docs/swagger.*
4 changes: 4 additions & 0 deletions .swaggo
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
replace null.String string
replace null.Int64 integer
replace null.Bool boolean
replace sql.NullTime time
8 changes: 7 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ clean:
dev:
air

build: build-dist build-tw build-server build-docker
build: build-swagger build-dist build-tw build-server build-docker

build-server:
go build \
Expand All @@ -38,6 +38,12 @@ build-docker:
--build-arg GIT_REF_TYPE="$(GIT_REF_TYPE)" \
.

build-swagger:
swag init \
--parseDependency \
--dir ./pkg/app/,./,./vendor/gorm.io/gorm/,./vendor/github.com/codingsince1985/geo-golang/ \
--generalInfo api_handlers.go

build-tw:
npx tailwindcss -i ./main.css -o ./assets/output.css

Expand Down
Loading

0 comments on commit 09043af

Please sign in to comment.