Files
pygeoapi/docker/examples
Benjamin Webb 205ff3002c Add Gzip to response types (#795)
* Add gzip to API.py

* pytest for gzip

* fix pytest

* Update test_api.py

* Add gzip to server block of configuration files

* Update api.py to include gzip opts from config

Update logic behind gzip compression  such that compression will only happen when gzip in the Accept-Encoding request header and config.server.gzip is True. Use server charset for encoding/decoding and include charset in Content-Type when compressed.

* Update pytest to use gzip config options

Update pytest to test with (gzip in Accept-Encoding & server.gzip = False), (gzip in Accept-Encoding & server.gzip = True), (gzip not in Accept-Encoding & server.gzip = True)

* Better Content Negotiation (#7)

* Change content negotiation in _get_format()

* Add to pytest and force h to always be string

* Force F_JSON to default response

* Update test_api.py for utf-16 encoding

* better content negotiation pytest.

* Add comments to pytest

* Fix flake 8

* Improve docstring for gzip decorator function
2021-10-27 20:17:02 -04:00
..
2021-10-27 20:17:02 -04:00
2021-10-27 20:17:02 -04:00

Running pygeoapi with Docker - Examples

This folder contains the sub-folders:

  • simple
  • elastic
  • sensorthings
  • mongo

The simple example will run pygeoapi with Docker with your local config. The elastic example demonstrates a docker compose configuration to run pygeoapi with local ElasticSearch backend. The mongo example demonstrates a docker compose configuration to run pygeoapi with local MongoDB backend. The sensorthings example demonstrates various pygeoapi implementations of SensorThings API endpoints.