Challenge: Create an Order
Explore writing effective Postman tests for creating orders with the POST /api/orders endpoint in a work order manager. Understand how to validate both successful and error responses while working with provided test collections to enhance API testing skills.
We'll cover the following...
We'll cover the following...
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....