Skip to content

Latest commit

 

History

History
15 lines (9 loc) · 802 Bytes

DEVELOPMENT.md

File metadata and controls

15 lines (9 loc) · 802 Bytes

Development Notes

Swagger - OpenAPI documentation

In order to generate Swagger documentation, I've to run swag init -g server/api/server.go -o docs/api and then go build and re-run the server.

Currently swag doesn't support OpenAPI v3 so authentication with JWT tokens is not directly supported. As explained in https://stackoverflow.com/questions/32910065/how-can-i-represent-authorization-bearer-token-in-a-swagger-spec-swagger-j we may login putting Bearer before our token and then we can try our endpoints.

Related: swaggo/swag#709

Vulnerability checks

govulncheck ./...