Menu

Tree [170870] master /
 History

HTTPS access


File Date Author Commit
 db 2023-03-20 Haran Rajkumar Haran Rajkumar [ff8003] Create API v1 (#1)
 flask_tinydb 2023-03-23 Haran Rajkumar Haran Rajkumar [f31f67] Fix typos (#2)
 .gitignore 2023-03-20 Haran Rajkumar Haran Rajkumar [ff8003] Create API v1 (#1)
 .triggers 2023-03-20 Haran Rajkumar Haran Rajkumar [ff8003] Create API v1 (#1)
 .wsignore 2023-03-20 Haran Rajkumar Haran Rajkumar [ff8003] Create API v1 (#1)
 README.md 2023-03-31 Haran Rajkumar Haran Rajkumar [025c2f] Add deploy badge to readme (#3)
 app.py 2023-03-20 Haran Rajkumar Haran Rajkumar [ff8003] Create API v1 (#1)
 requirements.txt 2023-05-02 dependabot[bot] dependabot[bot] [170870] Bump flask from 2.2.3 to 2.3.2 (#4)

Read Me

img

TinyDB API Lair template

A simple TinyDB API Lair template that can be used to provision databases quickly.

Setup

To start using this API -

  1. Create a new WayScript Lair from this template
  2. 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.

Persist database

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.

MongoDB Logo MongoDB