mirror of
https://github.com/qgis/QGIS.git
synced 2025-03-01 00:46:20 -05:00
Renamed API definition -> description
This commit is contained in:
parent
fc9ba85efa
commit
61fdbf7429
@ -297,14 +297,14 @@ void QgsWfs3LandingPageHandler::handleRequest( const QgsServerApiContext &contex
|
||||
{ "href", href( context, "/conformance" )},
|
||||
{ "rel", QgsServerOgcApi::relToString( QgsServerOgcApi::Rel::conformance ) },
|
||||
{ "type", QgsServerOgcApi::mimeType( QgsServerOgcApi::ContentType::JSON ) },
|
||||
{ "title", "WFS 3.0 conformance classes" },
|
||||
{ "title", "Conformance classes" },
|
||||
} );
|
||||
data["links"].push_back(
|
||||
{
|
||||
{ "href", href( context, "/api" )},
|
||||
{ "rel", QgsServerOgcApi::relToString( QgsServerOgcApi::Rel::service_desc ) },
|
||||
{ "type", QgsServerOgcApi::mimeType( QgsServerOgcApi::ContentType::OPENAPI3 ) },
|
||||
{ "title", "API definition" },
|
||||
{ "title", "API description" },
|
||||
} );
|
||||
write( data, context, {{ "pageTitle", linkTitle() }, { "navigation", json::array() }} );
|
||||
}
|
||||
|
@ -76,9 +76,9 @@ class QgsWfs3APIHandler: public QgsWfs3AbstractItemsHandler
|
||||
void handleRequest( const QgsServerApiContext &context ) const override;
|
||||
QRegularExpression path() const override { return QRegularExpression( R"re(/api)re" ); }
|
||||
std::string operationId() const override { return "getApiDescription"; }
|
||||
std::string summary() const override { return "The API definition"; }
|
||||
std::string summary() const override { return "The API description"; }
|
||||
std::string description() const override { return "The formal documentation of this API according to the OpenAPI specification, version 3.0. I.e., this document."; }
|
||||
std::string linkTitle() const override { return "API definition"; }
|
||||
std::string linkTitle() const override { return "API description"; }
|
||||
QStringList tags() const override { return { QStringLiteral( "Capabilities" ) }; }
|
||||
QgsServerOgcApi::Rel linkType() const override { return QgsServerOgcApi::Rel::service_desc; }
|
||||
json schema( const QgsServerApiContext &context ) const override;
|
||||
|
@ -592,7 +592,7 @@ Content-Type: application/openapi+json;version=3.0
|
||||
"description": "An error occurred."
|
||||
}
|
||||
},
|
||||
"summary": "The API definition",
|
||||
"summary": "The API description",
|
||||
"tags": [
|
||||
"Capabilities"
|
||||
]
|
||||
|
@ -26,9 +26,9 @@
|
||||
|
||||
<link rel="data" href="http://server.qgis.org/wfs3/collections" title="Feature collections" type="application/json">
|
||||
|
||||
<link rel="conformance" href="http://server.qgis.org/wfs3/conformance" title="WFS 3.0 conformance classes" type="application/json">
|
||||
<link rel="conformance" href="http://server.qgis.org/wfs3/conformance" title="Conformance classes" type="application/json">
|
||||
|
||||
<link rel="service-desc" href="http://server.qgis.org/wfs3/api" title="API definition" type="application/openapi+json;version=3.0">
|
||||
<link rel="service-desc" href="http://server.qgis.org/wfs3/api" title="API description" type="application/openapi+json;version=3.0">
|
||||
|
||||
|
||||
|
||||
@ -77,13 +77,13 @@
|
||||
|
||||
|
||||
|
||||
<li><a rel="conformance" href="http://server.qgis.org/wfs3/conformance">WFS 3.0 conformance classes</a></li>
|
||||
<li><a rel="conformance" href="http://server.qgis.org/wfs3/conformance">Conformance classes</a></li>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<li><a rel="service-desc" href="http://server.qgis.org/wfs3/api">API definition</a></li>
|
||||
<li><a rel="service-desc" href="http://server.qgis.org/wfs3/api">API description</a></li>
|
||||
|
||||
|
||||
|
||||
|
@ -23,13 +23,13 @@ Content-Type: application/json
|
||||
{
|
||||
"href": "http://server.qgis.org/wfs3/conformance",
|
||||
"rel": "conformance",
|
||||
"title": "WFS 3.0 conformance classes",
|
||||
"title": "Conformance classes",
|
||||
"type": "application/json"
|
||||
},
|
||||
{
|
||||
"href": "http://server.qgis.org/wfs3/api",
|
||||
"rel": "service-desc",
|
||||
"title": "API definition",
|
||||
"title": "API description",
|
||||
"type": "application/openapi+json;version=3.0"
|
||||
}
|
||||
],
|
||||
|
Loading…
x
Reference in New Issue
Block a user