mirror of
https://github.com/Unleash/unleash.git
synced 2025-02-23 00:22:19 +01:00
feat: deprecate state api (#3551)
## About the changes This deprecates state API in favor of the new batch import/export
This commit is contained in:
parent
8840b430ef
commit
008d9b8bb6
@ -278,7 +278,6 @@ const metaRules: Rule[] = [
|
||||
'setUiConfigSchema',
|
||||
'sortOrderSchema',
|
||||
'splashSchema',
|
||||
'stateSchema',
|
||||
'strategiesSchema',
|
||||
'tagTypeSchema',
|
||||
'tagTypesSchema',
|
||||
|
@ -15,6 +15,9 @@ export const stateSchema = {
|
||||
$id: '#/components/schemas/stateSchema',
|
||||
type: 'object',
|
||||
additionalProperties: true,
|
||||
deprecated: true,
|
||||
description:
|
||||
'The state of the application used by export/import APIs which are deprecated in favor of the more fine grained /api/admin/export and /api/admin/import APIs',
|
||||
required: ['version'],
|
||||
properties: {
|
||||
version: {
|
||||
|
@ -64,6 +64,10 @@ class StateController extends Controller {
|
||||
this.openApiService.validPath({
|
||||
tags: ['Import/Export'],
|
||||
operationId: 'import',
|
||||
deprecated: true,
|
||||
summary: 'Import state (deprecated)',
|
||||
description:
|
||||
'Imports state into the system. Deprecated in favor of /api/admin/features-batch/import',
|
||||
responses: {
|
||||
202: emptyResponse,
|
||||
},
|
||||
@ -80,6 +84,10 @@ class StateController extends Controller {
|
||||
this.openApiService.validPath({
|
||||
tags: ['Import/Export'],
|
||||
operationId: 'export',
|
||||
deprecated: true,
|
||||
summary: 'Export state (deprecated)',
|
||||
description:
|
||||
'Exports the current state of the system. Deprecated in favor of /api/admin/features-batch/export',
|
||||
responses: {
|
||||
200: createResponseSchema('stateSchema'),
|
||||
},
|
||||
|
@ -4110,6 +4110,8 @@ Stats are divided into current and previous **windows**.
|
||||
},
|
||||
"stateSchema": {
|
||||
"additionalProperties": true,
|
||||
"deprecated": true,
|
||||
"description": "The state of the application used by export/import APIs which are deprecated in favor of the more fine grained /api/admin/export and /api/admin/import APIs",
|
||||
"properties": {
|
||||
"environments": {
|
||||
"items": {
|
||||
@ -8501,6 +8503,8 @@ If the provided project does not exist, the list of events will be empty.",
|
||||
},
|
||||
"/api/admin/state/export": {
|
||||
"get": {
|
||||
"deprecated": true,
|
||||
"description": "Exports the current state of the system. Deprecated in favor of /api/admin/features-batch/export",
|
||||
"operationId": "export",
|
||||
"parameters": [
|
||||
{
|
||||
@ -8649,6 +8653,7 @@ If the provided project does not exist, the list of events will be empty.",
|
||||
"description": "stateSchema",
|
||||
},
|
||||
},
|
||||
"summary": "Export state (deprecated)",
|
||||
"tags": [
|
||||
"Import/Export",
|
||||
],
|
||||
@ -8656,6 +8661,8 @@ If the provided project does not exist, the list of events will be empty.",
|
||||
},
|
||||
"/api/admin/state/import": {
|
||||
"post": {
|
||||
"deprecated": true,
|
||||
"description": "Imports state into the system. Deprecated in favor of /api/admin/features-batch/import",
|
||||
"operationId": "import",
|
||||
"requestBody": {
|
||||
"content": {
|
||||
@ -8673,6 +8680,7 @@ If the provided project does not exist, the list of events will be empty.",
|
||||
"description": "This response has no body.",
|
||||
},
|
||||
},
|
||||
"summary": "Import state (deprecated)",
|
||||
"tags": [
|
||||
"Import/Export",
|
||||
],
|
||||
|
Loading…
Reference in New Issue
Block a user