Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Testing REST API [closed]

Tags:

python

rest

I am developing a REST API on Django. What do other uses to craft json msgs to test? Is there a browser plugin, python lib, curl, something else?

like image 809
ewhitt Avatar asked Mar 02 '12 05:03

ewhitt


1 Answers

If you want to write Python try using the Requests library to do some basic testing from the client side. There is a CLI tool based on this called httpie that you might also want to check out. You can also use curl for testing if you prefer the command line but it is probably easier to use Requests in the long run from Python code if you are dealing with a more complex API or want to do anything repeatedly.

like image 187
Brian Lyttle Avatar answered Sep 22 '22 14:09

Brian Lyttle