ActivityPub-federated video streaming platform using P2P directly in your web browser
Upgrade api doc
Chocobozzz61b66b361f3e
diff --git a/support/doc/api/html/index.html b/support/doc/api/html/index.htmlindex 700b2a423f..59c9825462 100644--- a/support/doc/api/html/index.html+++ b/support/doc/api/html/index.html@@ -224,6 +224,7 @@</section><h5>Schema Definitions</h5><a href="#definition-VideoConstant"> VideoConstant </a>+ <a href="#definition-VideoPrivacy"> VideoPrivacy </a><a href="#definition-Video"> Video </a><a href="#definition-VideoAbuse"> VideoAbuse </a><a href="#definition-VideoBlacklist"> VideoBlacklist </a>@@ -1223,7 +1224,8 @@</div></div><div class="prop-value columns small-6">- <!-- <div class="swagger-request-description"> -->undefined+ <!-- <div class="swagger-request-description"> -->+ <p>User to create</p><!-- </div> --></div></div>@@ -1431,6 +1433,7 @@<span class="hljs-attr">"id"</span>: <span class="hljs-string">"number"</span>,<span class="hljs-attr">"uuid"</span>: <span class="hljs-string">"string"</span>,<span class="hljs-attr">"createdAt"</span>: <span class="hljs-string">"string"</span>,+ <span class="hljs-attr">"publishedAt"</span>: <span class="hljs-string">"string"</span>,<span class="hljs-attr">"updatedAt"</span>: <span class="hljs-string">"string"</span>,<span class="hljs-attr">"category"</span>: {<span class="hljs-attr">"id"</span>: <span class="hljs-string">"number"</span>,@@ -1444,6 +1447,7 @@<span class="hljs-attr">"id"</span>: <span class="hljs-string">"number"</span>,<span class="hljs-attr">"label"</span>: <span class="hljs-string">"string"</span>},+ <span class="hljs-attr">"privacy"</span>: <span class="hljs-string">"string"</span>,<span class="hljs-attr">"description"</span>: <span class="hljs-string">"string"</span>,<span class="hljs-attr">"duration"</span>: <span class="hljs-string">"number"</span>,<span class="hljs-attr">"isLocal"</span>: <span class="hljs-string">"boolean"</span>,@@ -1454,7 +1458,18 @@<span class="hljs-attr">"views"</span>: <span class="hljs-string">"number"</span>,<span class="hljs-attr">"likes"</span>: <span class="hljs-string">"number"</span>,<span class="hljs-attr">"dislikes"</span>: <span class="hljs-string">"number"</span>,- <span class="hljs-attr">"nsfw"</span>: <span class="hljs-string">"boolean"</span>+ <span class="hljs-attr">"nsfw"</span>: <span class="hljs-string">"boolean"</span>,+ <span class="hljs-attr">"account"</span>: {+ <span class="hljs-attr">"name"</span>: <span class="hljs-string">"string"</span>,+ <span class="hljs-attr">"displayName"</span>: <span class="hljs-string">"string"</span>,+ <span class="hljs-attr">"url"</span>: <span class="hljs-string">"string"</span>,+ <span class="hljs-attr">"host"</span>: <span class="hljs-string">"string"</span>,+ <span class="hljs-attr">"avatar"</span>: {+ <span class="hljs-attr">"path"</span>: <span class="hljs-string">"string"</span>,+ <span class="hljs-attr">"createdAt"</span>: <span class="hljs-string">"string"</span>,+ <span class="hljs-attr">"updatedAt"</span>: <span class="hljs-string">"string"</span>+ }+ }}]}@@ -1638,6 +1653,7 @@<span class="hljs-attr">"id"</span>: <span class="hljs-string">"number"</span>,<span class="hljs-attr">"uuid"</span>: <span class="hljs-string">"string"</span>,<span class="hljs-attr">"createdAt"</span>: <span class="hljs-string">"string"</span>,+ <span class="hljs-attr">"publishedAt"</span>: <span class="hljs-string">"string"</span>,<span class="hljs-attr">"updatedAt"</span>: <span class="hljs-string">"string"</span>,<span class="hljs-attr">"category"</span>: {<span class="hljs-attr">"id"</span>: <span class="hljs-string">"number"</span>,@@ -1651,6 +1667,7 @@<span class="hljs-attr">"id"</span>: <span class="hljs-string">"number"</span>,<span class="hljs-attr">"label"</span>: <span class="hljs-string">"string"</span>},+ <span class="hljs-attr">"privacy"</span>: <span class="hljs-string">"string"</span>,<span class="hljs-attr">"description"</span>: <span class="hljs-string">"string"</span>,<span class="hljs-attr">"duration"</span>: <span class="hljs-string">"number"</span>,<span class="hljs-attr">"isLocal"</span>: <span class="hljs-string">"boolean"</span>,@@ -1661,7 +1678,18 @@<span class="hljs-attr">"views"</span>: <span class="hljs-string">"number"</span>,<span class="hljs-attr">"likes"</span>: <span class="hljs-string">"number"</span>,<span class="hljs-attr">"dislikes"</span>: <span class="hljs-string">"number"</span>,- <span class="hljs-attr">"nsfw"</span>: <span class="hljs-string">"boolean"</span>+ <span class="hljs-attr">"nsfw"</span>: <span class="hljs-string">"boolean"</span>,+ <span class="hljs-attr">"account"</span>: {+ <span class="hljs-attr">"name"</span>: <span class="hljs-string">"string"</span>,+ <span class="hljs-attr">"displayName"</span>: <span class="hljs-string">"string"</span>,+ <span class="hljs-attr">"url"</span>: <span class="hljs-string">"string"</span>,+ <span class="hljs-attr">"host"</span>: <span class="hljs-string">"string"</span>,+ <span class="hljs-attr">"avatar"</span>: {+ <span class="hljs-attr">"path"</span>: <span class="hljs-string">"string"</span>,+ <span class="hljs-attr">"createdAt"</span>: <span class="hljs-string">"string"</span>,+ <span class="hljs-attr">"updatedAt"</span>: <span class="hljs-string">"string"</span>+ }+ }}]}@@ -1852,6 +1880,7 @@<span class="hljs-attr">"id"</span>: <span class="hljs-string">"number"</span>,<span class="hljs-attr">"uuid"</span>: <span class="hljs-string">"string"</span>,<span class="hljs-attr">"createdAt"</span>: <span class="hljs-string">"string"</span>,+ <span class="hljs-attr">"publishedAt"</span>: <span class="hljs-string">"string"</span>,<span class="hljs-attr">"updatedAt"</span>: <span class="hljs-string">"string"</span>,<span class="hljs-attr">"category"</span>: {<span class="hljs-attr">"id"</span>: <span class="hljs-string">"number"</span>,@@ -1865,6 +1894,7 @@<span class="hljs-attr">"id"</span>: <span class="hljs-string">"number"</span>,<span class="hljs-attr">"label"</span>: <span class="hljs-string">"string"</span>},+ <span class="hljs-attr">"privacy"</span>: <span class="hljs-string">"string"</span>,<span class="hljs-attr">"description"</span>: <span class="hljs-string">"string"</span>,<span class="hljs-attr">"duration"</span>: <span class="hljs-string">"number"</span>,<span class="hljs-attr">"isLocal"</span>: <span class="hljs-string">"boolean"</span>,@@ -1875,7 +1905,18 @@<span class="hljs-attr">"views"</span>: <span class="hljs-string">"number"</span>,<span class="hljs-attr">"likes"</span>: <span class="hljs-string">"number"</span>,<span class="hljs-attr">"dislikes"</span>: <span class="hljs-string">"number"</span>,- <span class="hljs-attr">"nsfw"</span>: <span class="hljs-string">"boolean"</span>+ <span class="hljs-attr">"nsfw"</span>: <span class="hljs-string">"boolean"</span>,+ <span class="hljs-attr">"account"</span>: {+ <span class="hljs-attr">"name"</span>: <span class="hljs-string">"string"</span>,+ <span class="hljs-attr">"displayName"</span>: <span class="hljs-string">"string"</span>,+ <span class="hljs-attr">"url"</span>: <span class="hljs-string">"string"</span>,+ <span class="hljs-attr">"host"</span>: <span class="hljs-string">"string"</span>,+ <span class="hljs-attr">"avatar"</span>: {+ <span class="hljs-attr">"path"</span>: <span class="hljs-string">"string"</span>,+ <span class="hljs-attr">"createdAt"</span>: <span class="hljs-string">"string"</span>,+ <span class="hljs-attr">"updatedAt"</span>: <span class="hljs-string">"string"</span>+ }+ }}]}@@ -2197,6 +2238,7 @@<span class="hljs-attr">"id"</span>: <span class="hljs-string">"number"</span>,<span class="hljs-attr">"uuid"</span>: <span class="hljs-string">"string"</span>,<span class="hljs-attr">"createdAt"</span>: <span class="hljs-string">"string"</span>,+ <span class="hljs-attr">"publishedAt"</span>: <span class="hljs-string">"string"</span>,<span class="hljs-attr">"updatedAt"</span>: <span class="hljs-string">"string"</span>,<span class="hljs-attr">"category"</span>: {<span class="hljs-attr">"id"</span>: <span class="hljs-string">"number"</span>,@@ -2210,6 +2252,7 @@<span class="hljs-attr">"id"</span>: <span class="hljs-string">"number"</span>,<span class="hljs-attr">"label"</span>: <span class="hljs-string">"string"</span>},+ <span class="hljs-attr">"privacy"</span>: <span class="hljs-string">"string"</span>,<span class="hljs-attr">"description"</span>: <span class="hljs-string">"string"</span>,<span class="hljs-attr">"duration"</span>: <span class="hljs-string">"number"</span>,<span class="hljs-attr">"isLocal"</span>: <span class="hljs-string">"boolean"</span>,@@ -2220,7 +2263,18 @@<span class="hljs-attr">"views"</span>: <span class="hljs-string">"number"</span>,<span class="hljs-attr">"likes"</span>: <span class="hljs-string">"number"</span>,<span class="hljs-attr">"dislikes"</span>: <span class="hljs-string">"number"</span>,- <span class="hljs-attr">"nsfw"</span>: <span class="hljs-string">"boolean"</span>+ <span class="hljs-attr">"nsfw"</span>: <span class="hljs-string">"boolean"</span>,+ <span class="hljs-attr">"account"</span>: {+ <span class="hljs-attr">"name"</span>: <span class="hljs-string">"string"</span>,+ <span class="hljs-attr">"displayName"</span>: <span class="hljs-string">"string"</span>,+ <span class="hljs-attr">"url"</span>: <span class="hljs-string">"string"</span>,+ <span class="hljs-attr">"host"</span>: <span class="hljs-string">"string"</span>,+ <span class="hljs-attr">"avatar"</span>: {+ <span class="hljs-attr">"path"</span>: <span class="hljs-string">"string"</span>,+ <span class="hljs-attr">"createdAt"</span>: <span class="hljs-string">"string"</span>,+ <span class="hljs-attr">"updatedAt"</span>: <span class="hljs-string">"string"</span>+ }+ }}]</code></pre>@@ -2489,6 +2543,7 @@<span class="hljs-attr">"id"</span>: <span class="hljs-string">"number"</span>,<span class="hljs-attr">"uuid"</span>: <span class="hljs-string">"string"</span>,<span class="hljs-attr">"createdAt"</span>: <span class="hljs-string">"string"</span>,+ <span class="hljs-attr">"publishedAt"</span>: <span class="hljs-string">"string"</span>,<span class="hljs-attr">"updatedAt"</span>: <span class="hljs-string">"string"</span>,<span class="hljs-attr">"category"</span>: {<span class="hljs-attr">"id"</span>: <span class="hljs-string">"number"</span>,@@ -2502,6 +2557,7 @@<span class="hljs-attr">"id"</span>: <span class="hljs-string">"number"</span>,<span class="hljs-attr">"label"</span>: <span class="hljs-string">"string"</span>},+ <span class="hljs-attr">"privacy"</span>: <span class="hljs-string">"string"</span>,<span class="hljs-attr">"description"</span>: <span class="hljs-string">"string"</span>,<span class="hljs-attr">"duration"</span>: <span class="hljs-string">"number"</span>,<span class="hljs-attr">"isLocal"</span>: <span class="hljs-string">"boolean"</span>,@@ -2512,7 +2568,18 @@<span class="hljs-attr">"views"</span>: <span class="hljs-string">"number"</span>,<span class="hljs-attr">"likes"</span>: <span class="hljs-string">"number"</span>,<span class="hljs-attr">"dislikes"</span>: <span class="hljs-string">"number"</span>,- <span class="hljs-attr">"nsfw"</span>: <span class="hljs-string">"boolean"</span>+ <span class="hljs-attr">"nsfw"</span>: <span class="hljs-string">"boolean"</span>,+ <span class="hljs-attr">"account"</span>: {+ <span class="hljs-attr">"name"</span>: <span class="hljs-string">"string"</span>,+ <span class="hljs-attr">"displayName"</span>: <span class="hljs-string">"string"</span>,+ <span class="hljs-attr">"url"</span>: <span class="hljs-string">"string"</span>,+ <span class="hljs-attr">"host"</span>: <span class="hljs-string">"string"</span>,+ <span class="hljs-attr">"avatar"</span>: {+ <span class="hljs-attr">"path"</span>: <span class="hljs-string">"string"</span>,+ <span class="hljs-attr">"createdAt"</span>: <span class="hljs-string">"string"</span>,+ <span class="hljs-attr">"updatedAt"</span>: <span class="hljs-string">"string"</span>+ }+ }}]</code></pre>@@ -2836,6 +2903,7 @@<span class="hljs-attr">"id"</span>: <span class="hljs-string">"number"</span>,<span class="hljs-attr">"uuid"</span>: <span class="hljs-string">"string"</span>,<span class="hljs-attr">"createdAt"</span>: <span class="hljs-string">"string"</span>,+ <span class="hljs-attr">"publishedAt"</span>: <span class="hljs-string">"string"</span>,<span class="hljs-attr">"updatedAt"</span>: <span class="hljs-string">"string"</span>,<span class="hljs-attr">"category"</span>: {<span class="hljs-attr">"id"</span>: <span class="hljs-string">"number"</span>,@@ -2849,6 +2917,7 @@<span class="hljs-attr">"id"</span>: <span class="hljs-string">"number"</span>,<span class="hljs-attr">"label"</span>: <span class="hljs-string">"string"</span>},+ <span class="hljs-attr">"privacy"</span>: <span class="hljs-string">"string"</span>,<span class="hljs-attr">"description"</span>: <span class="hljs-string">"string"</span>,<span class="hljs-attr">"duration"</span>: <span class="hljs-string">"number"</span>,<span class="hljs-attr">"isLocal"</span>: <span class="hljs-string">"boolean"</span>,@@ -2859,7 +2928,18 @@<span class="hljs-attr">"views"</span>: <span class="hljs-string">"number"</span>,<span class="hljs-attr">"likes"</span>: <span class="hljs-string">"number"</span>,<span class="hljs-attr">"dislikes"</span>: <span class="hljs-string">"number"</span>,- <span class="hljs-attr">"nsfw"</span>: <span class="hljs-string">"boolean"</span>+ <span class="hljs-attr">"nsfw"</span>: <span class="hljs-string">"boolean"</span>,+ <span class="hljs-attr">"account"</span>: {+ <span class="hljs-attr">"name"</span>: <span class="hljs-string">"string"</span>,+ <span class="hljs-attr">"displayName"</span>: <span class="hljs-string">"string"</span>,+ <span class="hljs-attr">"url"</span>: <span class="hljs-string">"string"</span>,+ <span class="hljs-attr">"host"</span>: <span class="hljs-string">"string"</span>,+ <span class="hljs-attr">"avatar"</span>: {+ <span class="hljs-attr">"path"</span>: <span class="hljs-string">"string"</span>,+ <span class="hljs-attr">"createdAt"</span>: <span class="hljs-string">"string"</span>,+ <span class="hljs-attr">"updatedAt"</span>: <span class="hljs-string">"string"</span>+ }+ }}]</code></pre>@@ -2892,7 +2972,7 @@<span class="json-property-required"></span></div><div class="prop-value">- <p>The video id </p>+ <p>The video id</p></div></div><div class="prop-row prop-inner">@@ -2906,213 +2986,606 @@<div class="prop-name param-label">in</div><div class="prop-value">path</div></div>- </section>- </div>- <div class="doc-examples"></div>- </div>- <div class="doc-row">- <div class="doc-copy">- <section class="swagger-responses"><div class="prop-row prop-group"><div class="prop-name">- <div class="prop-title">200 OK</div>- <div class="prop-ref">- <span class="">- <a class="json-schema-ref" href="#/definitions/Video">Video</a>- </span>- </div>- <!-- <span class="swagger-global"></span> <span class="json-schema-reference"><a href=""></a></span> -->+ <div class="prop-title">thumbnailfile</div></div><div class="prop-value">- <p>successful operation</p>+ <p>Video thumbnail file</p></div></div>- </section>- </div>- <div class="doc-examples">- <h5>Response Content-Types:- <span>application/json</span>- </h5>- <section>- <h5>Response Example- <span>(200 OK)</span>- </h5>- <!-- <div class="hljs"> --><pre><code class="hljs lang-json">{- <span class="hljs-attr">"id"</span>: <span class="hljs-string">"number"</span>,- <span class="hljs-attr">"uuid"</span>: <span class="hljs-string">"string"</span>,- <span class="hljs-attr">"createdAt"</span>: <span class="hljs-string">"string"</span>,- <span class="hljs-attr">"updatedAt"</span>: <span class="hljs-string">"string"</span>,- <span class="hljs-attr">"category"</span>: {- <span class="hljs-attr">"id"</span>: <span class="hljs-string">"number"</span>,- <span class="hljs-attr">"label"</span>: <span class="hljs-string">"string"</span>- },- <span class="hljs-attr">"licence"</span>: {- <span class="hljs-attr">"id"</span>: <span class="hljs-string">"number"</span>,- <span class="hljs-attr">"label"</span>: <span class="hljs-string">"string"</span>- },- <span class="hljs-attr">"language"</span>: {- <span class="hljs-attr">"id"</span>: <span class="hljs-string">"number"</span>,- <span class="hljs-attr">"label"</span>: <span class="hljs-string">"string"</span>- },- <span class="hljs-attr">"description"</span>: <span class="hljs-string">"string"</span>,- <span class="hljs-attr">"duration"</span>: <span class="hljs-string">"number"</span>,- <span class="hljs-attr">"isLocal"</span>: <span class="hljs-string">"boolean"</span>,- <span class="hljs-attr">"name"</span>: <span class="hljs-string">"string"</span>,- <span class="hljs-attr">"thumbnailPath"</span>: <span class="hljs-string">"string"</span>,- <span class="hljs-attr">"previewPath"</span>: <span class="hljs-string">"string"</span>,- <span class="hljs-attr">"embedPath"</span>: <span class="hljs-string">"string"</span>,- <span class="hljs-attr">"views"</span>: <span class="hljs-string">"number"</span>,- <span class="hljs-attr">"likes"</span>: <span class="hljs-string">"number"</span>,- <span class="hljs-attr">"dislikes"</span>: <span class="hljs-string">"number"</span>,- <span class="hljs-attr">"nsfw"</span>: <span class="hljs-string">"boolean"</span>-}-</code></pre>- <!-- </div> -->- </section>- </div>- </div>- </div>- <div id="operation--videos--id--get" class="operation panel" data-traverse-target="operation--videos--id--get">- <!-- <section class="operation-tags row"> -->- <!-- <div class="doc-copy"> -->- <div class="operation-tags">- <a class="label" href="#tag-Video">Video</a>- <!---->- </div>- <!-- </div> -->- <!-- </section> -->- <h2 class="operation-title">- <span class="operation-name">- <span class="operation-name">GET</span>- <span class="operation-path">/videos/{id}</span>- </span>- </h2>- <div class="doc-row">- <div class="doc-copy">- <section class="swagger-request-params">+ <div class="prop-row prop-inner">+ <div class="prop-name param-label">type</div>+ <div class="prop-value">+ <span class="json-property-type">file</span>+ <span class="json-property-range" title="Value limits"></span>+ </div>+ </div>+ <div class="prop-row prop-inner">+ <div class="prop-name param-label">in</div>+ <div class="prop-value">formData</div>+ </div><div class="prop-row prop-group"><div class="prop-name">- <div class="prop-title">id</div>- <span class="json-property-required"></span>+ <div class="prop-title">previewfile</div></div><div class="prop-value">- <p>The video id </p>+ <p>Video preview file</p></div></div><div class="prop-row prop-inner"><div class="prop-name param-label">type</div><div class="prop-value">- <span class="json-property-type">string</span>+ <span class="json-property-type">file</span><span class="json-property-range" title="Value limits"></span></div></div><div class="prop-row prop-inner"><div class="prop-name param-label">in</div>- <div class="prop-value">path</div>+ <div class="prop-value">formData</div></div>- </section>- </div>- <div class="doc-examples"></div>- </div>- <div class="doc-row">- <div class="doc-copy">- <section class="swagger-responses"><div class="prop-row prop-group"><div class="prop-name">- <div class="prop-title">200 OK</div>- <div class="prop-ref">- <span class="">- <a class="json-schema-ref" href="#/definitions/Video">Video</a>- </span>- </div>- <!-- <span class="swagger-global"></span> <span class="json-schema-reference"><a href=""></a></span> -->+ <div class="prop-title">category</div></div><div class="prop-value">- <p>successful operation</p>+ <p>Video category</p></div></div>- </section>- </div>- <div class="doc-examples">- <h5>Response Content-Types:- <span>application/json</span>- </h5>- <section>- <h5>Response Example- <span>(200 OK)</span>- </h5>- <!-- <div class="hljs"> --><pre><code class="hljs lang-json">{- <span class="hljs-attr">"id"</span>: <span class="hljs-string">"number"</span>,- <span class="hljs-attr">"uuid"</span>: <span class="hljs-string">"string"</span>,- <span class="hljs-attr">"createdAt"</span>: <span class="hljs-string">"string"</span>,- <span class="hljs-attr">"updatedAt"</span>: <span class="hljs-string">"string"</span>,- <span class="hljs-attr">"category"</span>: {- <span class="hljs-attr">"id"</span>: <span class="hljs-string">"number"</span>,- <span class="hljs-attr">"label"</span>: <span class="hljs-string">"string"</span>- },- <span class="hljs-attr">"licence"</span>: {- <span class="hljs-attr">"id"</span>: <span class="hljs-string">"number"</span>,- <span class="hljs-attr">"label"</span>: <span class="hljs-string">"string"</span>- },- <span class="hljs-attr">"language"</span>: {- <span class="hljs-attr">"id"</span>: <span class="hljs-string">"number"</span>,- <span class="hljs-attr">"label"</span>: <span class="hljs-string">"string"</span>- },- <span class="hljs-attr">"description"</span>: <span class="hljs-string">"string"</span>,- <span class="hljs-attr">"duration"</span>: <span class="hljs-string">"number"</span>,- <span class="hljs-attr">"isLocal"</span>: <span class="hljs-string">"boolean"</span>,- <span class="hljs-attr">"name"</span>: <span class="hljs-string">"string"</span>,- <span class="hljs-attr">"thumbnailPath"</span>: <span class="hljs-string">"string"</span>,- <span class="hljs-attr">"previewPath"</span>: <span class="hljs-string">"string"</span>,- <span class="hljs-attr">"embedPath"</span>: <span class="hljs-string">"string"</span>,- <span class="hljs-attr">"views"</span>: <span class="hljs-string">"number"</span>,- <span class="hljs-attr">"likes"</span>: <span class="hljs-string">"number"</span>,- <span class="hljs-attr">"dislikes"</span>: <span class="hljs-string">"number"</span>,- <span class="hljs-attr">"nsfw"</span>: <span class="hljs-string">"boolean"</span>-}-</code></pre>- <!-- </div> -->- </section>- </div>- </div>- </div>- <div id="operation--videos--id--delete" class="operation panel" data-traverse-target="operation--videos--id--delete">- <!-- <section class="operation-tags row"> -->- <!-- <div class="doc-copy"> -->- <div class="operation-tags">- <a class="label" href="#tag-Video">Video</a>- <!---->- </div>- <!-- </div> -->- <!-- </section> -->- <h2 class="operation-title">- <span class="operation-name">- <span class="operation-name">DELETE</span>- <span class="operation-path">/videos/{id}</span>- </span>- </h2>- <div class="doc-row">- <div class="doc-copy">- <section class="swagger-request-params">+ <div class="prop-row prop-inner">+ <div class="prop-name param-label">type</div>+ <div class="prop-value">+ <span class="json-property-type">number</span>+ <span class="json-property-range" title="Value limits"></span>+ </div>+ </div>+ <div class="prop-row prop-inner">+ <div class="prop-name param-label">in</div>+ <div class="prop-value">formData</div>+ </div><div class="prop-row prop-group"><div class="prop-name">- <div class="prop-title">id</div>- <span class="json-property-required"></span>+ <div class="prop-title">licence</div></div><div class="prop-value">- <p>The video id </p>+ <p>Video licence</p></div></div><div class="prop-row prop-inner"><div class="prop-name param-label">type</div><div class="prop-value">- <span class="json-property-type">string</span>+ <span class="json-property-type">number</span><span class="json-property-range" title="Value limits"></span></div></div><div class="prop-row prop-inner"><div class="prop-name param-label">in</div>- <div class="prop-value">path</div>+ <div class="prop-value">formData</div>+ </div>+ <div class="prop-row prop-group">+ <div class="prop-name">+ <div class="prop-title">language</div>+ </div>+ <div class="prop-value">+ <p>Video language</p>+ </div>+ </div>+ <div class="prop-row prop-inner">+ <div class="prop-name param-label">type</div>+ <div class="prop-value">+ <span class="json-property-type">number</span>+ <span class="json-property-range" title="Value limits"></span>+ </div>+ </div>+ <div class="prop-row prop-inner">+ <div class="prop-name param-label">in</div>+ <div class="prop-value">formData</div>+ </div>+ <div class="prop-row prop-group">+ <div class="prop-name">+ <div class="prop-title">description</div>+ </div>+ <div class="prop-value">+ <p>Video description</p>+ </div>+ </div>+ <div class="prop-row prop-inner">+ <div class="prop-name param-label">type</div>+ <div class="prop-value">+ <span class="json-property-type">string</span>+ <span class="json-property-range" title="Value limits"></span>+ </div>+ </div>+ <div class="prop-row prop-inner">+ <div class="prop-name param-label">in</div>+ <div class="prop-value">formData</div>+ </div>+ <div class="prop-row prop-group">+ <div class="prop-name">+ <div class="prop-title">support</div>+ </div>+ <div class="prop-value">+ <p>Text describing how to support the video uploader</p>+ </div>+ </div>+ <div class="prop-row prop-inner">+ <div class="prop-name param-label">type</div>+ <div class="prop-value">+ <span class="json-property-type">string</span>+ <span class="json-property-range" title="Value limits"></span>+ </div>+ </div>+ <div class="prop-row prop-inner">+ <div class="prop-name param-label">in</div>+ <div class="prop-value">formData</div>+ </div>+ <div class="prop-row prop-group">+ <div class="prop-name">+ <div class="prop-title">nsfw</div>+ </div>+ <div class="prop-value">+ <p>Whether or not this video contains sensitive content</p>+ </div>+ </div>+ <div class="prop-row prop-inner">+ <div class="prop-name param-label">type</div>+ <div class="prop-value">+ <span class="json-property-type">boolean</span>+ <span class="json-property-range" title="Value limits"></span>+ </div>+ </div>+ <div class="prop-row prop-inner">+ <div class="prop-name param-label">in</div>+ <div class="prop-value">formData</div>+ </div>+ <div class="prop-row prop-group">+ <div class="prop-name">+ <div class="prop-title">name</div>+ </div>+ <div class="prop-value">+ <p>Video name</p>+ </div>+ </div>+ <div class="prop-row prop-inner">+ <div class="prop-name param-label">type</div>+ <div class="prop-value">+ <span class="json-property-type">string</span>+ <span class="json-property-range" title="Value limits"></span>+ </div>+ </div>+ <div class="prop-row prop-inner">+ <div class="prop-name param-label">in</div>+ <div class="prop-value">formData</div>+ </div>+ <div class="prop-row prop-group">+ <div class="prop-name">+ <div class="prop-title">tags</div>+ </div>+ <div class="prop-value">+ <p>Video tags</p>+ </div>+ </div>+ <div class="prop-row prop-inner">+ <div class="prop-name param-label">type</div>+ <div class="prop-value">+ <span class="json-property-type">string[]</span>+ <span class="json-property-range" title="Value limits"></span>+ </div>+ </div>+ <div class="prop-row prop-inner">+ <div class="prop-name param-label">in</div>+ <div class="prop-value">formData</div>+ </div>+ <div class="prop-row prop-group">+ <div class="prop-name">+ <div class="prop-title">commentsEnabled</div>+ </div>+ <div class="prop-value">+ <p>Enable or disable comments for this video</p>+ </div>+ </div>+ <div class="prop-row prop-inner">+ <div class="prop-name param-label">type</div>+ <div class="prop-value">+ <span class="json-property-type">boolean</span>+ <span class="json-property-range" title="Value limits"></span>+ </div>+ </div>+ <div class="prop-row prop-inner">+ <div class="prop-name param-label">in</div>+ <div class="prop-value">formData</div>+ </div>+ <div class="prop-row prop-group">+ <div class="prop-name">+ <div class="prop-title">privacy</div>+ </div>+ <div class="prop-value">+ <p>Video privacy</p>+ </div>+ </div>+ <div class="prop-row prop-inner">+ <div class="prop-name param-label">type</div>+ <div class="prop-value">+ <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-range" title="Value limits"></span>+ </div>+ </div>+ <div class="prop-row prop-inner">+ <div class="prop-name param-label">in</div>+ <div class="prop-value">formData</div>+ </div>+ </section>+ </div>+ <div class="doc-examples"></div>+ </div>+ <div class="doc-row">+ <div class="doc-copy">+ <section class="swagger-responses">+ <div class="prop-row prop-group">+ <div class="prop-name">+ <div class="prop-title">200 OK</div>+ <div class="prop-ref">+ <span class="">+ <a class="json-schema-ref" href="#/definitions/Video">Video</a>+ </span>+ </div>+ <!-- <span class="swagger-global"></span> <span class="json-schema-reference"><a href=""></a></span> -->+ </div>+ <div class="prop-value">+ <p>successful operation</p>+ </div>+ </div>+ </section>+ </div>+ <div class="doc-examples">+ <h5>Response Content-Types:+ <span>application/json</span>+ </h5>+ <section>+ <h5>Response Example+ <span>(200 OK)</span>+ </h5>+ <!-- <div class="hljs"> --><pre><code class="hljs lang-json">{+ <span class="hljs-attr">"id"</span>: <span class="hljs-string">"number"</span>,+ <span class="hljs-attr">"uuid"</span>: <span class="hljs-string">"string"</span>,+ <span class="hljs-attr">"createdAt"</span>: <span class="hljs-string">"string"</span>,+ <span class="hljs-attr">"publishedAt"</span>: <span class="hljs-string">"string"</span>,+ <span class="hljs-attr">"updatedAt"</span>: <span class="hljs-string">"string"</span>,+ <span class="hljs-attr">"category"</span>: {+ <span class="hljs-attr">"id"</span>: <span class="hljs-string">"number"</span>,+ <span class="hljs-attr">"label"</span>: <span class="hljs-string">"string"</span>+ },+ <span class="hljs-attr">"licence"</span>: {+ <span class="hljs-attr">"id"</span>: <span class="hljs-string">"number"</span>,+ <span class="hljs-attr">"label"</span>: <span class="hljs-string">"string"</span>+ },+ <span class="hljs-attr">"language"</span>: {+ <span class="hljs-attr">"id"</span>: <span class="hljs-string">"number"</span>,+ <span class="hljs-attr">"label"</span>: <span class="hljs-string">"string"</span>+ },+ <span class="hljs-attr">"privacy"</span>: <span class="hljs-string">"string"</span>,+ <span class="hljs-attr">"description"</span>: <span class="hljs-string">"string"</span>,+ <span class="hljs-attr">"duration"</span>: <span class="hljs-string">"number"</span>,+ <span class="hljs-attr">"isLocal"</span>: <span class="hljs-string">"boolean"</span>,+ <span class="hljs-attr">"name"</span>: <span class="hljs-string">"string"</span>,+ <span class="hljs-attr">"thumbnailPath"</span>: <span class="hljs-string">"string"</span>,+ <span class="hljs-attr">"previewPath"</span>: <span class="hljs-string">"string"</span>,+ <span class="hljs-attr">"embedPath"</span>: <span class="hljs-string">"string"</span>,+ <span class="hljs-attr">"views"</span>: <span class="hljs-string">"number"</span>,+ <span class="hljs-attr">"likes"</span>: <span class="hljs-string">"number"</span>,+ <span class="hljs-attr">"dislikes"</span>: <span class="hljs-string">"number"</span>,+ <span class="hljs-attr">"nsfw"</span>: <span class="hljs-string">"boolean"</span>,+ <span class="hljs-attr">"account"</span>: {+ <span class="hljs-attr">"name"</span>: <span class="hljs-string">"string"</span>,+ <span class="hljs-attr">"displayName"</span>: <span class="hljs-string">"string"</span>,+ <span class="hljs-attr">"url"</span>: <span class="hljs-string">"string"</span>,+ <span class="hljs-attr">"host"</span>: <span class="hljs-string">"string"</span>,+ <span class="hljs-attr">"avatar"</span>: {+ <span class="hljs-attr">"path"</span>: <span class="hljs-string">"string"</span>,+ <span class="hljs-attr">"createdAt"</span>: <span class="hljs-string">"string"</span>,+ <span class="hljs-attr">"updatedAt"</span>: <span class="hljs-string">"string"</span>+ }+ }+}+</code></pre>+ <!-- </div> -->+ </section>+ </div>+ </div>+ </div>+ <div id="operation--videos--id--get" class="operation panel" data-traverse-target="operation--videos--id--get">+ <!-- <section class="operation-tags row"> -->+ <!-- <div class="doc-copy"> -->+ <div class="operation-tags">+ <a class="label" href="#tag-Video">Video</a>+ <!---->+ </div>+ <!-- </div> -->+ <!-- </section> -->+ <h2 class="operation-title">+ <span class="operation-name">+ <span class="operation-name">GET</span>+ <span class="operation-path">/videos/{id}</span>+ </span>+ </h2>+ <div class="doc-row">+ <div class="doc-copy">+ <section class="swagger-request-params">+ <div class="prop-row prop-group">+ <div class="prop-name">+ <div class="prop-title">id</div>+ <span class="json-property-required"></span>+ </div>+ <div class="prop-value">+ <p>The video id </p>+ </div>+ </div>+ <div class="prop-row prop-inner">+ <div class="prop-name param-label">type</div>+ <div class="prop-value">+ <span class="json-property-type">string</span>+ <span class="json-property-range" title="Value limits"></span>+ </div>+ </div>+ <div class="prop-row prop-inner">+ <div class="prop-name param-label">in</div>+ <div class="prop-value">path</div>+ </div>+ </section>+ </div>+ <div class="doc-examples"></div>+ </div>+ <div class="doc-row">+ <div class="doc-copy">+ <section class="swagger-responses">+ <div class="prop-row prop-group">+ <div class="prop-name">+ <div class="prop-title">200 OK</div>+ <div class="prop-ref">+ <span class="">+ <a class="json-schema-ref" href="#/definitions/Video">Video</a>+ </span>+ </div>+ <!-- <span class="swagger-global"></span> <span class="json-schema-reference"><a href=""></a></span> -->+ </div>+ <div class="prop-value">+ <p>successful operation</p>+ </div>+ </div>+ </section>+ </div>+ <div class="doc-examples">+ <h5>Response Content-Types:+ <span>application/json</span>+ </h5>+ <section>+ <h5>Response Example+ <span>(200 OK)</span>+ </h5>+ <!-- <div class="hljs"> --><pre><code class="hljs lang-json">{+ <span class="hljs-attr">"id"</span>: <span class="hljs-string">"number"</span>,+ <span class="hljs-attr">"uuid"</span>: <span class="hljs-string">"string"</span>,+ <span class="hljs-attr">"createdAt"</span>: <span class="hljs-string">"string"</span>,+ <span class="hljs-attr">"publishedAt"</span>: <span class="hljs-string">"string"</span>,+ <span class="hljs-attr">"updatedAt"</span>: <span class="hljs-string">"string"</span>,+ <span class="hljs-attr">"category"</span>: {+ <span class="hljs-attr">"id"</span>: <span class="hljs-string">"number"</span>,+ <span class="hljs-attr">"label"</span>: <span class="hljs-string">"string"</span>+ },+ <span class="hljs-attr">"licence"</span>: {+ <span class="hljs-attr">"id"</span>: <span class="hljs-string">"number"</span>,+ <span class="hljs-attr">"label"</span>: <span class="hljs-string">"string"</span>+ },+ <span class="hljs-attr">"language"</span>: {+ <span class="hljs-attr">"id"</span>: <span class="hljs-string">"number"</span>,+ <span class="hljs-attr">"label"</span>: <span class="hljs-string">"string"</span>+ },+ <span class="hljs-attr">"privacy"</span>: <span class="hljs-string">"string"</span>,+ <span class="hljs-attr">"description"</span>: <span class="hljs-string">"string"</span>,+ <span class="hljs-attr">"duration"</span>: <span class="hljs-string">"number"</span>,+ <span class="hljs-attr">"isLocal"</span>: <span class="hljs-string">"boolean"</span>,+ <span class="hljs-attr">"name"</span>: <span class="hljs-string">"string"</span>,+ <span class="hljs-attr">"thumbnailPath"</span>: <span class="hljs-string">"string"</span>,+ <span class="hljs-attr">"previewPath"</span>: <span class="hljs-string">"string"</span>,+ <span class="hljs-attr">"embedPath"</span>: <span class="hljs-string">"string"</span>,+ <span class="hljs-attr">"views"</span>: <span class="hljs-string">"number"</span>,+ <span class="hljs-attr">"likes"</span>: <span class="hljs-string">"number"</span>,+ <span class="hljs-attr">"dislikes"</span>: <span class="hljs-string">"number"</span>,+ <span class="hljs-attr">"nsfw"</span>: <span class="hljs-string">"boolean"</span>,+ <span class="hljs-attr">"account"</span>: {+ <span class="hljs-attr">"name"</span>: <span class="hljs-string">"string"</span>,+ <span class="hljs-attr">"displayName"</span>: <span class="hljs-string">"string"</span>,+ <span class="hljs-attr">"url"</span>: <span class="hljs-string">"string"</span>,+ <span class="hljs-attr">"host"</span>: <span class="hljs-string">"string"</span>,+ <span class="hljs-attr">"avatar"</span>: {+ <span class="hljs-attr">"path"</span>: <span class="hljs-string">"string"</span>,+ <span class="hljs-attr">"createdAt"</span>: <span class="hljs-string">"string"</span>,+ <span class="hljs-attr">"updatedAt"</span>: <span class="hljs-string">"string"</span>+ }+ }+}+</code></pre>+ <!-- </div> -->+ </section>+ </div>+ </div>+ </div>+ <div id="operation--videos--id--delete" class="operation panel" data-traverse-target="operation--videos--id--delete">+ <!-- <section class="operation-tags row"> -->+ <!-- <div class="doc-copy"> -->+ <div class="operation-tags">+ <a class="label" href="#tag-Video">Video</a>+ <!---->+ </div>+ <!-- </div> -->+ <!-- </section> -->+ <h2 class="operation-title">+ <span class="operation-name">+ <span class="operation-name">DELETE</span>+ <span class="operation-path">/videos/{id}</span>+ </span>+ </h2>+ <div class="doc-row">+ <div class="doc-copy">+ <section class="swagger-request-params">+ <div class="prop-row prop-group">+ <div class="prop-name">+ <div class="prop-title">id</div>+ <span class="json-property-required"></span>+ </div>+ <div class="prop-value">+ <p>The video id </p>+ </div>+ </div>+ <div class="prop-row prop-inner">+ <div class="prop-name param-label">type</div>+ <div class="prop-value">+ <span class="json-property-type">string</span>+ <span class="json-property-range" title="Value limits"></span>+ </div>+ </div>+ <div class="prop-row prop-inner">+ <div class="prop-name param-label">in</div>+ <div class="prop-value">path</div>+ </div>+ </section>+ </div>+ <div class="doc-examples"></div>+ </div>+ <div class="doc-row">+ <div class="doc-copy">+ <section class="swagger-responses">+ <div class="prop-row prop-group">+ <div class="prop-name">+ <div class="prop-title">204 No Content</div>+ </div>+ <div class="prop-value">+ <p>successful operation</p>+ </div>+ </div>+ </section>+ </div>+ <div class="doc-examples">+ <h5>Response Content-Types:+ <span>application/json</span>+ </h5>+ </div>+ </div>+ </div>+ <div id="operation--videos--id--description-get" class="operation panel" data-traverse-target="operation--videos--id--description-get">+ <!-- <section class="operation-tags row"> -->+ <!-- <div class="doc-copy"> -->+ <div class="operation-tags">+ <a class="label" href="#tag-Video">Video</a>+ <!---->+ </div>+ <!-- </div> -->+ <!-- </section> -->+ <h2 class="operation-title">+ <span class="operation-name">+ <span class="operation-name">GET</span>+ <span class="operation-path">/videos/{id}/description</span>+ </span>+ </h2>+ <div class="doc-row">+ <div class="doc-copy">+ <section class="swagger-request-params">+ <div class="prop-row prop-group">+ <div class="prop-name">+ <div class="prop-title">id</div>+ <span class="json-property-required"></span>+ </div>+ <div class="prop-value">+ <p>The video id </p>+ </div>+ </div>+ <div class="prop-row prop-inner">+ <div class="prop-name param-label">type</div>+ <div class="prop-value">+ <span class="json-property-type">string</span>+ <span class="json-property-range" title="Value limits"></span>+ </div>+ </div>+ <div class="prop-row prop-inner">+ <div class="prop-name param-label">in</div>+ <div class="prop-value">path</div>+ </div>+ </section>+ </div>+ <div class="doc-examples"></div>+ </div>+ <div class="doc-row">+ <div class="doc-copy">+ <section class="swagger-responses">+ <div class="prop-row prop-group">+ <div class="prop-name">+ <div class="prop-title">200 OK</div>+ <div class="prop-ref"></div>+ <!-- <span class="swagger-global"></span> <span class="json-schema-reference"><a href=""></a></span> -->+ </div>+ <div class="prop-value">+ <p>successful operation</p>+ </div>+ </div>+ </section>+ </div>+ <div class="doc-examples">+ <h5>Response Content-Types:+ <span>application/json</span>+ </h5>+ <section>+ <h5>Response Example+ <span>(200 OK)</span>+ </h5>+ <!-- <div class="hljs"> --><pre><code class="hljs lang-json"><span class="hljs-string">"string"</span>+</code></pre>+ <!-- </div> -->+ </section>+ </div>+ </div>+ </div>+ <div id="operation--videos--id--views-post" class="operation panel" data-traverse-target="operation--videos--id--views-post">+ <!-- <section class="operation-tags row"> -->+ <!-- <div class="doc-copy"> -->+ <div class="operation-tags">+ <a class="label" href="#tag-Video">Video</a>+ <!---->+ </div>+ <!-- </div> -->+ <!-- </section> -->+ <h2 class="operation-title">+ <span class="operation-name">+ <span class="operation-name">POST</span>+ <span class="operation-path">/videos/{id}/views</span>+ </span>+ </h2>+ <div class="doc-row">+ <div class="doc-copy">+ <section class="swagger-request-params">+ <div class="prop-row prop-group">+ <div class="prop-name">+ <div class="prop-title">id</div>+ <span class="json-property-required"></span>+ </div>+ <div class="prop-value">+ <p>The video id </p>+ </div>+ </div>+ <div class="prop-row prop-inner">+ <div class="prop-name param-label">type</div>+ <div class="prop-value">+ <span class="json-property-type">string</span>+ <span class="json-property-range" title="Value limits"></span>+ </div>+ </div>+ <div class="prop-row prop-inner">+ <div class="prop-name param-label">in</div>+ <div class="prop-value">path</div></div></section></div>@@ -3138,7 +3611,7 @@</div></div></div>- <div id="operation--videos--id--description-get" class="operation panel" data-traverse-target="operation--videos--id--description-get">+ <div id="operation--videos-upload-post" class="operation panel" data-traverse-target="operation--videos-upload-post"><!-- <section class="operation-tags row"> --><!-- <div class="doc-copy"> --><div class="operation-tags">@@ -3149,8 +3622,8 @@<!-- </section> --><h2 class="operation-title"><span class="operation-name">- <span class="operation-name">GET</span>- <span class="operation-path">/videos/{id}/description</span>+ <span class="operation-name">POST</span>+ <span class="operation-path">/videos/upload</span></span></h2><div class="doc-row">@@ -3158,83 +3631,206 @@<section class="swagger-request-params"><div class="prop-row prop-group"><div class="prop-name">- <div class="prop-title">id</div>+ <div class="prop-title">videofile</div>+ <span class="json-property-required"></span>+ </div>+ <div class="prop-value">+ <p>Video file</p>+ </div>+ </div>+ <div class="prop-row prop-inner">+ <div class="prop-name param-label">type</div>+ <div class="prop-value">+ <span class="json-property-type">file</span>+ <span class="json-property-range" title="Value limits"></span>+ </div>+ </div>+ <div class="prop-row prop-inner">+ <div class="prop-name param-label">in</div>+ <div class="prop-value">formData</div>+ </div>+ <div class="prop-row prop-group">+ <div class="prop-name">+ <div class="prop-title">thumbnailfile</div>+ <span class="json-property-required"></span>+ </div>+ <div class="prop-value">+ <p>Video thumbnail file</p>+ </div>+ </div>+ <div class="prop-row prop-inner">+ <div class="prop-name param-label">type</div>+ <div class="prop-value">+ <span class="json-property-type">file</span>+ <span class="json-property-range" title="Value limits"></span>+ </div>+ </div>+ <div class="prop-row prop-inner">+ <div class="prop-name param-label">in</div>+ <div class="prop-value">formData</div>+ </div>+ <div class="prop-row prop-group">+ <div class="prop-name">+ <div class="prop-title">previewfile</div>+ <span class="json-property-required"></span>+ </div>+ <div class="prop-value">+ <p>Video preview file</p>+ </div>+ </div>+ <div class="prop-row prop-inner">+ <div class="prop-name param-label">type</div>+ <div class="prop-value">+ <span class="json-property-type">file</span>+ <span class="json-property-range" title="Value limits"></span>+ </div>+ </div>+ <div class="prop-row prop-inner">+ <div class="prop-name param-label">in</div>+ <div class="prop-value">formData</div>+ </div>+ <div class="prop-row prop-group">+ <div class="prop-name">+ <div class="prop-title">category</div>+ </div>+ <div class="prop-value">+ <p>Video category</p>+ </div>+ </div>+ <div class="prop-row prop-inner">+ <div class="prop-name param-label">type</div>+ <div class="prop-value">+ <span class="json-property-type">number</span>+ <span class="json-property-range" title="Value limits"></span>+ </div>+ </div>+ <div class="prop-row prop-inner">+ <div class="prop-name param-label">in</div>+ <div class="prop-value">formData</div>+ </div>+ <div class="prop-row prop-group">+ <div class="prop-name">+ <div class="prop-title">licence</div>+ </div>+ <div class="prop-value">+ <p>Video licence</p>+ </div>+ </div>+ <div class="prop-row prop-inner">+ <div class="prop-name param-label">type</div>+ <div class="prop-value">+ <span class="json-property-type">number</span>+ <span class="json-property-range" title="Value limits"></span>+ </div>+ </div>+ <div class="prop-row prop-inner">+ <div class="prop-name param-label">in</div>+ <div class="prop-value">formData</div>+ </div>+ <div class="prop-row prop-group">+ <div class="prop-name">+ <div class="prop-title">language</div>+ </div>+ <div class="prop-value">+ <p>Video language</p>+ </div>+ </div>+ <div class="prop-row prop-inner">+ <div class="prop-name param-label">type</div>+ <div class="prop-value">+ <span class="json-property-type">number</span>+ <span class="json-property-range" title="Value limits"></span>+ </div>+ </div>+ <div class="prop-row prop-inner">+ <div class="prop-name param-label">in</div>+ <div class="prop-value">formData</div>+ </div>+ <div class="prop-row prop-group">+ <div class="prop-name">+ <div class="prop-title">description</div>+ </div>+ <div class="prop-value">+ <p>Video description</p>+ </div>+ </div>+ <div class="prop-row prop-inner">+ <div class="prop-name param-label">type</div>+ <div class="prop-value">+ <span class="json-property-type">string</span>+ <span class="json-property-range" title="Value limits"></span>+ </div>+ </div>+ <div class="prop-row prop-inner">+ <div class="prop-name param-label">in</div>+ <div class="prop-value">formData</div>+ </div>+ <div class="prop-row prop-group">+ <div class="prop-name">+ <div class="prop-title">support</div>+ </div>+ <div class="prop-value">+ <p>Text describing how to support the video uploader</p>+ </div>+ </div>+ <div class="prop-row prop-inner">+ <div class="prop-name param-label">type</div>+ <div class="prop-value">+ <span class="json-property-type">string</span>+ <span class="json-property-range" title="Value limits"></span>+ </div>+ </div>+ <div class="prop-row prop-inner">+ <div class="prop-name param-label">in</div>+ <div class="prop-value">formData</div>+ </div>+ <div class="prop-row prop-group">+ <div class="prop-name">+ <div class="prop-title">channelId</div><span class="json-property-required"></span></div><div class="prop-value">- <p>The video id </p>+ <p>Channel id that will contain this video</p></div></div><div class="prop-row prop-inner"><div class="prop-name param-label">type</div><div class="prop-value">- <span class="json-property-type">string</span>+ <span class="json-property-type">number</span><span class="json-property-range" title="Value limits"></span></div></div><div class="prop-row prop-inner"><div class="prop-name param-label">in</div>- <div class="prop-value">path</div>+ <div class="prop-value">formData</div></div>- </section>- </div>- <div class="doc-examples"></div>- </div>- <div class="doc-row">- <div class="doc-copy">- <section class="swagger-responses"><div class="prop-row prop-group"><div class="prop-name">- <div class="prop-title">200 OK</div>- <div class="prop-ref"></div>- <!-- <span class="swagger-global"></span> <span class="json-schema-reference"><a href=""></a></span> -->+ <div class="prop-title">nsfw</div>+ <span class="json-property-required"></span></div><div class="prop-value">- <p>successful operation</p>+ <p>Whether or not this video contains sensitive content</p></div></div>- </section>- </div>- <div class="doc-examples">- <h5>Response Content-Types:- <span>application/json</span>- </h5>- <section>- <h5>Response Example- <span>(200 OK)</span>- </h5>- <!-- <div class="hljs"> --><pre><code class="hljs lang-json"><span class="hljs-string">"string"</span>-</code></pre>- <!-- </div> -->- </section>- </div>- </div>- </div>- <div id="operation--videos--id--views-post" class="operation panel" data-traverse-target="operation--videos--id--views-post">- <!-- <section class="operation-tags row"> -->- <!-- <div class="doc-copy"> -->- <div class="operation-tags">- <a class="label" href="#tag-Video">Video</a>- <!---->- </div>- <!-- </div> -->- <!-- </section> -->- <h2 class="operation-title">- <span class="operation-name">- <span class="operation-name">POST</span>- <span class="operation-path">/videos/{id}/views</span>- </span>- </h2>- <div class="doc-row">- <div class="doc-copy">- <section class="swagger-request-params">+ <div class="prop-row prop-inner">+ <div class="prop-name param-label">type</div>+ <div class="prop-value">+ <span class="json-property-type">boolean</span>+ <span class="json-property-range" title="Value limits"></span>+ </div>+ </div>+ <div class="prop-row prop-inner">+ <div class="prop-name param-label">in</div>+ <div class="prop-value">formData</div>+ </div><div class="prop-row prop-group"><div class="prop-name">- <div class="prop-title">id</div>+ <div class="prop-title">name</div><span class="json-property-required"></span></div><div class="prop-value">- <p>The video id </p>+ <p>Video name</p></div></div><div class="prop-row prop-inner">@@ -3246,62 +3842,64 @@</div><div class="prop-row prop-inner"><div class="prop-name param-label">in</div>- <div class="prop-value">path</div>+ <div class="prop-value">formData</div></div>- </section>- </div>- <div class="doc-examples"></div>- </div>- <div class="doc-row">- <div class="doc-copy">- <section class="swagger-responses"><div class="prop-row prop-group"><div class="prop-name">- <div class="prop-title">204 No Content</div>+ <div class="prop-title">tags</div></div><div class="prop-value">- <p>successful operation</p>+ <p>Video tags</p></div></div>- </section>- </div>- <div class="doc-examples">- <h5>Response Content-Types:- <span>application/json</span>- </h5>- </div>- </div>- </div>- <div id="operation--videos-upload-post" class="operation panel" data-traverse-target="operation--videos-upload-post">- <!-- <section class="operation-tags row"> -->- <!-- <div class="doc-copy"> -->- <div class="operation-tags">- <a class="label" href="#tag-Video">Video</a>- <!---->- </div>- <!-- </div> -->- <!-- </section> -->- <h2 class="operation-title">- <span class="operation-name">- <span class="operation-name">POST</span>- <span class="operation-path">/videos/upload</span>- </span>- </h2>- <div class="doc-row">- <div class="doc-copy">- <section class="swagger-request-params">+ <div class="prop-row prop-inner">+ <div class="prop-name param-label">type</div>+ <div class="prop-value">+ <span class="json-property-type">string[]</span>+ <span class="json-property-range" title="Value limits"></span>+ </div>+ </div>+ <div class="prop-row prop-inner">+ <div class="prop-name param-label">in</div>+ <div class="prop-value">formData</div>+ </div><div class="prop-row prop-group"><div class="prop-name">- <div class="prop-title">videofile</div>+ <div class="prop-title">commentsEnabled</div></div><div class="prop-value">- <p>The file to upload.</p>+ <p>Enable or disable comments for this video</p></div></div><div class="prop-row prop-inner"><div class="prop-name param-label">type</div><div class="prop-value">- <span class="json-property-type">file</span>+ <span class="json-property-type">boolean</span>+ <span class="json-property-range" title="Value limits"></span>+ </div>+ </div>+ <div class="prop-row prop-inner">+ <div class="prop-name param-label">in</div>+ <div class="prop-value">formData</div>+ </div>+ <div class="prop-row prop-group">+ <div class="prop-name">+ <div class="prop-title">privacy</div>+ <span class="json-property-required"></span>+ </div>+ <div class="prop-value">+ <p>Video privacy</p>+ </div>+ </div>+ <div class="prop-row prop-inner">+ <div class="prop-name param-label">type</div>+ <div class="prop-value">+ <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-range" title="Value limits"></span></div></div>@@ -3341,8 +3939,10 @@<span>(200 OK)</span></h5><!-- <div class="hljs"> --><pre><code class="hljs lang-json">{- <span class="hljs-attr">"id"</span>: <span class="hljs-string">"number"</span>,- <span class="hljs-attr">"uuid"</span>: <span class="hljs-string">"string"</span>+ <span class="hljs-attr">"video"</span>: {+ <span class="hljs-attr">"id"</span>: <span class="hljs-string">"number"</span>,+ <span class="hljs-attr">"uuid"</span>: <span class="hljs-string">"string"</span>+ }}</code></pre><!-- </div> -->@@ -3478,6 +4078,12 @@<span class="hljs-attr">"updatedAt"</span>: <span class="hljs-string">"string"</span>}},+ <span class="hljs-attr">"video"</span>: {+ <span class="hljs-attr">"id"</span>: <span class="hljs-string">"number"</span>,+ <span class="hljs-attr">"name"</span>: <span class="hljs-string">"string"</span>,+ <span class="hljs-attr">"uuid"</span>: <span class="hljs-string">"string"</span>,+ <span class="hljs-attr">"url"</span>: <span class="hljs-string">"string"</span>+ },<span class="hljs-attr">"createdAt"</span>: <span class="hljs-string">"string"</span>}]@@ -3923,6 +4529,7 @@<span class="hljs-attr">"id"</span>: <span class="hljs-string">"number"</span>,<span class="hljs-attr">"uuid"</span>: <span class="hljs-string">"string"</span>,<span class="hljs-attr">"createdAt"</span>: <span class="hljs-string">"string"</span>,+ <span class="hljs-attr">"publishedAt"</span>: <span class="hljs-string">"string"</span>,<span class="hljs-attr">"updatedAt"</span>: <span class="hljs-string">"string"</span>,<span class="hljs-attr">"category"</span>: {<span class="hljs-attr">"id"</span>: <span class="hljs-string">"number"</span>,@@ -3936,6 +4543,7 @@<span class="hljs-attr">"id"</span>: <span class="hljs-string">"number"</span>,<span class="hljs-attr">"label"</span>: <span class="hljs-string">"string"</span>},+ <span class="hljs-attr">"privacy"</span>: <span class="hljs-string">"string"</span>,<span class="hljs-attr">"description"</span>: <span class="hljs-string">"string"</span>,<span class="hljs-attr">"duration"</span>: <span class="hljs-string">"number"</span>,<span class="hljs-attr">"isLocal"</span>: <span class="hljs-string">"boolean"</span>,@@ -3946,7 +4554,18 @@<span class="hljs-attr">"views"</span>: <span class="hljs-string">"number"</span>,<span class="hljs-attr">"likes"</span>: <span class="hljs-string">"number"</span>,<span class="hljs-attr">"dislikes"</span>: <span class="hljs-string">"number"</span>,- <span class="hljs-attr">"nsfw"</span>: <span class="hljs-string">"boolean"</span>+ <span class="hljs-attr">"nsfw"</span>: <span class="hljs-string">"boolean"</span>,+ <span class="hljs-attr">"account"</span>: {+ <span class="hljs-attr">"name"</span>: <span class="hljs-string">"string"</span>,+ <span class="hljs-attr">"displayName"</span>: <span class="hljs-string">"string"</span>,+ <span class="hljs-attr">"url"</span>: <span class="hljs-string">"string"</span>,+ <span class="hljs-attr">"host"</span>: <span class="hljs-string">"string"</span>,+ <span class="hljs-attr">"avatar"</span>: {+ <span class="hljs-attr">"path"</span>: <span class="hljs-string">"string"</span>,+ <span class="hljs-attr">"createdAt"</span>: <span class="hljs-string">"string"</span>,+ <span class="hljs-attr">"updatedAt"</span>: <span class="hljs-string">"string"</span>+ }+ }}]}@@ -4107,6 +4726,7 @@<span class="hljs-attr">"id"</span>: <span class="hljs-string">"number"</span>,<span class="hljs-attr">"uuid"</span>: <span class="hljs-string">"string"</span>,<span class="hljs-attr">"createdAt"</span>: <span class="hljs-string">"string"</span>,+ <span class="hljs-attr">"publishedAt"</span>: <span class="hljs-string">"string"</span>,<span class="hljs-attr">"updatedAt"</span>: <span class="hljs-string">"string"</span>,<span class="hljs-attr">"category"</span>: {<span class="hljs-attr">"id"</span>: <span class="hljs-string">"number"</span>,@@ -4120,6 +4740,7 @@<span class="hljs-attr">"id"</span>: <span class="hljs-string">"number"</span>,<span class="hljs-attr">"label"</span>: <span class="hljs-string">"string"</span>},+ <span class="hljs-attr">"privacy"</span>: <span class="hljs-string">"string"</span>,<span class="hljs-attr">"description"</span>: <span class="hljs-string">"string"</span>,<span class="hljs-attr">"duration"</span>: <span class="hljs-string">"number"</span>,<span class="hljs-attr">"isLocal"</span>: <span class="hljs-string">"boolean"</span>,@@ -4130,7 +4751,18 @@<span class="hljs-attr">"views"</span>: <span class="hljs-string">"number"</span>,<span class="hljs-attr">"likes"</span>: <span class="hljs-string">"number"</span>,<span class="hljs-attr">"dislikes"</span>: <span class="hljs-string">"number"</span>,- <span class="hljs-attr">"nsfw"</span>: <span class="hljs-string">"boolean"</span>+ <span class="hljs-attr">"nsfw"</span>: <span class="hljs-string">"boolean"</span>,+ <span class="hljs-attr">"account"</span>: {+ <span class="hljs-attr">"name"</span>: <span class="hljs-string">"string"</span>,+ <span class="hljs-attr">"displayName"</span>: <span class="hljs-string">"string"</span>,+ <span class="hljs-attr">"url"</span>: <span class="hljs-string">"string"</span>,+ <span class="hljs-attr">"host"</span>: <span class="hljs-string">"string"</span>,+ <span class="hljs-attr">"avatar"</span>: {+ <span class="hljs-attr">"path"</span>: <span class="hljs-string">"string"</span>,+ <span class="hljs-attr">"createdAt"</span>: <span class="hljs-string">"string"</span>,+ <span class="hljs-attr">"updatedAt"</span>: <span class="hljs-string">"string"</span>+ }+ }}]}@@ -4375,6 +5007,7 @@<span class="hljs-attr">"id"</span>: <span class="hljs-string">"number"</span>,<span class="hljs-attr">"uuid"</span>: <span class="hljs-string">"string"</span>,<span class="hljs-attr">"createdAt"</span>: <span class="hljs-string">"string"</span>,+ <span class="hljs-attr">"publishedAt"</span>: <span class="hljs-string">"string"</span>,<span class="hljs-attr">"updatedAt"</span>: <span class="hljs-string">"string"</span>,<span class="hljs-attr">"category"</span>: {<span class="hljs-attr">"id"</span>: <span class="hljs-string">"number"</span>,@@ -4388,6 +5021,7 @@<span class="hljs-attr">"id"</span>: <span class="hljs-string">"number"</span>,<span class="hljs-attr">"label"</span>: <span class="hljs-string">"string"</span>},+ <span class="hljs-attr">"privacy"</span>: <span class="hljs-string">"string"</span>,<span class="hljs-attr">"description"</span>: <span class="hljs-string">"string"</span>,<span class="hljs-attr">"duration"</span>: <span class="hljs-string">"number"</span>,<span class="hljs-attr">"isLocal"</span>: <span class="hljs-string">"boolean"</span>,@@ -4398,7 +5032,18 @@<span class="hljs-attr">"views"</span>: <span class="hljs-string">"number"</span>,<span class="hljs-attr">"likes"</span>: <span class="hljs-string">"number"</span>,<span class="hljs-attr">"dislikes"</span>: <span class="hljs-string">"number"</span>,- <span class="hljs-attr">"nsfw"</span>: <span class="hljs-string">"boolean"</span>+ <span class="hljs-attr">"nsfw"</span>: <span class="hljs-string">"boolean"</span>,+ <span class="hljs-attr">"account"</span>: {+ <span class="hljs-attr">"name"</span>: <span class="hljs-string">"string"</span>,+ <span class="hljs-attr">"displayName"</span>: <span class="hljs-string">"string"</span>,+ <span class="hljs-attr">"url"</span>: <span class="hljs-string">"string"</span>,+ <span class="hljs-attr">"host"</span>: <span class="hljs-string">"string"</span>,+ <span class="hljs-attr">"avatar"</span>: {+ <span class="hljs-attr">"path"</span>: <span class="hljs-string">"string"</span>,+ <span class="hljs-attr">"createdAt"</span>: <span class="hljs-string">"string"</span>,+ <span class="hljs-attr">"updatedAt"</span>: <span class="hljs-string">"string"</span>+ }+ }}]}@@ -5178,6 +5823,31 @@</div></div></div>+ <div id="definition-VideoPrivacy" class="definition panel" data-traverse-target="definition-VideoPrivacy">+ <h2 class="panel-title">+ <a name="/definitions/VideoPrivacy"></a>VideoPrivacy: string+ <!-- <span class="json-property-type"><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-range" title="Value limits"></span>+++ </span> -->+ </h2>+ <div class="doc-row">+ <div class="doc-copy">+ <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-range" title="Value limits"></span>+ </div>+ </div>+ </div><div id="definition-Video" class="definition panel" data-traverse-target="definition-Video"><h2 class="panel-title"><a name="/definitions/Video"></a>Video:@@ -5206,6 +5876,11 @@<span class="json-property-type">string</span><span class="json-property-range" title="Value limits"></span></dt>+ <dt data-property-name="publishedAt">+ <span class="json-property-name">publishedAt:</span>+ <span class="json-property-type">string</span>+ <span class="json-property-range" title="Value limits"></span>+ </dt><dt data-property-name="updatedAt"><span class="json-property-name">updatedAt:</span><span class="json-property-type">string</span>@@ -5238,6 +5913,15 @@</span><span class="json-property-range" title="Value limits"></span></dt>+ <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><dt data-property-name="description"><span class="json-property-name">description:</span><span class="json-property-type">string</span>@@ -5308,6 +5992,7 @@<span class="hljs-attr">"id"</span>: <span class="hljs-string">"number"</span>,<span class="hljs-attr">"uuid"</span>: <span class="hljs-string">"string"</span>,<span class="hljs-attr">"createdAt"</span>: <span class="hljs-string">"string"</span>,+ <span class="hljs-attr">"publishedAt"</span>: <span class="hljs-string">"string"</span>,<span class="hljs-attr">"updatedAt"</span>: <span class="hljs-string">"string"</span>,<span class="hljs-attr">"category"</span>: {<span class="hljs-attr">"id"</span>: <span class="hljs-string">"number"</span>,@@ -5321,6 +6006,7 @@<span class="hljs-attr">"id"</span>: <span class="hljs-string">"number"</span>,<span class="hljs-attr">"label"</span>: <span class="hljs-string">"string"</span>},+ <span class="hljs-attr">"privacy"</span>: <span class="hljs-string">"string"</span>,<span class="hljs-attr">"description"</span>: <span class="hljs-string">"string"</span>,<span class="hljs-attr">"duration"</span>: <span class="hljs-string">"number"</span>,<span class="hljs-attr">"isLocal"</span>: <span class="hljs-string">"boolean"</span>,@@ -5331,7 +6017,18 @@<span class="hljs-attr">"views"</span>: <span class="hljs-string">"number"</span>,<span class="hljs-attr">"likes"</span>: <span class="hljs-string">"number"</span>,<span class="hljs-attr">"dislikes"</span>: <span class="hljs-string">"number"</span>,- <span class="hljs-attr">"nsfw"</span>: <span class="hljs-string">"boolean"</span>+ <span class="hljs-attr">"nsfw"</span>: <span class="hljs-string">"boolean"</span>,+ <span class="hljs-attr">"account"</span>: {+ <span class="hljs-attr">"name"</span>: <span class="hljs-string">"string"</span>,+ <span class="hljs-attr">"displayName"</span>: <span class="hljs-string">"string"</span>,+ <span class="hljs-attr">"url"</span>: <span class="hljs-string">"string"</span>,+ <span class="hljs-attr">"host"</span>: <span class="hljs-string">"string"</span>,+ <span class="hljs-attr">"avatar"</span>: {+ <span class="hljs-attr">"path"</span>: <span class="hljs-string">"string"</span>,+ <span class="hljs-attr">"createdAt"</span>: <span class="hljs-string">"string"</span>,+ <span class="hljs-attr">"updatedAt"</span>: <span class="hljs-string">"string"</span>+ }+ }}</code></pre><!-- </div> -->@@ -5407,6 +6104,12 @@<span class="hljs-attr">"updatedAt"</span>: <span class="hljs-string">"string"</span>}},+ <span class="hljs-attr">"video"</span>: {+ <span class="hljs-attr">"id"</span>: <span class="hljs-string">"number"</span>,+ <span class="hljs-attr">"name"</span>: <span class="hljs-string">"string"</span>,+ <span class="hljs-attr">"uuid"</span>: <span class="hljs-string">"string"</span>,+ <span class="hljs-attr">"url"</span>: <span class="hljs-string">"string"</span>+ },<span class="hljs-attr">"createdAt"</span>: <span class="hljs-string">"string"</span>}</code></pre>@@ -5575,6 +6278,7 @@<span class="hljs-attr">"id"</span>: <span class="hljs-string">"number"</span>,<span class="hljs-attr">"uuid"</span>: <span class="hljs-string">"string"</span>,<span class="hljs-attr">"createdAt"</span>: <span class="hljs-string">"string"</span>,+ <span class="hljs-attr">"publishedAt"</span>: <span class="hljs-string">"string"</span>,<span class="hljs-attr">"updatedAt"</span>: <span class="hljs-string">"string"</span>,<span class="hljs-attr">"category"</span>: {<span class="hljs-attr">"id"</span>: <span class="hljs-string">"number"</span>,@@ -5588,6 +6292,7 @@<span class="hljs-attr">"id"</span>: <span class="hljs-string">"number"</span>,<span class="hljs-attr">"label"</span>: <span class="hljs-string">"string"</span>},+ <span class="hljs-attr">"privacy"</span>: <span class="hljs-string">"string"</span>,<span class="hljs-attr">"description"</span>: <span class="hljs-string">"string"</span>,<span class="hljs-attr">"duration"</span>: <span class="hljs-string">"number"</span>,<span class="hljs-attr">"isLocal"</span>: <span class="hljs-string">"boolean"</span>,@@ -5598,7 +6303,18 @@<span class="hljs-attr">"views"</span>: <span class="hljs-string">"number"</span>,<span class="hljs-attr">"likes"</span>: <span class="hljs-string">"number"</span>,<span class="hljs-attr">"dislikes"</span>: <span class="hljs-string">"number"</span>,- <span class="hljs-attr">"nsfw"</span>: <span class="hljs-string">"boolean"</span>+ <span class="hljs-attr">"nsfw"</span>: <span class="hljs-string">"boolean"</span>,+ <span class="hljs-attr">"account"</span>: {+ <span class="hljs-attr">"name"</span>: <span class="hljs-string">"string"</span>,+ <span class="hljs-attr">"displayName"</span>: <span class="hljs-string">"string"</span>,+ <span class="hljs-attr">"url"</span>: <span class="hljs-string">"string"</span>,+ <span class="hljs-attr">"host"</span>: <span class="hljs-string">"string"</span>,+ <span class="hljs-attr">"avatar"</span>: {+ <span class="hljs-attr">"path"</span>: <span class="hljs-string">"string"</span>,+ <span class="hljs-attr">"createdAt"</span>: <span class="hljs-string">"string"</span>,+ <span class="hljs-attr">"updatedAt"</span>: <span class="hljs-string">"string"</span>+ }+ }}]}@@ -6172,6 +6888,7 @@<span class="hljs-attr">"id"</span>: <span class="hljs-string">"number"</span>,<span class="hljs-attr">"uuid"</span>: <span class="hljs-string">"string"</span>,<span class="hljs-attr">"createdAt"</span>: <span class="hljs-string">"string"</span>,+ <span class="hljs-attr">"publishedAt"</span>: <span class="hljs-string">"string"</span>,<span class="hljs-attr">"updatedAt"</span>: <span class="hljs-string">"string"</span>,<span class="hljs-attr">"category"</span>: {<span class="hljs-attr">"id"</span>: <span class="hljs-string">"number"</span>,@@ -6185,6 +6902,7 @@<span class="hljs-attr">"id"</span>: <span class="hljs-string">"number"</span>,<span class="hljs-attr">"label"</span>: <span class="hljs-string">"string"</span>},+ <span class="hljs-attr">"privacy"</span>: <span class="hljs-string">"string"</span>,<span class="hljs-attr">"description"</span>: <span class="hljs-string">"string"</span>,<span class="hljs-attr">"duration"</span>: <span class="hljs-string">"number"</span>,<span class="hljs-attr">"isLocal"</span>: <span class="hljs-string">"boolean"</span>,@@ -6195,7 +6913,18 @@<span class="hljs-attr">"views"</span>: <span class="hljs-string">"number"</span>,<span class="hljs-attr">"likes"</span>: <span class="hljs-string">"number"</span>,<span class="hljs-attr">"dislikes"</span>: <span class="hljs-string">"number"</span>,- <span class="hljs-attr">"nsfw"</span>: <span class="hljs-string">"boolean"</span>+ <span class="hljs-attr">"nsfw"</span>: <span class="hljs-string">"boolean"</span>,+ <span class="hljs-attr">"account"</span>: {+ <span class="hljs-attr">"name"</span>: <span class="hljs-string">"string"</span>,+ <span class="hljs-attr">"displayName"</span>: <span class="hljs-string">"string"</span>,+ <span class="hljs-attr">"url"</span>: <span class="hljs-string">"string"</span>,+ <span class="hljs-attr">"host"</span>: <span class="hljs-string">"string"</span>,+ <span class="hljs-attr">"avatar"</span>: {+ <span class="hljs-attr">"path"</span>: <span class="hljs-string">"string"</span>,+ <span class="hljs-attr">"createdAt"</span>: <span class="hljs-string">"string"</span>,+ <span class="hljs-attr">"updatedAt"</span>: <span class="hljs-string">"string"</span>+ }+ }}]}@@ -6521,14 +7250,9 @@<div class="doc-copy"><section class="json-schema-properties"><dl>- <dt data-property-name="id">- <span class="json-property-name">id:</span>- <span class="json-property-type">number</span>- <span class="json-property-range" title="Value limits"></span>- </dt>- <dt data-property-name="uuid">- <span class="json-property-name">uuid:</span>- <span class="json-property-type">string</span>+ <dt data-property-name="video">+ <span class="json-property-name">video:</span>+ <span class="json-property-type">object</span><span class="json-property-range" title="Value limits"></span></dt></dl>@@ -6538,8 +7262,10 @@<section><h5>Example</h5><!-- <div class="hljs"> --><pre><code class="hljs lang-json">{- <span class="hljs-attr">"id"</span>: <span class="hljs-string">"number"</span>,- <span class="hljs-attr">"uuid"</span>: <span class="hljs-string">"string"</span>+ <span class="hljs-attr">"video"</span>: {+ <span class="hljs-attr">"id"</span>: <span class="hljs-string">"number"</span>,+ <span class="hljs-attr">"uuid"</span>: <span class="hljs-string">"string"</span>+ }}</code></pre><!-- </div> -->diff --git a/support/doc/api/openapi.yaml b/support/doc/api/openapi.yamlindex 44b437c40a..86dfae69d8 100644--- a/support/doc/api/openapi.yaml+++ b/support/doc/api/openapi.yaml@@ -31,7 +31,7 @@ paths:in: queryrequired: falsetype: number- description: 'stoping page'+ description: 'stopping page'- name: sortin: queryrequired: false@@ -141,7 +141,7 @@ paths:in: queryrequired: falsetype: number- description: 'stoping page'+ description: 'stopping page'- name: sortin: queryrequired: false@@ -172,7 +172,7 @@ paths:in: queryrequired: falsetype: number- description: 'stoping page'+ description: 'stopping page'- name: sortin: queryrequired: false@@ -212,6 +212,7 @@ paths:- in: bodyname: bodyrequired: true+ description: 'User to create'schema:$ref: '#/definitions/AddUser'responses:@@ -236,7 +237,7 @@ paths:in: queryrequired: falsetype: number- description: 'stoping page'+ description: 'stopping page'- name: sortin: queryrequired: false@@ -387,7 +388,7 @@ paths:in: queryrequired: falsetype: number- description: 'stoping page'+ description: 'stopping page'- name: sortin: queryrequired: false@@ -453,7 +454,7 @@ paths:in: queryrequired: falsetype: number- description: 'stoping page'+ description: 'stopping page'- name: sortin: queryrequired: false@@ -544,7 +545,7 @@ paths:in: queryrequired: falsetype: number- description: 'stoping page'+ description: 'stopping page'- name: sortin: queryrequired: false@@ -562,7 +563,7 @@ paths:tags:- Videoconsumes:- - application/json+ - multipart/form-dataproduces:- application/jsonparameters:@@ -570,7 +571,56 @@ paths:in: pathrequired: truetype: string- description: 'The video id '+ description: 'The video id'+ - name: thumbnailfile+ in: formData+ type: file+ description: 'Video thumbnail file'+ - name: previewfile+ in: formData+ type: file+ description: 'Video preview file'+ - name: category+ in: formData+ type: number+ description: 'Video category'+ - name: licence+ in: formData+ type: number+ description: 'Video licence'+ - name: language+ in: formData+ type: number+ description: 'Video language'+ - name: description+ in: formData+ type: string+ description: 'Video description'+ - name: support+ in: formData+ type: string+ description: 'Text describing how to support the video uploader'+ - name: nsfw+ in: formData+ type: boolean+ description: 'Whether or not this video contains sensitive content'+ - name: name+ in: formData+ type: string+ description: 'Video name'+ - name: tags+ in: formData+ type: string[]+ description: 'Video tags'+ - name: commentsEnabled+ in: formData+ type: boolean+ description: 'Enable or disable comments for this video'+ - name: privacy+ in: formData+ type: string+ enum: [Public, Unlisted, Private]+ description: 'Video privacy'responses:'200':description: successful operation@@ -655,10 +705,70 @@ paths:produces:- application/jsonparameters:- - in: formData- name: videofile+ - name: videofile+ in: formDatatype: file- description: The file to upload.+ required: true+ description: 'Video file'+ - name: thumbnailfile+ in: formData+ type: file+ required: true+ description: 'Video thumbnail file'+ - name: previewfile+ in: formData+ type: file+ required: true+ description: 'Video preview file'+ - name: category+ in: formData+ type: number+ description: 'Video category'+ - name: licence+ in: formData+ type: number+ description: 'Video licence'+ - name: language+ in: formData+ type: number+ description: 'Video language'+ - name: description+ in: formData+ type: string+ description: 'Video description'+ - name: support+ in: formData+ type: string+ description: 'Text describing how to support the video uploader'+ - name: channelId+ in: formData+ required: true+ type: number+ description: 'Channel id that will contain this video'+ - name: nsfw+ in: formData+ required: true+ type: boolean+ description: 'Whether or not this video contains sensitive content'+ - name: name+ in: formData+ required: true+ type: string+ description: 'Video name'+ - name: tags+ in: formData+ type: string[]+ description: 'Video tags'+ - name: commentsEnabled+ in: formData+ type: boolean+ description: 'Enable or disable comments for this video'+ - name: privacy+ in: formData+ required: true+ type: string+ enum: [Public, Unlisted, Private]+ description: 'Video privacy'responses:'200':description: successful operation@@ -682,7 +792,7 @@ paths:in: queryrequired: falsetype: number- description: 'stoping page'+ description: 'stopping page'- name: sortin: queryrequired: false@@ -763,7 +873,7 @@ paths:in: queryrequired: falsetype: number- description: 'stoping page'+ description: 'stopping page'- name: sortin: queryrequired: false@@ -794,7 +904,7 @@ paths:in: queryrequired: falsetype: number- description: 'stoping page'+ description: 'stopping page'- name: sortin: queryrequired: false@@ -921,7 +1031,7 @@ paths:in: queryrequired: falsetype: number- description: 'stoping page'+ description: 'stopping page'- name: sortin: queryrequired: false@@ -1043,6 +1153,9 @@ definitions:type: numberlabel:type: string+ VideoPrivacy:+ type: string+ enum: [Public, Unlisted, Private]Video:properties:id:@@ -1051,6 +1164,8 @@ definitions:type: stringcreatedAt:type: string+ publishedAt:+ type: stringupdatedAt:type: stringcategory:@@ -1059,6 +1174,8 @@ definitions:$ref: "#/definitions/VideoConstant"language:$ref: "#/definitions/VideoConstant"+ privacy:+ $ref: "#/definitions/VideoPrivacy"description:type: stringduration:@@ -1082,12 +1199,18 @@ definitions:nsfw:type: booleanaccount:- name: string- displayName: string- url: string- host: string- avatar:- $ref: "#/definitions/Avatar"+ type: object+ properties:+ name:+ type: string+ displayName:+ type: string+ url:+ type: string+ host:+ type: string+ avatar:+ $ref: "#/definitions/Avatar"VideoAbuse:properties:id:@@ -1097,10 +1220,16 @@ definitions:reporterAccount:$ref: "#/definitions/Account"video:- id: number- name: string- uuid: string- url: string+ type: object+ properties:+ id:+ type: number+ name:+ type: string+ uuid:+ type: string+ url:+ type: stringcreatedAt:type: stringVideoBlacklist:@@ -1314,7 +1443,7 @@ definitions:updatedAt:type: string-#Api responses+# Api responsesAddUserResponse:properties:id:@@ -1323,10 +1452,13 @@ definitions:type: stringVideoUploadResponse:properties:- id:- type: number- uuid:- type: string+ video:+ type: object+ properties:+ id:+ type: number+ uuid:+ type: stringCommentThreadResponse:properties:total:@@ -1340,7 +1472,7 @@ definitions:comment:$ref: "#/definitions/VideoComment"-#request bodies+# Request bodiesAddUser:properties:username: