Skip to content

Commit

Permalink
Update content type
Browse files Browse the repository at this point in the history
  • Loading branch information
pblottiere committed Apr 16, 2020
1 parent 42749ad commit 2439571
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/server/qgsserverogcapi.cpp
Expand Up @@ -32,7 +32,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" ) };
return map;
}();

Expand Down
4 changes: 2 additions & 2 deletions src/server/services/wfs3/qgswfs3handlers.cpp
Expand Up @@ -167,7 +167,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" }
Expand Down Expand Up @@ -298,7 +298,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 definition" },
Expand Down

0 comments on commit 2439571

Please sign in to comment.