Class DocEndpoint


  • @Path("/doc")
    @Produces("application/json")
    public class DocEndpoint
    extends Object
    A convenience endpoint to expose a swagger document.
    • Constructor Detail

      • DocEndpoint

        @Inject
        public DocEndpoint​(@Named("swagger")
                           List<DocEndpoint.SwaggerRegistration> docs)
        Constructs the resource.
        Parameters:
        docs - Map of path parameter name to swagger document.
    • Method Detail

      • list

        @GET
        @Path("/")
        public javax.ws.rs.core.Response list​(@HeaderParam("ApiVersion")
                                              String apiVersion)
      • get

        @GET
        @Path("/{name}")
        public javax.ws.rs.core.Response get​(@HeaderParam("ApiVersion")
                                             String apiVersion,
                                             @PathParam("name")
                                             String name)
        Read handler.
        Parameters:
        name - document name
        Returns:
        response The Swagger JSON document