2018-06-25 23:05:18 +02:00
|
|
|
{{define "apidoc"}}<!DOCTYPE html>
|
|
|
|
<html>
|
2017-11-10 12:39:55 +01:00
|
|
|
<head>
|
2018-06-25 23:05:18 +02:00
|
|
|
{{template "meta_tags" "API Documentation"}}
|
2018-06-28 19:59:52 +02:00
|
|
|
<link rel="stylesheet" href="/res/style/apidoc.css"/>
|
2017-11-10 12:39:55 +01:00
|
|
|
</head>
|
|
|
|
|
|
|
|
<body>
|
|
|
|
<div id='body' class="body">
|
2018-06-21 23:41:50 +02:00
|
|
|
{{template "menu" .}}
|
2017-11-10 12:39:55 +01:00
|
|
|
<h1>PixelDrain API Documentation</h1>
|
|
|
|
<p>
|
|
|
|
Welcome to the Pixeldrain API documentation.
|
|
|
|
<br/>
|
2018-06-21 23:41:50 +02:00
|
|
|
The methods for uploading and retrieving files don't require an
|
|
|
|
API key. The methods for creating and retrieving lists also
|
|
|
|
don't require an API key. All methods which delete or modify a
|
2017-11-10 12:39:55 +01:00
|
|
|
resource <strong>do</strong> require an API key.
|
|
|
|
<br/>
|
2018-07-04 22:46:51 +02:00
|
|
|
API keys can be obtained from the login API.
|
2018-06-07 21:03:35 +02:00
|
|
|
</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.
|
2017-11-10 12:39:55 +01:00
|
|
|
</p>
|
2018-06-21 23:41:50 +02:00
|
|
|
|
2017-11-10 12:39:55 +01:00
|
|
|
<h2>File Methods</h2>
|
|
|
|
{{template "api-file-post"}}
|
|
|
|
{{template "api-file-id-get"}}
|
|
|
|
{{template "api-file-id-download-get"}}
|
|
|
|
{{template "api-file-id-info-get"}}
|
|
|
|
{{template "api-file-id-thumbnail-get"}}
|
|
|
|
{{template "api-file-id-delete"}}
|
2018-06-21 23:41:50 +02:00
|
|
|
|
2017-11-10 12:39:55 +01:00
|
|
|
<h2>List Methods</h2>
|
|
|
|
{{template "api-list-post"}}
|
2017-12-11 23:21:08 +01:00
|
|
|
{{template "api-list-get"}}
|
|
|
|
|
2018-07-04 22:46:51 +02:00
|
|
|
<h2>Directory Methods</h2>
|
|
|
|
{{template "api-directory-path-post"}}
|
|
|
|
{{template "api-directory-path-get"}}
|
|
|
|
{{template "api-directory-path-delete"}}
|
|
|
|
|
2017-11-10 12:39:55 +01:00
|
|
|
{{template "footer"}}
|
|
|
|
</div>
|
|
|
|
{{template "analytics"}}
|
|
|
|
</body>
|
|
|
|
</html>
|
2018-06-21 23:41:50 +02:00
|
|
|
{{end}}
|