Skip to content

Small own API created with Hug. There are some examples of scripts and calls to created API

Notifications You must be signed in to change notification settings

batichico/praticeHugAPI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 

Repository files navigation

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

About

Small own API created with Hug. There are some examples of scripts and calls to created API

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages