-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/main'
- Loading branch information
Showing
2 changed files
with
37 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
### Please note that until ConfigDN 1.0 releases, breaking API changes might occur in small version changes. We will try to keep these docs up to date | ||
|
||
``` | ||
BASE_API = https://cdn.configdn.com/public_api/v1/ | ||
Authorization = ABCXYZ | ||
``` | ||
|
||
To get your auth token, you can vist the web UI, and the API key will be displayed at the bottom. | ||
|
||
|
||
|
||
#### Get Config | ||
|
||
GET: `$BASE_API + "/get_config/" ` | ||
|
||
Headers: `Authorization : $Authorization ` | ||
|
||
|
||
Response: | ||
|
||
```json | ||
|
||
"s": true, | ||
"d": { | ||
"flag1": { | ||
"v": "abcxyz" | ||
}, | ||
"flag2": { | ||
"v": ["abcxyz"] | ||
} | ||
|
||
} | ||
``` | ||
|
||
The response JSON's `d` value holds all the data. `flag1` is an example flag, and the value of it is held within `v`. `flag2` in this example has an array for it's value. |