Lesson 3 of 12 · Design
Designing the API: REST routes, JSON contracts and error codes
Objective
Write the contract of the MasterLinux shop API before a single line of server code: which routes exist, what they receive, what they return, and how they report an error. This contract lets the front end and the back end move forward in parallel, and then serves as the basis for the tests.
This lesson is part of the full course
Unlock Fullstack Project: the MasterLinux Shop, a Marketplace from A to Z to read every lesson, do the exercises, access the simulations and earn your certificate.
Already enrolled? Log in.