Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExtractParameters ¶
func ExtractParameters(ctx echo.Context, caseSensitive bool) apiInterface.Parameters
Types ¶
type Toolbox ¶
type Toolbox[T api.Entity, K databaseModel.Query] interface { Create(ctx echo.Context, entity T) error Update(ctx echo.Context, entity T) error Delete(ctx echo.Context) error Get(ctx echo.Context) error List(ctx echo.Context, q K) error }
Toolbox is an interface that defines the different methods that can be used in the different endpoint of the API. This is a way to align the code of the different endpoint.
Click to show internal directories.
Click to hide internal directories.