如何使用 Node.js 在 Azure 上为 Documentdb 数据库构建 Rest API
How to build a Rest API on Azure for a Documentdb database with Node.js
我已经创建了一个 Documentdb 数据库,现在我应该使用 Node.js 在 Azure 上构建一个 REST API。我已经阅读了文档,但我对它的理解还不够好。
云服务可能是一个很好的解决方案,但如果我没有误解的话,它是 Python 和基于 .NET 的。
如果我想构建 REST API 和 REST API 的用户界面,我应该更好地使用哪些服务?网络应用程序? API 应用程序?或者其他产品?
https://docs.microsoft.com/en-us/azure/app-service-api/app-service-api-nodejs-api-app
An API app can take advantage of features offered by Web Apps and Mobile Apps. The reverse is also true: if you use a web app or mobile app to host an API, it can take advantage of API Apps features such as Swagger metadata for client code generation and CORS for cross-domain browser access. The only difference between the three app types (API, web, mobile) is the name and icon used for them in the Azure portal.
API 应用程序和 Web 应用程序同样适合您。目前,所有 Web、移动和 API 应用程序统称为应用程序服务。对于大多数场景,Web Apps 是最佳选择。
更多相关信息:
Differences between Azure App Services and Cloud Services
我已经创建了一个 Documentdb 数据库,现在我应该使用 Node.js 在 Azure 上构建一个 REST API。我已经阅读了文档,但我对它的理解还不够好。
云服务可能是一个很好的解决方案,但如果我没有误解的话,它是 Python 和基于 .NET 的。
如果我想构建 REST API 和 REST API 的用户界面,我应该更好地使用哪些服务?网络应用程序? API 应用程序?或者其他产品?
https://docs.microsoft.com/en-us/azure/app-service-api/app-service-api-nodejs-api-app
An API app can take advantage of features offered by Web Apps and Mobile Apps. The reverse is also true: if you use a web app or mobile app to host an API, it can take advantage of API Apps features such as Swagger metadata for client code generation and CORS for cross-domain browser access. The only difference between the three app types (API, web, mobile) is the name and icon used for them in the Azure portal.
API 应用程序和 Web 应用程序同样适合您。目前,所有 Web、移动和 API 应用程序统称为应用程序服务。对于大多数场景,Web Apps 是最佳选择。
更多相关信息:
Differences between Azure App Services and Cloud Services