Bummer! This is just a preview. You need to be signed in with an account to view the entire instruction.

Instruction

Test Validation Rules in Postman

Let's test our POST /api/users route validation rules! Start the application by running npm start from the command line, open Postman, and complete the following steps:

  1. Select the "POST" HTTP method in the drop-down list to the left of the URL field.
  2. Change the URL to "http://localhost:5000/api/users".
  3. Switch to the "Body" tab, and select "raw" and "JSON (application/json) f...