Skip to content

Latest commit

 

History

History
executable file
·
42 lines (33 loc) · 1.07 KB

File metadata and controls

executable file
·
42 lines (33 loc) · 1.07 KB

python-web-pyramid-api-sqlserver-chained-sql-simple

Description

Simple web app that serves an api for a pyramid project.

Uses sqlalchemy chained sql functions to query a table dog.

Remotely tested with testify.

Tech stack

  • python
    • pyramid
    • sqlalchemy
    • testify
    • requests
  • mssql

Docker stack

  • python:latest
  • mcr.microsoft.com/mssql/server:2017-CU17-ubuntu

To run

sudo ./install.sh -u

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

To stop (optional)

sudo ./install.sh -d

For help

sudo ./install.sh -h

Credit