Re: How to talk to API via HTTP on Django

2019-06-25 Thread Yoo
Use Django REST Framework and django-filters. Easy set-up. For something you're trying to do, you can send a request like: http://127.0.0.1:8000/api/testtable/?format=json=science/ Basically, this goes to the table Testtable, filters the queryset by some column category that returns all

How to talk to API via HTTP on Django

2019-06-25 Thread Dejan Batic
I'm newbie of course. I have this API documentation and I'm trying to figure out how to make this http request works. For example here is the reques that client sends: GET {URL}/api/{USER}:{PASS}/plaint/play_create*{PARAM1}*{SEQUENCE}*{GROUP}*{PARAM2} That line is from client and the server