Update swagger tags and response code 97/118197/2
authorRam Krishna Verma <ram_krishna.verma@bell.ca>
Mon, 22 Feb 2021 19:44:33 +0000 (14:44 -0500)
committerAjith Sreekumar <ajith.sreekumar@bell.ca>
Tue, 23 Feb 2021 11:17:56 +0000 (11:17 +0000)
Issue-ID: POLICY-2526
Change-Id: I447a0f62b279b42fd10de15d886bcfa3fee07f2e
Signed-off-by: Ram Krishna Verma <ram_krishna.verma@bell.ca>
docs/pap/swagger/policy-status-pap.json

index de48fdd..db60220 100644 (file)
@@ -26,7 +26,7 @@
     "/policy/pap/v1/policies/status": {
       "get": {
         "tags": [
-          "Status of policies in all PdpGroups"
+          "Policy Status"
         ],
         "summary": "Queries status of policies in all PdpGroups",
         "description": "Queries status of policies in all PdpGroups, returning status of policies in all the PDPs belonging to all PdpGroups",
@@ -98,7 +98,7 @@
     "/policy/pap/v1/policies/status/{pdpGroupName}": {
       "get": {
         "tags": [
-          "Status of policies in a PdpGroup"
+          "Policy Status"
         ],
         "summary": "Queries status of policies in a specific PdpGroup",
         "description": "Queries status of policies in a specific PdpGroup, returning status of policies in all the PDPs belonging to the PdpGroup",
           "403": {
             "description": "Authorization Error"
           },
+          "404": {
+            "description": "Resource not found"
+          },
           "500": {
             "description": "Internal Server Error"
           }
     "/policy/pap/v1/policies/status/{pdpGroupName}/{policyName}": {
       "get": {
         "tags": [
-          "Status of all versions of a policy in a PdpGroup"
+          "Policy Status"
         ],
         "summary": "Queries status of all versions of a specific policy in a specific PdpGroup",
         "description": "Queries status of all versions of a specific policy in a specific PdpGroup, returning status of all versions of the policy in the PDPs belonging to the PdpGroup",
           "403": {
             "description": "Authorization Error"
           },
+          "404": {
+            "description": "Resource not found"
+          },
           "500": {
             "description": "Internal Server Error"
           }
     "/policy/pap/v1/policies/status/{pdpGroupName}/{policyName}/{policyVersion}": {
       "get": {
         "tags": [
-          "Status of a version of a policy in a PdpGroup"
+          "Policy Status"
         ],
         "summary": "Queries status of a specific version of a specific policy in a specific PdpGroup",
         "description": "Queries status of a specific version of a specific policy in a specific PdpGroup, returning status of the policy in the PDPs belonging to the PdpGroup",
           "403": {
             "description": "Authorization Error"
           },
+          "404": {
+            "description": "Resource not found"
+          },
           "500": {
             "description": "Internal Server Error"
           }