Challenge: Create an Order

Challenge yourself by writing a test to create a new order.

Overview

Previously, we wrote API tests for a login application. Now we'll write API tests for a work order manager. The API provides the following endpoints:

  • POST /api/orders: This endpoint allows us to create a new order.

  • GET /api/orders: This endpoint allows us to retrieve all current orders.

  • GET api/orders/{{id}}: This endpoint allows us to retrieve a single order.

  • ...