From 40e3bf05527f5705eaf7f53fbb5e58ccf38d1ded Mon Sep 17 00:00:00 2001 From: Ludovic Robert <30499179+bigludo7@users.noreply.github.com> Date: Tue, 13 Jun 2023 17:29:38 +0200 Subject: [PATCH] Update checkSimSwap.camara.swagger.yaml Added UTC Precision (https://github.com/camaraproject/SimSwap/issues/43) + Error Message (https://github.com/camaraproject/SimSwap/issues/44#issuecomment-1588908336) --- .../CAMARA/checkSimSwap.camara.swagger.yaml | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/code/API_definitions/CAMARA/checkSimSwap.camara.swagger.yaml b/code/API_definitions/CAMARA/checkSimSwap.camara.swagger.yaml index 843a62c..00f64e7 100644 --- a/code/API_definitions/CAMARA/checkSimSwap.camara.swagger.yaml +++ b/code/API_definitions/CAMARA/checkSimSwap.camara.swagger.yaml @@ -63,6 +63,8 @@ paths: $ref: "#/components/responses/Generic401" "403": $ref: "#/components/responses/Generic403" + "404": + $ref: "#/components/responses/Generic404" "409": $ref: "#/components/responses/Generic409" "500": @@ -102,6 +104,8 @@ paths: $ref: "#/components/responses/Generic401" "403": $ref: "#/components/responses/Generic403" + "404": + $ref: "#/components/responses/Generic404" "409": $ref: "#/components/responses/Generic409" "500": @@ -134,7 +138,7 @@ components: latestSimChange: type: string format: date-time - description: Timestamp of latest SIM swap performed + description: Timestamp of latest SIM swap performed (using UTC) CheckSimSwapInfo: type: object properties: @@ -217,6 +221,16 @@ components: status: 403 code: PERMISSION_DENIED message: Client does not have sufficient permissions to perform this action + Generic404: + description: Resource Not Found + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorInfo' + example: + status: 404 + code: SIMSWAP.PHONE_NUMBER_NOT_IN_OPERATOR_SCOPE + message: SI Swap can't be checked because this number is not managed by operator. Generic409: description: Conflict content: