Skip to content

Latest commit

 

History

History
17 lines (11 loc) · 649 Bytes

File metadata and controls

17 lines (11 loc) · 649 Bytes

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 --host=your hostname/ip --port:your target port

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