Skip to content
This repository has been archived by the owner on Jul 23, 2024. It is now read-only.

Commit

Permalink
Add generated SDK code
Browse files Browse the repository at this point in the history
Signed-off-by: Moti Asayag <[email protected]>
  • Loading branch information
masayag authored and openshift-merge-robot committed May 23, 2023
1 parent b79debd commit c74400b
Show file tree
Hide file tree
Showing 5 changed files with 109 additions and 1 deletion.
26 changes: 25 additions & 1 deletion notification-service-sdk/api/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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:
Expand Down
1 change: 1 addition & 0 deletions notification-service-sdk/docs/NotificationMessageApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,4 +66,5 @@ No authorization required
|-------------|-------------|------------------|
| **201** | Created | - |
| **400** | Bad Request | - |
| **404** | Not Found | - |

3 changes: 3 additions & 0 deletions notification-service-sdk/docs/NotificationRecordApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ No authorization required
| **400** | Bad Request | - |
| **401** | Unauthorized | - |
| **403** | Forbidden | - |
| **404** | Not Found | - |

<a name="deleteNotification"></a>
# **deleteNotification**
Expand Down Expand Up @@ -134,6 +135,7 @@ No authorization required
| **400** | Bad Request | - |
| **401** | Unauthorized | - |
| **403** | Forbidden | - |
| **404** | Not Found | - |

<a name="getNotifications"></a>
# **getNotifications**
Expand Down Expand Up @@ -205,6 +207,7 @@ No authorization required
| **400** | Bad request | - |
| **401** | Unauthorized | - |
| **403** | Forbidden | - |
| **404** | Not Found | - |

