]>
Commit | Line | Data |
---|---|---|
f0210517 GJ |
1 | <%- include('./partials/header.ejs'); -%> |
2 | <div class="container"> | |
3 | <div class="jumbotron"> | |
947d3278 | 4 | <h1><%= siteName %> API</h1> |
f0210517 GJ |
5 | </div> |
6 | <div class="alert alert-info"> | |
7 | <section> | |
947d3278 | 8 | <h3>Endpoint</h3> |
8a113a82 | 9 | <p>You may POST an array of files to <b>https://<%= DOMAIN %>/upload.php</b>, by default you will get a json response.</p> |
8a113a82 | 10 | <p>If you want a response in something else than json you add a flag to specify what format you want, for example <b>https://<%= DOMAIN %>/upload.php?output=csv</b>.</p> |
f0210517 | 11 | <p>Valid response types are: json, csv, text, html and gyazo.</p> |
947d3278 GJ |
12 | <h3>Curl Example</h3> |
13 | <p><kbd>curl -i -F files[]=@yourfile.jpeg https://<%= DOMAIN %>/upload.php</kbd></p> | |
f0210517 GJ |
14 | </section> |
15 | </div> | |
16 | <%- include('./partials/footer.ejs'); -%> |