Skip to lesson

Test ShopLite: controllers, validation and errors

A controller test checks the API contract itself: the URL, the status code, the headers and every field of the JSON, including the error bodies that client apps depend on.

Sign in to continue this lesson

Create an account to read every lesson, practise with the exercises and keep track of your progress.