使用 Azure Functions 构建无服务器 API
使用 Visual Studio Code 和 Azure Functions 可以快速创建无服务器 API、实现 RESTful 体系结构并安全地存储安全信息(例如连接字符串)。
学习目标
通过学习本模块,你将能够:
- 充分了解应用程序编程接口 (API)。
- 使用适用于 Node.js 的 Azure Functions v4 编程模型创建 API。
- 从 Azure Function 连接到 Azure Cosmos DB。
- 了解 REST 的优势以及如何实现具有 RESTful 风格的 API。
- 区分 Azure Functions 和基于 Web 的 API 的不同类型的安全性。
- 部署 Azure Functions 应用程序。
先决条件
- 必须熟悉基本的 API 概念
- 必须安装有 Node.js
- 必须安装有 Visual Studio Code
- 必须安装有 Azure Functions Core Tools
- 必须安装有 Azure Functions 扩展