bearddan2000 / python-web-api-bottle-basic-auth-ssl-sqlserver-ssl-chained-sql-pop

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

Home Page:https://github.com/bearddan2000/python-web-api-bottle-basic-auth-ssl-sqlserver-ssl-chained-sql-pop

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

python-web-api-bottle-basic-auth-ssl-sqlserver-ssl-chained-sql-pop

Description

Creates an api of pop by using chained sql functions for a bottle project. Has the ability to query by parameters.

Remotely tested with testify, the ssl is not verified.

Requires basic authentication for endpoints.

username password
user pass

Sql server uses self-signed ssl.

Tech stack

  • python
    • bottle
    • 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: https://localhost/pop
    • Schema id, name, and color
  • CRUD opperations
    • Create: curl -i -X PUT localhost/pop/ -u 'user:pass'
    • Read: https://localhost/pop/ -u 'user:pass'
    • Update: curl -i -X POST localhost/pop/// -u 'user:pass'
    • Delete: curl -i -X DELETE localhost/pop/ -u 'user:pass'

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 bottle project.

https://github.com/bearddan2000/python-web-api-bottle-basic-auth-ssl-sqlserver-ssl-chained-sql-pop


Languages

Language:Python 65.0%Language:Shell 23.2%Language:Dockerfile 10.2%Language:TSQL 1.6%