diff --git a/docs/source/plugins.rst b/docs/source/plugins.rst index ad65b4e..b4cc845 100644 --- a/docs/source/plugins.rst +++ b/docs/source/plugins.rst @@ -218,7 +218,7 @@ The below template provides a minimal example (let's call the file ``mycooljsonf """Inherit from parent class""" super().__init__({'name': 'cooljson', 'geom': None}) - self.mimetype = 'text/json; subtype:mycooljson' + self.mimetype = 'application/json; subtype:mycooljson' def write(self, options={}, data=None): """custom writer""" diff --git a/pygeoapi/api.py b/pygeoapi/api.py index 079664c..2f2f20c 100644 --- a/pygeoapi/api.py +++ b/pygeoapi/api.py @@ -1081,7 +1081,7 @@ class API: for qt in p.get_query_types(): collection['links'].append({ - 'type': 'text/json', + 'type': 'application/json', 'rel': 'data', 'title': '{} query for this collection as JSON'.format(qt), # noqa 'href': '{}/{}/{}?f={}'.format(