Class DocEndpoint
- java.lang.Object
-
- com.yahoo.elide.swagger.resources.DocEndpoint
-
@Path("/doc") @Produces("application/json") public class DocEndpoint extends ObjectA convenience endpoint to expose a swagger document.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classDocEndpoint.SwaggerRegistration
-
Constructor Summary
Constructors Constructor Description DocEndpoint(List<DocEndpoint.SwaggerRegistration> docs)Constructs the resource.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description javax.ws.rs.core.Responseget(String apiVersion, String name)Read handler.javax.ws.rs.core.Responselist(String apiVersion)
-
-
-
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)
-
-