How to validate API in tests with Swagger?

前端 未结 4 1423
梦如初夏
梦如初夏 2020-12-19 01:56

I\'m trying to figure out the best way to have my API documentation be the source of truth and use it to validate the actual Java REST code ideally through integration testi

4条回答
  •  我在风中等你
    2020-12-19 02:22

    You may want to look at Spring Cloud Contract. It offers you a DSL, where you can describe the scenarios (more or less what is the response I get for a given request) and it seems to fit well to what you described as a requirement...

提交回复
热议问题