-
Notifications
You must be signed in to change notification settings - Fork 9
Accept application/json as data input #160
Copy link
Copy link
Open
Labels
brainstormingIdea for a potential new feature or adaption that still needs further discussionIdea for a potential new feature or adaption that still needs further discussioncomments welcomeIndicates that the creator of this issue/PR is open for early review commentsIndicates that the creator of this issue/PR is open for early review commentsenhancementNew feature or requestNew feature or request
Milestone
Metadata
Metadata
Assignees
Labels
brainstormingIdea for a potential new feature or adaption that still needs further discussionIdea for a potential new feature or adaption that still needs further discussioncomments welcomeIndicates that the creator of this issue/PR is open for early review commentsIndicates that the creator of this issue/PR is open for early review commentsenhancementNew feature or requestNew feature or request
JSON is a widely used format that can be processed in many applications. Accepting JSON as input would increase the usability of the API.
For example https://github.com/GIScience/ohsome-py is logging the data body input it sends to the API in JSON format if the query fails. If the API accepted JSON the logged files could be directly used to reproduce the failed query using curl:
Currently manual interaction is necessary to rewrite the query as follows:
temp_body.json.txt
temp_bpolys.geojson.txt