Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

Treehouse

REST API Validation with Express Course (How To)

via Treehouse

Overview

Explore how to validate data on the server using a REST API developed with Node.js and Express. The API will allow you to create a user account and retrieve a list of user accounts.

Syllabus

The Importance of Data Validation

As developers, we should strive to create applications that ensure that data created and updated by our users is useful.

Chevron 6 steps
  • instruction

    What is Data Validation?

  • instruction

    Get Started with the Project

  • instruction

    Review the Routes

  • instruction

    Test the Routes

  • instruction

    Further Testing the New User Account Route

  • Data Validation Review

    5 questions

Validating Data

Define data validation for required fields to ensure that new users provide those values. And learn ways to go further with validation using a data validation library or an object-relational mapping library (ORM) like Sequelize.

Chevron 7 steps
  • instruction

    Define Data Validation Requirements

  • instruction

    Return Validation Error Messages

  • instruction

    Test Validation Rules in Postman

  • instruction

    Format Validation Error Messages

  • instruction

    Explore Data Validation Types

  • instruction

    Next Steps: Expand Data Validation Requirements

  • Validating Data Review

    5 questions

Taught by

Guil Hernandez

Reviews

Start your review of REST API Validation with Express Course (How To)

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.