Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckCSRF ¶
func CheckCSRF(apiContext *types.APIContext) error
func ValidateAction ¶
func ValidateAction(request *types.APIContext) (*types.Action, error)
Types ¶
type Defaults ¶
type Defaults struct { ActionHandler types.ActionHandler ListHandler types.RequestHandler LinkHandler types.RequestHandler CreateHandler types.RequestHandler DeleteHandler types.RequestHandler UpdateHandler types.RequestHandler Store types.Store ErrorHandler types.ErrorHandler }
type Parser ¶
type Parser func(rw http.ResponseWriter, req *http.Request) (*types.APIContext, error)
type ResponseWriter ¶
type ResponseWriter interface {
Write(apiContext *types.APIContext, code int, obj interface{})
}
type Server ¶
type Server struct { IgnoreBuiltin bool Parser Parser Resolver parse.ResolverFunc SubContextAttributeProvider types.SubContextAttributeProvider ResponseWriters map[string]ResponseWriter Schemas *types.Schemas QueryFilter types.QueryFilter StoreWrapper StoreWrapper URLParser parse.URLParser Defaults Defaults AccessControl types.AccessControl // contains filtered or unexported fields }
func NewAPIServer ¶
func NewAPIServer() *Server
Click to show internal directories.
Click to hide internal directories.