9.1.1.1.1.2.1.6. GeoHealthCheck.plugins.probe.ogcfeat

9.1.1.1.1.2.1.6.1. Module Contents

9.1.1.1.1.2.1.6.1.1. Classes

OGCFeatCaps

Probe for OGC API - Features endpoint url

OGCFeatDrilldown

Probe for OGC API Features (OAFeat) endpoint "drilldown" or

OGCFeatOpenAPIValidator

Probe for OGC API Features (OAFeat) OpenAPI Document Validation.

9.1.1.1.1.2.1.6.1.2. Functions

type_for_link(links, rel)

set_accept_header(oa_feat, content_type)

class GeoHealthCheck.plugins.probe.ogcfeat.OGCFeatCaps

Bases: GeoHealthCheck.probe.Probe

Probe for OGC API - Features endpoint url

NAME = 'OGC API Features (OAFeat) Capabilities'
DESCRIPTION = 'Validate OGC API Features (OAFeat) endpoint landing page'
RESOURCE_TYPE = 'OGCFeat'
REQUEST_METHOD = 'GET'
REQUEST_HEADERS
REQUEST_TEMPLATE = ''
CHECKS_AVAIL

Validate OGC API Features (OAFeat) endpoint landing page

GeoHealthCheck.plugins.probe.ogcfeat.set_accept_header(oa_feat, content_type)
class GeoHealthCheck.plugins.probe.ogcfeat.OGCFeatDrilldown

Bases: GeoHealthCheck.probe.Probe

Probe for OGC API Features (OAFeat) endpoint “drilldown” or “crawl”: starting with top endpoint: get Collections and fetch Features on them etc. Uses the OWSLib owslib.ogcapi package.

NAME = 'OGC API Features (OAFeat) Drilldown'
DESCRIPTION = 'Traverses an OGC API Features (OAFeat) API endpoint by drilling down'
RESOURCE_TYPE = 'OGCFeat'
REQUEST_METHOD = 'GET'
REQUEST_HEADERS
PARAM_DEFS

Param defs

perform_request()

Perform the drilldown. See https://github.com/geopython/OWSLib/blob/ master/tests/doctests/wfs3_GeoServerCapabilities.txt

class GeoHealthCheck.plugins.probe.ogcfeat.OGCFeatOpenAPIValidator

Bases: GeoHealthCheck.probe.Probe

Probe for OGC API Features (OAFeat) OpenAPI Document Validation. Uses https://pypi.org/project/openapi-spec-validator/.

NAME = 'OGC API Features (OAFeat) OpenAPI Validator'
DESCRIPTION = 'Validates OGC API Features (OAFeat) api endpoint for OpenAPI compliance'
RESOURCE_TYPE = 'OGCFeat'
REQUEST_HEADERS
REQUEST_METHOD = 'GET'

Param defs

perform_request()

Perform the validation. Uses https://github.com/p1c2u/openapi-spec-validator on the specfile (dict) returned from the OpenAPI endpoint.