mirror of
https://github.com/discourse/discourse.git
synced 2024-11-30 02:53:39 +08:00
0b2b4bc245
Wrote an api docs rspec test for documenting the user suspend api endpoint.
33 lines
615 B
JSON
33 lines
615 B
JSON
{
|
|
"additionalProperties": false,
|
|
"properties": {
|
|
"suspension": {
|
|
"type": "object",
|
|
"additionalProperties": false,
|
|
"properties": {
|
|
"suspend_reason": {
|
|
"type": "string"
|
|
},
|
|
"full_suspend_reason": {
|
|
"type": "string"
|
|
},
|
|
"suspended_till": {
|
|
"type": "string"
|
|
},
|
|
"suspended_at": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"required": [
|
|
"suspend_reason",
|
|
"full_suspend_reason",
|
|
"suspended_till",
|
|
"suspended_at"
|
|
]
|
|
}
|
|
},
|
|
"required": [
|
|
"suspension"
|
|
]
|
|
}
|