Hello Hans -
POST services will need to have data in the HTTP Body. So, any OFBiz
service (irrespective of engine), that is exposed as POST, you will need to
pass the JSON data in POST body. Here is the corresponding cURL for the
service in question -
curl -X POST
Hi Girish,
thanks for your last help, that worked fine.
I am struggling with simple method services.
i went to applications/party/servicedef/services.xml
and enabled the service ensureNaPartyRole with export="true" and
action="post"
then issued the command:
curl -G -X POST
That being said, I should make the query param mandatory such that it
returns 400 Bad Request "Missing Parameters" to let the client know of the
error.
I will make this improvement and commit soon.
Best,
Girish
On Mon, Sep 7, 2020 at 11:59 AM Girish Vasmatkar <
Hi Hans -
Here's that works (if you don't want to manually url encode) -
curl -G -X GET https://localhost:8443/rest/services/findProductById
--data-urlencode
'inParams={"idToFind":"GZ-1001"}' -H "Accept: application/json" -H
"Authorization: Bearer $token" --insecure
Note '-G' parameter to
OK, made some progress, have it now working from the flutter dart
environment however..
this curl works even from flutter dart,
curl -X GET
https://localhost:8443/rest/services/findProductByI?inParams=%7B%22idToFind%22:%22GZ-1001%22%7D
-H "Accept: application/json" -H "Authorization:
just a quick question , does it also work with minilang?
i get
{
"statusCode" : 500,
"statusDescription" : "Internal Server Error"
}:
Regards.
On 9/5/20 8:26 PM, Girish Vasmatkar wrote:
Hello Hans
Thanks for giving it (REST Impl) a try and providing valuable feedback. The
token's
Hello Hans
Thanks for giving it (REST Impl) a try and providing valuable feedback. The
token's signature part and the payload part (that includes claims) does
indeed change, while the header part is not expected to change.
The token is revoked after it is expired (default is 1800 seconds based on
Good day!
Good to see we finally have a REST interface in OFBiz, thank you
girishvasmatkar for this implementation!
I will try to use it for the Growerp.org open source project, a
flutter frontend for currently Moqui.org but also will try to use OFBiz,
yes with this REST interface.
My