Skip to content

Commit

Permalink
[Update OpenAPI] Merge openapi uat using openapi-merge-cli (#377)
Browse files Browse the repository at this point in the history
Co-authored-by: manuraf <[email protected]>
  • Loading branch information
selfcare-github-bot and manuraf authored Sep 20, 2024
1 parent 8cfbc00 commit 48ca960
Show file tree
Hide file tree
Showing 4 changed files with 165 additions and 100 deletions.
34 changes: 6 additions & 28 deletions infra/apim_v2/api/ms_internal_api/v1/openapi.uat.json
Original file line number Diff line number Diff line change
Expand Up @@ -624,7 +624,8 @@
"/onboarding/{onboardingId}/complete": {
"put": {
"tags": [],
"summary": "Perform complete operation of an onboarding request receiving onboarding id and contract signed by the institution.It checks the contract's signature and upload the contract on an azure storageAt the end, function triggers async activities related to complete onboarding that consist of create the institution, activate the onboarding and sending data to notification queue.",
"summary": "Complete onboarding by verifying and uploading contract, then trigger async activities.",
"description": "Perform complete operation of an onboarding request receiving onboarding id and contract signed by the institution.It checks the contract's signature and upload the contract on an azure storageAt the end, function triggers async activities related to complete onboarding that consist of create the institution, activate the onboarding and sending data to notification queue.",
"operationId": "completeOnboardingUsingPUT",
"parameters": [
{
Expand Down Expand Up @@ -682,7 +683,8 @@
"tags": [
"Onboarding"
],
"summary": "Perform complete operation of an onboarding request as /complete but without signature verification of the contract",
"summary": "Complete onboarding without verifying contract signature.",
"description": "Perform complete operation of an onboarding request as /complete but without signature verification of the contract",
"operationId": "completeOnboardingTokenConsume",
"parameters": [
{
Expand Down Expand Up @@ -771,19 +773,7 @@
"type": "string"
},
"institutionType": {
"type": "string",
"enum": [
"AS",
"CON",
"GSP",
"PA",
"PG",
"PSP",
"PT",
"REC",
"SA",
"SCP"
]
"type": "string"
},
"productId": {
"type": "string"
Expand Down Expand Up @@ -965,19 +955,7 @@
"type": "boolean"
},
"institutionType": {
"type": "string",
"enum": [
"AS",
"CON",
"GSP",
"PA",
"PG",
"PSP",
"PT",
"REC",
"SA",
"SCP"
]
"type": "string"
},
"istatCode": {
"type": "string"
Expand Down
77 changes: 31 additions & 46 deletions infra/apim_v2/api/selfcare_support_service/v1/openapi.uat.json
Original file line number Diff line number Diff line change
Expand Up @@ -908,7 +908,8 @@
"tags": [
"Onboarding"
],
"summary": "Returns onboardings record by institution taxCode/subunitCode/origin/originId",
"summary": "Get onboardings by institution taxCode, subunitCode, origin, or originId.",
"description": "Returns onboardings record by institution taxCode/subunitCode/origin/originId",
"operationId": "onboardingInstitutionUsingGET",
"parameters": [
{
Expand Down Expand Up @@ -982,7 +983,8 @@
"tags": [
"Onboarding"
],
"summary": "Perform complete operation of an onboarding request as /complete but without signature verification of the contract",
"summary": "Complete onboarding without verifying contract signature.",
"description": "Perform complete operation of an onboarding request as /complete but without signature verification of the contract",
"operationId": "completeOnboardingTokenConsume",
"parameters": [
{
Expand Down Expand Up @@ -1040,7 +1042,8 @@
"tags": [
"Onboarding"
],
"summary": "Update onboarding request receiving onboarding id.Function can change some values. ",
"summary": "Update onboarding request with new values.",
"description": "Update onboarding request receiving onboarding id.Function can change some values.",
"operationId": "updateOnboardiUsingPUT",
"parameters": [
{
Expand Down Expand Up @@ -1283,19 +1286,7 @@
"type": "string"
},
"institutionType": {
"type": "string",
"enum": [
"AS",
"CON",
"GSP",
"PA",
"PG",
"PSP",
"PT",
"REC",
"SA",
"SCP"
]
"type": "string"
},
"productId": {
"type": "string"
Expand Down Expand Up @@ -1454,19 +1445,7 @@
"type": "boolean"
},
"institutionType": {
"type": "string",
"enum": [
"AS",
"CON",
"GSP",
"PA",
"PG",
"PSP",
"PT",
"REC",
"SA",
"SCP"
]
"type": "string"
},
"istatCode": {
"type": "string"
Expand Down Expand Up @@ -2520,7 +2499,7 @@
"type": "string"
},
"institutionType": {
"$ref": "#/components/schemas/InstitutionType"
"type": "string"
},
"taxCode": {
"type": "string"
Expand Down Expand Up @@ -2593,22 +2572,6 @@
}
}
},
"InstitutionType": {
"enum": [
"PA",
"PG",
"GSP",
"SA",
"PT",
"SCP",
"PSP",
"AS",
"REC",
"CON",
"PRV"
],
"type": "string"
},
"InstitutionPaSubunitType": {
"enum": [
"AOO",
Expand Down Expand Up @@ -2862,6 +2825,12 @@
},
"origin": {
"$ref": "#/components/schemas/Origin"
},
"users": {
"type": "array",
"items": {
"$ref": "#/components/schemas/UserRequest"
}
}
}
},
Expand Down Expand Up @@ -2949,6 +2918,22 @@
}
}
},
"InstitutionType": {
"enum": [
"PA",
"PG",
"GSP",
"SA",
"PT",
"SCP",
"PSP",
"AS",
"REC",
"CON",
"PRV"
],
"type": "string"
},
"BillingRequest1": {
"type": "object",
"properties": {
Expand Down
14 changes: 1 addition & 13 deletions infra/apim_v2/api_pnpg/external_api_for_pnpg/v2/openapi.uat.json
Original file line number Diff line number Diff line change
Expand Up @@ -775,19 +775,7 @@
"type": "boolean"
},
"institutionType": {
"type": "string",
"enum": [
"AS",
"CON",
"GSP",
"PA",
"PG",
"PSP",
"PT",
"REC",
"SA",
"SCP"
]
"type": "string"
},
"istatCode": {
"type": "string"
Expand Down
140 changes: 127 additions & 13 deletions infra/apim_v2/api_pnpg/pnpg_support_service/v1/openapi.uat.json
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,98 @@
]
}
},
"/users/{id}": {
"get": {
"tags": [
"User"
],
"summary": "Retrieves user given userId and optional ProductId",
"operationId": "getUserInfoUsingGET",
"parameters": [
{
"name": "id",
"in": "path",
"required": true,
"schema": {
"type": "string"
}
},
{
"name": "institutionId",
"in": "query",
"schema": {
"type": "string"
}
},
{
"name": "productId",
"in": "query",
"schema": {
"type": "string"
}
}
],
"responses": {
"200": {
"description": "OK",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/UserResponse"
}
}
}
},
"400": {
"description": "Bad Request",
"content": {
"application/problem+json": {
"schema": {
"$ref": "#/components/schemas/Problem1"
}
}
}
},
"401": {
"description": "Not Authorized",
"content": {
"application/problem+json": {
"schema": {
"$ref": "#/components/schemas/Problem1"
}
}
}
},
"403": {
"description": "Forbidden",
"content": {
"application/problem+json": {
"schema": {
"$ref": "#/components/schemas/Problem1"
}
}
}
},
"404": {
"description": "Not Found",
"content": {
"application/problem+json": {
"schema": {
"$ref": "#/components/schemas/Problem1"
}
}
}
}
},
"security": [
{
"bearerAuth": [
"global"
]
}
]
}
},
"/national-registries/legal-tax/verification": {
"post": {
"tags": [
Expand Down Expand Up @@ -584,19 +676,7 @@
"type": "boolean"
},
"institutionType": {
"type": "string",
"enum": [
"AS",
"CON",
"GSP",
"PA",
"PG",
"PSP",
"PT",
"REC",
"SA",
"SCP"
]
"type": "string"
},
"istatCode": {
"type": "string"
Expand Down Expand Up @@ -956,6 +1036,40 @@
}
}
},
"UserResponse": {
"required": [
"id",
"name",
"surname"
],
"type": "object",
"properties": {
"id": {
"minLength": 1,
"type": "string"
},
"taxCode": {
"type": "string"
},
"name": {
"pattern": "\\S",
"type": "string"
},
"surname": {
"pattern": "\\S",
"type": "string"
},
"email": {
"type": "string"
},
"workContacts": {
"type": "object",
"additionalProperties": {
"type": "string"
}
}
}
},
"LegalVerificationResource": {
"title": "LegalVerificationResource",
"type": "object",
Expand Down

0 comments on commit 48ca960

Please sign in to comment.