Ditto is an HTTP API as a key/value store, useful for testing or prototyping an API that doesn't yet exist.
PUT to store some JSON on a pathGET to retrieve JSON on a pathData is stored using std/blob
Store some data on a path:
PUT https://jkulton--fad998c882d711f092ca0224a6c84d84.web.val.run/books/1 Content-Type: application/json x-api-key: SUPER_SECRET { "cover_image": "https://www.gutenberg.org/cache/epub/64317/pg64317.cover.medium.jpg", "title": "The Great Gatsby" }
Retrieve data stored on a path:
GET https://jkulton--fad998c882d711f092ca0224a6c84d84.web.val.run/books/1 Content-Type: application/json x-api-key: SUPER_SECRET HTTP/1.1 200 OK { "cover_image": "https://www.gutenberg.org/cache/epub/64317/pg64317.cover.medium.jpg", "title": "The Great Gatsby" }
DITTO_API_KEY env var to something secureDITTO_API_KEY as a x-api-key header with all your
requestsPUT requests to store data, send GET requests to retrieve data