Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Update OpenAPI] Merge openapi uat using openapi-merge-cli #377

Merged
merged 1 commit into from
Sep 20, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
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