Skip to content
Permalink
Browse files

Fix service-desc type and json link in landing page

  • Loading branch information
pblottiere committed Mar 24, 2020
1 parent 53a6b62 commit f1f711ded5540f988f69a8917c47682ee403e7d9
Showing with 3 additions and 3 deletions.
  1. +1 −1 src/server/qgsserverogcapi.cpp
  2. +2 −2 src/server/services/wfs3/qgswfs3handlers.cpp
@@ -33,7 +33,7 @@ QMap<QgsServerOgcApi::ContentType, QStringList> QgsServerOgcApi::sContentTypeMim
QStringLiteral( "application/geojson" )
};
map[QgsServerOgcApi::ContentType::HTML] = QStringList { QStringLiteral( "text/html" ) };
map[QgsServerOgcApi::ContentType::OPENAPI3] = QStringList { QStringLiteral( "application/openapi+json;version=3.0" ) };
map[QgsServerOgcApi::ContentType::OPENAPI3] = QStringList { QStringLiteral( "application/vnd.oai.openapi+json;version=3.0" ) };
map[QgsServerOgcApi::ContentType::XML] = QStringList { QStringLiteral( "application/xml" ) };
return map;
}();
@@ -169,7 +169,7 @@ json QgsWfs3APIHandler::schema( const QgsServerApiContext &context ) const
{
"content", {
{
"application/openapi+json;version=3.0", {
"application/vnd.oai.openapi+json;version=3.0", {
{
"schema", {
{ "type", "object" }
@@ -301,7 +301,7 @@ void QgsWfs3LandingPageHandler::handleRequest( const QgsServerApiContext &contex
} );
data["links"].push_back(
{
{ "href", href( context, "/api" )},
{ "href", href( context, "/api.json" )},
{ "rel", QgsServerOgcApi::relToString( QgsServerOgcApi::Rel::service_desc ) },
{ "type", QgsServerOgcApi::mimeType( QgsServerOgcApi::ContentType::OPENAPI3 ) },
{ "title", "API description" },

0 comments on commit f1f711d

Please sign in to comment.
You can’t perform that action at this time.