Example #1
0
func (p *LoginAccountRequestHandler) ContentTypesAccepted(req wm.Request, cxt wm.Context) ([]wm.MediaTypeInputHandler, wm.Request, wm.Context, int, error) {
	arr := []wm.MediaTypeInputHandler{
		apiutil.NewJSONMediaTypeInputHandler("", "", p, req.Body()),
		apiutil.NewUrlEncodedMediaTypeInputHandler("", "", p),
	}
	return arr, req, cxt, 0, nil
}
Example #2
0
func (p *UpdateContactRequestHandler) ContentTypesAccepted(req wm.Request, cxt wm.Context) ([]wm.MediaTypeInputHandler, wm.Request, wm.Context, int, error) {
	arr := []wm.MediaTypeInputHandler{apiutil.NewJSONMediaTypeInputHandler("", "", p, req.Body())}
	return arr, req, cxt, 0, nil
}