import restAPY
api = restAPY.API(80, “0.0.0.0”)
api.set_path(“/”, {“celsius”:5, “fahrenheit”:41})
api.run()
Done! Start the python file and you've got a working rest API.
Inside the terminal:
pip install restAPY
Inside your project:
import restAPY
- socket
- threading
- json
- ssl
All of these are part of the default python install and therefore don't need to be installed separately.
https://restapy.readthedocs.io/
Niklas Ziermann
© Niklas Ziermann
MIT License