v2.0.0: doc: add swagger from code
Signed-off-by: GnomeZworc <nicolas.boufidjeline@g3e.fr>
This commit is contained in:
parent
da4f296b5e
commit
ee4e2e3e31
8 changed files with 502 additions and 3 deletions
|
|
@ -7,6 +7,14 @@ import (
|
|||
logins "gitlab.g3e.fr/h6n/users/internal"
|
||||
)
|
||||
|
||||
// Login
|
||||
// @Tags auth
|
||||
// @Description Cette route permet d'obtenir un token user
|
||||
// @Accept json
|
||||
// @Product json
|
||||
// @Router / [post]
|
||||
// @Param request body logins.RequestLogin true "request body"
|
||||
// @Success 200 {object} logins.ResponseLogin
|
||||
func login(c echo.Context) error {
|
||||
var request logins.RequestLogin
|
||||
if err := c.Bind(&request); err != nil {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue