dlr-eoc / prosEO

prosEO – A Processing System for Earth Observation Data
GNU General Public License v3.0
14 stars 1 forks source link

PRIP API returns 404 Not Found instead of empty list #76

Closed tangobravo62 closed 4 years ago

tangobravo62 commented 4 years ago

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).

tangobravo62 commented 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":[]
}