A simple TinyDB API Lair template that can be used to provision databases quickly.
To start using this API -
- Create a new WayScript Lair from this template
- Deploy lair by running the pre-configured deploy trigger
You can checkout the available API endpoints by visiting the default endpoint of your deployed Lair.
The service stores the database in your lair root in db.json
. In WayScript, you can deploy to a dev
or a prod
environment. Changes to the lair storage made in dev
would be saved to the lair while changes made in prod
are not saved. Therefore, to persist the database across invocations, you should run the service only in the dev
environment.