mirror of
https://github.com/discourse/discourse.git
synced 2024-12-05 12:23:38 +08:00
798b479e0d
- Create helper wrapper method `load_spec_schema(name)` - A minor change to tag_group_create response schema - Document the uploads endpoint
60 lines
970 B
JSON
60 lines
970 B
JSON
{
|
|
"additionalProperties": false,
|
|
"properties": {
|
|
"id": {
|
|
"type": "integer"
|
|
},
|
|
"url": {
|
|
"type": "string"
|
|
},
|
|
"original_filename": {
|
|
"type": "string"
|
|
},
|
|
"filesize": {
|
|
"type": "integer"
|
|
},
|
|
"width": {
|
|
"type": "integer"
|
|
},
|
|
"height": {
|
|
"type": "integer"
|
|
},
|
|
"thumbnail_width": {
|
|
"type": "integer"
|
|
},
|
|
"thumbnail_height": {
|
|
"type": "integer"
|
|
},
|
|
"extension": {
|
|
"type": "string"
|
|
},
|
|
"short_url": {
|
|
"type": "string"
|
|
},
|
|
"short_path": {
|
|
"type": "string"
|
|
},
|
|
"retain_hours": {
|
|
"type": ["string", "null"]
|
|
},
|
|
"human_filesize": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"required": [
|
|
"id",
|
|
"url",
|
|
"original_filename",
|
|
"filesize",
|
|
"width",
|
|
"height",
|
|
"thumbnail_width",
|
|
"thumbnail_height",
|
|
"extension",
|
|
"short_url",
|
|
"short_path",
|
|
"retain_hours",
|
|
"human_filesize"
|
|
]
|
|
}
|