bearddan2000 / python-web-api-flask-dolt-chained-sql-pop

Creates an api of `pop` by using chained sql functions for a flask project.

Home Page:https://github.com/bearddan2000/python-web-api-flask-dolt-chained-sql-pop

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

python-web-api-flask-dolt-chained-sql-pop

Description

Creates an api of pop by using chained sql functions for a flask project. Has the ability to query by parameters. If path is not found, will default to 404 error.

Remotely tested with testify.

Tech stack

  • python
    • flask
    • sqlalchemy
    • testify
    • requests

Docker stack

  • python:latest
  • dolthub/dolt-sql-serverdb:latest

To run

sudo ./install.sh -u

  • Get all pops: http://localhost/pop
    • Schema id, name, and color
  • CRUD opperations
    • Create: curl -i -X PUT localhost/pop/
    • Read: http://localhost/pop/
    • Update: curl -i -X POST localhost/pop///
    • Delete: curl -i -X DELETE localhost/pop/

To stop

sudo ./install.sh -d

For help

sudo ./install.sh -h

About

Creates an api of `pop` by using chained sql functions for a flask project.

https://github.com/bearddan2000/python-web-api-flask-dolt-chained-sql-pop


Languages

Language:Python 74.3%Language:Shell 21.9%Language:Dockerfile 3.8%