Habit tomagotchi
- Flask-PyMongo
- pymongo
python app.py
- Send POST request to / with JSON object with fields name, number, email, password.
- Returns JSON object with success: bool, and message
- Send POST request to /login with JSON object with fields name and password.
- Returns JSON object with success: bool, and user: object with user info, and habits: list of habit objects. message if fail.
- Send POST request with JSON object with fields name: owner, and habigotchi: new habigotchi info.
- Returns JSON object with success: bool, message if fail
- Send POST request to /new_habit with JSON object with fields name, and habit.
- Returns JSON object with fields success: bool, and message
To be implemented.