Skip to content

Commit

Permalink
Merge pull request #105 from jovandeginste/add-swagger
Browse files Browse the repository at this point in the history
Add swagger docs to document the API
  • Loading branch information
jovandeginste authored Apr 14, 2024
2 parents efaace5 + a978914 commit fe45d85
Show file tree
Hide file tree
Showing 238 changed files with 49,032 additions and 14,295 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.*
5 changes: 5 additions & 0 deletions .swaggo
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
replace null.String string
replace null.Int64 integer
replace null.Bool boolean
replace sql.NullTime time
replace time.Duration integer
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 fe45d85

Please sign in to comment.