All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.paradoxical.dropwizard.swagger.resources.SwaggerUIResource Maven / Gradle / Ivy

There is a newer version: 2.4
Show newest version
package io.paradoxical.dropwizard.swagger.resources;

import io.dropwizard.views.View;
import io.paradoxical.dropwizard.swagger.SwaggerAssets;
import lombok.Getter;

import javax.ws.rs.GET;
import javax.ws.rs.Path;
import javax.ws.rs.Produces;
import javax.ws.rs.core.MediaType;

@Path("/")
@Produces(MediaType.TEXT_HTML)
public class SwaggerUIResource {

    @Getter
    private final String dropwizardSwaggerViewResourcePath = SwaggerAssets.DROPWIZARD_SWAGGER_ASSET_ROOT + "/swagger.mustache";

    @GET
    public View handleSwagger() {
        return new View(getDropwizardSwaggerViewResourcePath()) {};
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy