Transforming JAX-RS Java implementations into elements in UML models

To transform Java™ API for RESTful Web Services (JAX-RS) web service elements in a JAX-RS web project into elements in a UML model with the corresponding stereotypes applied, configure a Java-to-UML transformation and enable the JAX-RS Java5-to-UML transformation extension, and then run the transformation.

Before you begin

You must be in the Modeling perspective. To model Rest web services, you must have the REST Modeling capability enabled. To model JAX-RS-specific design capabilities by using stereotypes in the JAX-RS profile, you must have the JAX-RS Modeling capability enabled.


  1. Create a Java-to-UML transformation configuration as described in the topic in the related link below.
  2. In the Transformation Configuration editor, on the Extensions page, select the JAX-RS UML-to-Java5 Transformation Extension check box.
  3. Click File > Save.

What to do next

You can now run the transformation to generate stereotyped REST elements, and optionally JAX-RS elements, in a UML model. Also, annotations from the Java code are transformed into corresponding property values in the REST elements.

For information about running transformations, see the related link at the end of this topic.