Skip to content
Permalink
Browse files

Merge pull request #35222 from pblottiere/ogcapif_responses_object

Responses are object instead of array in the {root}/api json document
  • Loading branch information
pblottiere committed Mar 23, 2020
2 parents 598c2da + b427567 commit 76602426e4c3725937544466ed12d8ed8bedd748
Showing with 403 additions and 515 deletions.
  1. +18 −2 src/server/services/wfs3/qgswfs3handlers.cpp
  2. +385 −513 tests/testdata/qgis_server/api/test_wfs3_api_project.json
@@ -1031,9 +1031,13 @@ json QgsWfs3CollectionsItemsHandler::schema( const QgsServerApiContext &context
"201", {
{ "description", "A new feature was successfully added to the collection" }
},
},
{
"403", {
{ "description", "Forbidden: the operation requested was not authorized" }
},
},
{
"500", {
{ "description", "Posted data could not be parsed correctly or another error occurred" }
}
@@ -1963,12 +1967,16 @@ json QgsWfs3CollectionsFeatureHandler::schema( const QgsServerApiContext &contex
"200", {
{ "description", "The feature was successfully updated" }
},
},
{
"403", {
{ "description", "Forbidden: the operation requested was not authorized" }
},
},
{
"500", {
{ "description", "Posted data could not be parsed correctly or another error occurred" }
}
},
},
{ "default", defaultResponse() }
}
@@ -1987,12 +1995,16 @@ json QgsWfs3CollectionsFeatureHandler::schema( const QgsServerApiContext &contex
"200", {
{ "description", "The feature was successfully updated" }
},
},
{
"403", {
{ "description", "Forbidden: the operation requested was not authorized" }
},
},
{
"500", {
{ "description", "Posted data could not be parsed correctly or another error occurred" }
}
},
},
{ "default", defaultResponse() }
}
@@ -2011,9 +2023,13 @@ json QgsWfs3CollectionsFeatureHandler::schema( const QgsServerApiContext &contex
"201", {
{ "description", "The feature was successfully deleted from the collection" }
},
},
{
"403", {
{ "description", "Forbidden: the operation requested was not authorized" }
},
},
{
"500", {
{ "description", "Posted data could not be parsed correctly or another error occurred" }
}

0 comments on commit 7660242

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