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

Popular posts from this blog

java.util.scanner - How to read and add only numbers to array from a text file -

rewrite - Trouble with Wordpress multiple custom querystrings -