Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/diaspora/diaspora.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorJonne Haß <me@jhass.eu>2020-02-02 03:08:07 +0300
committerJonne Haß <me@jhass.eu>2020-02-02 22:15:36 +0300
commitb1f357849bbc2fb2b8fce620e4c265e9538e822c (patch)
tree42bf075640cef4e45836f705b544752da57bdd56 /lib
parent5921cd0176a7de35776d47d4f762a3a7d498f703 (diff)
API: return post oEmbed data
Diffstat (limited to 'lib')
-rw-r--r--lib/schemas/api_v1.json9
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"]