geopython / geopython/pywps

Add support for JSON request format instead of XML

Open
#202 1 comment 1 reaction 0 assignees View on GitHub
enhancement
Dominant language
Python
Stars
186
Forks
117
Avg merge
11d 20h
Merged PRs (30d)
1

Description

# Description

Like @tomkralidis is writing:

```
Another option is to extend PyWPS to support an 'outputformat'
parameter like 'application/json' which would simply transform the XML
response into JSON. Or to be closer to the WPS spec allow one to
define/send process input which allows takes over the entire response
into JSON.

Having said this, we do this for pycsw as very simple step just before
the response is sent. Examples:

Example response:
https://github.com/geopython/pycsw/blob/master/tests/expected/suites_default_post_GetRecordById-json.xml
Code: https://github.com/geopython/pycsw/blob/master/pycsw/core/formats/fmt_json.py#L35
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.