Documentation ¶
Index ¶
- func Body(req *http.Request) (map[string]interface{}, error)
- func DefaultResolver(typeName string, apiContext *types.APIContext) error
- func IsBrowser(req *http.Request, checkAccepts bool) bool
- func Parse(rw http.ResponseWriter, req *http.Request, schemas *types.Schemas, ...) (*types.APIContext, error)
- func QueryOptions(apiContext *types.APIContext, schema *types.Schema) types.QueryOptions
- func ReadBody(req *http.Request) (map[string]interface{}, error)
- func ValidateMethod(request *types.APIContext) error
- func Version(schemas *types.Schemas, path string) *types.APIVersion
- type DefaultSubContextAttributeProvider
- type ParsedURL
- type ResolverFunc
- type URLParser
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DefaultResolver ¶
func DefaultResolver(typeName string, apiContext *types.APIContext) error
func Parse ¶
func Parse(rw http.ResponseWriter, req *http.Request, schemas *types.Schemas, urlParser URLParser, resolverFunc ResolverFunc) (*types.APIContext, error)
func QueryOptions ¶
func QueryOptions(apiContext *types.APIContext, schema *types.Schema) types.QueryOptions
func ValidateMethod ¶
func ValidateMethod(request *types.APIContext) error
Types ¶
type DefaultSubContextAttributeProvider ¶
type DefaultSubContextAttributeProvider struct { }
func (*DefaultSubContextAttributeProvider) Create ¶
func (d *DefaultSubContextAttributeProvider) Create(apiContext *types.APIContext, schema *types.Schema) map[string]interface{}
func (*DefaultSubContextAttributeProvider) Query ¶
func (d *DefaultSubContextAttributeProvider) Query(apiContext *types.APIContext, schema *types.Schema) []*types.QueryCondition
type ParsedURL ¶
type ResolverFunc ¶
type ResolverFunc func(typeName string, context *types.APIContext) error
Source Files ¶
Click to show internal directories.
Click to hide internal directories.