Код: Выделить всё
package com.acme.rest;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
@Tag(name = "Dummy Controller", description = "Dummy controller.")
@RestController
@RequestMapping("/api/v1/dummy")
public class DummyController {
@Operation(summary = "dummy(). Does litrally nothing.")
@RequestMapping(value = "/", method = RequestMethod.GET)
public String doStuff() {
return "dummy";
}
}
< /code>
и попробовал Swagger-maven-plugin < /p>
io.swagger.core.v3
swagger-maven-plugin
2.2.0
${project.build.directory}/swagger-def
com.acme
true
compile
resolve
Код: Выделить всё
mvn clean compile
Код: Выделить всё
{
"openapi" : "3.0.1"
}
Подробнее здесь: https://stackoverflow.com/questions/727 ... ile-time-w