springdoc

Migrating from springfox swagger2 to springdoc openapi

走远了吗. 提交于 2020-12-29 05:41:35
问题 https://www.dariawan.com/tutorials/spring/documenting-spring-boot-rest-api-springdoc-openapi-3/ Trying to follow these How do I deal with annotations like @ApiModel(value = "Response container") @ApiModelProperty(value = "Iventory response", required = true) 回答1: Migrating from SpringFox Remove springfox and swagger 2 dependencies. Add springdoc-openapi-ui dependency instead. <dependency> <groupId>org.springdoc</groupId> <artifactId>springdoc-openapi-ui</artifactId> <version>@springdoc

How to integrate Swagger with SpringDoc YAML?

心已入冬 提交于 2020-12-15 06:06:48
问题 I'm using Swagger to document my project.And I want generate the YAML doc from springdoc. But when I generate this YAML documentation the YAML dont have my Swagger doc coments. For example. I have one endpoint in my project: @ApiOperation(value = "Return a list of Pix Wallets.", httpMethod = "POST", response = DResponse.class) @PostMapping("/digital-wallet") public ResponseEntity<DResponse> getDigitalWallets(@RequestBody PixDigitalWalletRequest pixDigitalWalletRequest) { return ResponseEntity