Hi, great plugin, whereas one can generate swagger.json without exposing urls!
Does my endpoint requires spring-like annotations such as: RestController or Controller?
Or can declare a @Component and the plugin will index @Api like annotations?
@Component
@SvcServerEndpoint(id = "myEndpoint", basePath = "/decrypt")
public class MyEndpoint {
...
@ApiOperation(value = "A message", notes = "Returns a message")
@ApiResponses(value = { @ApiResponse(code = HttpStatus.SC_OK, message = "A message", response = MyResponse.class) })
@ResponseBody
@PostMapping(produces = MediaType.APPLICATION_JSON_VALUE)
public DeferredResult<ResponseEntity<?>> post(
@ApiParam(name = "request", type = "MyRequest", required = true) @RequestBody final MyRequest request,
final HttpServletRequest servletRequest) {
...
}
Got this message:
[INFO] Reflections took 80 ms to scan 261 urls, producing 2 keys and 2 values
Failed to execute goal com.github.kongchen:swagger-maven-plugin:3.1.8:generate (default) on project swagger-test-project: null
Hi, great plugin, whereas one can generate swagger.json without exposing urls!
Does my endpoint requires spring-like annotations such as:
RestController
orController
? Or can declare a@Component
and the plugin will index@Api
like annotations?pom.xml
My endpoint:
Got this message: