generated from pagopa/pagopa-functions-template
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[SELC-5401] docs: Enable release onboarding-functions OpenAPI docs on…
… storage (#447)
- Loading branch information
Showing
6 changed files
with
167 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
137 changes: 137 additions & 0 deletions
137
apps/onboarding-functions/src/main/openapi/openapi.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,137 @@ | ||
{ | ||
"openapi": "3.0.3", | ||
"info": { | ||
"title": "Onboarding Functions API", | ||
"description": "Onboarding Functions API", | ||
"version": "1.0.0" | ||
}, | ||
"servers": [ | ||
{ | ||
"url": "https://${host}/${basePath}" | ||
} | ||
], | ||
"paths": { | ||
"/api/ResendNotification": { | ||
"post": { | ||
"tags": [ | ||
"Notification", "support" | ||
], | ||
"operationId": "sendOnboardigNotificationUsingPOST", | ||
"summary": "", | ||
"description": "", | ||
"parameters": [ | ||
{ | ||
"name": "onboardingId", | ||
"in": "query", | ||
"description": "Onboarding Id", | ||
"required": true, | ||
"schema": { | ||
"type": "string" | ||
} | ||
} | ||
], | ||
"responses": { | ||
"202": { | ||
"description": "", | ||
"content": { | ||
"application/json": {} | ||
} | ||
} | ||
}, | ||
"security": [ | ||
{ | ||
"bearerAuth": [ | ||
"global" | ||
] | ||
} | ||
] | ||
} | ||
}, | ||
"/api/onboardings/notifications/count": { | ||
"get": { | ||
"tags": [ | ||
"Notification", "support" | ||
], | ||
"summary": "Count notifications by filters", | ||
"description": "Performs for every product a count of relative onboarding notifications sent", | ||
"operationId": "countNotificationsUsingGET", | ||
"parameters": [ | ||
{ | ||
"name": "from", | ||
"in": "query", | ||
"description": "from date (in YYYY-MM-DD format)", | ||
"required": false, | ||
"schema": { | ||
"type": "string" | ||
} | ||
}, | ||
{ | ||
"name": "to", | ||
"in": "query", | ||
"description": "to date (in YYYY-MM-DD format)", | ||
"required": false, | ||
"schema": { | ||
"type": "string" | ||
} | ||
}, | ||
{ | ||
"name": "productId", | ||
"in": "query", | ||
"description": "productId", | ||
"required": false, | ||
"schema": { | ||
"type": "string" | ||
} | ||
} | ||
], | ||
"responses": { | ||
"200": { | ||
"description": "OK", | ||
"content": { | ||
"application/json": { | ||
"schema": { | ||
"type": "array", | ||
"items": { | ||
"$ref": "#/components/schemas/NotificationCountResult" | ||
} | ||
} | ||
} | ||
} | ||
} | ||
}, | ||
"security": [ | ||
{ | ||
"bearerAuth": [ | ||
"global" | ||
] | ||
} | ||
] | ||
} | ||
} | ||
}, | ||
"components": { | ||
"schemas": { | ||
"NotificationCountResult": { | ||
"title": "NotificationCountResult", | ||
"type": "object", | ||
"properties": { | ||
"notificationCount": { | ||
"type": "integer", | ||
"format": "int32" | ||
}, | ||
"productId": { | ||
"type": "string" | ||
} | ||
} | ||
} | ||
}, | ||
"securitySchemes": { | ||
"bearerAuth": { | ||
"type": "http", | ||
"description": "A bearer token in the format of a JWS and conformed to the specifications included in [RFC8725](https://tools.ietf.org/html/RFC8725)", | ||
"scheme": "bearer", | ||
"bearerFormat": "JWT" | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters