2017-11-10 12:39:55 +01:00
|
|
|
{{define "api-file-id-thumbnail-get"}}
|
|
|
|
<details th:fragment="details" class="api_doc_details request_get">
|
2017-12-11 20:45:55 +01:00
|
|
|
<summary><span class="method">GET</span>/file/{id}/thumbnail</summary>
|
2017-11-10 12:39:55 +01:00
|
|
|
<div>
|
|
|
|
<h3>Description</h3>
|
|
|
|
<p>
|
|
|
|
Returns a PNG thumbnail image representing the file.
|
|
|
|
The thumbnail is always 100*100 px. If the source file
|
|
|
|
is parsable by imagemagick the thumbnail will be
|
|
|
|
generated from the file, if not it will be a generic
|
|
|
|
mime type icon.
|
|
|
|
</p>
|
|
|
|
<h3>Parameters</h3>
|
|
|
|
<table>
|
|
|
|
<tr>
|
|
|
|
<td>Param</td>
|
|
|
|
<td>Required</td>
|
|
|
|
<td>Location</td>
|
|
|
|
<td>Description</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>id</td>
|
|
|
|
<td>true</td>
|
|
|
|
<td>URL</td>
|
|
|
|
<td>ID of the file to get a thumbnail for</td>
|
|
|
|
</tr>
|
|
|
|
</table>
|
|
|
|
<h3>Returns</h3>
|
|
|
|
<p>
|
|
|
|
A PNG image of 100*100 px.
|
|
|
|
</p>
|
|
|
|
</div>
|
|
|
|
</details>
|
|
|
|
{{end}}
|