add support for non-advertised resources (#927)
This commit is contained in:
@@ -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
|
||||
----------------------------
|
||||
|
||||
|
||||
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user