swagger: add all endpoints

This commit is contained in:
kiwiidb
2022-04-26 13:48:05 +02:00
parent 0818abdd2c
commit 2793303ad3
14 changed files with 2451 additions and 21 deletions

View File

@@ -29,7 +29,17 @@ type AuthResponseBody struct {
AccessToken string `json:"access_token"`
}
// Auth : Auth Controller
// Auth godoc
// @Summary Authenticate
// @Description Exchanges a login + password for a token
// @Accept json
// @Produce json
// @Tags Account
// @Param AuthRequestBody body AuthRequestBody false "Login and password"
// @Success 200 {object} AuthResponseBody
// @Failure 400 {object} responses.ErrorResponse
// @Failure 500 {object} responses.ErrorResponse
// @Router /auth [post]
func (controller *AuthController) Auth(c echo.Context) error {
var body AuthRequestBody