freeCodeCamp/guide/english/miscellaneous/create-a-new-api-endpoint-i.../index.md

6 lines
366 B
Markdown

---
title: Create a New Api Endpoint in Angular
---
>> yo angular-fullstack:endpoint whatsit
Using this line, you get Yeoman to automatically generate another API endpoint and new kind of collection for your database. Now we have _things_ as well as _whatsits_! Feel free to open up **/server/api/whatsit/whatsit.model.js** and define your whatsit however you like.