Hi all,
by reading [1], I am currently annotating JAX-RS methods (for WADL-generation) like this

    /**
     * Deletes the user matching the provided userId.
     *
     * @param userId id of user to be deleted
     * @return Deleted user
     */
    @DELETE
    @Path("{userId}")
    @Descriptions({
@Description(target = DocTarget.METHOD, value = "Deletes the user matching the provided userId"),
        @Description(target = DocTarget.RETURN, value = "Deleted user")
    })
    UserTO delete(@PathParam("userId") Long userId);


As you can see, there is an evident duplication here, so I was thinking if Javadoc elements might be used for WADL documentation and found [2] for Jersey.

Is there anything similar planned for CXF?

TIA
Regards.

[1] http://cxf.apache.org/docs/jaxrs-services-description.html#JAXRSServicesDescription-DocumentingresourceclassesandmethodsingeneratedWADL [2] https://wikis.oracle.com/display/Jersey/SupportedJavadocTagsForExtendedWADL

--
Francesco Chicchiriccò

ASF Member, Apache Syncope PMC chair, Apache Cocoon PMC Member
http://people.apache.org/~ilgrosso/

Reply via email to