controllers

package
v0.0.0-...-5d71aee Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2024 License: MIT Imports: 4 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateUser

func CreateUser(c *gin.Context)

CreateUser godoc @Summary Create a new user @Description Create a new user with the input payload @Tags users @Accept json @Produce json @Param user body models.UserRegistration true "Create user" @Success 201 {object} models.User @Failure 400 {object} ErrorResponse @Router /users [post]

Types

type ErrorResponse

type ErrorResponse struct {
	Error string `json:"error"`
}

ErrorResponse represents the structure of an error response

Jump to

Keyboard shortcuts

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