Skip to content

Commit

Permalink
[#PE-516] Added 401 to operator search apis whenever login is expired (
Browse files Browse the repository at this point in the history
  • Loading branch information
michaeldisaro authored Jan 9, 2024
1 parent 24c3bf8 commit 8597e54
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 9 deletions.
16 changes: 12 additions & 4 deletions api_cgn_operator_search.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ paths:
description: List of categories that have at least a published discount
schema:
$ref: "#/definitions/PublishedProductCategoriesResult"
"401":
description: Login expired.
"500":
description: Service unavailable.
schema:
Expand All @@ -44,6 +46,8 @@ paths:
description: List of online merchants for the given query parameters
schema:
$ref: "#/definitions/OnlineMerchants"
"401":
description: Login expired.
"500":
description: Service unavailable.
schema:
Expand All @@ -66,6 +70,8 @@ paths:
description: List of physical merchants for the given query parameters
schema:
$ref: "#/definitions/OfflineMerchants"
"401":
description: Login expired.
"500":
description: Service unavailable.
schema:
Expand All @@ -89,6 +95,8 @@ paths:
description: Found
schema:
$ref: "#/definitions/Merchant"
"401":
description: Login expired.
"404":
description: Operator Not Found
"500":
Expand All @@ -114,13 +122,13 @@ paths:
description: Found
schema:
$ref: "#/definitions/DiscountBucketCode"
"401":
description: Login expired.
"404":
description: Bucket code Not Found
'401':
description: Bearer token null or expired
'403':
"403":
description: Access data provided are invalid or CGN not valid
'410':
"410":
description: Endpoint no longer available
"500":
description: Service unavailable.
Expand Down
16 changes: 12 additions & 4 deletions openapi/api_cgn_operator_search.template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ paths:
description: List of categories that have at least a published discount
schema:
$ref: "#/definitions/PublishedProductCategoriesResult"
"401":
description: Login expired.
"500":
description: Service unavailable.
schema:
Expand All @@ -43,6 +45,8 @@ paths:
description: List of online merchants for the given query parameters
schema:
$ref: "#/definitions/OnlineMerchants"
"401":
description: Login expired.
"500":
description: Service unavailable.
schema:
Expand All @@ -64,6 +68,8 @@ paths:
description: List of physical merchants for the given query parameters
schema:
$ref: "#/definitions/OfflineMerchants"
"401":
description: Login expired.
"500":
description: Service unavailable.
schema:
Expand All @@ -86,6 +92,8 @@ paths:
description: Found
schema:
$ref: "#/definitions/Merchant"
"401":
description: Login expired.
"404":
description: Operator Not Found
"500":
Expand All @@ -110,13 +118,13 @@ paths:
description: Found
schema:
$ref: "#/definitions/DiscountBucketCode"
"401":
description: Login expired.
"404":
description: Bucket code Not Found
'401':
description: Bearer token null or expired
'403':
"403":
description: Access data provided are invalid or CGN not valid
'410':
"410":
description: Endpoint no longer available
"500":
description: Service unavailable.
Expand Down
10 changes: 9 additions & 1 deletion openapi/generated/api_cgn_operator_search.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ paths:
description: List of categories that have at least a published discount
schema:
$ref: '#/definitions/PublishedProductCategoriesResult'
'401':
description: Login expired.
'500':
description: Service unavailable.
schema:
Expand All @@ -43,6 +45,8 @@ paths:
description: List of online merchants for the given query parameters
schema:
$ref: '#/definitions/OnlineMerchants'
'401':
description: Login expired.
'500':
description: Service unavailable.
schema:
Expand All @@ -65,6 +69,8 @@ paths:
description: List of physical merchants for the given query parameters
schema:
$ref: '#/definitions/OfflineMerchants'
'401':
description: Login expired.
'500':
description: Service unavailable.
schema:
Expand All @@ -87,6 +93,8 @@ paths:
description: Found
schema:
$ref: '#/definitions/Merchant'
'401':
description: Login expired.
'404':
description: Operator Not Found
'500':
Expand All @@ -112,7 +120,7 @@ paths:
schema:
$ref: '#/definitions/DiscountBucketCode'
'401':
description: Bearer token null or expired
description: Login expired.
'403':
description: Access data provided are invalid or CGN not valid
'404':
Expand Down

0 comments on commit 8597e54

Please sign in to comment.