When you call
sails generate api cats via the command line from inside your project's root directory, Sails will generate the file
myApp/api/controllers/CatsController.js along with a matching model.
Is something missing?
If you notice something we've missed or could be improved on, please follow this link and submit a pull request to the sails-docs repo. Once we merge it, the changes will be immediately reflected on the website.