If it comes to testing REST APIs I’m a big fan of Postman. But for quick and command line testing I always prefer to use cURL. For developing and testing protected endpoints we need to pass an authorization header. How can we do this with cURL? Example of using Bearer tokens: Example request (invalid token):… Read More »
How to use CURL to post a JSON payload to a REST API endpoint?