Update swagger tags and response code
[policy/parent.git] / docs / pap / swagger / policy-status-pap.json
index b7e4ae6..db60220 100644 (file)
@@ -7,7 +7,7 @@
   "basePath": "/",
   "tags": [
     {
-      "name": "Pdp Policy Status"
+      "name": "Policy Status"
     }
   ],
   "schemes": [
@@ -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"
           }
           "last-mod-release": "Honolulu"
         }
       }
-    },
+    }
   },
   "securityDefinitions": {
     "basicAuth": {