I am new to Python and Django frameworks. I have Rest API’s developed using Django framework, how to access Rest API’s and display response in Python Console application?
Thanks
>Solution :
If you want to go all the way you need a http client in python, A popular one is requests
to use this in terminal you can just do
import requests
response = requests.get('http://localhost/api/myview')
print(response.status_code)
print(response.text)
print(response.json)