pygeoapi is a Python server implementation of the OGC API suite of standards. The project emerged as part of the next generation OGC API efforts in 2018 and provides the capability for organizations to deploy a RESTful OGC API endpoint using OpenAPI, GeoJSON, and HTML. pygeoapi is open source and released under an MIT license.
Description
Issuing a synchronous execution request, specifying the response to be 'document', returns
a (JSON) string that is different from what is returned when retrieving the 'job-results'
Steps to Reproduce
After having set the process manager to be TinyDB in PYGEOAPI_CONFIG
issue the following call (note the --verbose flag to get the 'Location'):
curl --verbose localhost:5000/processes/hello-world/execution -H 'Content-Type: application/json' -d '{"response": "document", "inputs": {"message": "Message", "name": "My Name"}}'
which returns:
Description Issuing a synchronous execution request, specifying the response to be 'document', returns a (JSON) string that is different from what is returned when retrieving the 'job-results'
Steps to Reproduce After having set the process manager to be TinyDB in PYGEOAPI_CONFIG issue the following call (note the --verbose flag to get the 'Location'):
curl --verbose localhost:5000/processes/hello-world/execution -H 'Content-Type: application/json' -d '{"response": "document", "inputs": {"message": "Message", "name": "My Name"}}'
which returns:Then issue the following call:
curl http://localhost:5000/jobs/5f98b4aa-dbc3-11ee-9007-cdecccd8e112/results?f=json
which returns:Expected behavior Either the first call should return
or the second call should return
Additional context
If response is not present, or response: "raw", then the result is always