Jot version dev (commit: HEAD) DESCRIPTION: Jot is a simple editable paste bin and image gallery. All objects return a password that can be used to edit or delete them. USAGE: Below examples use the curl command with -i set so we can see the headers. Creating a jot: Request: curl -i --data-binary @textfile.txt https://jot.e64ec.com/txt Response: HTTP/1.1 201 Created Jot-Password: PE4VtqnNjrK3C07 Date: Sat, 30 Jun 2018 19:09:03 GMT Content-Length: 32 Content-Type: text/plain; charset=utf-8 https://jot.e64ec.com/txt/LIU_JPnHp Getting a jot: Request: curl -i https://jot.e64ec.com/txt/LIU_JPnHp Response: HTTP/1.1 200 OK Content-Type: text/plain; charset=utf-8 Etag: 2018-06-30T19:09:03.735647737-07:00 Date: Sat, 30 Jun 2018 19:10:13 GMT Content-Length: 38 here is my content from textfile.txt! Editing a jot: Request: curl -i -H "If-Match: 2018-06-30T19:09:03.735647737-07:00" \ --data-binary @updated.txt \ --user ":PE4VtqnNjrK3C07" \ https://jot.e64ec.com/txt/LIU_JPnHp Response: HTTP/1.1 303 See Other Location: /txt/LIU_JPnHp Date: Sat, 30 Jun 2018 19:14:26 GMT Content-Length: 0 Uploading images: Request: curl -i -F "images=@chicken.png" https://jot.e64ec.com/img Response: HTTP/1.1 100 Continue HTTP/1.1 201 Created Jot-Password: KQ25tPunmRvDhgT Date: Thu, 15 Sep 2020 17:08:39 GMT Content-Length: 36 Content-Type: text/plain; charset=utf-8 https://jot.e64ec.com/img/PPbQ9lZYM You can upload multiple images at once by using the -F flag multiple times: Request: curl -i -F "images=@chicken.png" -F "images=@chicken2.png" https://jot.e64ec.com/img Response: HTTP/1.1 100 Continue HTTP/1.1 201 Created Jot-Password: srwoXZBX0fcps33 Date: Thu, 15 Sep 2020 17:08:39 GMT Content-Length: 36 Content-Type: text/plain; charset=utf-8 https://jot.e64ec.com/img/EXTz3RA-p Getting images: Galleries can be viewed by going to the path in a browser. Requests can be made in a browser which will automatically display the image, or with a cli client like curl: Request: curl -OJs -w "fetched image: %{filename_effective}\n" https://jot.e64ec.com/img/EXTz3RA-p/chicken.png Response: fetched image: chicken.png Headers: Make note of the Jot-Password header as that's the password used to edit your jot and delete images. ETag can be used in conjunction with If-None-Match and If-Match for caching on GET and collision prevention on PUT. ATTRIBUTION: Made by: Kyle Terry (https://github.com/kyleterry) Source code: https://github.com/kyleterry/jot