From c0785e1e34cf643a7b62ad0023e41e125c0020f3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ivar=20Conradi=20=C3=98sthus?= Date: Fri, 25 Sep 2020 09:43:23 +0200 Subject: [PATCH] fix: improve import/export documentation See #496: https://github.com/Unleash/unleash/issues/496#issuecomment-692772884 --- docs/import-export.md | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/docs/import-export.md b/docs/import-export.md index b5d4d80d85..d081fad451 100644 --- a/docs/import-export.md +++ b/docs/import-export.md @@ -9,7 +9,7 @@ Unleash supports import and export of feature-toggles and strategies at startup All import mechanisms support a `drop` parameter which will clean the database before import (all strategies and features will be removed). -> You should never use this in production environments. +> You should be careful when using `drop` parmeter in production environments, as it will clean current state. ## Runtime import & export @@ -37,12 +37,12 @@ If you want the database to be cleaned before import (all strategies and feature The api endpoint `/api/admin/state/export` will export feature-toggles and strategies as json by default.\ You can customize the export with queryparameters: -| Parameter | Default | Description | -| -------------- | ------- | --------------------------------------------------- | -| format | `json` | Export format, either `json` or `yaml` | -| download | `false` | If the exported data should be downloaded as a file | -| featureToggles | `true` | Include feature-toggles in the exported data | -| strategies | `true` | Include strategies in the exported data | +| Parameter | Default | Description | +| --- | --- | --- | +| format | `json` | Export format, either `json` or `yaml` | +| download | `false` | If the exported data should be downloaded as a file | +| featureToggles | `true` | Include feature-toggles in the exported data | +| strategies | `true` | Include strategies in the exported data | For example if you want to download all feature-toggles as yaml: