/PythonApi

Very simple example of an API written in Python

Primary LanguagePython

Simple Python API

based off tutorial found here

Installation

Requirements

  • Python 3+ - this will include pip

    Version 3.6.2 used.

  • Use pip to install flask-restful

pip install flask-restful

Flask-RESTful requires Python version 2.6, 2.7, 3.3, 3.4, 3.5 or 3.6.

config.json

You must include a config.json file in the main folder and add the following with the port number of your choosing:

{
   "PORT": 7777
}

Testing tools

install either:

Debugging

Using VS Code press F5 and choose either Python File or Flask to start the server.