add support for non-advertised resources (#927)

This commit is contained in:
Tom Kralidis
2022-07-07 06:32:43 -04:00
committed by GitHub
parent 045c458bf6
commit 2d85eb2ac6
7 changed files with 254 additions and 1 deletions
+25
View File
@@ -202,6 +202,31 @@ default.
:ref:`plugins` for more information on plugins
Publishing non-advertised resources
-----------------------------------
pygeoapi allows for publishing resources without advertising them explicitly
via its collections and OpenAPI endpoints. The resource is available if the
client knows the name of the resource apriori.
To provide non-advertised resources, the resource name must start with ``_``. For
example, considering the following resource:
.. code-block:: yaml
resources:
_foo:
title: my non-advertised resource
Examples:
.. code-block:: bash
curl https://example.org/collections # resource _foo is not advertised
curl https://example.org/openapi # resource _foo is not advertised
curl https://example.org/collections/_foo # user can access resource normally
Validating the configuration
----------------------------
+4
View File
@@ -25,3 +25,7 @@ return back data to the pygeoapi API framework in a plug and play fashion.
ogcapi-records
ogcapi-edr
stac
.. seealso::
:ref:`configuration` for more information on publishing any resource as non-advertised.