createorder

package
v1.6.1 Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package createorder serves the order routes of app api.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Handler

type Handler struct {
	// contains filtered or unexported fields
}

Handler serves the order routes.

func New

func New(svc *order.Service, stock stock.Service) *Handler

New provides the handler; the generated rest door gets it from here. @Provide(index=0)

func (*Handler) Create

func (h *Handler) Create(c echo.Context) error

Create stores the order in the body when its item is in stock. @REST(method=POST, path=/orders)

func (*Handler) Get

func (h *Handler) Get(c echo.Context) error

Get returns an order. @REST(method=GET, path=/orders/:id)

Jump to

Keyboard shortcuts

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