/restapi

REST API Example using Python and Flask

Primary LanguagePython

restapi

REST API Example using Python and Flask

Based on example provided by: https://www.codementor.io/sagaragarwal94/building-a-basic-restful-api-in-python-58k02xsiq

Before execute this script please follow the setup instructions according to the link above. The script added to this repository includes GET, POST and DELETE HTTP methods using Python and Flask.

To execute this script you should export enviroments below:

export FLASK_APP=your flas script export FLASK_ENV=development or production

To run: flask run --host 0.0.0.0 --port 5000

This is a good resource to provide REST api for purposes in a reduced scope.