Hi

In this case I believe you need to use Swagger annotations, see this example:

https://github.com/apache/cxf/blob/master/distribution/src/main/release/samples/jax_rs/description_swagger2/src/main/java/demo/jaxrs/swagger/server/Sample.java#L61

Sergey

On 06/09/17 06:41, arjun dhar wrote:
Hi,

I am using Swagger for documentation. Tough, that aside I do not wish my
method return type to be a "Response" type; rather the true type so its
legible to document and see.

However I do want Cache control on some end points. All documentation Ive
seen points to be using a ResponseBuilder, as there no
annotation/declarative way of handling this more cleanly?

thanks,
Arjun



--
Sent from: http://cxf.547215.n5.nabble.com/cxf-user-f547216.html



--
Sergey Beryozkin

Talend Community Coders
http://coders.talend.com/

Reply via email to