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
.