OpenCDMS API
The API within OpenCDMS is built using pygeoapi and exposes the following APIs.
This section describes the OGC-API processes that have been developed and implemented as part of OpenCDMS. The
Features and Records are defined under the database section.
Cookie cutter
To help generate new OGC-API Process plugins a Python package template has been created for use with the Python
cookiecutter module. The module can be installed using the command:
`pip3 install cookiecutter`.
Once installed the cookiecutter can be used with:
cookiecutter gh:opencdms/pygeoapi-process-cookiecutter
The following prompt will be displayed:
author [Name of author]:
email [Author email address]:
maintainer [Name of maintainer]:
maintainer_email [Maintainer email address]:
package_url [Package homepage]:
package_name [Name of python package to create, e.g. import {package_name}]:
process_id [ID for process, e.g. /processes/{process_id}]:
process_class_name [Name of process class, {package_name}.{process_name}]:
process_description [Short description of process]:
keywords []:
license [APL2]:
Following entry of the requested information this will create a python package for an empty pygeoapi process plugin.
The plugin can be installed via the normal route for a Python package, e.g. using pip3 install <package_name> for
packages published via PyPI or python3 setup.py install.