From bbe0f0645ca958d33a3f409b15166609733b663f Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Fri, 15 Jun 2018 16:52:15 +0200 Subject: Add ability to schedule video publication --- support/doc/api/html/index.html | 80 +++++++++++++++++++++++++++++++++++++---- support/doc/api/openapi.yaml | 25 +++++++++++-- 2 files changed, 97 insertions(+), 8 deletions(-) (limited to 'support/doc') diff --git a/support/doc/api/html/index.html b/support/doc/api/html/index.html index e1bf61b06..24017e674 100644 --- a/support/doc/api/html/index.html +++ b/support/doc/api/html/index.html @@ -264,6 +264,7 @@ GetMeVideoRating RegisterUser VideoChannelInput + ScheduleVideoUpdate
@@ -3530,6 +3531,19 @@

Video privacy

+
+
+
scheduleUpdate
+
in formData
+
+ [object Object] + +
+
+
+

(no description)

+
+
@@ -4161,12 +4175,7 @@
in formData
- string - - Public, - Unlisted, - Private - + [object Object]
@@ -4174,6 +4183,19 @@

Video privacy

+
+
+
scheduleUpdate
+
in formData
+
+ [object Object] + +
+
+
+

(no description)

+
+
@@ -8339,6 +8361,52 @@ "name": "string", "description": "string" } + + + + + + +
+

+ ScheduleVideoUpdate: + +

+
+
+
+
+
+ updateAt: + dateTime + +
+
+

When to update the video

+
+
+ privacy: + + + VideoPrivacy + + + +
+
+
+
+
+
+
Example
+
{
+  "updateAt": "dateTime",
+  "privacy": "string"
+}
 
diff --git a/support/doc/api/openapi.yaml b/support/doc/api/openapi.yaml index be40af570..4b7bc23b4 100644 --- a/support/doc/api/openapi.yaml +++ b/support/doc/api/openapi.yaml @@ -711,6 +711,12 @@ paths: type: string enum: [Public, Unlisted] description: 'Video privacy' + - name: scheduleUpdate + in: formData + required: false + description: 'Schedule an update at a specific datetime' + type: + $ref: '#/definitions/ScheduleVideoUpdate' responses: '200': description: successful operation @@ -864,9 +870,15 @@ paths: - name: privacy in: formData required: true - type: string - enum: [Public, Unlisted, Private] + type: + $ref: '#/definitions/VideoPrivacy' description: 'Video privacy' + - name: scheduleUpdate + in: formData + required: false + description: 'Schedule an update at a specific datetime' + type: + $ref: '#/definitions/ScheduleVideoUpdate' responses: '200': description: successful operation @@ -1709,3 +1721,12 @@ definitions: type: string description: type: string + ScheduleVideoUpdate: + properties: + updateAt: + type: dateTime + description: 'When to update the video' + required: true + privacy: + $ref: '#/definitions/VideoPrivacy' + required: false \ No newline at end of file -- cgit v1.2.3