From c74400baa60e2e8f19b3f323d870234c4e094e15 Mon Sep 17 00:00:00 2001 From: Moti Asayag Date: Tue, 23 May 2023 15:34:49 +0300 Subject: [PATCH] Add generated SDK code Signed-off-by: Moti Asayag --- notification-service-sdk/api/openapi.yaml | 26 +++++++- .../docs/NotificationMessageApi.md | 1 + .../docs/NotificationRecordApi.md | 3 + .../sdk/api/NotificationMessageApi.java | 20 +++++++ .../sdk/api/NotificationRecordApi.java | 60 +++++++++++++++++++ 5 files changed, 109 insertions(+), 1 deletion(-) diff --git a/notification-service-sdk/api/openapi.yaml b/notification-service-sdk/api/openapi.yaml index b49348203..bfe256db8 100644 --- a/notification-service-sdk/api/openapi.yaml +++ b/notification-service-sdk/api/openapi.yaml @@ -32,6 +32,12 @@ paths: schema: $ref: '#/components/schemas/ErrorMessageDTO' description: Bad Request + "404": + content: + '*/*': + schema: + $ref: '#/components/schemas/ErrorMessageDTO' + description: Not Found tags: - Notification Message x-content-type: application/json @@ -113,6 +119,12 @@ paths: schema: $ref: '#/components/schemas/PageNotificationRecordResponseDTO' description: Forbidden + "404": + content: + '*/*': + schema: + $ref: '#/components/schemas/ErrorMessageDTO' + description: Not Found summary: Return a list of notification records for the user tags: - Notification Record @@ -159,6 +171,12 @@ paths: format: int32 type: integer description: Forbidden + "404": + content: + '*/*': + schema: + $ref: '#/components/schemas/ErrorMessageDTO' + description: Not Found summary: Return the number of the unread notification records for the user tags: - Notification Record @@ -188,6 +206,12 @@ paths: description: Unauthorized "403": description: Forbidden + "404": + content: + '*/*': + schema: + $ref: '#/components/schemas/ErrorMessageDTO' + description: Not Found summary: Delete the specified notification record tags: - Notification Record @@ -236,7 +260,7 @@ paths: content: '*/*': schema: - $ref: '#/components/schemas/NotificationRecordResponseDTO' + $ref: '#/components/schemas/ErrorMessageDTO' description: Not found summary: Update the specified notification record with user operation tags: diff --git a/notification-service-sdk/docs/NotificationMessageApi.md b/notification-service-sdk/docs/NotificationMessageApi.md index a0a443aa8..83a4d5d90 100644 --- a/notification-service-sdk/docs/NotificationMessageApi.md +++ b/notification-service-sdk/docs/NotificationMessageApi.md @@ -66,4 +66,5 @@ No authorization required |-------------|-------------|------------------| | **201** | Created | - | | **400** | Bad Request | - | +| **404** | Not Found | - | diff --git a/notification-service-sdk/docs/NotificationRecordApi.md b/notification-service-sdk/docs/NotificationRecordApi.md index 0a6385c22..76836a086 100644 --- a/notification-service-sdk/docs/NotificationRecordApi.md +++ b/notification-service-sdk/docs/NotificationRecordApi.md @@ -72,6 +72,7 @@ No authorization required | **400** | Bad Request | - | | **401** | Unauthorized | - | | **403** | Forbidden | - | +| **404** | Not Found | - | # **deleteNotification** @@ -134,6 +135,7 @@ No authorization required | **400** | Bad Request | - | | **401** | Unauthorized | - | | **403** | Forbidden | - | +| **404** | Not Found | - | # **getNotifications** @@ -205,6 +207,7 @@ No authorization required | **400** | Bad request | - | | **401** | Unauthorized | - | | **403** | Forbidden | - | +| **404** | Not Found | - | # **updateNotificationStatusById** diff --git a/notification-service-sdk/src/main/java/com/redhat/parodos/notification/sdk/api/NotificationMessageApi.java b/notification-service-sdk/src/main/java/com/redhat/parodos/notification/sdk/api/NotificationMessageApi.java index 33f813a38..7556dedb3 100644 --- a/notification-service-sdk/src/main/java/com/redhat/parodos/notification/sdk/api/NotificationMessageApi.java +++ b/notification-service-sdk/src/main/java/com/redhat/parodos/notification/sdk/api/NotificationMessageApi.java @@ -82,6 +82,11 @@ public void setCustomBaseUrl(String customBaseUrl) { * Bad Request * - * + * + * 404 + * Not Found + * - + * * */ public okhttp3.Call createCall(NotificationMessageCreateRequestDTO notificationMessageCreateRequestDTO, @@ -165,6 +170,11 @@ private okhttp3.Call createValidateBeforeCall( * Bad Request * - * + * + * 404 + * Not Found + * - + * * */ public void create(NotificationMessageCreateRequestDTO notificationMessageCreateRequestDTO) throws ApiException { @@ -193,6 +203,11 @@ public void create(NotificationMessageCreateRequestDTO notificationMessageCreate * Bad Request * - * + * + * 404 + * Not Found + * - + * * */ public ApiResponse createWithHttpInfo(NotificationMessageCreateRequestDTO notificationMessageCreateRequestDTO) @@ -225,6 +240,11 @@ public ApiResponse createWithHttpInfo(NotificationMessageCreateRequestDTO * Bad Request * - * + * + * 404 + * Not Found + * - + * * */ public okhttp3.Call createAsync(NotificationMessageCreateRequestDTO notificationMessageCreateRequestDTO, diff --git a/notification-service-sdk/src/main/java/com/redhat/parodos/notification/sdk/api/NotificationRecordApi.java b/notification-service-sdk/src/main/java/com/redhat/parodos/notification/sdk/api/NotificationRecordApi.java index 485e3c399..dc308f0df 100644 --- a/notification-service-sdk/src/main/java/com/redhat/parodos/notification/sdk/api/NotificationRecordApi.java +++ b/notification-service-sdk/src/main/java/com/redhat/parodos/notification/sdk/api/NotificationRecordApi.java @@ -96,6 +96,11 @@ public void setCustomBaseUrl(String customBaseUrl) { * Forbidden * - * + * + * 404 + * Not Found + * - + * * */ public okhttp3.Call countUnreadNotificationsCall(String state, final ApiCallback _callback) throws ApiException { @@ -193,6 +198,11 @@ private okhttp3.Call countUnreadNotificationsValidateBeforeCall(String state, fi * Forbidden * - * + * + * 404 + * Not Found + * - + * * */ public Integer countUnreadNotifications(String state) throws ApiException { @@ -233,6 +243,11 @@ public Integer countUnreadNotifications(String state) throws ApiException { * Forbidden * - * + * + * 404 + * Not Found + * - + * * */ public ApiResponse countUnreadNotificationsWithHttpInfo(String state) throws ApiException { @@ -276,6 +291,11 @@ public ApiResponse countUnreadNotificationsWithHttpInfo(String state) t * Forbidden * - * + * + * 404 + * Not Found + * - + * * */ public okhttp3.Call countUnreadNotificationsAsync(String state, final ApiCallback _callback) @@ -321,6 +341,11 @@ public okhttp3.Call countUnreadNotificationsAsync(String state, final ApiCallbac * Forbidden * - * + * + * 404 + * Not Found + * - + * * */ public okhttp3.Call deleteNotificationCall(UUID id, final ApiCallback _callback) throws ApiException { @@ -413,6 +438,11 @@ private okhttp3.Call deleteNotificationValidateBeforeCall(UUID id, final ApiCall * Forbidden * - * + * + * 404 + * Not Found + * - + * * */ public void deleteNotification(UUID id) throws ApiException { @@ -452,6 +482,11 @@ public void deleteNotification(UUID id) throws ApiException { * Forbidden * - * + * + * 404 + * Not Found + * - + * * */ public ApiResponse deleteNotificationWithHttpInfo(UUID id) throws ApiException { @@ -493,6 +528,11 @@ public ApiResponse deleteNotificationWithHttpInfo(UUID id) throws ApiExcep * Forbidden * - * + * + * 404 + * Not Found + * - + * * */ public okhttp3.Call deleteNotificationAsync(UUID id, final ApiCallback _callback) throws ApiException { @@ -540,6 +580,11 @@ public okhttp3.Call deleteNotificationAsync(UUID id, final ApiCallback _ca * Forbidden * - * + * + * 404 + * Not Found + * - + * * */ public okhttp3.Call getNotificationsCall(Integer page, Integer size, List sort, String state, @@ -653,6 +698,11 @@ private okhttp3.Call getNotificationsValidateBeforeCall(Integer page, Integer si * Forbidden * - * + * + * 404 + * Not Found + * - + * * */ public PageNotificationRecordResponseDTO getNotifications(Integer page, Integer size, List sort, @@ -700,6 +750,11 @@ public PageNotificationRecordResponseDTO getNotifications(Integer page, Integer * Forbidden * - * + * + * 404 + * Not Found + * - + * * */ public ApiResponse getNotificationsWithHttpInfo(Integer page, Integer size, @@ -749,6 +804,11 @@ public ApiResponse getNotificationsWithHttpIn * Forbidden * - * + * + * 404 + * Not Found + * - + * * */ public okhttp3.Call getNotificationsAsync(Integer page, Integer size, List sort, String state,