<a name="updateNotificationStatusById"></a>
# **updateNotificationStatusById**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,11 @@ public void setCustomBaseUrl(String customBaseUrl) {
* <td>Bad Request</td>
* <td>-</td>
* </tr>
* <tr>
* <td>404</td>
* <td>Not Found</td>
* <td>-</td>
* </tr>
* </table>
*/
public okhttp3.Call createCall(NotificationMessageCreateRequestDTO notificationMessageCreateRequestDTO,
Expand Down Expand Up @@ -165,6 +170,11 @@ private okhttp3.Call createValidateBeforeCall(
* <td>Bad Request</td>
* <td>-</td>
* </tr>
* <tr>
* <td>404</td>
* <td>Not Found</td>
* <td>-</td>
* </tr>
* </table>
*/
public void create(NotificationMessageCreateRequestDTO notificationMessageCreateRequestDTO) throws ApiException {
Expand Down Expand Up @@ -193,6 +203,11 @@ public void create(NotificationMessageCreateRequestDTO notificationMessageCreate
* <td>Bad Request</td>
* <td>-</td>
* </tr>
* <tr>
* <td>404</td>
* <td>Not Found</td>
* <td>-</td>
* </tr>
* </table>
*/
public ApiResponse<Void> createWithHttpInfo(NotificationMessageCreateRequestDTO notificationMessageCreateRequestDTO)
Expand Down Expand Up @@ -225,6 +240,11 @@ public ApiResponse<Void> createWithHttpInfo(NotificationMessageCreateRequestDTO
* <td>Bad Request</td>
* <td>-</td>
* </tr>
* <tr>
* <td>404</td>
* <td>Not Found</td>
* <td>-</td>
* </tr>
* </table>
*/
public okhttp3.Call createAsync(NotificationMessageCreateRequestDTO notificationMessageCreateRequestDTO,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,11 @@ public void setCustomBaseUrl(String customBaseUrl) {
* <td>Forbidden</td>
* <td>-</td>
* </tr>
* <tr>
* <td>404</td>
* <td>Not Found</td>
* <td>-</td>
* </tr>
* </table>
*/
public okhttp3.Call countUnreadNotificationsCall(String state, final ApiCallback _callback) throws ApiException {
Expand Down Expand Up @@ -193,6 +198,11 @@ private okhttp3.Call countUnreadNotificationsValidateBeforeCall(String state, fi
* <td>Forbidden</td>
* <td>-</td>
* </tr>
* <tr>
* <td>404</td>
* <td>Not Found</td>
* <td>-</td>
* </tr>
* </table>
*/
public Integer countUnreadNotifications(String state) throws ApiException {
Expand Down Expand Up @@ -233,6 +243,11 @@ public Integer countUnreadNotifications(String state) throws ApiException {
* <td>Forbidden</td>
* <td>-</td>
* </tr>
* <tr>
* <td>404</td>
* <td>Not Found</td>
* <td>-</td>
* </tr>
* </table>
*/
public ApiResponse<Integer> countUnreadNotificationsWithHttpInfo(String state) throws ApiException {
Expand Down Expand Up @@ -276,6 +291,11 @@ public ApiResponse<Integer> countUnreadNotificationsWithHttpInfo(String state) t
* <td>Forbidden</td>
* <td>-</td>
* </tr>
* <tr>
* <td>404</td>
* <td>Not Found</td>
* <td>-</td>
* </tr>
* </table>
*/
public okhttp3.Call countUnreadNotificationsAsync(String state, final ApiCallback<Integer> _callback)
Expand Down Expand Up @@ -321,6 +341,11 @@ public okhttp3.Call countUnreadNotificationsAsync(String state, final ApiCallbac
* <td>Forbidden</td>
* <td>-</td>
* </tr>
* <tr>
* <td>404</td>
* <td>Not Found</td>
* <td>-</td>
* </tr>
* </table>
*/
public okhttp3.Call deleteNotificationCall(UUID id, final ApiCallback _callback) throws ApiException {
Expand Down Expand Up @@ -413,6 +438,11 @@ private okhttp3.Call deleteNotificationValidateBeforeCall(UUID id, final ApiCall
* <td>Forbidden</td>
* <td>-</td>
* </tr>
* <tr>
* <td>404</td>
* <td>Not Found</td>
* <td>-</td>
* </tr>
* </table>
*/
public void deleteNotification(UUID id) throws ApiException {
Expand Down Expand Up @@ -452,6 +482,11 @@ public void deleteNotification(UUID id) throws ApiException {
* <td>Forbidden</td>
* <td>-</td>
* </tr>
* <tr>
* <td>404</td>
* <td>Not Found</td>
* <td>-</td>
* </tr>
* </table>
*/
public ApiResponse<Void> deleteNotificationWithHttpInfo(UUID id) throws ApiException {
Expand Down Expand Up @@ -493,6 +528,11 @@ public ApiResponse<Void> deleteNotificationWithHttpInfo(UUID id) throws ApiExcep
* <td>Forbidden</td>
* <td>-</td>
* </tr>
* <tr>
* <td>404</td>
* <td>Not Found</td>
* <td>-</td>
* </tr>
* </table>
*/
public okhttp3.Call deleteNotificationAsync(UUID id, final ApiCallback<Void> _callback) throws ApiException {
Expand Down Expand Up @@ -540,6 +580,11 @@ public okhttp3.Call deleteNotificationAsync(UUID id, final ApiCallback<Void> _ca
* <td>Forbidden</td>
* <td>-</td>
* </tr>
* <tr>
* <td>404</td>
* <td>Not Found</td>
* <td>-</td>
* </tr>
* </table>
*/
public okhttp3.Call getNotificationsCall(Integer page, Integer size, List<String> sort, String state,
Expand Down Expand Up @@ -653,6 +698,11 @@ private okhttp3.Call getNotificationsValidateBeforeCall(Integer page, Integer si
* <td>Forbidden</td>
* <td>-</td>
* </tr>
* <tr>
* <td>404</td>
* <td>Not Found</td>
* <td>-</td>
* </tr>
* </table>
*/
public PageNotificationRecordResponseDTO getNotifications(Integer page, Integer size, List<String> sort,
Expand Down Expand Up @@ -700,6 +750,11 @@ public PageNotificationRecordResponseDTO getNotifications(Integer page, Integer
* <td>Forbidden</td>
* <td>-</td>
* </tr>
* <tr>
* <td>404</td>
* <td>Not Found</td>
* <td>-</td>
* </tr>
* </table>
*/
public ApiResponse<PageNotificationRecordResponseDTO> getNotificationsWithHttpInfo(Integer page, Integer size,
Expand Down Expand Up @@ -749,6 +804,11 @@ public ApiResponse<PageNotificationRecordResponseDTO> getNotificationsWithHttpIn
* <td>Forbidden</td>
* <td>-</td>
* </tr>
* <tr>
* <td>404</td>
* <td>Not Found</td>
* <td>-</td>
* </tr>
* </table>
*/
public okhttp3.Call getNotificationsAsync(Integer page, Integer size, List<String> sort, String state,
Expand Down

0 comments on commit c74400b

Please sign in to comment.