avaje-http icon indicating copy to clipboard operation
avaje-http copied to clipboard

Adding endpoint from other libs to openapi documentation

Open Tijs-2 opened this issue 3 years ago • 3 comments

Hi Rob,

I was looking into a way to add endpoint from another lib to the openapi documentation of the final service.

For example I have a base project y that provides a general /health or /info endpoint and I use that lib in project z. The endpoints are made available with the use of your inject project when I start the application, but they are not present in the openapi documentation.

Now I was wondering and trying out but could not achieve this by looking for the "Controller" classes and trying to add them but it is not looking to other inherited projects.

Would something like this be possible in combination with the @ContextModule[depenson=project y] so we know where to look and then add those endpoints? Because it would be nice to add all available endpoints to the final documentation.

Kind regards, Tijs

Tijs-2 avatar Feb 16 '21 08:02 Tijs-2