Add ability to schedule video publication

This commit is contained in:
Chocobozzz
2018-06-15 16:52:15 +02:00
parent 2baea0c77c
commit bbe0f0645c
51 changed files with 751 additions and 246 deletions

View File

@@ -264,6 +264,7 @@
<a href="#definition-GetMeVideoRating"> GetMeVideoRating </a>
<a href="#definition-RegisterUser"> RegisterUser </a>
<a href="#definition-VideoChannelInput"> VideoChannelInput </a>
<a href="#definition-ScheduleVideoUpdate"> ScheduleVideoUpdate </a>
</nav>
</div>
<div id="docs" class="row collapse expanded drawer" data-drawer>
@@ -3530,6 +3531,19 @@
<p>Video privacy</p>
</div>
</div>
<div class="prop-row prop-group">
<div class="prop-name">
<div class="prop-title">scheduleUpdate</div>
<div class="prop-subtitle"> in formData </div>
<div class="prop-subtitle">
<span class="json-property-type">[object Object]</span>
<span class="json-property-range" title="Value limits"></span>
</div>
</div>
<div class="prop-value">
<p class="no-description">(no description)</p>
</div>
</div>
</section>
</div>
<div class="doc-examples"></div>
@@ -4161,12 +4175,7 @@
<span class="json-property-required"></span>
<div class="prop-subtitle"> in formData </div>
<div class="prop-subtitle">
<span class="json-property-type">string</span>
<span class="json-property-enum" title="Possible values">
<span class="json-property-enum-item">Public</span>,
<span class="json-property-enum-item">Unlisted</span>,
<span class="json-property-enum-item">Private</span>
</span>
<span class="json-property-type">[object Object]</span>
<span class="json-property-range" title="Value limits"></span>
</div>
</div>
@@ -4174,6 +4183,19 @@
<p>Video privacy</p>
</div>
</div>
<div class="prop-row prop-group">
<div class="prop-name">
<div class="prop-title">scheduleUpdate</div>
<div class="prop-subtitle"> in formData </div>
<div class="prop-subtitle">
<span class="json-property-type">[object Object]</span>
<span class="json-property-range" title="Value limits"></span>
</div>
</div>
<div class="prop-value">
<p class="no-description">(no description)</p>
</div>
</div>
</section>
</div>
<div class="doc-examples"></div>
@@ -8339,6 +8361,52 @@
<span class="hljs-attr">&quot;name&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
<span class="hljs-attr">&quot;description&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
}
</code></pre>
<!-- </div> -->
</section>
</div>
</div>
</div>
<div id="definition-ScheduleVideoUpdate" class="definition panel" data-traverse-target="definition-ScheduleVideoUpdate">
<h2 class="panel-title">
<a name="/definitions/ScheduleVideoUpdate"></a>ScheduleVideoUpdate:
<!-- <span class="json-property-type"><span class="json-property-type">object</span>
<span class="json-property-range" title="Value limits"></span>
</span> -->
</h2>
<div class="doc-row">
<div class="doc-copy">
<section class="json-schema-properties">
<dl>
<dt data-property-name="updateAt" class="has-description">
<span class="json-property-name">updateAt:</span>
<span class="json-property-type">dateTime</span>
<span class="json-property-range" title="Value limits"></span>
</dt>
<dd>
<p>When to update the video</p>
</dd>
<dt data-property-name="privacy">
<span class="json-property-name">privacy:</span>
<span class="json-property-type">
<span class="">
<a class="json-schema-ref" href="#/definitions/VideoPrivacy">VideoPrivacy</a>
</span>
</span>
<span class="json-property-range" title="Value limits"></span>
</dt>
</dl>
</section>
</div>
<div class="doc-examples">
<section>
<h5>Example</h5>
<!-- <div class="hljs"> --><pre><code class="hljs lang-json">{
<span class="hljs-attr">&quot;updateAt&quot;</span>: <span class="hljs-string">&quot;dateTime&quot;</span>,
<span class="hljs-attr">&quot;privacy&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
}
</code></pre>
<!-- </div> -->
</section>

View File

@@ -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