From 3e45368cc3bd8bd965e827b97f5fefe711f570f1 Mon Sep 17 00:00:00 2001 From: lcawl Date: Tue, 4 Jun 2024 15:46:29 -0700 Subject: [PATCH] Add OAS tags --- .../core-saved-objects-server-internal/src/routes/bulk_create.ts | 1 + .../core-saved-objects-server-internal/src/routes/bulk_delete.ts | 1 + .../core-saved-objects-server-internal/src/routes/bulk_get.ts | 1 + .../src/routes/bulk_resolve.ts | 1 + .../core-saved-objects-server-internal/src/routes/bulk_update.ts | 1 + .../core-saved-objects-server-internal/src/routes/create.ts | 1 + .../core-saved-objects-server-internal/src/routes/delete.ts | 1 + .../core-saved-objects-server-internal/src/routes/export.ts | 1 + .../core-saved-objects-server-internal/src/routes/find.ts | 1 + .../core-saved-objects-server-internal/src/routes/get.ts | 1 + .../core-saved-objects-server-internal/src/routes/import.ts | 1 + .../core-saved-objects-server-internal/src/routes/resolve.ts | 1 + .../src/routes/resolve_import_errors.ts | 1 + .../core-saved-objects-server-internal/src/routes/update.ts | 1 + 14 files changed, 14 insertions(+) diff --git a/packages/core/saved-objects/core-saved-objects-server-internal/src/routes/bulk_create.ts b/packages/core/saved-objects/core-saved-objects-server-internal/src/routes/bulk_create.ts index 08b3eecd75e7f..e05abfb0bd185 100644 --- a/packages/core/saved-objects/core-saved-objects-server-internal/src/routes/bulk_create.ts +++ b/packages/core/saved-objects/core-saved-objects-server-internal/src/routes/bulk_create.ts @@ -33,6 +33,7 @@ export const registerBulkCreateRoute = ( path: '/_bulk_create', options: { description: `Create saved objects`, + tags: ['oas-tag:saved objects'], }, validate: { query: schema.object({ diff --git a/packages/core/saved-objects/core-saved-objects-server-internal/src/routes/bulk_delete.ts b/packages/core/saved-objects/core-saved-objects-server-internal/src/routes/bulk_delete.ts index 622a9bbfcd599..9103b6a4a9dc8 100644 --- a/packages/core/saved-objects/core-saved-objects-server-internal/src/routes/bulk_delete.ts +++ b/packages/core/saved-objects/core-saved-objects-server-internal/src/routes/bulk_delete.ts @@ -33,6 +33,7 @@ export const registerBulkDeleteRoute = ( path: '/_bulk_delete', options: { description: `Remove saved objects`, + tags: ['oas-tag:saved objects'], }, validate: { body: schema.arrayOf( diff --git a/packages/core/saved-objects/core-saved-objects-server-internal/src/routes/bulk_get.ts b/packages/core/saved-objects/core-saved-objects-server-internal/src/routes/bulk_get.ts index 262d2e5824b6b..9653b63996fe0 100644 --- a/packages/core/saved-objects/core-saved-objects-server-internal/src/routes/bulk_get.ts +++ b/packages/core/saved-objects/core-saved-objects-server-internal/src/routes/bulk_get.ts @@ -33,6 +33,7 @@ export const registerBulkGetRoute = ( path: '/_bulk_get', options: { description: `Get saved objects`, + tags: ['oas-tag:saved objects'], }, validate: { body: schema.arrayOf( diff --git a/packages/core/saved-objects/core-saved-objects-server-internal/src/routes/bulk_resolve.ts b/packages/core/saved-objects/core-saved-objects-server-internal/src/routes/bulk_resolve.ts index b0d9df818fff1..6b6d70b1daae7 100644 --- a/packages/core/saved-objects/core-saved-objects-server-internal/src/routes/bulk_resolve.ts +++ b/packages/core/saved-objects/core-saved-objects-server-internal/src/routes/bulk_resolve.ts @@ -33,6 +33,7 @@ export const registerBulkResolveRoute = ( path: '/_bulk_resolve', options: { description: `Resolve saved objects`, + tags: ['oas-tag:saved objects'], }, validate: { body: schema.arrayOf( diff --git a/packages/core/saved-objects/core-saved-objects-server-internal/src/routes/bulk_update.ts b/packages/core/saved-objects/core-saved-objects-server-internal/src/routes/bulk_update.ts index 9f0e04cbf184f..64395fa0a0369 100644 --- a/packages/core/saved-objects/core-saved-objects-server-internal/src/routes/bulk_update.ts +++ b/packages/core/saved-objects/core-saved-objects-server-internal/src/routes/bulk_update.ts @@ -33,6 +33,7 @@ export const registerBulkUpdateRoute = ( path: '/_bulk_update', options: { description: `Update saved objects`, + tags: ['oas-tag:saved objects'], }, validate: { body: schema.arrayOf( diff --git a/packages/core/saved-objects/core-saved-objects-server-internal/src/routes/create.ts b/packages/core/saved-objects/core-saved-objects-server-internal/src/routes/create.ts index bb8dc249c8ddd..a5330a40ba746 100644 --- a/packages/core/saved-objects/core-saved-objects-server-internal/src/routes/create.ts +++ b/packages/core/saved-objects/core-saved-objects-server-internal/src/routes/create.ts @@ -33,6 +33,7 @@ export const registerCreateRoute = ( path: '/{type}/{id?}', options: { description: `Create a saved object`, + tags: ['oas-tag:saved objects'], }, validate: { params: schema.object({ diff --git a/packages/core/saved-objects/core-saved-objects-server-internal/src/routes/delete.ts b/packages/core/saved-objects/core-saved-objects-server-internal/src/routes/delete.ts index 1c394a799080f..4e70154df62d4 100644 --- a/packages/core/saved-objects/core-saved-objects-server-internal/src/routes/delete.ts +++ b/packages/core/saved-objects/core-saved-objects-server-internal/src/routes/delete.ts @@ -33,6 +33,7 @@ export const registerDeleteRoute = ( path: '/{type}/{id}', options: { description: `Delete a saved object`, + tags: ['oas-tag:saved objects'], }, validate: { params: schema.object({ diff --git a/packages/core/saved-objects/core-saved-objects-server-internal/src/routes/export.ts b/packages/core/saved-objects/core-saved-objects-server-internal/src/routes/export.ts index 96906b1132bd2..83d29a51db747 100644 --- a/packages/core/saved-objects/core-saved-objects-server-internal/src/routes/export.ts +++ b/packages/core/saved-objects/core-saved-objects-server-internal/src/routes/export.ts @@ -145,6 +145,7 @@ export const registerExportRoute = ( path: '/_export', options: { description: `Export saved objects`, + tags: ['oas-tag:saved objects'], }, validate: { body: schema.object({ diff --git a/packages/core/saved-objects/core-saved-objects-server-internal/src/routes/find.ts b/packages/core/saved-objects/core-saved-objects-server-internal/src/routes/find.ts index 83627d4e08661..bee2c8e436584 100644 --- a/packages/core/saved-objects/core-saved-objects-server-internal/src/routes/find.ts +++ b/packages/core/saved-objects/core-saved-objects-server-internal/src/routes/find.ts @@ -36,6 +36,7 @@ export const registerFindRoute = ( path: '/_find', options: { description: `Search for saved objects`, + tags: ['oas-tag:saved objects'], }, validate: { query: schema.object({ diff --git a/packages/core/saved-objects/core-saved-objects-server-internal/src/routes/get.ts b/packages/core/saved-objects/core-saved-objects-server-internal/src/routes/get.ts index 72c7c87162e6d..b5d650bd4cd90 100644 --- a/packages/core/saved-objects/core-saved-objects-server-internal/src/routes/get.ts +++ b/packages/core/saved-objects/core-saved-objects-server-internal/src/routes/get.ts @@ -33,6 +33,7 @@ export const registerGetRoute = ( path: '/{type}/{id}', options: { description: `Get a saved object`, + tags: ['oas-tag:saved objects'], }, validate: { params: schema.object({ diff --git a/packages/core/saved-objects/core-saved-objects-server-internal/src/routes/import.ts b/packages/core/saved-objects/core-saved-objects-server-internal/src/routes/import.ts index ad08653457f28..d32ac7a219b00 100644 --- a/packages/core/saved-objects/core-saved-objects-server-internal/src/routes/import.ts +++ b/packages/core/saved-objects/core-saved-objects-server-internal/src/routes/import.ts @@ -37,6 +37,7 @@ export const registerImportRoute = ( path: '/_import', options: { description: `Import saved objects`, + tags: ['oas-tag:saved objects'], body: { maxBytes: maxImportPayloadBytes, output: 'stream', diff --git a/packages/core/saved-objects/core-saved-objects-server-internal/src/routes/resolve.ts b/packages/core/saved-objects/core-saved-objects-server-internal/src/routes/resolve.ts index e4d24f97c54c4..6ca636b859591 100644 --- a/packages/core/saved-objects/core-saved-objects-server-internal/src/routes/resolve.ts +++ b/packages/core/saved-objects/core-saved-objects-server-internal/src/routes/resolve.ts @@ -29,6 +29,7 @@ export const registerResolveRoute = ( path: '/resolve/{type}/{id}', options: { description: `Resolve a saved object`, + tags: ['oas-tag:saved objects'], }, validate: { params: schema.object({ diff --git a/packages/core/saved-objects/core-saved-objects-server-internal/src/routes/resolve_import_errors.ts b/packages/core/saved-objects/core-saved-objects-server-internal/src/routes/resolve_import_errors.ts index 1f9539a42fc55..ffedec4c80b53 100644 --- a/packages/core/saved-objects/core-saved-objects-server-internal/src/routes/resolve_import_errors.ts +++ b/packages/core/saved-objects/core-saved-objects-server-internal/src/routes/resolve_import_errors.ts @@ -38,6 +38,7 @@ export const registerResolveImportErrorsRoute = ( path: '/_resolve_import_errors', options: { description: `Resolve import errors`, + tags: ['oas-tag:saved objects'], body: { maxBytes: maxImportPayloadBytes, output: 'stream', diff --git a/packages/core/saved-objects/core-saved-objects-server-internal/src/routes/update.ts b/packages/core/saved-objects/core-saved-objects-server-internal/src/routes/update.ts index 02afd45077523..785a3d6c051dc 100644 --- a/packages/core/saved-objects/core-saved-objects-server-internal/src/routes/update.ts +++ b/packages/core/saved-objects/core-saved-objects-server-internal/src/routes/update.ts @@ -34,6 +34,7 @@ export const registerUpdateRoute = ( path: '/{type}/{id}', options: { description: `Update a saved object`, + tags: ['oas-tag:saved objects'], }, validate: { params: schema.object({