响应模式不显示 [英] Response schema does not display

查看:98
本文介绍了响应模式不显示的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在te dev portal中显示示例响应模式表示时遇到了一些麻烦。


我正在导入一个用NSwag创建的swagger.json。 net core api。 在api上使用swagger UI时,它会完美地显示响应。 过去,如果我手动添加产品:['application / json']到APIM设计师的每个终点,
那么它就可以了。 这显然不是一个很好的解决方案,但现在即使这样也行不通。 自动显示我的apis响应模式的最佳方法是什么?  

解决方案

我相信我的答案在
此主题
会有所帮助。 基本上,您正在寻找  表示


唯一的区别是你正在寻找
响应
而不是另一个标签中提供的请求。



I've had quite a bit of trouble displaying example response schema representations in te dev portal.

I'm importing a swagger.json created with NSwag from a .net core api.  When using swagger UI on the api itself it displays the response perfectly.  It used to be that if I manually added produces:['application/json'] to each end point in APIM designer, then it would work.  THis is obviously not a great solution but now even this does not work.  What is the best way to automatically display the response schema of my apis?  

解决方案

I believe my answer in this thread would help. Basically, you are looking for Representation.

The only difference from the other answer is that you are looking for responses instead of requests which is available in another tab.


这篇关于响应模式不显示的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