[HTTP/OAS] Add descriptions for upgrade assistant APIs (#184269)

This commit is contained in:
Lisa Cawley 2024-05-27 19:00:15 -07:00 committed by GitHub
parent a9c8e8f33b
commit e595d28e00
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 24 additions and 0 deletions

View file

@ -36,6 +36,10 @@ export function registerBatchReindexIndicesRoutes(
router.get(
{
path: `${BASE_PATH}/batch/queue`,
options: {
access: 'public',
description: `Get the batch reindex queue`,
},
validate: {},
},
versionCheckHandlerWrapper(async ({ core }, request, response) => {
@ -71,6 +75,10 @@ export function registerBatchReindexIndicesRoutes(
router.post(
{
path: `${BASE_PATH}/batch`,
options: {
access: 'public',
description: `Batch start or resume reindex`,
},
validate: {
body: schema.object({
indexNames: schema.arrayOf(schema.string()),

View file

@ -34,6 +34,10 @@ export function registerReindexIndicesRoutes(
router.post(
{
path: `${BASE_PATH}/{indexName}`,
options: {
access: 'public',
description: `Start or resume reindex`,
},
validate: {
params: schema.object({
indexName: schema.string(),
@ -77,6 +81,10 @@ export function registerReindexIndicesRoutes(
router.get(
{
path: `${BASE_PATH}/{indexName}`,
options: {
access: 'public',
description: `Get reindex status`,
},
validate: {
params: schema.object({
indexName: schema.string(),
@ -134,6 +142,10 @@ export function registerReindexIndicesRoutes(
router.post(
{
path: `${BASE_PATH}/{indexName}/cancel`,
options: {
access: 'public',
description: `Cancel reindex`,
},
validate: {
params: schema.object({
indexName: schema.string(),

View file

@ -24,6 +24,10 @@ export function registerUpgradeStatusRoute({
router.get(
{
path: `${API_BASE_PATH}/status`,
options: {
access: 'public',
description: `Get upgrade readiness status`,
},
validate: false,
},
versionCheckHandlerWrapper(async ({ core }, request, response) => {