Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
11 lines (7 sloc) 505 Bytes
id title sidebar_label
Model Generation
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.