Debugging an API request
If your API request is returning something other than what you expected and you believe there's an issue with the Reverb API, please take the following steps to first ensure that the problem is not in your code.
-
Download and install Postman. This free App will let you simulate requests to the API.
-
In Postman, set up the same request you're doing in your code by setting the endpoint, http method, and body/params. Please make sure you set the Content-Type header to
application/hal+json
and theX-Auth-Token
header to your token. -
Click on "Generate Code" and select cURL from the list. This will generate a curl request you can execute in your terminal. As a first step for debugging, try running the generated curl command in your terminal window. If this provides a different response than in your code, the bug is in your code. If you are seeing a consistently problematic response, please send the cURL request to [email protected].
Updated almost 2 years ago