From 07e760bff827dae0d905a9f3af6368a8b5982a98 Mon Sep 17 00:00:00 2001 From: Tomas Cohen Arazi Date: Fri, 21 May 2021 09:55:25 -0300 Subject: [PATCH] Bug 28414: Fix labels for return claims The way labels are used with RedDoc, we need to tidy them better. We should do it with all the routes, but this one is specially noisy on the UI. Signed-off-by: Tomas Cohen Arazi Signed-off-by: Martin Renvoize Signed-off-by: Jonathan Druart --- api/v1/swagger/paths/return_claims.json | 31 +++++++------------------ 1 file changed, 8 insertions(+), 23 deletions(-) diff --git a/api/v1/swagger/paths/return_claims.json b/api/v1/swagger/paths/return_claims.json index 6e48eae30d..b2459c189f 100644 --- a/api/v1/swagger/paths/return_claims.json +++ b/api/v1/swagger/paths/return_claims.json @@ -3,11 +3,9 @@ "post": { "x-mojo-to": "ReturnClaims#claim_returned", "operationId": "claimReturned", + "summary": "Add a return claim", "tags": [ - "claims", - "returned", - "return", - "claim" + "Return claims" ], "parameters": [ { @@ -103,12 +101,9 @@ "put": { "x-mojo-to": "ReturnClaims#update_notes", "operationId": "updateClaimNotes", + "summary": "Update notes", "tags": [ - "claims", - "returned", - "return", - "claim", - "notes" + "Return claims" ], "parameters": [ { @@ -197,13 +192,8 @@ "delete": { "x-mojo-to": "ReturnClaims#delete_claim", "operationId": "deletedClaim", - "tags": [ - "claims", - "returned", - "return", - "claim", - "delete" - ], + "summary": "Delete claim", + "tags": [ "Return claims" ], "parameters": [ { "name": "claim_id", @@ -271,13 +261,8 @@ "put": { "x-mojo-to": "ReturnClaims#resolve_claim", "operationId": "updateClaimResolve", - "tags": [ - "claims", - "returned", - "return", - "claim", - "notes" - ], + "summary": "Resolve claim", + "tags": [ "Return claims" ], "parameters": [ { "name": "claim_id", -- 2.39.2