api

package
v0.0.0-...-4733ae6 Latest Latest
Warning

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

Go to latest
Published: Oct 4, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoginHandler

func LoginHandler(c *gin.Context)

@Summary User Login @Description Log in with the provided email and password. @Tags Users @Accept json @Produce json @Param user body api.LoginHandler.LoginData true "User login request" @Success 200 {string} string "Login successful" @Failure 400 {object} object "Bad Request" @Failure 401 {object} object "Unauthorized" @Router /users/v1/login [post]

func RegisterUser

func RegisterUser(c *gin.Context)

@Summary Register a new user @Description Register a new user with the provided information. @Tags Users @Accept json @Produce json @Param user body models.User true "User registration request" @Success 201 {string} string "User registered successfully" @Failure 400 {object} object "Bad Request" @Failure 409 {object} object "Conflict" @Router /users/v1/signup [post]

Types

This section is empty.

Jump to

Keyboard shortcuts

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