bcgov / parks-data-register

Apache License 2.0
6 stars 4 forks source link

[M] Sites Implementations - API - Site Object GET #406

Open danieltruong opened 6 months ago

danieltruong commented 6 months ago

Implementation ticket for ticket #332

Blocks ticket #395

AC:

manuji commented 6 months ago

Tested on Test: Passed

Few things I noticed when testing are below;

eg: There is no site with the id=4 in Orc=6648, I was expecting a 404 instead of a 200 OK

Image

manuji commented 6 months ago

During the stand-up today, @mark and @cameronpettit confirmed that we are not focusing on features related to "Pending" status and that can be ignored. FYI @JLWade @Dianadec

cameronpettit commented 6 months ago

@manuji the 200 OK response just means the API didn't run into any errors when looking for your query. It 'found' the route you asked for, it just happens that route returns an empty list. I'm not sure about the use of 404 NOT FOUND in cases like this, I think it needs to be part of a larger discussion for API queries.

We should, however look at implementing a front end 404 page, though it is unrelated to this ticket.

manuji commented 6 months ago

Thanks @cameronpettit for the reply.

JLWade commented 5 months ago

moving to done