在没有 Swagger.io 的情况下创建 Azure API 应用程序

Create Azure API App without Swagger.io

我是第一次使用 Azure,想做一个非常简单的 RESTful API,但是尝试遵循 example using Swagger.io 感觉工作量很大我想实现。有没有办法只为 JAX-RX 编写 Java 代码而无需通过 Swagger.io 生成器进程?

服务说明说明您可以按原样携带 API:

Bring your existing API as-is - You don't have to change any of the code in your existing APIs to take advantage of API Apps -- just deploy your code to an API app. Your API can use any language or framework supported by App Service, including ASP.NET and C#, Java, PHP, Node.js, and Python.

Swagger 支持便于使用,因为您可以根据 swagger 规范自动生成各种语言的客户端 sdk。没有什么能阻止你不招摇,仍然使用服务。