From 6f96b34d7f5ed7e45f5eee673d9304686d2200bf Mon Sep 17 00:00:00 2001 From: Ram Krishna Verma Date: Mon, 22 Feb 2021 14:44:33 -0500 Subject: [PATCH] Update swagger tags and response code Issue-ID: POLICY-2526 Change-Id: I447a0f62b279b42fd10de15d886bcfa3fee07f2e Signed-off-by: Ram Krishna Verma --- docs/pap/swagger/policy-status-pap.json | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/docs/pap/swagger/policy-status-pap.json b/docs/pap/swagger/policy-status-pap.json index de48fdd8..db60220c 100644 --- a/docs/pap/swagger/policy-status-pap.json +++ b/docs/pap/swagger/policy-status-pap.json @@ -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", @@ -159,6 +159,9 @@ "403": { "description": "Authorization Error" }, + "404": { + "description": "Resource not found" + }, "500": { "description": "Internal Server Error" } @@ -177,7 +180,7 @@ "/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", @@ -245,6 +248,9 @@ "403": { "description": "Authorization Error" }, + "404": { + "description": "Resource not found" + }, "500": { "description": "Internal Server Error" } @@ -263,7 +269,7 @@ "/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", @@ -338,6 +344,9 @@ "403": { "description": "Authorization Error" }, + "404": { + "description": "Resource not found" + }, "500": { "description": "Internal Server Error" } -- 2.16.6