An open API service indexing awesome lists of open source software.

https://github.com/pickfire/sanic-hero-api-example


https://github.com/pickfire/sanic-hero-api-example

Last synced: 28 days ago
JSON representation

Awesome Lists containing this project

README

        

Python, Sanic, Peewee Rest API Example
======================================

Build Restful CRUD API for a simple application using Python, Sanic and Peewee.

Requirements
------------
- python 3 > 3.5.x

Setup
-----

python3 -m venv venv
source venv/bin/activate
pip install -r requirements.txt
export DATABASE_URL=mysql+pool://user:pass@localhost/heroes
sudo python app.py

Explore Rest APIs
-----------------
The app defines following CRUD APIs.

GET /heroes

You can test them using postman or any other rest client.

Learn more
----------
Check out @sean3z blog post -