Chapter 3. Building a RESTful API
In this chapter, we will cover the following recipes:
- CRUD operations using ExpressJS' route methods
- CRUD operations with Mongoose
- Using Mongoose query builders
- Defining document instance methods
- Defining static model methods
- Writing middleware functions for Mongoose
- Writing custom validators for Mongoose's schemas
- Building a RESTful API to manage users with ExpressJS and Mongoose