question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Config property to include health endpoints in OpenAPI definition

See original GitHub issue

Description As discussed in Zulip it could be useful to include the health endpoints (like /health) in the OpenAPI definition for the application.

Our use case for this is that we are deploying our applications to Azure and register all endpoints with its API management. If an endpoint (like /health) isn’t registered there, it can’t be called by other applications. For this reason we would like to have an option to include the MicroProfile Health endpoints in the generated OpenAPI definition.

Implementation ideas As discussed on Zulip one idea would be to add a new configuration property to the quarkus-smallrye-openapi extension, which when set and quarkus-smallrye-health is available, would automatically add the health endpoints to the OpenAPI definition.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:11 (10 by maintainers)

github_iconTop GitHub Comments

1reaction
kenfinnigancommented, Sep 8, 2020

We need to be very careful about this, as it does open up possible security concerns exposing what is “internal APIs” to exposure.

I would suggest this is only enabled is the OpenAPI endpoint is secured, or it’s DEV mode.

@n1hility @maxandersen might have comments too

0reactions
maxandersencommented, Sep 10, 2020

this all sounds reasonable imo. agree with @kenfinnigan security concern but making this an optional opt-in and there is a usecase for azure to make it even work I think we should be fine.

Read more comments on GitHub >

github_iconTop Results From Across the Web

OpenAPI Properties in Use | InterSystems IRIS for Health 2022.2
This appendix lists the properties of the OpenAPI 2.0 specification that the API management tools use when generating the REST service classes.
Read more >
OpenAPI Specification - Version 3.0.3 - Swagger
The OpenAPI Specification defines a standard interface to RESTful APIs which allows both humans and computers to understand service capabilities without ...
Read more >
Using OpenAPI and Swagger UI - Quarkus
You just need to add the openapi extension to your Quarkus application: ... you can include the following configuration in your application.properties :....
Read more >
Integrating HealthCheck endpoint into swagger (open API) UI ...
One thing I noticed though is the endpoint is still "/health" (or ... Add(new OpenApiTag { Name = "ApiHealth" }); var properties =...
Read more >
OpenAPI/Swagger Support - GitHub Pages
Options specified with system properties have priority over those defined in the openapi.properties file. 6.1 Configuring OpenAPI Processing with a properties ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found