Skip to content

samanthamar/moment_api

Repository files navigation

Usage

  • Update config.py with appropriate db details (NOTE: need to setup mysql server either locally or through Docker, please see Google doc)
  • Remember to keep the DB up to date!
  • Start the server run.py

Sample endpoints

  • GET localhost:5000/api/users
  • POST localhost:5000/api/users

Adding new Models

  • Define database models in /models
  • Also define the schema here too for validation

Creating RESTful Endpoints

  • Each endpoint is listed in app.py
  • Each endpoint requires a corresponding resource created in /resources

Requirements

  • python 3.7
  • pip3 install -r requirements.txt

Postman Request Link

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  

Languages