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

com.ge.snowizard.application.resources.VersionResource Maven / Gradle / Ivy

There is a newer version: 1.8.1
Show newest version
package com.ge.snowizard.application.resources;

import io.dropwizard.jersey.caching.CacheControl;
import javax.ws.rs.GET;
import javax.ws.rs.Path;
import javax.ws.rs.Produces;
import javax.ws.rs.core.MediaType;
import javax.ws.rs.core.Response;

@Path("/version")
public class VersionResource {

    @GET
    @Produces(MediaType.TEXT_PLAIN)
    @CacheControl(mustRevalidate = true, noCache = true, noStore = true)
    public Response getVersion() {
        return Response.ok(getClass().getPackage().getImplementationVersion())
                .type(MediaType.TEXT_PLAIN).build();
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy