apis

package
v0.0.0-...-47332bf Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2019 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetUser

func GetUser(c *gin.Context)

GetUser godoc @Summary Retrieves all user @Produce json @Success 200 {object} []models.User @Router /users [get] @Security ApiKeyAuth

func GetUserOne

func GetUserOne(c *gin.Context)

GetUserOne godoc @Summary Retrieves user based on given ID @Produce json @Param id path integer true "User ID" @Success 200 {object} models.User @Router /users/{id} [get] @Security ApiKeyAuth

func HealthGET

func HealthGET(c *gin.Context)

HealthGET returns health of application

func InitRoutes

func InitRoutes(httpEngine *gin.Engine)

InitRoutes initiates all endpoints

func PostUser

func PostUser(c *gin.Context)

PostUser godoc @Summary Create user based request @Produce json @Success 200 @Router /users [POST] @Security ApiKeyAuth

Types

This section is empty.

Jump to

Keyboard shortcuts

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