Skip to content

mansi-gevariya/over-achiever

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

over-achiever

A little demo app to show how to create a REST API with Flask.

Uses Flask-RESTful, SQLAlchemy and Flask-SQLAlchemy.

The only somewhat fancy stuff is a self-referential Goal model, which allows creating arbitrarily deep hierarchies of goals and sub-goals.

Authentication

The over-achiever web app utilizes OAuth2 authentication via Github. You must have a github account and hit the /login endpoint. This will direct you to a Github login dialog, which will result in a page with a JSON response that includes a field called access-token. When you hit the API you must provide the access token as a header

curl -H "Access-Token:<the access token" http://localhost:5000/v1.0/goals

About

A demo REST API for setting goals. Toy project to support a DevX article

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%