handler

package
v0.0.0-...-7ccf317 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 27, 2023 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HealthCheck

func HealthCheck(c *fiber.Ctx) error

func LoginHandler

func LoginHandler(c *fiber.Ctx) error

LoginHandler godoc

@Summary		Login
@Description	Login via email and password
@Tags			auth
@Accept			json
@Produce		json
@Param			body	body		models.LoginRequest	true	"Login"
@Success		200		{object}	models.LoginResponse
@Failure		400		{object}	models.GenericResponse
@Router			/auth/v1/auth/login [post]

func RefreshTokenHandler

func RefreshTokenHandler(c *fiber.Ctx) error

RefreshTokenHandler godoc

@Summary		Refresh Token
@Description	Refresh Token
@Tags			auth
@Param			body	body	models.RefreshTokenRequest	true	"RefreshToken"
@Accept			json
@Produce		json
@Success		200	{object}	models.LoginResponse
@Failure		401	{object}	models.GenericResponse
@Security		Bearer

@Router			/auth/v1/refresh-token [post]

func RegisterHandler

func RegisterHandler(c *fiber.Ctx) error

RegisterHandler godoc

@Summary		Register
@Description	Register via email and password
@Tags			auth
@Accept			json
@Produce		json
@Param			body	body		models.RegisterRequest	true	"Register"
@Success		200		{object}	models.GenericResponse
@Failure		400		{object}	models.GenericResponse
@Router			/auth/v1/register [post]

func SettingsHandler

func SettingsHandler(c *fiber.Ctx) error

func VerifyHandler

func VerifyHandler(c *fiber.Ctx) error

VerifyHandler godoc

@Summary		Verify
@Description	Verify some type of token
@Tags			auth
@Accept			json
@Produce		json
@Param			body	body		models.VerifyRequest	true	"Verify"
@Success		200		{object}	models.GenericResponse
@Failure		400		{object}	models.GenericResponse
@Router			/auth/v1/verify [post]

func VerifyTokenHandler

func VerifyTokenHandler(c *fiber.Ctx) error

VerifyTokenHandler godoc

@Summary		Verify Token
@Description	Verify Token
@Tags			auth
@Accept			json
@Produce		json
@Success		200	{object}	models.GenericResponse
@Failure		401	{object}	models.GenericResponse
@Security		Bearer

@Router			/auth/v1/verify-token [get]

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL