All Projects → auth0-blog → Flask Restful Apis

auth0-blog / Flask Restful Apis

Licence: mit
Project created throughout the "Developing RESTful APIs with Python and Flask" article.

Programming Languages

python
139335 projects - #7 most used programming language

Developing RESTful APIs with Python and Flask

This repository contains code created throughout the "Developing RESTful APIs with Python and Flask" article.

Check it out for more info!

Running the API

To run this application, you will need Python 3+ and Pipenv installed locally. If you have then, you can issue the following commands:

# from the flask-restful-apis directory
pipenv install
./bootstrap.sh 

Then you can issue requests to your API. For example, with curl, you can issue requests like that:

# inserting a new income
curl -X POST -H "Content-Type: application/json" -d '{
    "amount": 300.0,
    "description": "loan payment"
}' http://localhost:5000/incomes

# listing all incomes
curl http://localhost:5000/incomes
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].