swagger: file path in path parameter

后端 未结 1 519
眼角桃花
眼角桃花 2020-12-22 00:27

Here is my api requirement

GET http://localhost:8080/filePath/{path}

For example:

curl http://localhost:8080/filePath/home/         


        
相关标签:
1条回答
  • 2020-12-22 00:53

    OpenAPI 2.0 (Swagger 2.0) and OpenAPI 3.0 do not allow you to use slashes in path parameters, so you can't do that. There's an open feature request for this:

    https://github.com/OAI/OpenAPI-Specification/issues/892

    0 讨论(0)
提交回复
热议问题