DEV Community

Discussion on: Quick API Debugging Tip

Collapse
 
jillesvangurp profile image
Jilles van Gurp

Also useful if you are using e.g. Kibana or similar analytics tools and want to get the raw data. Copy curl command, paste it in a command line and redirect the output to a file.

One issue with APIs is of course is that things like tokens tend to be short lived.

Collapse
 
theringleman profile image
Sam Ringleman

Interesting use case. I have never considered using this with Kibana but it makes perfect sense. I could see pulling out the elastic search query with this as helpful for debugging. As far as redirecting to an output file, brilliant! I never considered doing something like that!

And as far as tokens, you are absolutely right. However, when developing the API, I always find it handy when someone can give me that so I can quickly masquerade as that user to see if there is something breaking that my user otherwise would not see.

Thanks for your comment! I look forward to implementing that idea!