• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
  • Mikalai Zaikin

Solution for multiple HTTP methods display for the spring fox health route in swagger

Ranch Hand
Posts: 352
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have use spring boot acurator health with spring fox swagger in a spring boot projet. I use below in my Application.java class.

But when I check the swagger ui, I see multiple end points for health with all types of http methods include POST,DELETE, OPTIONS etc. For myservice1 which implement in the REST contoller, it only display the GET method.

This TestMeHealthEndpoint extends AbstractEndpoint and overide invoke method with custom health information.

I only want to see is the GET method for the health route?
Don't get me started about those stupid light bulbs.
    Bookmark Topic Watch Topic
  • New Topic