mirror of
https://github.com/discourse/discourse.git
synced 2024-12-21 18:53:47 +08:00
798b479e0d
- Create helper wrapper method `load_spec_schema(name)` - A minor change to tag_group_create response schema - Document the uploads endpoint
31 lines
565 B
JSON
31 lines
565 B
JSON
{
|
|
"additionalProperties": false,
|
|
"properties": {
|
|
"type": {
|
|
"type": "string",
|
|
"enum": [
|
|
"avatar",
|
|
"profile_background",
|
|
"card_background",
|
|
"custom_emoji",
|
|
"composer"
|
|
]
|
|
},
|
|
"user_id": {
|
|
"type": "integer",
|
|
"description": "required if uploading an avatar"
|
|
},
|
|
"synchronous": {
|
|
"type": "boolean",
|
|
"description": "Use this flag to return an id and url"
|
|
},
|
|
"file": {
|
|
"type": "string",
|
|
"format": "binary"
|
|
}
|
|
},
|
|
"required": [
|
|
"type"
|
|
]
|
|
}
|