nirodg/easyrs

JaxRs Client

Closed this issue · 3 comments

A jaxrs client is needed in order to do

  • GET It should return single and multiple results

  • PUT It should return single result

  • POST It should return the update result

  • DELETE Shall this return boolean or better check the 200 header response ?

Methods getAll(), getById(), update() and delete() already working. Currently DELETE's operation return the entity passed throw the endpoint.

When calling put() exception is thrown: No 'Access-Control-Allow-Origin' header is present on the requested resource.
Must analyse the issue, review implementation and add fix

  • For each request if the status is not 200, exception thrown.
  • DELETE will return empty object. Might me improved in the future.

With commit 208348e the client was refactored. Once the issue #7 is fixed I will either pass the endpoint url throw the system properties or directly as an argument for the processor