update docs to reflect api changes
This commit is contained in:
@@ -43,7 +43,20 @@
|
||||
resource <strong>do</strong> require an API key.
|
||||
<br/>
|
||||
<br/>
|
||||
Though API keys have not been implemented yet.
|
||||
Though API keys have not been implemented yet, so you can't use
|
||||
those methods yet.
|
||||
</p>
|
||||
<p>
|
||||
Some JSON responses include fields which end in "_href" (some
|
||||
people don't know this, but "href" stands for "Hypertext
|
||||
Reference", the more you know). These point to different places
|
||||
in the API, which you can retrieve with a GET request. The path
|
||||
is to be appended to the API URL, so "/file/someid/thumbnail"
|
||||
becomes "{{apiUrl}}/file/someid/thumbnail".
|
||||
</p>
|
||||
<p>
|
||||
The base URL for the API is "{{apiUrl}}", all paths below are
|
||||
relative to that URL.
|
||||
</p>
|
||||
|
||||
<h2>File Methods</h2>
|
||||
|
@@ -26,17 +26,10 @@
|
||||
<tr>
|
||||
<td>name</td>
|
||||
<td>false</td>
|
||||
<td>300 Characters</td>
|
||||
<td>Name of file param</td>
|
||||
<td>255 Characters</td>
|
||||
<td>Multipart file name</td>
|
||||
<td>Name of the file to upload</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>description</td>
|
||||
<td>false</td>
|
||||
<td>5000 Characters</td>
|
||||
<td>Pixeldrain File</td>
|
||||
<td>Description of the file</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<h3>Returns</h3>
|
||||
@@ -73,13 +66,7 @@
|
||||
{
|
||||
"success": false,
|
||||
"value": "name_too_long",
|
||||
"message": "File Name is too long, Max 300 characters allowed."
|
||||
}</pre>
|
||||
<pre>HTTP 413: Payload Too Large
|
||||
{
|
||||
"success": false,
|
||||
"value": "description_too_long",
|
||||
"message": "File Description is too long, Max 5000 characters allowed."
|
||||
"message": "File Name is too long, Max 255 characters allowed."
|
||||
}</pre>
|
||||
</div>
|
||||
</details>
|
||||
|
@@ -15,8 +15,6 @@
|
||||
<link rel="icon" sizes="180x180" href="res/img/pixeldrain.png"/>
|
||||
<link rel="icon" sizes="256x256" href="res/img/pixeldrain_big.png"/>
|
||||
|
||||
<style th:include="fragments :: background-pattern" th:inline="text"></style>
|
||||
|
||||
<script src="/res/script/jquery-2.1.4.min.js"></script>
|
||||
<link rel="stylesheet" href="https://ajax.googleapis.com/ajax/libs/jqueryui/1.11.4/themes/smoothness/jquery-ui.css"/>
|
||||
<script src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.11.4/jquery-ui.min.js"></script>
|
||||
|
Reference in New Issue
Block a user