Skip to content

Commit

Permalink
[PRDP-289] feat: Updated openapi.json
Browse files Browse the repository at this point in the history
  • Loading branch information
alessio-cialini committed Jan 5, 2024
1 parent 3153483 commit 20fa16f
Showing 1 changed file with 253 additions and 0 deletions.
253 changes: 253 additions & 0 deletions openapi/openapi.json
Original file line number Diff line number Diff line change
Expand Up @@ -886,6 +886,241 @@
}
]
},
"/cart/{cart-id}/recover-failed": {
"post": {
"tags": [
"API-recoverFailedCart"
],
"summary": "Recover a cart in FAILED or INSERTED status",
"operationId": "RecoverFailedCart",
"parameters": [
{
"in": "path",
"name": "cart-id",
"description": "Cart id.",
"schema": {
"type": "string"
},
"required": true
}
],
"requestBody": {
"content": {
"application/json": {}
},
"required": false
},
"responses": {
"200": {
"description": "Successful Calls.",
"headers": {
"X-Request-Id": {
"description": "This header identifies the call",
"schema": {
"type": "string"
}
}
},
"content": {
"text/plain": {
"schema": {
"type": "string",
"example": "Receipt with eventId 76abb1f1-c9f9-4ead-9e66-12fec4d51042 recovered"
}
}
}
},
"400": {
"description": "Bad request.",
"headers": {
"X-Request-Id": {
"description": "This header identifies the call",
"schema": {
"type": "string"
}
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ProblemJson"
}
}
}
},
"404": {
"description": "Receipt or BizEvent not found",
"headers": {
"X-Request-Id": {
"description": "This header identifies the call",
"schema": {
"type": "string"
}
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ProblemJson"
}
}
}
},
"500": {
"description": "Error processing the request",
"headers": {
"X-Request-Id": {
"description": "This header identifies the call",
"schema": {
"type": "string"
}
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ProblemJson"
}
}
}
},
"default": {
"description": "Unexpected error.",
"headers": {
"X-Request-Id": {
"description": "This header identifies the call",
"schema": {
"type": "string"
}
}
}
}
},
"security": [
{
"ApiKey": []
}
]
},
"parameters": [
{
"name": "X-Request-Id",
"in": "header",
"description": "This header identifies the call, if not passed it is self-generated. This ID is returned in the response.",
"schema": {
"type": "string"
}
}
]
},
"/carts/recover-failed": {
"post": {
"tags": [
"API-recoverCartFailed"
],
"summary": "Recover a group of cart in FAILED, or INSERTED status",
"operationId": "RecoverFailedCartMassive",
"parameters": [
{
"in": "query",
"name": "status",
"schema": {
"type": "string"
},
"required": true
}
],
"requestBody": {
"content": {
"application/json": {}
},
"required": false
},
"responses": {
"200": {
"description": "Successful Calls.",
"headers": {
"X-Request-Id": {
"description": "This header identifies the call",
"schema": {
"type": "string"
}
}
},
"content": {
"text/plain": {
"schema": {
"type": "string",
"example": "Recovered 10 carts"
}
}
}
},
"400": {
"description": "Bad request",
"headers": {
"X-Request-Id": {
"description": "This header identifies the call",
"schema": {
"type": "string"
}
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ProblemJson"
}
}
}
},
"500": {
"description": "Error processing the request",
"headers": {
"X-Request-Id": {
"description": "This header identifies the call",
"schema": {
"type": "string"
}
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ProblemJson"
}
}
}
},
"default": {
"description": "Unexpected error.",
"headers": {
"X-Request-Id": {
"description": "This header identifies the call",
"schema": {
"type": "string"
}
}
}
}
},
"security": [
{
"ApiKey": []
}
]
},
"parameters": [
{
"name": "X-Request-Id",
"in": "header",
"description": "This header identifies the call, if not passed it is self-generated. This ID is returned in the response.",
"schema": {
"type": "string"
}
}
]
},
"/receipts/{event-id}/recover-failed": {
"post": {
"tags": [
Expand All @@ -902,6 +1137,15 @@
"type": "string"
},
"required": true
},
{
"in": "query",
"name": "isCart",
"description": "Boolean to determine if the id refers to a cart",
"schema": {
"type": "string"
},
"required": false
}
],
"requestBody": {
Expand Down Expand Up @@ -1372,6 +1616,15 @@
"type": "string"
},
"required": true
},
{
"in": "query",
"name": "isCart",
"description": "Boolean to determine if the id refers to a cart",
"schema": {
"type": "string"
},
"required": false
}
],
"requestBody": {
Expand Down

0 comments on commit 20fa16f

Please sign in to comment.