Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
RingoTC opened this issue Mar 4, 2024 · 1 comment
Open

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

RingoTC opened this issue Mar 4, 2024 · 1 comment

Comments

@RingoTC
Copy link
Collaborator

RingoTC commented Mar 4, 2024

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
@RingoTC RingoTC changed the title /grower-accounts/$id returns incorrect HTTP status code, 404 /grower-accounts/$id returns 404 when ${id} is correct Mar 4, 2024
@sam-rice
Copy link
Contributor

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants