Skip to content

Commit

Permalink
Merge pull request #35222 from pblottiere/ogcapif_responses_object
Browse files Browse the repository at this point in the history
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 7660242
Show file tree
Hide file tree
Showing 2 changed files with 403 additions and 515 deletions.
20 changes: 18 additions & 2 deletions src/server/services/wfs3/qgswfs3handlers.cpp
Expand Up @@ -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" }
}
Expand Down Expand Up @@ -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() }
}
Expand All @@ -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() }
}
Expand All @@ -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" }
}
Expand Down

0 comments on commit 7660242

Please sign in to comment.