php - passing 2 parameters in restler -
i'm trying pass object , string function , test in restler,
i'm getting error:
"error": { "code": 400, "message": "bad request: `user` required missing." },
in documentation wrote:
/** * * @param user $user user object * * @param string $lang language of name e.g. "en" or "ar". * * @url post /login/ */
and function:
public static function login(user $user,$lang) { .... }
i'm using pre-last version of restler.
in restler 3, required parameters sent via url, such /login/myuser, url has include parameter (sending request /login return error).
Comments
Post a Comment