Open vassterg opened 6 years ago
Attached is a sample pmaven project and the final artifact for deployment
openapi-jaxrs-subresource-incomplete.zip openapi-incomplete.zip
Hi @vassterg,
The current OpenAPI implementation doesn't support subresources. I've made an enhancement request PAYARA-3086
to add this functionality.
Kind regards,
Matt
@jbee this is an old one do you think it will still be a problem?
@smillidge I believe we fixed this but I have to check.
@smillidge , @vassterg I was confusing this with another issue - @MattGill98 was and is correct in that we do not support subresources yet.
Support for subresources is available in 5.194.
This does not work. I have tested it with the provided maven sample with Payara 5.2021.7. and 5.194 The path /resources/foo/bar is missing in the openapi doc.
An internal issue is created to research the JAX-RS subresources and the OpenAPI document relation in detail.
Thx Rudy
Description
Incomplete support of openapi when subresource is present. I have two classes Foo and Bar such that Foo is a jaxrs resource and Bar is a subresource. When deployed, the openapi link is incomplete.
Expected Outcome
I would expect in the openapi link, the Bar sub resource GET endpoint to show up in the openapi and the Bar sub resource to be included as a schema.
Current Outcome
No endpoint and schema for subresource bar.
Steps to reproduce (Only for bug reports)
Create a simple javaee 8 maven JAX-RS project. Example pom.xml
Add the following three classes:
Build and deploy project. Then access http://localhost:8080/openapi
Samples
Context (Optional)
Environment