From 0ca152bede3c7fd3d85c8728815872b1aefac112 Mon Sep 17 00:00:00 2001 From: Melvin Zottola Date: Wed, 12 Jul 2023 16:11:03 +0200 Subject: [PATCH] chore: remove unused endpoints --- src/openapi.yaml | 10 +--------- src/resources/ApplicationEvent.yaml | 23 ----------------------- src/resources/ApplicationEventLastId.yaml | 22 ---------------------- src/resources/ApplicationEventTail.yaml | 22 ---------------------- src/resources/DatabaseEvent.yaml | 23 ----------------------- src/resources/DatabaseEventLastId.yaml | 22 ---------------------- src/resources/DatabaseEventTail.yaml | 22 ---------------------- 7 files changed, 1 insertion(+), 143 deletions(-) delete mode 100644 src/resources/ApplicationEvent.yaml delete mode 100644 src/resources/ApplicationEventLastId.yaml delete mode 100644 src/resources/ApplicationEventTail.yaml delete mode 100644 src/resources/DatabaseEvent.yaml delete mode 100644 src/resources/DatabaseEventLastId.yaml delete mode 100644 src/resources/DatabaseEventTail.yaml diff --git a/src/openapi.yaml b/src/openapi.yaml index be970102..8c340947 100644 --- a/src/openapi.yaml +++ b/src/openapi.yaml @@ -35,7 +35,6 @@ tags: - name: Container Database - name: Container Deployment History - name: Container Environment Variable - - name: Container Event - name: Container Logs - name: Container Main Calls - name: Container Metrics @@ -50,7 +49,6 @@ tags: - name: Job Deployment Restriction - name: Job Deployment History - name: Job Environment Variable - - name: Job Event - name: Job Logs - name: Job Main Calls - name: Job Metrics @@ -170,7 +168,6 @@ x-tagGroups: - Container Deployment History - Container Environment Variable - Container Secret - - Container Event - name: Database tags: - Database Main Calls @@ -194,7 +191,6 @@ x-tagGroups: - Job Deployment History - Job Environment Variable - Job Secret - - Job Event - name: Account tags: - Account Info @@ -538,8 +534,6 @@ paths: $ref: './resources/ApplicationReboot.yaml' /application/{applicationId}/deploymentHistory: $ref: './resources/ApplicationDeploymentHistory.yaml' - /application/{applicationId}/event: - $ref: './resources/ApplicationEvent.yaml' /application/{applicationId}/environmentVariable: $ref: './resources/ApplicationEnvironmentVariable.yaml' /application/{applicationId}/environmentVariable/import: @@ -674,8 +668,6 @@ paths: $ref: './resources/DatabaseBackup.yaml' /database/{databaseId}/backup/{backupId}: $ref: './resources/DatabaseBackupRef.yaml' - /database/{databaseId}/event: - $ref: './resources/DatabaseEvent.yaml' /database/{databaseId}/clone: $ref: './resources/DatabaseClone.yaml' /account: @@ -783,4 +775,4 @@ security: - ApiKeyAuth: [] - + diff --git a/src/resources/ApplicationEvent.yaml b/src/resources/ApplicationEvent.yaml deleted file mode 100644 index d913d99e..00000000 --- a/src/resources/ApplicationEvent.yaml +++ /dev/null @@ -1,23 +0,0 @@ -get: - summary: 'List application events' - description: By default it returns the 20 last results. The response is paginated. In order to request the next page, you can use the startId query parameter - operationId: listApplicationEvent - parameters: - - $ref: '../parameters/path/applicationId.yaml' - - $ref: '../parameters/query/startId.yaml' - tags: - - Application Event - responses: - '200': - description: 'List events' - content: - application/json: - schema: - $ref: '../schemas/EventPaginatedResponseList.yaml' - '401': - $ref: '../responses/NotAuthorized.yaml' - '403': - $ref: '../responses/Forbidden.yaml' - '404': - $ref: '../responses/NotFound.yaml' - diff --git a/src/resources/ApplicationEventLastId.yaml b/src/resources/ApplicationEventLastId.yaml deleted file mode 100644 index 6a4776ab..00000000 --- a/src/resources/ApplicationEventLastId.yaml +++ /dev/null @@ -1,22 +0,0 @@ -get: - summary: 'List all the last application events after a certain event Id' - description: Returns all last events that happened on the application, after the event ID you specify in the lastId query parameter. Response is not paginated - operationId: listApplicationEventLastId - parameters: - - $ref: '../parameters/path/applicationId.yaml' - - $ref: '../parameters/query/lastId.yaml' - tags: - - Application Event - responses: - '200': - description: 'List events' - content: - application/json: - schema: - $ref: '../schemas/EventResponseList.yaml' - '401': - $ref: '../responses/NotAuthorized.yaml' - '403': - $ref: '../responses/Forbidden.yaml' - '404': - $ref: '../responses/NotFound.yaml' diff --git a/src/resources/ApplicationEventTail.yaml b/src/resources/ApplicationEventTail.yaml deleted file mode 100644 index 4252fb9f..00000000 --- a/src/resources/ApplicationEventTail.yaml +++ /dev/null @@ -1,22 +0,0 @@ -get: - summary: 'List XX last application events' - description: Returns all last XX events. Response is not paginated - operationId: listApplicationEventTail - parameters: - - $ref: '../parameters/path/applicationId.yaml' - - $ref: '../parameters/query/tail.yaml' - tags: - - Application Event - responses: - '200': - description: 'List events' - content: - application/json: - schema: - $ref: '../schemas/EventResponseList.yaml' - '401': - $ref: '../responses/NotAuthorized.yaml' - '403': - $ref: '../responses/Forbidden.yaml' - '404': - $ref: '../responses/NotFound.yaml' diff --git a/src/resources/DatabaseEvent.yaml b/src/resources/DatabaseEvent.yaml deleted file mode 100644 index 1b759326..00000000 --- a/src/resources/DatabaseEvent.yaml +++ /dev/null @@ -1,23 +0,0 @@ -get: - summary: 'List database events' - description: By default it returns the 20 last results. The response is paginated. In order to request the next page, you can use the startId query parameter - operationId: listDatabaseEvent - parameters: - - $ref: '../parameters/path/databaseId.yaml' - - $ref: '../parameters/query/startId.yaml' - tags: - - Database Event - responses: - '200': - description: 'List events' - content: - application/json: - schema: - $ref: '../schemas/EventPaginatedResponseList.yaml' - '401': - $ref: '../responses/NotAuthorized.yaml' - '403': - $ref: '../responses/Forbidden.yaml' - '404': - $ref: '../responses/NotFound.yaml' - diff --git a/src/resources/DatabaseEventLastId.yaml b/src/resources/DatabaseEventLastId.yaml deleted file mode 100644 index 4dac47bb..00000000 --- a/src/resources/DatabaseEventLastId.yaml +++ /dev/null @@ -1,22 +0,0 @@ -get: - summary: 'List all the last database events after a certain event Id' - description: Returns all last events that happened on the database , after the event ID you specify in the lastId query parameter. Response is not paginated - operationId: listDatabaseEventLastId - parameters: - - $ref: '../parameters/path/databaseId.yaml' - - $ref: '../parameters/query/lastId.yaml' - tags: - - Database Event - responses: - '200': - description: 'List events' - content: - application/json: - schema: - $ref: '../schemas/EventResponseList.yaml' - '401': - $ref: '../responses/NotAuthorized.yaml' - '403': - $ref: '../responses/Forbidden.yaml' - '404': - $ref: '../responses/NotFound.yaml' diff --git a/src/resources/DatabaseEventTail.yaml b/src/resources/DatabaseEventTail.yaml deleted file mode 100644 index 583869a0..00000000 --- a/src/resources/DatabaseEventTail.yaml +++ /dev/null @@ -1,22 +0,0 @@ -get: - summary: 'List XX last database events' - description: Returns all last XX events. Response is not paginated - operationId: listDatabaseEventTail - parameters: - - $ref: '../parameters/path/databaseId.yaml' - - $ref: '../parameters/query/tail.yaml' - tags: - - Database Event - responses: - '200': - description: 'List events' - content: - application/json: - schema: - $ref: '../schemas/EventResponseList.yaml' - '401': - $ref: '../responses/NotAuthorized.yaml' - '403': - $ref: '../responses/Forbidden.yaml' - '404': - $ref: '../responses/NotFound.yaml'