Skip to content

Commit 00abc6b

Browse files
chore: merge dev
2 parents 25befaf + 8e70627 commit 00abc6b

55 files changed

Lines changed: 6442 additions & 717 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

apps/api/Makefile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,8 @@ migrate-down:
99
generate:
1010
@sqlc generate
1111

12+
openapi-generate:
13+
swag init --dir cmd/api,internal/api/handlers --parseDependency -v3.1
14+
15+
openapi-format:
16+
swag f --dir cmd/api,internal/api/handlers

apps/api/cmd/api/main.go

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,17 @@ import (
1717
"github.com/swamphacks/core/apps/api/internal/storage"
1818
)
1919

20+
// @title SwampHacks Test API
21+
// @version 1.0
22+
// @description This is SwampHacks' OpenAPI documentation.
23+
// @termsOfService TODO
24+
25+
// @contact.name API Support
26+
// @contact.url http://www.swagger.io/support
27+
// @contact.email support@swagger.io
28+
29+
// @license.name Apache 2.0
30+
// @license.url http://www.apache.org/licenses/LICENSE-2.0.html
2031
func main() {
2132
logger := logger.New()
2233
cfg := config.Load()

0 commit comments

Comments
 (0)