get https://apiv4.ordering.co////configs
This API endpoint is used to get all configurations.
mode:dashboard
This param returns an object of objects with the name as a key instead of an array of object.
{
"error": false,
"result": [
{
"id": 1,
"key": "stripe_publishable",
"value": ""
},
{
"id": 2,
"key": "stripe_publishable_sandbox",
"value": "pk_test_SP5YYDD4PdEVfH8U2QJhsVxR"
},
...
]
}
{
"error": false,
"result": {
"stripe_publishable": {
"id": 1,
"key": "stripe_publishable",
"value": ""
},
"stripe_publishable_sandbox": {
"id": 2,
"key": "stripe_publishable_sandbox",
"value": "pk_test_SP5YYDD4PdEVfH8U2VxR"
},
"stripe_secret": {
"id": 3,
"key": "stripe_secret",
"value": ""
},
"stripe_secret_sandbox": {
"id": 4,
"key": "stripe_secret_sandbox",
"value": "sk_test_Xe3oDRGjJONWjP0M8Va"
},
...
}
}
Using Ordering SDK
`
const response = await ordering.configs().get();
// mode dictionary
const response = await ordering.configs().asDictionary().get();