Skip to content

Commit

Permalink
Fix README.md typo and response (#62)
Browse files Browse the repository at this point in the history
  • Loading branch information
lavenderses authored Jan 19, 2025
1 parent 2b2b8ef commit dbd27bb
Showing 1 changed file with 7 additions and 11 deletions.
18 changes: 7 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ directory.
}
```

Disabled feature flag exampel with key name `key_1` and string feature flag value with value `you released`.
Disabled feature flag example with key name `key_1` and string feature flag value with value `you released`.

```json
{
Expand Down Expand Up @@ -200,17 +200,15 @@ curl http://localhost:2772/applications/{application name}/environments/{environ
If you run with the above example, the HTTP request will be like following.

```shell
curl http://localhost:2772/applications/app/environments/env/configurations/profile??flag=key_1
curl http://localhost:2772/applications/app/environments/env/configurations/profile?flag=key_1
```

You will get following JSON response. (This is exactly same as feature flag JSON file.)

```json
{
"key_1": {
"enabled": false,
"flag_value": "you not released"
}
"enabled": false,
"flag_value": "you not released"
}
```

Expand All @@ -233,13 +231,11 @@ If you want to experience dynamic flag value change, let's change the feature fl
After a while, you'll get new feature flag value.

```shell
curl http://localhost:2772/applications/app/environments/env/configurations/profile??flag=key_1
curl http://localhost:2772/applications/app/environments/env/configurations/profile?flag=key_1

{
"key_1": {
"enabled": true,
"flag_value": "you released"
}
"enabled": true,
"flag_value": "you released"
}
```

Expand Down

0 comments on commit dbd27bb

Please sign in to comment.