Skip to content

bearddan2000/python-web-pyramid-api-sqlserver-ssl-raw-sql-pop

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

python-web-pyramid-api-sqlserver-ssl-raw-sql-pop

Description

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

Uses sqlalchemy raw sql to query a table pop.

Remotely tested with testify.

Sql server uses self-signed ssl.

Tech stack

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

Docker stack

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

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 (optional)

sudo ./install.sh -d

For help

sudo ./install.sh -h

Credit