The Gisty API

Gisty is a modern web application that supports a full featured API.

POST

Creating content on Gisty

GET Example

                                    
curl -D - -X POST https://gisty.link/create \
          -H "Content-Type: application/x-www-form-urlencoded" \
          -d "textInput=thingames"
                                    
                                

The command will return output with the location of the object.

                                    
HTTP/1.1 303 See Other
Server: nginx/1.22.1
Date: Sun, 08 Sep 2024 19:43:10 GMT
Content-Length: 0
Connection: keep-alive
location: /71b6eada156eeafee3feb6c464faf0edc8aa5636
                                    
                                

GET

Retrieving content from Gisty

Retrieving content is simple, the following example was performed using cURL. Running Gisty commands on the raw endpoint will return only the plain text of the stored content; this means Gisty can be used with scripting via raw.

GET Example

                                    
curl -D - https://gisty.link/71b6eada156eeafee3feb6c464faf0edc8aa5636/raw
                                    
                                

The command will return output from the content. Headers are available from the RAW content which express more information about it.

                                    
HTTP/1.1 200 OK
Server: nginx/1.22.1
Date: Sun, 08 Sep 2024 22:49:25 GMT
Content-Type: text/plain; charset=utf-8
Content-Length: 9
Connection: keep-alive
Etag: "87bc6e8b97f3ab8340c90ebabdf38f6a"
Last-Modified: Sun, 08 Sep 2024 19:43:11 GMT
X-Timestamp: 1725824590.99754
Accept-Ranges: bytes
X-Trans-Id: tx3f99761ef85d437787feb-0066de29f4sjc
X-Openstack-Request-Id: tx3f99761ef85d437787feb-0066de29f4sjc

thingames