Closed MKaras93 closed 4 years ago
Currently when you query a made up system, for example foo: GET https://www.edsm.net/api-system-v1/traffic?systemName=foo the response body is just an empty dict {} with HTTP status 200 OK.
foo
https://www.edsm.net/api-system-v1/traffic?systemName=foo
{}
200 OK
Expected behavior: API should respond with HTTP status 404 NOT FOUND - https://httpstatuses.com/404
404 NOT FOUND
200 OK should only be returned if the requested data is present in the response.
As much as I agree with this, changing the current behavior with all software using them is just not possible :)
I thought that's what versioning is for ;) Any plans for api-system-v2 then?
Currently when you query a made up system, for example
foo
: GEThttps://www.edsm.net/api-system-v1/traffic?systemName=foo
the response body is just an empty dict{}
with HTTP status200 OK
.Expected behavior: API should respond with HTTP status
404 NOT FOUND
- https://httpstatuses.com/404200 OK should only be returned if the requested data is present in the response.