Ejemplo n.º 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
}
Ejemplo n.º 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
}