Testing with Postman

Postman is a very powerful tool to be able to test our API before starting the development.

One of the most common error is to think that the API is not working due to Postman default configuration.

Trailing slashes

🚧

Trailing slashes are mandatory

Having a trailing slash is mandatory to call any endpoint.

If no trailing slash is provided, the endpoint will return a redirection to the url with a slash.
Postman by default follows this url with a GET method. This is why it still works but with a GET if no trailing slash is provided.

It is possible to override Postman configuration as shown in the following screenshot.