From 05e3b605748c5c9bab2da046652652bcbed5b2f3 Mon Sep 17 00:00:00 2001 From: MueezKhan246 Date: Mon, 30 Sep 2024 12:23:32 +0500 Subject: [PATCH 1/3] feat: added 423 status in api yaml file --- api.yaml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/api.yaml b/api.yaml index 10cc98a0..2127d01c 100644 --- a/api.yaml +++ b/api.yaml @@ -224,6 +224,8 @@ endpoints: description: Forbidden "404": description: Not Found + "423": + description: Locked "429": description: Too Many Requests "500": @@ -240,6 +242,8 @@ endpoints: statusCode: "403" "404": statusCode: "404" + "423": + statusCode: "423" "429": statusCode: "429" "500": From 0ab5fdc0a585b8ab8907b212c584247581a3a3b3 Mon Sep 17 00:00:00 2001 From: MueezKhan246 Date: Mon, 30 Sep 2024 17:54:28 +0500 Subject: [PATCH 2/3] feat: added 423 status for assign endpoint in api-compact for proper generation of api.yaml --- api-compact.yaml | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/api-compact.yaml b/api-compact.yaml index df0eaa6c..0e87b16f 100644 --- a/api-compact.yaml +++ b/api-compact.yaml @@ -237,9 +237,15 @@ endpoints: notify_users: description: "Send license assignment email or not." type: "boolean" - responses: *responses + responses: + <<: *responses + 423: + description: "Locked" x-amazon-apigateway-integration: - responses: *apigateway_responses + responses: + <<: *apigateway_responses + 423: + statusCode: "423" httpMethod: "POST" type: "http" requestParameters: From ae79fc7b7a6a4f45689c4a886e95a3c0a2a8022d Mon Sep 17 00:00:00 2001 From: MueezKhan246 Date: Mon, 30 Sep 2024 20:01:56 +0500 Subject: [PATCH 3/3] feat: defined 423 at apigateway_responses and response level --- api-compact.yaml | 14 ++++++-------- api.yaml | 8 ++++++++ 2 files changed, 14 insertions(+), 8 deletions(-) diff --git a/api-compact.yaml b/api-compact.yaml index 0e87b16f..fe125309 100644 --- a/api-compact.yaml +++ b/api-compact.yaml @@ -24,6 +24,8 @@ apigateway_responses: &apigateway_responses statusCode: "403" 404: statusCode: "404" + 423: + statusCode: "423" 429: statusCode: "429" 500: @@ -112,6 +114,8 @@ responses: &responses description: "Forbidden" 404: description: "Not Found" + 423: + description: "Locked" 429: description: "Too Many Requests" 500: @@ -237,15 +241,9 @@ endpoints: notify_users: description: "Send license assignment email or not." type: "boolean" - responses: - <<: *responses - 423: - description: "Locked" + responses: *responses x-amazon-apigateway-integration: - responses: - <<: *apigateway_responses - 423: - statusCode: "423" + responses: *apigateway_responses httpMethod: "POST" type: "http" requestParameters: diff --git a/api.yaml b/api.yaml index 2127d01c..f9f65b59 100644 --- a/api.yaml +++ b/api.yaml @@ -13,6 +13,8 @@ apigateway_responses: statusCode: "403" "404": statusCode: "404" + "423": + statusCode: "423" "429": statusCode: "429" "500": @@ -92,6 +94,8 @@ responses: description: Forbidden "404": description: Not Found + "423": + description: Locked "429": description: Too Many Requests "500": @@ -384,6 +388,8 @@ endpoints: description: Forbidden "404": description: Not Found + "423": + description: Locked "429": description: Too Many Requests "500": @@ -400,6 +406,8 @@ endpoints: statusCode: "403" "404": statusCode: "404" + "423": + statusCode: "423" "429": statusCode: "429" "500":