Skip to content

Commit

Permalink
Add OAS tags
Browse files Browse the repository at this point in the history
  • Loading branch information
lcawl committed Jun 4, 2024
1 parent a9d86fe commit 3e45368
Show file tree
Hide file tree
Showing 14 changed files with 14 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ export const registerBulkCreateRoute = (
path: '/_bulk_create',
options: {
description: `Create saved objects`,
tags: ['oas-tag:saved objects'],
},
validate: {
query: schema.object({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ export const registerBulkDeleteRoute = (
path: '/_bulk_delete',
options: {
description: `Remove saved objects`,
tags: ['oas-tag:saved objects'],
},
validate: {
body: schema.arrayOf(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ export const registerBulkGetRoute = (
path: '/_bulk_get',
options: {
description: `Get saved objects`,
tags: ['oas-tag:saved objects'],
},
validate: {
body: schema.arrayOf(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ export const registerBulkResolveRoute = (
path: '/_bulk_resolve',
options: {
description: `Resolve saved objects`,
tags: ['oas-tag:saved objects'],
},
validate: {
body: schema.arrayOf(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ export const registerBulkUpdateRoute = (
path: '/_bulk_update',
options: {
description: `Update saved objects`,
tags: ['oas-tag:saved objects'],
},
validate: {
body: schema.arrayOf(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,7 @@ export const registerExportRoute = (
path: '/_export',
options: {
description: `Export saved objects`,
tags: ['oas-tag:saved objects'],
},
validate: {
body: schema.object({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ export const registerFindRoute = (
path: '/_find',
options: {
description: `Search for saved objects`,
tags: ['oas-tag:saved objects'],
},
validate: {
query: schema.object({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ export const registerImportRoute = (
path: '/_import',
options: {
description: `Import saved objects`,
tags: ['oas-tag:saved objects'],
body: {
maxBytes: maxImportPayloadBytes,
output: 'stream',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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({
Expand Down

0 comments on commit 3e45368

Please sign in to comment.