Every context (public, admin, and agent) and version (v1, v2, etc.) has a separate swagger.json response. The REST module defines a separate Web application for each context/version pair. For example, the Web application for /public/v1 is defined in RESTJAXRSPublic.version1. The Web application’s web.xml file specifies Jersey servlet initial parameters that supply paths for the appropriate RestResourceRegistry and PayloadSchemaRegistry components. Setting up a new context or version requires new resource and registry components as well as a Web application, but no Swagger-specific configuration.


Copyright © 1997, 2017 Oracle and/or its affiliates. All rights reserved. Legal Notices