rest-hapi

rest-hapi

  • Docs
  • Help
  • Blog
  • Users
  • GitHub

›Usage

Getting Started

  • Quick Start
  • Introduction
  • Swagger Documentation

Usage

  • Configuration
  • Creating Endpoints
  • Assocations
  • Route Customization
  • Querying
  • Duplicate Fields
  • Validation
  • Middleware
  • Authorization
  • Audit Logs
  • Policies
  • Mongoose Wrapper Methods
  • Soft Delete
  • Metadata
  • Model Generation

Other

  • Testing
  • Questions
  • Support
Edit

Model Generation

In some situations models may be required before or without endpoint generation. For example some hapi plugins may require models to exist before the routes are registered. In these cases rest-hapi provides a generateModels function that can be called independently.

NOTE: See scripts/seed.js for an example usage of generateModels.

← MetadataTesting →
rest-hapi
Docs
Getting StartedUsageOther
Community
User ShowcaseStack OverflowProject ChatDonateBlog
Social
rest-hapi
rest-hapi tweet
Follow @resthapi
Copyright © 2019 Justin Headley