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