[codenameone-discussions] Re: The new REST api and the use of Param and Body

2019-08-17 Thread Shai Almog
Hi, queryParam adds an argument to the request. When it's a get request it's added to the URL e.g. url?token=val When it's a port request these parameters are placed in the body of the post (that's HTTP's form post standard). This is obviously problematic for this case. Some developers use

[codenameone-discussions] The new REST api and the use of Param and Body

2019-08-17 Thread rdvg1962
Hi, I am trying to create a record in a Mysql BD. In the client I use the new API Rest but it sends me the following error when I include a Param method with Body: *"[EDT] 0: 0: 0.2 - Exception: java.lang.IllegalStateException - Request body and arguments are mutually exclusive, you can't use