diff --git a/package-lock.json b/package-lock.json index 405cb68c0..a1189f9a2 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "xpanse-ui", - "version": "1.0.12", + "version": "1.0.13", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "xpanse-ui", - "version": "1.0.12", + "version": "1.0.13", "dependencies": { "@ant-design/icons": "^5.3.7", "@axa-fr/react-oidc": "^7.22.6", @@ -31,7 +31,7 @@ "@testing-library/jest-dom": "^6.4.5", "@testing-library/react": "^15.0.7", "@types/jest": "^29.5.12", - "@types/node": "^20.12.13", + "@types/node": "^20.13.0", "@types/react": "^18.3.3", "@types/react-dom": "^18.3.0", "@types/uuid": "^9.0.8", @@ -4993,9 +4993,9 @@ "dev": true }, "node_modules/@types/node": { - "version": "20.12.13", - "resolved": "https://registry.npmjs.org/@types/node/-/node-20.12.13.tgz", - "integrity": "sha512-gBGeanV41c1L171rR7wjbMiEpEI/l5XFQdLLfhr/REwpgDy/4U8y89+i8kRiLzDyZdOkXh+cRaTetUnCYutoXA==", + "version": "20.13.0", + "resolved": "https://registry.npmjs.org/@types/node/-/node-20.13.0.tgz", + "integrity": "sha512-FM6AOb3khNkNIXPnHFDYaHerSv8uN22C91z098AnGccVu+Pcdhi+pNUFDi0iLmPIsVE0JBD0KVS7mzUYt4nRzQ==", "dev": true, "dependencies": { "undici-types": "~5.26.4" diff --git a/package.json b/package.json index 68f30dd72..e50f8910a 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "xpanse-ui", - "version": "1.0.12", + "version": "1.0.13", "private": true, "type": "module", "dependencies": { @@ -105,7 +105,7 @@ "@testing-library/jest-dom": "^6.4.5", "@testing-library/react": "^15.0.7", "@types/jest": "^29.5.12", - "@types/node": "^20.12.13", + "@types/node": "^20.13.0", "@types/react": "^18.3.3", "@types/react-dom": "^18.3.0", "@types/uuid": "^9.0.8", diff --git a/src/components/content/catalog/services/details/ServiceProvider.tsx b/src/components/content/catalog/services/details/ServiceProvider.tsx index dd2bee5b7..4da67c942 100644 --- a/src/components/content/catalog/services/details/ServiceProvider.tsx +++ b/src/components/content/catalog/services/details/ServiceProvider.tsx @@ -198,6 +198,7 @@ function ServiceProvider({ key={activeServiceDetail.id} id={activeServiceDetail.id} setIsViewDisabled={setIsViewDisabled} + serviceRegistrationState={activeServiceDetail.serviceRegistrationState} /> </div> <h3 className={catalogStyles.catalogDetailsH3}> diff --git a/src/components/content/catalog/services/unregister/UnregisterMutation.ts b/src/components/content/catalog/services/unregister/UnregisterMutation.ts index edf82cd53..f5e125ee1 100644 --- a/src/components/content/catalog/services/unregister/UnregisterMutation.ts +++ b/src/components/content/catalog/services/unregister/UnregisterMutation.ts @@ -14,6 +14,10 @@ export function useUnregisterRequest(id: string) { mutationFn: () => { return ServiceVendorService.unregister(id); }, + // necessary to clear the mutationCache immediately. + // Otherwise, the mutation state is cached and with retries, it is not possible to get state of the + // latest request using useMutationState method. + gcTime: 0, }); } diff --git a/src/components/content/catalog/services/unregister/UnregisterService.tsx b/src/components/content/catalog/services/unregister/UnregisterService.tsx index d14eeeca9..8b9a1e7b7 100644 --- a/src/components/content/catalog/services/unregister/UnregisterService.tsx +++ b/src/components/content/catalog/services/unregister/UnregisterService.tsx @@ -7,14 +7,17 @@ import { CloseCircleOutlined } from '@ant-design/icons'; import { Button, Popconfirm } from 'antd'; import React from 'react'; import catalogStyles from '../../../../../styles/catalog.module.css'; +import { ServiceTemplateDetailVo } from '../../../../../xpanse-api/generated'; import { useUnregisterRequest } from './UnregisterMutation'; function UnregisterService({ id, setIsViewDisabled, + serviceRegistrationState, }: { id: string; setIsViewDisabled: (isViewDisabled: boolean) => void; + serviceRegistrationState: ServiceTemplateDetailVo.serviceRegistrationState; }): React.JSX.Element { const unregisterRequest = useUnregisterRequest(id); @@ -38,7 +41,10 @@ function UnregisterService({ icon={<CloseCircleOutlined />} type='primary' className={catalogStyles.catalogManageBtnClass} - disabled={unregisterRequest.isSuccess} + disabled={ + unregisterRequest.isSuccess || + serviceRegistrationState === ServiceTemplateDetailVo.serviceRegistrationState.UNREGISTERED + } > Unregister </Button> diff --git a/src/components/content/order/common/FlavorPrice.tsx b/src/components/content/order/common/FlavorPrice.tsx index 60f6690fb..71dc716bc 100644 --- a/src/components/content/order/common/FlavorPrice.tsx +++ b/src/components/content/order/common/FlavorPrice.tsx @@ -12,7 +12,7 @@ export const FlavorPrice = (): React.JSX.Element => { <> <Tag color={'blue'} className={serviceModifyStyles.flavorPriceContent}> {/* TODO Will be fixed after #1597 is fixed */} - {(20).toString().concat(' ').concat('EUR/').concat('hourly')} + {(20).toString().concat(' ').concat('EUR/').concat('hour')} </Tag> </> ); diff --git a/src/xpanse-api/api.json b/src/xpanse-api/api.json index 928c95c6b..c2ab6ff28 100644 --- a/src/xpanse-api/api.json +++ b/src/xpanse-api/api.json @@ -3,7 +3,7 @@ "info": { "title": "XpanseAPI", "description": "RESTful Services to interact with Xpanse runtime.", - "version": "1.0.14-SNAPSHOT" + "version": "1.0.16-SNAPSHOT" }, "servers": [{ "url": "http://localhost:8080", "description": "Generated server url" }], "security": [{ "OAuth2Flow": [] }], @@ -63,12 +63,16 @@ } ], "responses": { + "400": { + "description": "Bad Request", + "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } } + }, "500": { "description": "Internal Server Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } } }, - "400": { - "description": "Bad Request", + "401": { + "description": "Unauthorized", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } } }, "422": { @@ -79,10 +83,6 @@ "description": "Forbidden", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } } }, - "401": { - "description": "Unauthorized", - "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } } - }, "502": { "description": "Bad Gateway", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } } @@ -114,12 +114,16 @@ "required": true }, "responses": { + "400": { + "description": "Bad Request", + "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } } + }, "500": { "description": "Internal Server Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } } }, - "400": { - "description": "Bad Request", + "401": { + "description": "Unauthorized", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } } }, "422": { @@ -130,10 +134,6 @@ "description": "Forbidden", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } } }, - "401": { - "description": "Unauthorized", - "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } } - }, "502": { "description": "Bad Gateway", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } } @@ -179,12 +179,16 @@ } ], "responses": { + "400": { + "description": "Bad Request", + "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } } + }, "500": { "description": "Internal Server Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } } }, - "400": { - "description": "Bad Request", + "401": { + "description": "Unauthorized", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } } }, "422": { @@ -195,10 +199,6 @@ "description": "Forbidden", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } } }, - "401": { - "description": "Unauthorized", - "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } } - }, "502": { "description": "Bad Gateway", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } } @@ -227,12 +227,16 @@ "required": true }, "responses": { + "400": { + "description": "Bad Request", + "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } } + }, "500": { "description": "Internal Server Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } } }, - "400": { - "description": "Bad Request", + "401": { + "description": "Unauthorized", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } } }, "422": { @@ -243,10 +247,6 @@ "description": "Forbidden", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } } }, - "401": { - "description": "Unauthorized", - "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } } - }, "502": { "description": "Bad Gateway", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } } @@ -265,12 +265,16 @@ "required": true }, "responses": { + "400": { + "description": "Bad Request", + "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } } + }, "500": { "description": "Internal Server Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } } }, - "400": { - "description": "Bad Request", + "401": { + "description": "Unauthorized", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } } }, "422": { @@ -281,10 +285,6 @@ "description": "Forbidden", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } } }, - "401": { - "description": "Unauthorized", - "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } } - }, "502": { "description": "Bad Gateway", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } } @@ -335,12 +335,16 @@ } ], "responses": { + "400": { + "description": "Bad Request", + "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } } + }, "500": { "description": "Internal Server Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } } }, - "400": { - "description": "Bad Request", + "401": { + "description": "Unauthorized", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } } }, "422": { @@ -351,10 +355,6 @@ "description": "Forbidden", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } } }, - "401": { - "description": "Unauthorized", - "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } } - }, "502": { "description": "Bad Gateway", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } } @@ -370,12 +370,16 @@ "operationId": "stopService", "parameters": [{ "name": "serviceId", "in": "path", "required": true, "schema": { "type": "string" } }], "responses": { + "400": { + "description": "Bad Request", + "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } } + }, "500": { "description": "Internal Server Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } } }, - "400": { - "description": "Bad Request", + "401": { + "description": "Unauthorized", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } } }, "422": { @@ -386,10 +390,6 @@ "description": "Forbidden", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } } }, - "401": { - "description": "Unauthorized", - "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } } - }, "502": { "description": "Bad Gateway", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } } @@ -408,12 +408,16 @@ "operationId": "startService", "parameters": [{ "name": "serviceId", "in": "path", "required": true, "schema": { "type": "string" } }], "responses": { + "400": { + "description": "Bad Request", + "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } } + }, "500": { "description": "Internal Server Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } } }, - "400": { - "description": "Bad Request", + "401": { + "description": "Unauthorized", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } } }, "422": { @@ -424,10 +428,6 @@ "description": "Forbidden", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } } }, - "401": { - "description": "Unauthorized", - "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } } - }, "502": { "description": "Bad Gateway", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } } @@ -446,12 +446,16 @@ "operationId": "restartService", "parameters": [{ "name": "serviceId", "in": "path", "required": true, "schema": { "type": "string" } }], "responses": { + "400": { + "description": "Bad Request", + "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } } + }, "500": { "description": "Internal Server Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } } }, - "400": { - "description": "Bad Request", + "401": { + "description": "Unauthorized", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } } }, "422": { @@ -462,10 +466,6 @@ "description": "Forbidden", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } } }, - "401": { - "description": "Unauthorized", - "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } } - }, "502": { "description": "Bad Gateway", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } } @@ -496,12 +496,16 @@ "required": true }, "responses": { + "400": { + "description": "Bad Request", + "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } } + }, "500": { "description": "Internal Server Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } } }, - "400": { - "description": "Bad Request", + "401": { + "description": "Unauthorized", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } } }, "422": { @@ -512,10 +516,6 @@ "description": "Forbidden", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } } }, - "401": { - "description": "Unauthorized", - "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } } - }, "502": { "description": "Bad Gateway", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } } @@ -548,12 +548,16 @@ "required": true }, "responses": { + "400": { + "description": "Bad Request", + "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } } + }, "500": { "description": "Internal Server Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } } }, - "400": { - "description": "Bad Request", + "401": { + "description": "Unauthorized", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } } }, "422": { @@ -564,10 +568,6 @@ "description": "Forbidden", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } } }, - "401": { - "description": "Unauthorized", - "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } } - }, "502": { "description": "Bad Gateway", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } } @@ -591,12 +591,16 @@ } ], "responses": { + "400": { + "description": "Bad Request", + "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } } + }, "500": { "description": "Internal Server Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } } }, - "400": { - "description": "Bad Request", + "401": { + "description": "Unauthorized", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } } }, "422": { @@ -607,10 +611,6 @@ "description": "Forbidden", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } } }, - "401": { - "description": "Unauthorized", - "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } } - }, "502": { "description": "Bad Gateway", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } } @@ -641,12 +641,16 @@ "required": true }, "responses": { + "400": { + "description": "Bad Request", + "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } } + }, "500": { "description": "Internal Server Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } } }, - "400": { - "description": "Bad Request", + "401": { + "description": "Unauthorized", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } } }, "422": { @@ -657,10 +661,6 @@ "description": "Forbidden", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } } }, - "401": { - "description": "Unauthorized", - "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } } - }, "502": { "description": "Bad Gateway", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } } @@ -675,8 +675,8 @@ }, "delete": { "tags": ["ServiceVendor"], - "description": "Delete service template using id.<br>Required role:<b> admin</b> or <b>isv</b>", - "operationId": "unregister", + "description": "Delete unregistered service template using id.<br>Required role:<b> admin</b> or <b>isv</b>", + "operationId": "deleteServiceTemplate", "parameters": [ { "name": "id", @@ -687,12 +687,16 @@ } ], "responses": { + "400": { + "description": "Bad Request", + "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } } + }, "500": { "description": "Internal Server Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } } }, - "400": { - "description": "Bad Request", + "401": { + "description": "Unauthorized", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } } }, "422": { @@ -703,17 +707,58 @@ "description": "Forbidden", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } } }, + "502": { + "description": "Bad Gateway", + "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } } + }, + "204": { "description": "No Content" } + } + } + }, + "/xpanse/service_templates/unregister/{id}": { + "put": { + "tags": ["ServiceVendor"], + "description": "Unregister service template using id.<br>Required role:<b> admin</b> or <b>isv</b>", + "operationId": "unregister", + "parameters": [ + { + "name": "id", + "in": "path", + "description": "id of service template", + "required": true, + "schema": { "type": "string" } + } + ], + "responses": { + "400": { + "description": "Bad Request", + "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } } + }, + "500": { + "description": "Internal Server Error", + "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } } + }, "401": { "description": "Unauthorized", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } } }, + "422": { + "description": "Unprocessable Entity", + "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } } + }, + "403": { + "description": "Forbidden", + "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } } + }, "502": { "description": "Bad Gateway", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } } }, "200": { "description": "OK", - "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } } + "content": { + "application/json": { "schema": { "$ref": "#/components/schemas/ServiceTemplateDetailVo" } } + } } } } @@ -739,12 +784,16 @@ "required": true }, "responses": { + "400": { + "description": "Bad Request", + "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } } + }, "500": { "description": "Internal Server Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } } }, - "400": { - "description": "Bad Request", + "401": { + "description": "Unauthorized", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } } }, "422": { @@ -755,15 +804,59 @@ "description": "Forbidden", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } } }, + "502": { + "description": "Bad Gateway", + "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } } + }, + "204": { "description": "No Content" } + } + } + }, + "/xpanse/service_templates/re-register/{id}": { + "put": { + "tags": ["ServiceVendor"], + "description": "Re-register the unregistered service template using id.<br>Required role:<b> admin</b> or <b>isv</b>", + "operationId": "reRegisterServiceTemplate", + "parameters": [ + { + "name": "id", + "in": "path", + "description": "id of service template", + "required": true, + "schema": { "type": "string" } + } + ], + "responses": { + "400": { + "description": "Bad Request", + "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } } + }, + "500": { + "description": "Internal Server Error", + "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } } + }, "401": { "description": "Unauthorized", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } } }, + "422": { + "description": "Unprocessable Entity", + "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } } + }, + "403": { + "description": "Forbidden", + "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } } + }, "502": { "description": "Bad Gateway", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } } }, - "204": { "description": "No Content" } + "200": { + "description": "OK", + "content": { + "application/json": { "schema": { "$ref": "#/components/schemas/ServiceTemplateDetailVo" } } + } + } } } }, @@ -789,12 +882,16 @@ } ], "responses": { + "400": { + "description": "Bad Request", + "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } } + }, "500": { "description": "Internal Server Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } } }, - "400": { - "description": "Bad Request", + "401": { + "description": "Unauthorized", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } } }, "422": { @@ -805,10 +902,6 @@ "description": "Forbidden", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } } }, - "401": { - "description": "Unauthorized", - "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } } - }, "502": { "description": "Bad Gateway", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } } @@ -829,12 +922,16 @@ "operationId": "getServicePolicyDetails", "parameters": [{ "name": "id", "in": "path", "required": true, "schema": { "type": "string" } }], "responses": { + "400": { + "description": "Bad Request", + "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } } + }, "500": { "description": "Internal Server Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } } }, - "400": { - "description": "Bad Request", + "401": { + "description": "Unauthorized", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } } }, "422": { @@ -845,10 +942,6 @@ "description": "Forbidden", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } } }, - "401": { - "description": "Unauthorized", - "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } } - }, "502": { "description": "Bad Gateway", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } } @@ -881,12 +974,16 @@ "required": true }, "responses": { + "400": { + "description": "Bad Request", + "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } } + }, "500": { "description": "Internal Server Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } } }, - "400": { - "description": "Bad Request", + "401": { + "description": "Unauthorized", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } } }, "422": { @@ -897,10 +994,6 @@ "description": "Forbidden", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } } }, - "401": { - "description": "Unauthorized", - "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } } - }, "502": { "description": "Bad Gateway", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } } @@ -919,12 +1012,16 @@ "operationId": "deleteServicePolicy", "parameters": [{ "name": "id", "in": "path", "required": true, "schema": { "type": "string" } }], "responses": { + "400": { + "description": "Bad Request", + "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } } + }, "500": { "description": "Internal Server Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } } }, - "400": { - "description": "Bad Request", + "401": { + "description": "Unauthorized", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } } }, "422": { @@ -935,10 +1032,6 @@ "description": "Forbidden", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } } }, - "401": { - "description": "Unauthorized", - "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } } - }, "502": { "description": "Bad Gateway", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } } @@ -954,12 +1047,16 @@ "operationId": "getPolicyDetails", "parameters": [{ "name": "id", "in": "path", "required": true, "schema": { "type": "string" } }], "responses": { + "400": { + "description": "Bad Request", + "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } } + }, "500": { "description": "Internal Server Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } } }, - "400": { - "description": "Bad Request", + "401": { + "description": "Unauthorized", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } } }, "422": { @@ -970,10 +1067,6 @@ "description": "Forbidden", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } } }, - "401": { - "description": "Unauthorized", - "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } } - }, "502": { "description": "Bad Gateway", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } } @@ -1004,12 +1097,16 @@ "required": true }, "responses": { + "400": { + "description": "Bad Request", + "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } } + }, "500": { "description": "Internal Server Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } } }, - "400": { - "description": "Bad Request", + "401": { + "description": "Unauthorized", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } } }, "422": { @@ -1020,10 +1117,6 @@ "description": "Forbidden", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } } }, - "401": { - "description": "Unauthorized", - "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } } - }, "502": { "description": "Bad Gateway", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } } @@ -1040,12 +1133,16 @@ "operationId": "deleteUserPolicy", "parameters": [{ "name": "id", "in": "path", "required": true, "schema": { "type": "string" } }], "responses": { + "400": { + "description": "Bad Request", + "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } } + }, "500": { "description": "Internal Server Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } } }, - "400": { - "description": "Bad Request", + "401": { + "description": "Unauthorized", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } } }, "422": { @@ -1056,10 +1153,6 @@ "description": "Forbidden", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } } }, - "401": { - "description": "Unauthorized", - "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } } - }, "502": { "description": "Bad Gateway", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } } @@ -1105,12 +1198,16 @@ } ], "responses": { + "400": { + "description": "Bad Request", + "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } } + }, "500": { "description": "Internal Server Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } } }, - "400": { - "description": "Bad Request", + "401": { + "description": "Unauthorized", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } } }, "422": { @@ -1121,10 +1218,6 @@ "description": "Forbidden", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } } }, - "401": { - "description": "Unauthorized", - "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } } - }, "502": { "description": "Bad Gateway", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } } @@ -1153,12 +1246,16 @@ "required": true }, "responses": { + "400": { + "description": "Bad Request", + "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } } + }, "500": { "description": "Internal Server Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } } }, - "400": { - "description": "Bad Request", + "401": { + "description": "Unauthorized", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } } }, "422": { @@ -1169,10 +1266,6 @@ "description": "Forbidden", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } } }, - "401": { - "description": "Unauthorized", - "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } } - }, "502": { "description": "Bad Gateway", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } } @@ -1191,12 +1284,16 @@ "required": true }, "responses": { + "400": { + "description": "Bad Request", + "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } } + }, "500": { "description": "Internal Server Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } } }, - "400": { - "description": "Bad Request", + "401": { + "description": "Unauthorized", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } } }, "422": { @@ -1207,10 +1304,6 @@ "description": "Forbidden", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } } }, - "401": { - "description": "Unauthorized", - "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } } - }, "502": { "description": "Bad Gateway", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } } @@ -1261,12 +1354,16 @@ } ], "responses": { + "400": { + "description": "Bad Request", + "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } } + }, "500": { "description": "Internal Server Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } } }, - "400": { - "description": "Bad Request", + "401": { + "description": "Unauthorized", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } } }, "422": { @@ -1277,10 +1374,6 @@ "description": "Forbidden", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } } }, - "401": { - "description": "Unauthorized", - "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } } - }, "502": { "description": "Bad Gateway", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } } @@ -1373,12 +1466,16 @@ } ], "responses": { + "400": { + "description": "Bad Request", + "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } } + }, "500": { "description": "Internal Server Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } } }, - "400": { - "description": "Bad Request", + "401": { + "description": "Unauthorized", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } } }, "422": { @@ -1389,10 +1486,6 @@ "description": "Forbidden", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } } }, - "401": { - "description": "Unauthorized", - "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } } - }, "502": { "description": "Bad Gateway", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } } @@ -1419,12 +1512,16 @@ "required": true }, "responses": { + "400": { + "description": "Bad Request", + "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } } + }, "500": { "description": "Internal Server Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } } }, - "400": { - "description": "Bad Request", + "401": { + "description": "Unauthorized", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } } }, "422": { @@ -1435,10 +1532,6 @@ "description": "Forbidden", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } } }, - "401": { - "description": "Unauthorized", - "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } } - }, "502": { "description": "Bad Gateway", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } } @@ -1460,12 +1553,16 @@ "required": true }, "responses": { + "400": { + "description": "Bad Request", + "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } } + }, "500": { "description": "Internal Server Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } } }, - "400": { - "description": "Bad Request", + "401": { + "description": "Unauthorized", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } } }, "422": { @@ -1476,10 +1573,6 @@ "description": "Forbidden", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } } }, - "401": { - "description": "Unauthorized", - "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } } - }, "502": { "description": "Bad Gateway", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } } @@ -1567,16 +1660,23 @@ "in": "query", "description": "state of registration", "required": false, - "schema": { "type": "string", "enum": ["approval pending", "approved", "rejected"] } + "schema": { + "type": "string", + "enum": ["unregistered", "approval pending", "approved", "rejected"] + } } ], "responses": { + "400": { + "description": "Bad Request", + "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } } + }, "500": { "description": "Internal Server Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } } }, - "400": { - "description": "Bad Request", + "401": { + "description": "Unauthorized", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } } }, "422": { @@ -1587,10 +1687,6 @@ "description": "Forbidden", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } } }, - "401": { - "description": "Unauthorized", - "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } } - }, "502": { "description": "Bad Gateway", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } } @@ -1617,12 +1713,16 @@ "required": true }, "responses": { + "400": { + "description": "Bad Request", + "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } } + }, "500": { "description": "Internal Server Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } } }, - "400": { - "description": "Bad Request", + "401": { + "description": "Unauthorized", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } } }, "422": { @@ -1633,10 +1733,6 @@ "description": "Forbidden", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } } }, - "401": { - "description": "Unauthorized", - "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } } - }, "502": { "description": "Bad Gateway", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } } @@ -1665,12 +1761,16 @@ } ], "responses": { + "400": { + "description": "Bad Request", + "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } } + }, "500": { "description": "Internal Server Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } } }, - "400": { - "description": "Bad Request", + "401": { + "description": "Unauthorized", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } } }, "422": { @@ -1681,10 +1781,6 @@ "description": "Forbidden", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } } }, - "401": { - "description": "Unauthorized", - "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } } - }, "502": { "description": "Bad Gateway", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } } @@ -1713,12 +1809,16 @@ } ], "responses": { + "400": { + "description": "Bad Request", + "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } } + }, "500": { "description": "Internal Server Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } } }, - "400": { - "description": "Bad Request", + "401": { + "description": "Unauthorized", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } } }, "422": { @@ -1729,10 +1829,6 @@ "description": "Forbidden", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } } }, - "401": { - "description": "Unauthorized", - "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } } - }, "502": { "description": "Bad Gateway", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } } @@ -1758,12 +1854,16 @@ "required": true }, "responses": { + "400": { + "description": "Bad Request", + "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } } + }, "500": { "description": "Internal Server Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } } }, - "400": { - "description": "Bad Request", + "401": { + "description": "Unauthorized", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } } }, "422": { @@ -1774,10 +1874,6 @@ "description": "Forbidden", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } } }, - "401": { - "description": "Unauthorized", - "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } } - }, "502": { "description": "Bad Gateway", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } } @@ -1825,12 +1921,16 @@ } ], "responses": { + "400": { + "description": "Bad Request", + "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } } + }, "500": { "description": "Internal Server Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } } }, - "400": { - "description": "Bad Request", + "401": { + "description": "Unauthorized", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } } }, "422": { @@ -1841,10 +1941,6 @@ "description": "Forbidden", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } } }, - "401": { - "description": "Unauthorized", - "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } } - }, "502": { "description": "Bad Gateway", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } } @@ -1870,12 +1966,16 @@ "required": true }, "responses": { + "400": { + "description": "Bad Request", + "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } } + }, "500": { "description": "Internal Server Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } } }, - "400": { - "description": "Bad Request", + "401": { + "description": "Unauthorized", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } } }, "422": { @@ -1886,10 +1986,6 @@ "description": "Forbidden", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } } }, - "401": { - "description": "Unauthorized", - "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } } - }, "502": { "description": "Bad Gateway", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } } @@ -1916,12 +2012,16 @@ } ], "responses": { + "400": { + "description": "Bad Request", + "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } } + }, "500": { "description": "Internal Server Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } } }, - "400": { - "description": "Bad Request", + "401": { + "description": "Unauthorized", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } } }, "422": { @@ -1932,10 +2032,6 @@ "description": "Forbidden", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } } }, - "401": { - "description": "Unauthorized", - "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } } - }, "502": { "description": "Bad Gateway", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } } @@ -1980,12 +2076,16 @@ } ], "responses": { + "400": { + "description": "Bad Request", + "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } } + }, "500": { "description": "Internal Server Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } } }, - "400": { - "description": "Bad Request", + "401": { + "description": "Unauthorized", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } } }, "422": { @@ -1996,10 +2096,6 @@ "description": "Forbidden", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } } }, - "401": { - "description": "Unauthorized", - "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } } - }, "502": { "description": "Bad Gateway", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } } @@ -2031,12 +2127,16 @@ } ], "responses": { + "400": { + "description": "Bad Request", + "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } } + }, "500": { "description": "Internal Server Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } } }, - "400": { - "description": "Bad Request", + "401": { + "description": "Unauthorized", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } } }, "422": { @@ -2047,10 +2147,6 @@ "description": "Forbidden", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } } }, - "401": { - "description": "Unauthorized", - "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } } - }, "502": { "description": "Bad Gateway", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } } @@ -2081,12 +2177,16 @@ } ], "responses": { + "400": { + "description": "Bad Request", + "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } } + }, "500": { "description": "Internal Server Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } } }, - "400": { - "description": "Bad Request", + "401": { + "description": "Unauthorized", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } } }, "422": { @@ -2097,10 +2197,6 @@ "description": "Forbidden", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } } }, - "401": { - "description": "Unauthorized", - "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } } - }, "502": { "description": "Bad Gateway", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } } @@ -2132,12 +2228,16 @@ } ], "responses": { + "400": { + "description": "Bad Request", + "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } } + }, "500": { "description": "Internal Server Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } } }, - "400": { - "description": "Bad Request", + "401": { + "description": "Unauthorized", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } } }, "422": { @@ -2148,10 +2248,6 @@ "description": "Forbidden", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } } }, - "401": { - "description": "Unauthorized", - "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } } - }, "502": { "description": "Bad Gateway", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } } @@ -2175,12 +2271,16 @@ } ], "responses": { + "400": { + "description": "Bad Request", + "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } } + }, "500": { "description": "Internal Server Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } } }, - "400": { - "description": "Bad Request", + "401": { + "description": "Unauthorized", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } } }, "422": { @@ -2191,10 +2291,6 @@ "description": "Forbidden", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } } }, - "401": { - "description": "Unauthorized", - "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } } - }, "502": { "description": "Bad Gateway", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } } @@ -2223,12 +2319,16 @@ } ], "responses": { + "400": { + "description": "Bad Request", + "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } } + }, "500": { "description": "Internal Server Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } } }, - "400": { - "description": "Bad Request", + "401": { + "description": "Unauthorized", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } } }, "422": { @@ -2239,10 +2339,6 @@ "description": "Forbidden", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } } }, - "401": { - "description": "Unauthorized", - "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } } - }, "502": { "description": "Bad Gateway", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } } @@ -2266,12 +2362,16 @@ } ], "responses": { + "400": { + "description": "Bad Request", + "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } } + }, "500": { "description": "Internal Server Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } } }, - "400": { - "description": "Bad Request", + "401": { + "description": "Unauthorized", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } } }, "422": { @@ -2282,10 +2382,6 @@ "description": "Forbidden", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } } }, - "401": { - "description": "Unauthorized", - "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } } - }, "502": { "description": "Bad Gateway", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } } @@ -2314,12 +2410,16 @@ } ], "responses": { + "400": { + "description": "Bad Request", + "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } } + }, "500": { "description": "Internal Server Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } } }, - "400": { - "description": "Bad Request", + "401": { + "description": "Unauthorized", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } } }, "422": { @@ -2330,10 +2430,6 @@ "description": "Forbidden", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } } }, - "401": { - "description": "Unauthorized", - "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } } - }, "502": { "description": "Bad Gateway", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } } @@ -2397,12 +2493,16 @@ } ], "responses": { + "400": { + "description": "Bad Request", + "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } } + }, "500": { "description": "Internal Server Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } } }, - "400": { - "description": "Bad Request", + "401": { + "description": "Unauthorized", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } } }, "422": { @@ -2413,10 +2513,6 @@ "description": "Forbidden", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } } }, - "401": { - "description": "Unauthorized", - "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } } - }, "502": { "description": "Bad Gateway", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } } @@ -2450,12 +2546,16 @@ } ], "responses": { + "400": { + "description": "Bad Request", + "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } } + }, "500": { "description": "Internal Server Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } } }, - "400": { - "description": "Bad Request", + "401": { + "description": "Unauthorized", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } } }, "422": { @@ -2466,10 +2566,6 @@ "description": "Forbidden", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } } }, - "401": { - "description": "Unauthorized", - "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } } - }, "502": { "description": "Bad Gateway", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } } @@ -2567,12 +2663,16 @@ } ], "responses": { + "400": { + "description": "Bad Request", + "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } } + }, "500": { "description": "Internal Server Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } } }, - "400": { - "description": "Bad Request", + "401": { + "description": "Unauthorized", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } } }, "422": { @@ -2583,10 +2683,6 @@ "description": "Forbidden", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } } }, - "401": { - "description": "Unauthorized", - "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } } - }, "502": { "description": "Bad Gateway", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } } @@ -2620,12 +2716,16 @@ } ], "responses": { + "400": { + "description": "Bad Request", + "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } } + }, "500": { "description": "Internal Server Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } } }, - "400": { - "description": "Bad Request", + "401": { + "description": "Unauthorized", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } } }, "422": { @@ -2636,10 +2736,6 @@ "description": "Forbidden", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } } }, - "401": { - "description": "Unauthorized", - "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } } - }, "502": { "description": "Bad Gateway", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } } @@ -2737,12 +2833,16 @@ } ], "responses": { + "400": { + "description": "Bad Request", + "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } } + }, "500": { "description": "Internal Server Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } } }, - "400": { - "description": "Bad Request", + "401": { + "description": "Unauthorized", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } } }, "422": { @@ -2750,11 +2850,7 @@ "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } } }, "403": { - "description": "Forbidden", - "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } } - }, - "401": { - "description": "Unauthorized", + "description": "Forbidden", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } } }, "502": { @@ -2790,12 +2886,16 @@ } ], "responses": { + "400": { + "description": "Bad Request", + "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } } + }, "500": { "description": "Internal Server Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } } }, - "400": { - "description": "Bad Request", + "401": { + "description": "Unauthorized", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } } }, "422": { @@ -2806,10 +2906,6 @@ "description": "Forbidden", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } } }, - "401": { - "description": "Unauthorized", - "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } } - }, "502": { "description": "Bad Gateway", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } } @@ -2840,12 +2936,16 @@ } ], "responses": { + "400": { + "description": "Bad Request", + "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } } + }, "500": { "description": "Internal Server Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } } }, - "400": { - "description": "Bad Request", + "401": { + "description": "Unauthorized", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } } }, "422": { @@ -2856,10 +2956,6 @@ "description": "Forbidden", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } } }, - "401": { - "description": "Unauthorized", - "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } } - }, "502": { "description": "Bad Gateway", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } } @@ -2909,12 +3005,16 @@ } ], "responses": { + "400": { + "description": "Bad Request", + "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } } + }, "500": { "description": "Internal Server Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } } }, - "400": { - "description": "Bad Request", + "401": { + "description": "Unauthorized", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } } }, "422": { @@ -2925,10 +3025,6 @@ "description": "Forbidden", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } } }, - "401": { - "description": "Unauthorized", - "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } } - }, "502": { "description": "Bad Gateway", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } } @@ -2971,12 +3067,16 @@ } ], "responses": { + "400": { + "description": "Bad Request", + "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } } + }, "500": { "description": "Internal Server Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } } }, - "400": { - "description": "Bad Request", + "401": { + "description": "Unauthorized", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } } }, "422": { @@ -2987,10 +3087,6 @@ "description": "Forbidden", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } } }, - "401": { - "description": "Unauthorized", - "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } } - }, "502": { "description": "Bad Gateway", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } } @@ -3069,12 +3165,16 @@ } ], "responses": { + "400": { + "description": "Bad Request", + "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } } + }, "500": { "description": "Internal Server Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } } }, - "400": { - "description": "Bad Request", + "401": { + "description": "Unauthorized", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } } }, "422": { @@ -3085,10 +3185,6 @@ "description": "Forbidden", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } } }, - "401": { - "description": "Unauthorized", - "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } } - }, "502": { "description": "Bad Gateway", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } } @@ -3110,12 +3206,16 @@ "description": "Check health of API service and backend systems.<br>Required role:<b> admin</b> or <b>csp</b> or <b>isv</b> or <b>user</b>", "operationId": "healthCheck", "responses": { + "400": { + "description": "Bad Request", + "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } } + }, "500": { "description": "Internal Server Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } } }, - "400": { - "description": "Bad Request", + "401": { + "description": "Unauthorized", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } } }, "422": { @@ -3126,10 +3226,6 @@ "description": "Forbidden", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } } }, - "401": { - "description": "Unauthorized", - "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } } - }, "502": { "description": "Bad Gateway", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } } @@ -3147,12 +3243,16 @@ "description": "List cloud service providers with active plugin.<br>Required role:<b> admin</b> or <b>csp</b> or <b>isv</b> or <b>user</b>", "operationId": "getActiveCsps", "responses": { + "400": { + "description": "Bad Request", + "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } } + }, "500": { "description": "Internal Server Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } } }, - "400": { - "description": "Bad Request", + "401": { + "description": "Unauthorized", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } } }, "422": { @@ -3163,10 +3263,6 @@ "description": "Forbidden", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } } }, - "401": { - "description": "Unauthorized", - "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } } - }, "502": { "description": "Bad Gateway", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } } @@ -3254,16 +3350,23 @@ "in": "query", "description": "state of registration", "required": false, - "schema": { "type": "string", "enum": ["approval pending", "approved", "rejected"] } + "schema": { + "type": "string", + "enum": ["unregistered", "approval pending", "approved", "rejected"] + } } ], "responses": { + "400": { + "description": "Bad Request", + "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } } + }, "500": { "description": "Internal Server Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } } }, - "400": { - "description": "Bad Request", + "401": { + "description": "Unauthorized", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } } }, "422": { @@ -3274,10 +3377,6 @@ "description": "Forbidden", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } } }, - "401": { - "description": "Unauthorized", - "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } } - }, "502": { "description": "Bad Gateway", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } } @@ -3311,12 +3410,16 @@ } ], "responses": { + "400": { + "description": "Bad Request", + "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } } + }, "500": { "description": "Internal Server Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } } }, - "400": { - "description": "Bad Request", + "401": { + "description": "Unauthorized", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } } }, "422": { @@ -3327,10 +3430,6 @@ "description": "Forbidden", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } } }, - "401": { - "description": "Unauthorized", - "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } } - }, "502": { "description": "Bad Gateway", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } } @@ -3399,12 +3498,16 @@ } ], "responses": { + "400": { + "description": "Bad Request", + "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } } + }, "500": { "description": "Internal Server Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } } }, - "400": { - "description": "Bad Request", + "401": { + "description": "Unauthorized", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } } }, "422": { @@ -3415,10 +3518,6 @@ "description": "Forbidden", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } } }, - "401": { - "description": "Unauthorized", - "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } } - }, "502": { "description": "Bad Gateway", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } } @@ -3466,12 +3565,16 @@ } ], "responses": { + "400": { + "description": "Bad Request", + "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } } + }, "500": { "description": "Internal Server Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } } }, - "400": { - "description": "Bad Request", + "401": { + "description": "Unauthorized", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } } }, "422": { @@ -3482,10 +3585,6 @@ "description": "Forbidden", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } } }, - "401": { - "description": "Unauthorized", - "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } } - }, "502": { "description": "Bad Gateway", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } } @@ -3536,12 +3635,16 @@ } ], "responses": { + "400": { + "description": "Bad Request", + "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } } + }, "500": { "description": "Internal Server Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } } }, - "400": { - "description": "Bad Request", + "401": { + "description": "Unauthorized", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } } }, "422": { @@ -3552,10 +3655,6 @@ "description": "Forbidden", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } } }, - "401": { - "description": "Unauthorized", - "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } } - }, "502": { "description": "Bad Gateway", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } } @@ -3611,12 +3710,16 @@ } ], "responses": { + "400": { + "description": "Bad Request", + "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } } + }, "500": { "description": "Internal Server Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } } }, - "400": { - "description": "Bad Request", + "401": { + "description": "Unauthorized", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } } }, "422": { @@ -3627,10 +3730,6 @@ "description": "Forbidden", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } } }, - "401": { - "description": "Unauthorized", - "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } } - }, "502": { "description": "Bad Gateway", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } } @@ -3676,12 +3775,16 @@ } ], "responses": { + "400": { + "description": "Bad Request", + "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } } + }, "500": { "description": "Internal Server Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } } }, - "400": { - "description": "Bad Request", + "401": { + "description": "Unauthorized", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } } }, "422": { @@ -3692,10 +3795,6 @@ "description": "Forbidden", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } } }, - "401": { - "description": "Unauthorized", - "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } } - }, "502": { "description": "Bad Gateway", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } } @@ -3790,12 +3889,16 @@ } ], "responses": { + "400": { + "description": "Bad Request", + "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } } + }, "500": { "description": "Internal Server Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } } }, - "400": { - "description": "Bad Request", + "401": { + "description": "Unauthorized", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } } }, "422": { @@ -3806,10 +3909,6 @@ "description": "Forbidden", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } } }, - "401": { - "description": "Unauthorized", - "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } } - }, "502": { "description": "Bad Gateway", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } } @@ -3849,12 +3948,16 @@ } ], "responses": { + "400": { + "description": "Bad Request", + "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } } + }, "500": { "description": "Internal Server Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } } }, - "400": { - "description": "Bad Request", + "401": { + "description": "Unauthorized", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } } }, "422": { @@ -3865,10 +3968,6 @@ "description": "Forbidden", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } } }, - "401": { - "description": "Unauthorized", - "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } } - }, "502": { "description": "Bad Gateway", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } } @@ -3889,12 +3988,16 @@ "operationId": "openApi", "parameters": [{ "name": "id", "in": "path", "required": true, "schema": { "type": "string" } }], "responses": { + "400": { + "description": "Bad Request", + "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } } + }, "500": { "description": "Internal Server Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } } }, - "400": { - "description": "Bad Request", + "401": { + "description": "Unauthorized", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } } }, "422": { @@ -3905,10 +4008,6 @@ "description": "Forbidden", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } } }, - "401": { - "description": "Unauthorized", - "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } } - }, "502": { "description": "Bad Gateway", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } } @@ -3942,12 +4041,16 @@ } ], "responses": { + "400": { + "description": "Bad Request", + "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } } + }, "500": { "description": "Internal Server Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } } }, - "400": { - "description": "Bad Request", + "401": { + "description": "Unauthorized", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } } }, "422": { @@ -3958,10 +4061,6 @@ "description": "Forbidden", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } } }, - "401": { - "description": "Unauthorized", - "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } } - }, "502": { "description": "Bad Gateway", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } } @@ -3981,12 +4080,16 @@ "description": "Get and redirect authorization url for user to authenticate.", "operationId": "authorize", "responses": { + "400": { + "description": "Bad Request", + "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } } + }, "500": { "description": "Internal Server Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } } }, - "400": { - "description": "Bad Request", + "401": { + "description": "Unauthorized", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } } }, "422": { @@ -3997,10 +4100,6 @@ "description": "Forbidden", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } } }, - "401": { - "description": "Unauthorized", - "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } } - }, "502": { "description": "Bad Gateway", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } } @@ -4016,12 +4115,16 @@ "operationId": "destroy", "parameters": [{ "name": "id", "in": "path", "required": true, "schema": { "type": "string" } }], "responses": { + "400": { + "description": "Bad Request", + "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } } + }, "500": { "description": "Internal Server Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } } }, - "400": { - "description": "Bad Request", + "401": { + "description": "Unauthorized", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } } }, "422": { @@ -4032,10 +4135,6 @@ "description": "Forbidden", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } } }, - "401": { - "description": "Unauthorized", - "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } } - }, "502": { "description": "Bad Gateway", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } } @@ -4054,12 +4153,16 @@ "operationId": "purge", "parameters": [{ "name": "id", "in": "path", "required": true, "schema": { "type": "string" } }], "responses": { + "400": { + "description": "Bad Request", + "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } } + }, "500": { "description": "Internal Server Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } } }, - "400": { - "description": "Bad Request", + "401": { + "description": "Unauthorized", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } } }, "422": { @@ -4070,10 +4173,6 @@ "description": "Forbidden", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } } }, - "401": { - "description": "Unauthorized", - "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } } - }, "502": { "description": "Bad Gateway", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } } @@ -4125,6 +4224,7 @@ "Resource Not Found", "Deployment Variable Invalid", "Service Template Update Not Allowed", + "Service Template Still In Use", "Unauthorized", "Access Denied", "Sensitive Field Encryption Or Decryption Failed Exception", @@ -4235,7 +4335,7 @@ }, "ServiceLockConfig": { "type": "object", - "properties": { "destroyLocked": { "type": "boolean" }, "modifyLocked": { "type": "boolean" } } + "properties": { "modifyLocked": { "type": "boolean" }, "destroyLocked": { "type": "boolean" } } }, "AutoFill": { "required": ["deployResourceKind", "isAllowCreate"], @@ -4730,7 +4830,7 @@ "serviceRegistrationState": { "type": "string", "description": "State of registered service template.", - "enum": ["approval pending", "approved", "rejected"] + "enum": ["unregistered", "approval pending", "approved", "rejected"] }, "reviewComment": { "type": "string", "description": "Comment of reviewed service template." }, "serviceProviderContactDetails": { "$ref": "#/components/schemas/ServiceProviderContactDetails" }, diff --git a/src/xpanse-api/generated/core/OpenAPI.ts b/src/xpanse-api/generated/core/OpenAPI.ts index cdb0183a6..94cdfab35 100644 --- a/src/xpanse-api/generated/core/OpenAPI.ts +++ b/src/xpanse-api/generated/core/OpenAPI.ts @@ -26,7 +26,7 @@ export type OpenAPIConfig = { export const OpenAPI: OpenAPIConfig = { BASE: 'http://localhost:8080', - VERSION: '1.0.14-SNAPSHOT', + VERSION: '1.0.16-SNAPSHOT', WITH_CREDENTIALS: false, CREDENTIALS: 'include', TOKEN: undefined, diff --git a/src/xpanse-api/generated/models/Response.ts b/src/xpanse-api/generated/models/Response.ts index 6d5f2adbc..e6e190296 100644 --- a/src/xpanse-api/generated/models/Response.ts +++ b/src/xpanse-api/generated/models/Response.ts @@ -55,6 +55,7 @@ export namespace Response { RESOURCE_NOT_FOUND = 'Resource Not Found', DEPLOYMENT_VARIABLE_INVALID = 'Deployment Variable Invalid', SERVICE_TEMPLATE_UPDATE_NOT_ALLOWED = 'Service Template Update Not Allowed', + SERVICE_TEMPLATE_STILL_IN_USE = 'Service Template Still In Use', UNAUTHORIZED = 'Unauthorized', ACCESS_DENIED = 'Access Denied', SENSITIVE_FIELD_ENCRYPTION_OR_DECRYPTION_FAILED_EXCEPTION = 'Sensitive Field Encryption Or Decryption Failed Exception', diff --git a/src/xpanse-api/generated/models/ServiceLockConfig.ts b/src/xpanse-api/generated/models/ServiceLockConfig.ts index 9698d0bf6..661390ee6 100644 --- a/src/xpanse-api/generated/models/ServiceLockConfig.ts +++ b/src/xpanse-api/generated/models/ServiceLockConfig.ts @@ -8,6 +8,6 @@ /* tslint:disable */ /* eslint-disable */ export type ServiceLockConfig = { - destroyLocked?: boolean; modifyLocked?: boolean; + destroyLocked?: boolean; }; diff --git a/src/xpanse-api/generated/models/ServiceTemplateDetailVo.ts b/src/xpanse-api/generated/models/ServiceTemplateDetailVo.ts index abcd31b95..faec101d8 100644 --- a/src/xpanse-api/generated/models/ServiceTemplateDetailVo.ts +++ b/src/xpanse-api/generated/models/ServiceTemplateDetailVo.ts @@ -125,6 +125,7 @@ export namespace ServiceTemplateDetailVo { * State of registered service template. */ export enum serviceRegistrationState { + UNREGISTERED = 'unregistered', APPROVAL_PENDING = 'approval pending', APPROVED = 'approved', REJECTED = 'rejected', diff --git a/src/xpanse-api/generated/services/CloudServiceProviderService.ts b/src/xpanse-api/generated/services/CloudServiceProviderService.ts index eef13ac1d..bccb0e8a9 100644 --- a/src/xpanse-api/generated/services/CloudServiceProviderService.ts +++ b/src/xpanse-api/generated/services/CloudServiceProviderService.ts @@ -64,7 +64,7 @@ export class CloudServiceProviderService { serviceName?: string, serviceVersion?: string, serviceHostingType?: 'self' | 'service-vendor', - serviceRegistrationState?: 'approval pending' | 'approved' | 'rejected' + serviceRegistrationState?: 'unregistered' | 'approval pending' | 'approved' | 'rejected' ): CancelablePromise<Array<ServiceTemplateDetailVo>> { return __request(OpenAPI, { method: 'GET', diff --git a/src/xpanse-api/generated/services/ServiceVendorService.ts b/src/xpanse-api/generated/services/ServiceVendorService.ts index b803344ba..2264ce474 100644 --- a/src/xpanse-api/generated/services/ServiceVendorService.ts +++ b/src/xpanse-api/generated/services/ServiceVendorService.ts @@ -11,7 +11,6 @@ import type { CancelablePromise } from '../core/CancelablePromise'; import { OpenAPI } from '../core/OpenAPI'; import { request as __request } from '../core/request'; import type { Ocl } from '../models/Ocl'; -import type { Response } from '../models/Response'; import type { ServiceTemplateDetailVo } from '../models/ServiceTemplateDetailVo'; export class ServiceVendorService { /** @@ -64,12 +63,12 @@ export class ServiceVendorService { }); } /** - * Delete service template using id.<br>Required role:<b> admin</b> or <b>isv</b> + * Delete unregistered service template using id.<br>Required role:<b> admin</b> or <b>isv</b> * @param id id of service template - * @returns Response OK + * @returns void * @throws ApiError */ - public static unregister(id: string): CancelablePromise<Response> { + public static deleteServiceTemplate(id: string): CancelablePromise<void> { return __request(OpenAPI, { method: 'DELETE', url: '/xpanse/service_templates/{id}', @@ -86,6 +85,52 @@ export class ServiceVendorService { }, }); } + /** + * Unregister service template using id.<br>Required role:<b> admin</b> or <b>isv</b> + * @param id id of service template + * @returns ServiceTemplateDetailVo OK + * @throws ApiError + */ + public static unregister(id: string): CancelablePromise<ServiceTemplateDetailVo> { + return __request(OpenAPI, { + method: 'PUT', + url: '/xpanse/service_templates/unregister/{id}', + path: { + id: id, + }, + errors: { + 400: `Bad Request`, + 401: `Unauthorized`, + 403: `Forbidden`, + 422: `Unprocessable Entity`, + 500: `Internal Server Error`, + 502: `Bad Gateway`, + }, + }); + } + /** + * Re-register the unregistered service template using id.<br>Required role:<b> admin</b> or <b>isv</b> + * @param id id of service template + * @returns ServiceTemplateDetailVo OK + * @throws ApiError + */ + public static reRegisterServiceTemplate(id: string): CancelablePromise<ServiceTemplateDetailVo> { + return __request(OpenAPI, { + method: 'PUT', + url: '/xpanse/service_templates/re-register/{id}', + path: { + id: id, + }, + errors: { + 400: `Bad Request`, + 401: `Unauthorized`, + 403: `Forbidden`, + 422: `Unprocessable Entity`, + 500: `Internal Server Error`, + 502: `Bad Gateway`, + }, + }); + } /** * Update service template using id and URL of Ocl file.<br>Required role:<b> admin</b> or <b>isv</b> * @param id id of service template @@ -140,7 +185,7 @@ export class ServiceVendorService { serviceName?: string, serviceVersion?: string, serviceHostingType?: 'self' | 'service-vendor', - serviceRegistrationState?: 'approval pending' | 'approved' | 'rejected' + serviceRegistrationState?: 'unregistered' | 'approval pending' | 'approved' | 'rejected' ): CancelablePromise<Array<ServiceTemplateDetailVo>> { return __request(OpenAPI, { method: 'GET',