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

Creates an api of `dog` 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-simple

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

Description

Creates an api of dog 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 dogs: https://localhost/dog
    • Schema id, breed, and color
  • CRUD opperations
    • Create: curl -i -X PUT localhost/dog/ -u 'user:pass'
    • Read: https://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'

To stop

sudo ./install.sh -d

For help

sudo ./install.sh -h

About

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

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


Languages

Language:Python 65.1%Language:Shell 23.1%Language:Dockerfile 10.2%Language:TSQL 1.6%