diff --git a/springwolf-core/src/main/java/io/github/stavshamir/springwolf/asyncapi/controller/AsyncApiController.java b/springwolf-core/src/main/java/io/github/stavshamir/springwolf/asyncapi/controller/AsyncApiController.java index 983874be6..eaf291460 100644 --- a/springwolf-core/src/main/java/io/github/stavshamir/springwolf/asyncapi/controller/AsyncApiController.java +++ b/springwolf-core/src/main/java/io/github/stavshamir/springwolf/asyncapi/controller/AsyncApiController.java @@ -18,7 +18,7 @@ public class AsyncApiController { private final AsyncApiService asyncApiService; private final AsyncApiSerializerService serializer; - @GetMapping(path ="${springwolf.paths.docs:/springwolf/docs}", produces = MediaType.APPLICATION_JSON_VALUE) + @GetMapping(path ={"${springwolf.paths.docs:/springwolf/docs}","${springwolf.paths.docs:/springwolf/docs}.json"}, produces = MediaType.APPLICATION_JSON_VALUE) public String asyncApiJson() throws JsonProcessingException { AsyncAPI asyncAPI = asyncApiService.getAsyncAPI(); return serializer.toJsonString(asyncAPI);