diff options
author | Jonne Haß <me@jhass.eu> | 2020-02-02 03:08:07 +0300 |
---|---|---|
committer | Jonne Haß <me@jhass.eu> | 2020-02-02 22:15:36 +0300 |
commit | b1f357849bbc2fb2b8fce620e4c265e9538e822c (patch) | |
tree | 42bf075640cef4e45836f705b544752da57bdd56 /lib | |
parent | 5921cd0176a7de35776d47d4f762a3a7d498f703 (diff) |
API: return post oEmbed data
Diffstat (limited to 'lib')
-rw-r--r-- | lib/schemas/api_v1.json | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/schemas/api_v1.json b/lib/schemas/api_v1.json index 1199b5f62..46342dd48 100644 --- a/lib/schemas/api_v1.json +++ b/lib/schemas/api_v1.json @@ -328,6 +328,15 @@ }, "required": ["url", "type", "title", "image"], "additionalProperties": false + }, + "oembed": { + "type": "object", + "description": "An oEmbed response according to 2.3.4 of the oEmbed spec.", + "properties": { + "trusted_endpoint_url": { "type": "string" } + }, + "required": ["trusted_endpoint_url"], + "additionalProperties": true } }, "required": ["guid", "created_at", "title", "body", "public", "nsfw", "author", "interaction_counters", "own_interaction_state", "mentioned_people", "photos"] |