openAPI 3.0 is not showing try it out button for API endpoints

前端 未结 1 1431
臣服心动
臣服心动 2021-01-15 22:35

I\'ve configured my api with swagger openapi3.0, unfortunately, it is not showing try it out button for my API endpoints. am I missing any configuration in the swagger file?

相关标签:
1条回答
  • 2021-01-15 23:17

    I think you also need to add a description to the server. Something like this

    "servers": [
     {
      "description": "Local env",
      "url": "http://localhost:3000/api"
     }
    ]
    
    0 讨论(0)
提交回复
热议问题