Re: A little bit of Lombok

2020-09-07 Thread Daniel Watford
Hello all, Based on this thread it doesn't seem that we have a strong consensus either for or against use of Lombok at this time. Votes: Dan W (me!): +1 Jacques: +1 Shi: -1 Sentiment in other messages seems positive but cautious. Some pros and cons have been presented. I need some direction

Re: getting started with ofbiz-rest-impl

2020-09-07 Thread Girish Vasmatkar
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

Re: getting started with ofbiz-rest-impl

2020-09-07 Thread Hans Bakker
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

Re: getting started with ofbiz-rest-impl

2020-09-07 Thread Girish Vasmatkar
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 <

Re: getting started with ofbiz-rest-impl

2020-09-07 Thread 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