Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
在我见过的所有 swagger API 文档的实现中,唯一的查询示例格式似乎是 curl,如下图所示:
是否可以根据使用 readme.io 等的 API 文档在此屏幕截图中指定其他语言格式:
由于 swagger 是开源的,因此您可以根据需要对其进行修改。
它与 CURL 捆绑在一起,但您可以自由更改代码并使用您认为合适的代码,但请确保正确注明 Swagger 的原始创建者。
对于您的特定要求,您应该更改 javascript 文件swagger-ui和swagger-ui-min
swagger-ui
swagger-ui-min