controllers

package
v0.0.0-...-0549c05 Latest Latest
Warning

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

Go to latest
Published: Aug 8, 2022 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	UP   = "UP"
	DOWN = "DOWN"
)

Variables

This section is empty.

Functions

func GetHealth

func GetHealth(c *fiber.Ctx) error

GetHealth func check health. @Description Health check. @Summary health check @Produce json @Success 200 {array} models.Health @Router /health [get]

func PostOrder

func PostOrder(c *fiber.Ctx) error

PostOrder func for post a new order. @Description Create a new order. @Summary create a new order @Tags Order @Accept json @Produce json @Param order body models.Order true "Order" @Success 201 {object} models.Order @Router /v1/order [post]

Types

This section is empty.

Jump to

Keyboard shortcuts

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