@@ -46,39 +46,39 @@ Open browser and navigate to http://127.0.0.1:5000/
4646
4747
4848## API Testing:
49- 1 . Test the local api created with ` fastapi ` using python:
49+ - Test the local api created with ` fastapi ` using python:
5050
51- python post.py -u "enter_github_username"
51+ python post.py -u "enter_github_username"
5252
53- 2 . Test the local api with ` CURL ` :
53+ - Test the local api with ` CURL ` :
5454
55- For ` Windows ` users:
55+ For ` Windows ` users:
5656
57- curl -X POST -H "Content-Type: application/json" -d '{ \"text\" : \"deepraj1729\" }' http://127.0.0.1:8000/ghbot
57+ curl -X POST -H "Content-Type: application/json" -d '{ \"text\" : \"deepraj1729\" }' http://127.0.0.1:8000/ghbot
5858
59- For ` Linux ` and ` Mac ` users:
59+ For ` Linux ` and ` Mac ` users:
6060
61- curl -X POST -H "Content-Type: application/json" -d '{ "text" : "deepraj1729" }' http://127.0.0.1:8000/ghbot
61+ curl -X POST -H "Content-Type: application/json" -d '{ "text" : "deepraj1729" }' http://127.0.0.1:8000/ghbot
6262
63- 3 . Test the production api with ` CURL ` :
63+ - Test the production api with ` CURL ` :
6464
65- For ` Windows ` users:
65+ For ` Windows ` users:
6666
67- curl -X POST -H "Content-Type: application/json" -d '{ \"text\" : \"deepraj1729\" }' https://ghbot-api.herokuapp.com/ghbot
67+ curl -X POST -H "Content-Type: application/json" -d '{ \"text\" : \"deepraj1729\" }' https://ghbot-api.herokuapp.com/ghbot
6868
69- For ` Linux ` and ` Mac ` users:
69+ For ` Linux ` and ` Mac ` users:
7070
71- curl -X POST -H "Content-Type: application/json" -d '{ "text" : "deepraj1729" }' https://ghbot-api.herokuapp.com/ghbot
71+ curl -X POST -H "Content-Type: application/json" -d '{ "text" : "deepraj1729" }' https://ghbot-api.herokuapp.com/ghbot
7272
73- 4 . Useful formatting with python ` json ` library:
73+ - Useful formatting with python ` json ` library:
7474
75- For ` Windows ` users:
75+ For ` Windows ` users:
7676
77- curl -X POST -H "Content-Type: application/json" -d '{ \"text\" : \"deepraj1729\" }' https://ghbot-api.herokuapp.com/ghbot | python -m json.tool
77+ curl -X POST -H "Content-Type: application/json" -d '{ \"text\" : \"deepraj1729\" }' https://ghbot-api.herokuapp.com/ghbot | python -m json.tool
7878
79- For ` Linux ` users:
79+ For ` Linux ` and ` Mac ` users:
8080
81- curl -X POST -H "Content-Type: application/json" -d '{ "text" : "jassics" }' https://ghbot-api.herokuapp.com/ghbot | python -m json.tool
81+ curl -X POST -H "Content-Type: application/json" -d '{ "text" : "jassics" }' https://ghbot-api.herokuapp.com/ghbot | python -m json.tool
8282
8383
8484![ FastAPI] ( assets/fast_api.png )
0 commit comments