From a7cb2b8d530566f9d2aa4e770d87969c175a3d30 Mon Sep 17 00:00:00 2001 From: Thomas Heartman Date: Tue, 8 Aug 2023 09:01:02 +0200 Subject: [PATCH] openapi: stabilize playground + feature types endpoints (#4433) This PR stabilizes the playground and feature types endpoints by changing their tag from 'Unstable' to respectively 'Playground' and 'Feature Types'. It also moves the existing feature type endpoint (which was previously tagged as 'Features') to the 'Feature Types' tag. --- src/lib/features/playground/playground.ts | 2 +- src/lib/routes/admin-api/feature-type.ts | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/lib/features/playground/playground.ts b/src/lib/features/playground/playground.ts index d21369338b..ef165a9890 100644 --- a/src/lib/features/playground/playground.ts +++ b/src/lib/features/playground/playground.ts @@ -70,7 +70,7 @@ export default class PlaygroundController extends Controller { middleware: [ openApiService.validPath({ operationId: 'getAdvancedPlayground', - tags: ['Unstable'], + tags: ['Playground'], responses: { ...getStandardResponses(400, 401), 200: createResponseSchema( diff --git a/src/lib/routes/admin-api/feature-type.ts b/src/lib/routes/admin-api/feature-type.ts index d4aff7d94f..bb57bc65e2 100644 --- a/src/lib/routes/admin-api/feature-type.ts +++ b/src/lib/routes/admin-api/feature-type.ts @@ -52,7 +52,7 @@ export class FeatureTypeController extends Controller { permission: NONE, middleware: [ openApiService.validPath({ - tags: ['Features'], + tags: ['Feature Types'], operationId: 'getAllFeatureTypes', summary: 'Get all feature types', description: @@ -72,7 +72,7 @@ export class FeatureTypeController extends Controller { permission: ADMIN, middleware: [ openApiService.validPath({ - tags: ['Unstable'], + tags: ['Feature Types'], operationId: 'updateFeatureTypeLifetime', summary: 'Update feature type lifetime', description: `Updates the lifetime configuration for the specified [feature toggle type](https://docs.getunleash.io/reference/feature-toggle-types). The expected lifetime is an integer representing the number of days before Unleash marks a feature toggle of that type as potentially stale. If set to \`null\` or \`0\`, then feature toggles of that particular type will never be marked as potentially stale.