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

As a consumer of the Ninja API, I want to select subsets of "geometry" fields, to have a consistent drilldown into API JSON responses #139

Open
Piiit opened this issue Mar 31, 2020 · 2 comments
Assignees

Comments

@Piiit
Copy link
Contributor

Piiit commented Mar 31, 2020

Related to https://issues.opendatahub.bz.it/Ticket/Display.html?id=453

curl -X GET \
  "https://mobility.api.opendatahub.bz.it/v2/api/flat/ParkingStation?select=scoordinate.srid" \
  -H "accept: application/json"

gives

{
  "code":400,
  "message":"ERROR: operator does not exist: geometry #> unknown
    Hint: No operator matches the given name and argument types. You might need to add explicit type casts.
    Position: 35",
  "error":"Bad Request",
  "timestamp":"2020-03-30T09:21:43.270+0000"
}

Although, this is not JSON the consumer of the API might think that it is, so to be consistent from his point of view, we must support geometry drilldowns

@stefanodavid
Copy link

@Piiit for a more complete description, this applies also to scoordinate.x and scoordinate.y (you know that, but others might not).

@Piiit
Copy link
Contributor Author

Piiit commented Mar 31, 2020

@stefanodavid Yes, what I mean with "geometry" is the scoordinate and pcoordinate field. That is something that is not supported yet...

@Piiit Piiit removed the enhancement label Sep 17, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants