discourse/spec/requests/api/schemas/json/post_update_request.json
Blake Erickson d289b20858
DEV: Add fetching likes info to api docs (#21028)
This commit adds some more detailed information about how to actually
get the number of likes for a post.

Also refactors some requests and responses into json schema files to
clean up the specs a bit.

See https://meta.discourse.org/t/69017/4?u=blake
2023-04-10 09:07:10 -06:00

19 lines
314 B
JSON

{
"additionalProperties": false,
"properties": {
"post": {
"type": "object",
"additionalProperties": false,
"properties": {
"raw": {
"type": "string"
},
"edit_reason": {
"type": "string"
}
},
"required": ["raw"]
}
}
}