Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AllApiRoutes ¶
AllApiRoutes returns a map containing all default routes and batch operation routes.
func BatchOperations ¶
BatchOperations returns a map of batch operation routes (BatchDelete, BatchPut, BatchPatch, BatchPost, BatchGet).
func DefaultApiRoutes ¶
DefaultApiRoutes returns a map of default CRUD routes (Get, GetList, Post, Put, Patch, Delete, Head, Options) with empty configurations.
Types ¶
type Route ¶
type Route struct {
RouteType RouteType
Configuration map[configuration.ConfigurationType]configuration.Configuration
}
Route is a struct that represents a route it use a type RouteType to define the type of route (Get, Post, Put, etc) and a map of configuration.Configuration to store the configurations of the route
func NewRoute ¶
func NewRoute(routeType RouteType, configurations ...configuration.Configuration) Route
NewRoute creates a new Route with the specified route type and optional configurations.
Click to show internal directories.
Click to hide internal directories.