3 ms·
What do you use it for? The syntax looks simple, and the results are clearly formatted - just trying to understand what kind of workflow makes this favorable t
by samvher 5y ago
What do you use it for?
The syntax looks simple, and the results are clearly formatted - just trying to understand what kind of workflow makes this favorable to something like curl or python-requests.
- sharat87 5y agoHey, thanks for asking. I use this to play with and test APIs I'm developing, or APIs that I want to develop against. For example. GitHub has a public API that can be used to access repositories and details about the repositories. I use Prestige to try out an example request, and tune the request to get the exact response that I want and _then_ translate it to use python-requests (if I want to use it in Python) or something else.
- epr 5y agoThis is a handy tool to convert curl to the python requests equivalent automatically. https://curl.trillworks.com https://curl.trillworks.com Since chromium-based browsers will generate curl requests from the network tab of devtools, you can use that along with the above to quickly generate code to replay requests with python.
- sharat87 5y agoHey that's a nice tool! I didn't know that existed and now I'm wondering why I didn't think to Google and find out. Thanks for sharing!