createcocktail

package
v0.0.0-...-26e28c7 Latest Latest
Warning

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

Go to latest
Published: May 16, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Handle

func Handle(c echo.Context) error

Types

type IngredientWithAmountDto

type IngredientWithAmountDto struct {
	IngredientId uuid.UUID `json:"ingredient_id"`
	Amount       int       `json:"amount"`
	Unit         string    `json:"unit"`
}

func (IngredientWithAmountDto) Validate

func (i IngredientWithAmountDto) Validate() error

type Request

type Request struct {
	Name        string                    `json:"name"`
	Ingredients []IngredientWithAmountDto `json:"ingredients"`
}

func (Request) Validate

func (r Request) Validate() error

type Response

type Response struct {
	Cocktail cocktailDto `json:"cocktail"`
}

Jump to

Keyboard shortcuts

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