apiv1

package
v0.0.0-...-ca83fcd Latest Latest
Warning

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

Go to latest
Published: Jun 20, 2022 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Validate *validator.Validate = validator.New()

Validate validator

Functions

func EvalRoutes

func EvalRoutes() *chi.Mux

EvalRoutes getting all routes for the config endpoint

func PostEval

func PostEval(response http.ResponseWriter, request *http.Request)

PostEval Evaluates the given context from payload against the specified CEL expression @Summary Post Evaluation @Description Evaluates the given context from payload against the specified CEL expression @Tags evaluation @Accept json @Produce json @Security apikey @Param payload body model.CelModel true "Context and expression" @Success 201 {object} model.CelResult "Evaluation result" @Failure 400 {object} serror.Serr "client error information as json" @Failure 500 {object} serror.Serr "server error information as json" @Router /evaluate [post]

func PostEvalMany

func PostEvalMany(response http.ResponseWriter, request *http.Request)

PostEvalMany Evaluates a list of context/expression from payload @Summary Post Evaluation Many @Description Evaluates a list of given context from payload against the CEL expression @Tags evaluation @Accept json @Produce json @Security apikey @Param payload body []model.CelModel true "Context and expression" @Success 201 {object} []model.CelResult "Evaluation result" @Failure 400 {object} serror.Serr "client error information as json" @Failure 500 {object} serror.Serr "server error information as json" @Router /evaluatemany [post]

Types

This section is empty.

Jump to

Keyboard shortcuts

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