JaxRs Client
Closed this issue · 3 comments
nirodg commented
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 ?
nirodg commented
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
nirodg commented
- For each request if the status is not 200, exception thrown.
- DELETE will return empty object. Might me improved in the future.