Skip to content

Latest commit

 

History

History
20 lines (14 loc) · 1.17 KB

README.md

File metadata and controls

20 lines (14 loc) · 1.17 KB

PRACTICE HUG API

This proyect is created using Hug , this is the official repository -> timothycrosley/hug

First of all, install Hug:

pip3 install hug --upgrade

PROYECT INFO:

API data -> topics.json. This API is executed with server.py The logic of the API is in apiLogic.py

You have an API call example here -> callApi.py

If you want to run server use this:

python callApi.py

You should enter to browser and paste this https://localhost:8000/topics for check if API works correctly.

If you want to call the API that you have running. First of all you should have server.py running using hug -f server.py and after that you should use the next command to run callApi file :

hug -f callApi.py