Closed tangobravo62 closed 4 years ago
Corrected:
localhost:testdata thomas$ curl --location --request GET 'http://localhost:8089/proseo/prip/odata/v1/Products' --header 'Authorization: Basic VERNXHByb3Nlbzpwcm9zZW8=' -v
[...]
< HTTP/1.1 200
< OData-Version: 4.0
< Content-Type: application/json; odata.metadata=minimal
< Content-Length: 50
[...]
{
"@odata.context":"$metadata#Products",
"value":[]
}
According to the PRIP API specification if a search is unsuccessful, the REST call shall return with an empty list and HTTP status 200. Currently an empty body and HTTP status 404 is returned (in line with prosEO standards).