From ce2afca0e424cfcf5242b55a375ebb29ae51f8f6 Mon Sep 17 00:00:00 2001 From: Maxence Lange Date: Mon, 8 May 2017 11:57:41 -0100 Subject: [PATCH] open-graph Signed-off-by: Maxence Lange --- lib/public/RichObjectStrings/Definitions.php | 43 ++++++++++++++++++++ 1 file changed, 43 insertions(+) diff --git a/lib/public/RichObjectStrings/Definitions.php b/lib/public/RichObjectStrings/Definitions.php index f1208ae0f2..ad7cf06b3d 100644 --- a/lib/public/RichObjectStrings/Definitions.php +++ b/lib/public/RichObjectStrings/Definitions.php @@ -227,6 +227,49 @@ class Definitions { ], ], ], + 'open-graph' => [ + 'author' => 'Nextcloud', + 'app' => 'mood', + 'since' => '12.0.0', + 'parameters' => [ + 'id' => [ + 'since' => '12.0.0', + 'required' => true, + 'description' => 'The id used to identify the open graph data on the instance', + 'example' => '42', + ], + 'thumb' => [ + 'since' => '12.0.0', + 'required' => false, + 'description' => 'The full URL of the open graph thumbnail', + 'example' => 'http://localhost/index.php/apps/mood/data/image?url=https%3A%2F%2Fthumb.example.com%2Fimage.png', + ], + 'title' => [ + 'since' => '12.0.0', + 'required' => true, + 'description' => 'The open graph title from the website', + 'example' => 'This is a website', + ], + 'description' => [ + 'since' => '12.0.0', + 'required' => false, + 'description' => 'The open graph description from the website', + 'example' => 'This is the description of the website', + ], + 'website' => [ + 'since' => '12.0.0', + 'required' => false, + 'description' => 'The name of the described website', + 'example' => 'Nextcloud - App Store', + ], + 'link' => [ + 'since' => '12.0.0', + 'required' => false, + 'description' => 'The full link to the website', + 'example' => 'https://apps.nextcloud.com/apps/mood', + ], + ], + ], 'pending-federated-share' => [ 'author' => 'Nextcloud', 'app' => 'dav',