Greenstand / treetracker-query-api

To fetch Greenstand map data for client's like web map, wallet app, and so on.
GNU General Public License v3.0
14 stars 58 forks source link

/grower-accounts/$id returns 404 when ${id} is correct #374

Open RingoTC opened 6 months ago

RingoTC commented 6 months ago

When we try to access the /grower-accounts/ API we will get the 404.

For example, https://dev-k8s.treetracker.org/query/v2/captures/0c2d6e3a-d02a-4edf-bcdc-893e1f7a4817

image

curl -i https://dev-k8s.treetracker.org/query/grower-accounts/c82cc807-8e35-418b-88ce-fda398cf4e89

image
sam-rice commented 4 months ago

Unless I've misunderstood the problem, I think this is a documentation issue. This endpoint should work for your example:

curl -i https://dev-k8s.treetracker.org/query/v2/growers/c82cc807-8e35-418b-88ce-fda398cf4e89

It seems like there is a discrepancy between the yaml file/documentation and the current implementation in app.ts. Maybe @dadiorchen can confirm that this is expected and the documentation should be updated?