Skip to main content

Practice ยท 2 of 2

The API Contract Decision

Declare the two core endpoints as objects. createEndpoint: method (creating a ticket), path (your chosen route), successStatus (number), and bodyFields (array of the fields the client sends). listEndpoint: method, path, and the query parameter name used for priority filtering (queryParam, string; use "" if you filter client-side).

Difficulty: advanced

Back to lesson: Practice: Capstone Planning โ€” Record Your Decisions