shuttle

JSON share service - Save and share JSONs

GPL-3.0 License

Stars
4

❗🚧: This is a playground project at the moment. Don't store anything important here. Any data may be deleted at any time.

Shuttle 🚀

JSON share service - Save and share JSONs

Usage

Markdown render

GET /:id # gets record and renders markdown. Example:

https://shuttle.deno.dev/01H6D5KXV3FNDW7CQAABS27W86

JSON API

GET /api/:id # gets record. Example:

https://shuttle.deno.dev/api/01H6D5KXV3FNDW7CQAABS27W86

POST /api/new # creates new record with JSON body. Example:

curl --request POST \
  --url https://shuttle.deno.dev/api/new \
  --data '{"foo":"bar"}'
# returns new record id

POST /api/new/file # creates new record with JSON uploaded as a file. Example:

curl --request POST \
  --url https://shuttle.deno.dev/api/new/file \
  --form 'file=@/path/to/file.json'
# returns new record id

GET /api/new/:encoded-content # creates new record with base64 encoded content. Example:

https://shuttle.deno.dev/api/new/eyJmb28iOiJiYXIifQ==

curl --request GET \
  --url "https://shuttle.deno.dev/api/new/$(echo '{"foo":"bar"}' | base64)"
# returns new record id

Stack

License

GPL-3.0-or-later