Tuesday, July 24, 2012

Re: json objects and PUT/GET Requests/Response


Hi Svs,

please have a look at django-tastypie (https://github.com/toastdriven/django-tastypie).
it's great for the REST purpose.

Thanks,
sanket


On Tuesday, July 24, 2012 12:09:14 PM UTC-7, svs wrote:
Hello,

I am new to both DJANFGO & REST.
Here is my problem,I have defined CRUD specific to that of MongoDB in my Models.py file, now I am trying to pass data to be written into this DB using http PUT requests.
1.How  parse json objects in the body of HTTP request ?
2.How to create HTTP put/get request for test purposes with json objects through CLI or GUI.

We have client side code(written in PERL) which will actually generate these requests but I want to test my server side code independently.

Thanks,
svs

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To view this discussion on the web visit https://groups.google.com/d/msg/django-users/-/g8W3dSJ6mK0J.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

No comments:

Post a Comment