@@ -77,7 +77,7 @@ def api_frontpage_body(settings):
77
77
weaver_links = [
78
78
{"href" : weaver_url , "rel" : "self" , "type" : CONTENT_TYPE_APP_JSON , "title" : "This document" },
79
79
{"href" : weaver_conform_url , "rel" : "conformance" , "type" : CONTENT_TYPE_APP_JSON ,
80
- "title" : "WPS conformance classes implemented by this service." },
80
+ "title" : "Conformance classes implemented by this service." },
81
81
]
82
82
if weaver_api :
83
83
weaver_links .extend ([
@@ -130,6 +130,10 @@ def api_frontpage_body(settings):
130
130
doc_type = CONTENT_TYPE_TEXT_PLAIN # default most basic type
131
131
weaver_links .append ({"href" : weaver_api_doc , "rel" : "documentation" , "type" : doc_type ,
132
132
"title" : "API reference documentation about this service." })
133
+ else :
134
+ weaver_links .append ({"href" : __meta__ .__documentation_url__ , "rel" : "documentation" ,
135
+ "type" : CONTENT_TYPE_TEXT_HTML ,
136
+ "title" : "API reference documentation about this service." })
133
137
if weaver_wps :
134
138
weaver_links .extend ([
135
139
{"href" : weaver_wps_url ,
@@ -177,7 +181,16 @@ def api_versions(request): # noqa: F811
177
181
def api_conformance (request ): # noqa: F811
178
182
# type: (Request) -> HTTPException
179
183
"""Weaver specification conformance information."""
180
- # TODO: follow updates with https://github.com/geopython/pygeoapi/issues/198
184
+ # see references:
185
+ # - https://github.com/opengeospatial/ogcapi-common/tree/Working/collections/requirements
186
+ # - https://github.com/opengeospatial/ogcapi-common/tree/Working/collections/recommendations
187
+ # - https://github.com/opengeospatial/ogcapi-processes/tree/master/core/requirements
188
+ # - https://github.com/opengeospatial/ogcapi-processes/tree/master/core/recommendations
189
+ # - https://github.com/opengeospatial/ogcapi-processes/tree/master/extensions/transactions/standard/requirements
190
+ # - https://github.com/opengeospatial/ogcapi-processes/tree/master/extensions/transactions/standard/recommendations
191
+ # - https://github.com/opengeospatial/ogcapi-processes/tree/master/extensions/workflows/standard/requirements
192
+ # - https://github.com/opengeospatial/ogcapi-processes/tree/master/extensions/workflows/standard/recommendations
193
+
181
194
conformance = {"conformsTo" : [
182
195
# "http://www.opengis.net/spec/wfs-1/3.0/req/core",
183
196
# "http://www.opengis.net/spec/wfs-1/3.0/req/oas30",
@@ -205,6 +218,9 @@ def api_conformance(request): # noqa: F811
205
218
# "http://www.opengis.net/spec/ogcapi-processes-1/1.0/conf/callback",
206
219
# FIXME: https://github.com/crim-ca/weaver/issues/228
207
220
# "http://www.opengis.net/spec/ogcapi-processes-1/1.0/conf/dismiss",
221
+ # FIXME: https://github.com/crim-ca/weaver/issues/231
222
+ # List all supported requirements, recommendations and abstract tests
223
+ "http://www.opengis.net/spec/ogcapi-processes-1/1.0/req/core/process" ,
208
224
209
225
]}
210
226
return HTTPOk (json = conformance )
0 commit comments