T
T
tupoi2016-10-10 23:46:26
Angular
tupoi, 2016-10-10 23:46:26

How to interact with an API that is built on Django Rest Framework?

Good day, can anyone tell me how to interact with an API that is built using the Django Rest Framework? I wrote a model in django, set 2 fields for it, made an API according to the documentation, go to the tab 127.0.0.1:/8000/api/ I see a window that displays all the data in JSON format, I can send GET, POST, PUT in the web interface , DELETE requests, and how to do it with angular 1.5? I try using Python 3 and the requests library, nothing comes out, I get GET calmly, but with POST and the rest nothing, maybe someone knows how everything is arranged there? thanks in advance

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vladimir, 2016-10-10
@Casufi

https://docs.angularjs.org/api/ngResource/service/... examples

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question