X-Git-Url: https://gerrit.onap.org/r/gitweb?a=blobdiff_plain;f=docs%2Fpap%2Fswagger%2Fgroups-batch-pap.json;fp=docs%2Fpap%2Fswagger%2Fgroup-pap.json;h=8a1899e39b6ca0525141456b2dbe5dae96983f29;hb=5eeeeddd1833e67ad9c285032abc3fb3bbde0b2d;hp=1298fffa9d6b8c3449a082ef1e1df4f3398eaf4c;hpb=21317cfb4a10da6f59376dabb59fc2dd7b60b897;p=policy%2Fparent.git diff --git a/docs/pap/swagger/group-pap.json b/docs/pap/swagger/groups-batch-pap.json similarity index 87% rename from docs/pap/swagger/group-pap.json rename to docs/pap/swagger/groups-batch-pap.json index 1298fffa..8a1899e3 100644 --- a/docs/pap/swagger/group-pap.json +++ b/docs/pap/swagger/groups-batch-pap.json @@ -2,19 +2,19 @@ "swagger" : "2.0", "basePath" : "/", "tags" : [ { - "name" : "PdpGroupDeploy" + "name" : "PdpGroupUpdate" } ], "schemes" : [ "http", "https" ], - "consumes" : [ "application/json" ], - "produces" : [ "application/json" ], + "consumes" : [ "application/json", "application/yaml" ], + "produces" : [ "application/json", "application/yaml" ], "paths" : { - "/policy/pap/v1/pdps" : { + "/policy/pap/v1/pdps/groups/batch" : { "post" : { - "tags" : [ "PdpGroupDeploy" ], - "summary" : "Deploy or update PDP Groups", - "description" : "Deploys or updates a PDP Group, returning optional error details", - "operationId" : "deployGroup", - "produces" : [ "application/json" ], + "tags" : [ "PdpGroupUpdate" ], + "summary" : "Create or update PDP Groups", + "description" : "Create or update one or more PDP Groups, returning optional error details", + "operationId" : "createOrUpdateGroups", + "produces" : [ "application/json", "application/yaml" ], "parameters" : [ { "name" : "X-ONAP-RequestID", "in" : "header", @@ -54,7 +54,7 @@ } }, "schema" : { - "$ref" : "#/definitions/PdpGroupDeployResponse" + "$ref" : "#/definitions/PdpGroupUpdateResponse" } }, "401" : { @@ -84,6 +84,14 @@ } }, "definitions" : { + "PdpGroupUpdateResponse" : { + "type" : "object", + "properties" : { + "errorDetails" : { + "type" : "string" + } + } + }, "Pdp" : { "type" : "object", "properties" : { @@ -202,25 +210,6 @@ "type" : "string" } } - }, - "PdpGroupDeployResponse" : { - "type" : "object", - "properties" : { - "errorDetails" : { - "type" : "string" - } - } - }, - "ToscaPolicyIdentifierOptVersion" : { - "type" : "object", - "properties" : { - "name" : { - "type" : "string" - }, - "version" : { - "type" : "string" - } - } } } -} +} \ No newline at end of file