Skip to content

o-az/shuttle

Repository files navigation

❗🚧: 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

About

JSON share service - Save and share JSONs

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published