Uploaded image for project: 'Red Hat Fuse'
  1. Red Hat Fuse
  2. ENTESB-3005

Swagger module does not produce a "models" section in JSON output

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • jboss-fuse-6.2.1
    • jboss-fuse-6.1
    • CXF
    • None
    • % %
    • Hide

      1. Unpack, build and deploy the attached rest2_prj.zip
      2. features:install swagger; features:install cxf-jaxrs
      3. Request the URL
      http://localhost:8181/cxf/rest2/api-docs/resttwocustomer
      4. Note that the JSON returned has no models section

      Show
      1. Unpack, build and deploy the attached rest2_prj.zip 2. features:install swagger; features:install cxf-jaxrs 3. Request the URL http://localhost:8181/cxf/rest2/api-docs/resttwocustomer 4. Note that the JSON returned has no models section

      An application uses Swagger annotations to document REST API calls. Even though the data model classes are annotated with @ApiModel and @ApiModelProperties annotations, not "models" section is produced in the JSON output when the API information is requested.

            yfang@redhat.com Freeman(Yue) Fang
            rhn-support-kboone Kevin Boone
            Viliam Kasala Viliam Kasala
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: