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

7 lines
382 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

---
title: Create a New Api Endpoint in Angular
localeTitle: 在Angular中创建一个新的Api端点
---
> > yo angular-fullstack端点whatsit
使用此行您可以让Yeoman自动为您的数据库生成另一个API端点和新类型的集合。现在我们有_东西_和_whatsits_ !随意打开**/server/api/whatsit/whatsit.model.js**并根据需要定义你的whatsit。