donglu8549 2017-03-30 14:21
浏览 1342

POST,PUT,DELETE方法不适用于swagger ui但GET Works

POST, PUT and DELETE methods are not working in swagger UI but GET works for all my endpoints.

I even tried copy paste executing the curl command on shell and it is also working.

Is there any configuration I have to do in my server or swagger json to overcome this issue?

  • 写回答

2条回答 默认 最新

  • doukoumi3389 2018-11-01 10:10
    关注

    I was facing the same issue and after spend more than 8 hours I trace reason.

    It is annotations issue in swagger json, You can try original annotation example from https://editor.swagger.io/# save it as swagger.json and try that in your project. It will show you results for trace.

    评论

报告相同问题?

悬赏问题

  • ¥15 c语言怎么用printf(“\b \b”)与getch()实现黑框里写入与删除?
  • ¥20 怎么用dlib库的算法识别小麦病虫害
  • ¥15 华为ensp模拟器中S5700交换机在配置过程中老是反复重启
  • ¥15 java写代码遇到问题,求帮助
  • ¥15 uniapp uview http 如何实现统一的请求异常信息提示?
  • ¥15 有了解d3和topogram.js库的吗?有偿请教
  • ¥100 任意维数的K均值聚类
  • ¥15 stamps做sbas-insar,时序沉降图怎么画
  • ¥15 买了个传感器,根据商家发的代码和步骤使用但是代码报错了不会改,有没有人可以看看
  • ¥15 关于#Java#的问题,如何解决?