api

package
v0.5.2 Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2020 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Package srv provides primitives to interact the openapi HTTP API.

Code generated by github.com/deepmap/oapi-codegen DO NOT EDIT.

Package srv provides primitives to interact the openapi HTTP API.

Code generated by github.com/deepmap/oapi-codegen DO NOT EDIT.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterHandlers

func RegisterHandlers(router interface {
	CONNECT(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route
	DELETE(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route
	GET(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route
	HEAD(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route
	OPTIONS(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route
	PATCH(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route
	POST(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route
	PUT(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route
	TRACE(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route
}, si ServerInterface)

RegisterHandlers adds each server route to the EchoRouter.

Types

type App

type App struct {
	Concept ConceptMeta `json:"concept"`
	Meta    AppMeta     `json:"meta"`
	Values  *[]struct {
		Id    *string `json:"id,omitempty"`
		Value *string `json:"value,omitempty"`
	} `json:"values,omitempty"`
}

App defines model for App.

type AppMeta

type AppMeta struct {
	Group *string `json:"group,omitempty"`
	Name  string  `json:"name"`
}

AppMeta defines model for AppMeta.

type Concept

type Concept struct {
	Meta   ConceptMeta `json:"meta"`
	Values *struct {
		Mandatory *ValueList `json:"mandatory,omitempty"`
		Optional  *ValueList `json:"optional,omitempty"`
	} `json:"values,omitempty"`
}

Concept defines model for Concept.

type ConceptMeta

type ConceptMeta struct {
	Group *string `json:"group,omitempty"`
	Name  string  `json:"name"`
}

ConceptMeta defines model for ConceptMeta.

type DeleteAppsJSONRequestBody

type DeleteAppsJSONRequestBody deleteAppsJSONBody

DeleteAppsRequestBody defines body for DeleteApps for application/json ContentType.

type Serv

type Serv struct{}

func (Serv) DeleteApps

func (serv Serv) DeleteApps(ctx echo.Context) error

func (Serv) GetApps

func (serv Serv) GetApps(ctx echo.Context) error

func (Serv) GetConcepts

func (serv Serv) GetConcepts(ctx echo.Context) error

func (Serv) PostApps

func (serv Serv) PostApps(ctx echo.Context) error

type ServerInterface

type ServerInterface interface {
	// (DELETE /apps)
	DeleteApps(ctx echo.Context) error
	// (GET /apps)
	GetApps(ctx echo.Context) error
	// (POST /apps)
	PostApps(ctx echo.Context) error
	// Your GET endpoint// (GET /concepts)
	GetConcepts(ctx echo.Context) error
}

ServerInterface represents all server handlers.

type ServerInterfaceWrapper

type ServerInterfaceWrapper struct {
	Handler ServerInterface
}

ServerInterfaceWrapper converts echo contexts to parameters.

func (*ServerInterfaceWrapper) DeleteApps

func (w *ServerInterfaceWrapper) DeleteApps(ctx echo.Context) error

DeleteApps converts echo context to params.

func (*ServerInterfaceWrapper) GetApps

func (w *ServerInterfaceWrapper) GetApps(ctx echo.Context) error

GetApps converts echo context to params.

func (*ServerInterfaceWrapper) GetConcepts

func (w *ServerInterfaceWrapper) GetConcepts(ctx echo.Context) error

GetConcepts converts echo context to params.

func (*ServerInterfaceWrapper) PostApps

func (w *ServerInterfaceWrapper) PostApps(ctx echo.Context) error

PostApps converts echo context to params.

type Value

type Value struct {
	Id   string `json:"id"`
	Type string `json:"type"`
}

Value defines model for Value.

type ValueList

type ValueList []Value

ValueList defines model for ValueList.

Jump to

Keyboard shortcuts

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