Creates an api of dog
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.
Requires basic authentication for CRUD opperations.
username | password |
---|---|
user | pass |
Remotely tested with testify.
- python
- flask
- sqlalchemy
- testify
- requests
- python:latest
- dolthub/dolt-sql-serverdb:latest
sudo ./install.sh -u
- Get all dogs: http://localhost/dog
- Schema id, breed, and color
- CRUD opperations
- Create: curl -i -X PUT localhost/dog/ -u 'user:pass'
- Read: http://localhost/dog/ -u 'user:pass'
- Update: curl -i -X POST localhost/dog/// -u 'user:pass'
- Delete: curl -i -X DELETE localhost/dog/ -u 'user:pass'
sudo ./install.sh -d
sudo ./install.sh -h