0

I have my RestController with below code

RestControllerCode

while my swagger launching it is showing like below

Swagger UI

I don't want v1 into Swagger UI , but somehow my endpoint should get called via 'v1' including. like (http://localhost:8080/v1/myFirstMessage).

Is there any way fo this..?

1 Answers1

0

This is simply because you have 'v1' in your GetMapping. Your get mapping should be something like this instead @GetMapping("/myFirstMessage")

enter image description here

Geral
  • 56
  • 1
  • 1
  • 6