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.

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

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

The application's endpoints allow us to implement create, read, update, and delete (CRUD) actions in the application.

Instructions

Your task is to import the provided Challenge-CreateOrder.json collection and write Postman test cases for the POST /api/orders endpoint.

Get hands-on with 1400+ tech skills courses.