Want To Learn Django With Rest Without Rest Frameworks
I am a php programmer, I have built some REST based solutions in php. Now I am learning python/django. I want to make a REST based solution in Django ( only for knowledge purpose )
Solution 1:
Well I get the answer of my questions finally from following link. It is possible through using Class based Views + serialization.
Snippet links in side above link gave pretty much example to gave quite picture of how one can create a REST Api using only Django Core. Also I used serialize https://docs.djangoproject.com/en/dev/topics/serialization/ for Json encoding
( Now if anybody prefer, he can flag duplicate the question. ;) )
Solution 2:
You can start from learning the code of this projects:
- http://tastypieapi.org/ Tastypie
- http://www.django-rest-framework.org/ Django REST framework
They are snadrd de facto for REST API for Django and their code could be a good starting point.
Also, please review this questions:
Post a Comment for "Want To Learn Django With Rest Without Rest Frameworks"