JSON share service - Save and share JSONs
GPL-3.0 License
❗🚧: This is a playground project at the moment. Don't store anything important here. Any data may be deleted at any time.
GET /:id
# gets record and renders markdown. Example:
https://shuttle.deno.dev/01H6D5KXV3FNDW7CQAABS27W86
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