Commit Graph

4 Commits (055b246857ba92437edb4406ec7aac14d8057be8)

Author SHA1 Message Date
Steven 6ffc09d86a chore: remove unused httpmeta getter api 1 year ago
Steven 9d1c9fc505 chore: regenerate swagger docs 1 year ago
Steven 33d9c13b7e chore: remove openid field from user 1 year ago
Lincoln Nogueira 4491c75135
feat: add SwaggerUI and v1 API docs (#2115)
* - Refactor several API routes from anonymous functions to regular definitions. Required to add parseable documentation comments.

- Add API documentation comments using Swag Declarative Comments Format

- Add echo-swagger to serve Swagger-UI at /api/index.html

- Fix error response from extraneous parameter resourceId to relatedMemoId in DELETE("/memo/:memoId/relation/:relatedMemoId/type/:relationType")

- Add an auto-generated ./docs/api/v1.md for quick reference on repo (generated by swagger-markdown)

- Add auxiliary scripts to generate docs.go and swagger.yaml

* fix: golangci-lint errors

* fix: go fmt flag in swag scripts
2 years ago