[
{
"_id": "55f7bd721324a70800db44f3",
"label": "Normal",
"isDefault": true,
"__v": 0,
"settings": [
{
"label": "health",
"value": "103",
"_id": "55f7bd721324a70800db44f4"
}
]
},
{
"_id": "55f7bd721324a70800db44f0",
"label": "Easy",
"isDefault": false,
"__v": 2,
"settings": [
{
"label": "health",
"value": 150,
"_id": "55f7bd721324a70800db44f2"
},
{
"label": "enemies",
"value": 20,
"_id": "55f7bd721324a70800db44f1"
}
]
},
{
"_id": "55f7bd771324a70800db44f9",
"label": "Ultra",
"isDefault": false,
"__v": 0,
"settings": []
}
]
- difficulty - The label of the difficulty group.
{
"_id": "55f7bd721324a70800db44f0",
"label": "Easy",
"isDefault": false,
"__v": 2,
"settings": [
{
"label": "health",
"value": 150,
"_id": "55f7bd721324a70800db44f2"
},
{
"label": "enemies",
"value": 20,
"_id": "55f7bd721324a70800db44f1"
}
]
}
- difficulty - The label of the difficulty group.
- label - The setting label.
{
"label": "health",
"value": 150,
"_id": "55f7bd721324a70800db44f2"
}
- difficulty - The label of the difficulty group.
{
isDefault: Boolean,
settings: [{
label: String, value: String|Number|Boolean|Null
}]
}
{
"__v": 0,
"label": "Easier",
"isDefault": false,
"_id": "55f7c28a1324a70800db44fa",
"settings": []
}
- difficulty - The label of the difficulty group.
- label - The setting label.
- value - The setting value.
- type - The setting data type (Number, String, Boolean or Null)
Empty
{
"_id": "55f7c28a1324a70800db44fa",
"label": "Easier",
"isDefault": false,
"__v": 1,
"settings": [
{
"label": "bacon",
"value": "true",
"_id": "55f7c2da1324a70800db44fb"
}
]
}
Note: This is for testing purposes only, should never have this in prod
Empty
Empty
- difficulty - The label of the difficulty group.
{
isDefault: Boolean,
settings: [{
label: String, value: String|Number|Boolean|Null
}]
}
{
"_id": "55f7c28a1324a70800db44fa",
"label": "Easier",
"isDefault": false,
"__v": 1,
"settings": [
{
"label": "bacon",
"value": "true",
"_id": "55f7c2da1324a70800db44fb"
}
]
}
Update Setting - /api/difficulty/:difficulty/setting/:settingLabel/value/:value/label/:label/type/:type
- difficulty - The label of the difficulty group.
- settingLabel - The current label of the setting to be modified
- label - The setting label.
- value - The setting value.
- type - The setting data type (Number, String, Boolean or Null)
Empty
{
"_id": "55f7c28a1324a70800db44fa",
"label": "Easier",
"isDefault": false,
"__v": 1,
"settings": [
{
"label": "bacon",
"value": "false",
"_id": "55f7c2da1324a70800db44fb"
}
]
}
- difficulty - The label of the difficulty group.
No Content
- difficulty - The label of the difficulty group.
- label - The setting label.
No Content