From 76581578e6729e60f03deac0e9999e528e90c68a Mon Sep 17 00:00:00 2001 From: "Welter, Felix" <felix.welter@studium.uni-hamburg.de> Date: Mon, 12 Oct 2020 15:28:34 +0200 Subject: [PATCH] Add multi item support to standard request format documentation --- REQUEST_FORMAT.md | 23 ++++++++++++++++++++--- 1 file changed, 20 insertions(+), 3 deletions(-) diff --git a/REQUEST_FORMAT.md b/REQUEST_FORMAT.md index 74d43fa..789a571 100644 --- a/REQUEST_FORMAT.md +++ b/REQUEST_FORMAT.md @@ -9,15 +9,32 @@ and type-dependent data. e.g. ``` { "type": "image", - "path": "/path/to/image" + "paths": [ + { + path: "/path/to/image/", + url: "/url/to/more/information/or/full/size/image" + }, + { + path: "/path/to/image2/", + url: "/different/url/to/more/information/or/full/size/image2" + } + ] } ``` ``` { "type": "text", - "text": "This will hopefully be useful information.", - "url": "link_to_external_page_with_more_information" + "texts": [ + { + "text": "This will hopefully be useful information.", + "url": "http://example.com/" + }, + { + "text": "This is about funny frog.", + "url": "/link/to/external/page" + } + ] } ``` -- GitLab