diff --git a/src/java/com/rjconsultores/ventaboletos/rest/VersaoRS.java b/src/java/com/rjconsultores/ventaboletos/rest/VersaoRS.java new file mode 100644 index 000000000..3fbac25bc --- /dev/null +++ b/src/java/com/rjconsultores/ventaboletos/rest/VersaoRS.java @@ -0,0 +1,19 @@ +package com.rjconsultores.ventaboletos.rest; + +import javax.ws.rs.GET; +import javax.ws.rs.Path; +import javax.ws.rs.Produces; +import javax.ws.rs.core.MediaType; + +import com.rjconsultores.ventaboletos.web.utilerias.Version; + +@Path("/versao") +public class VersaoRS { + + @GET + @Produces({ MediaType.APPLICATION_JSON }) + public String buscarUsuarios() { + return Version.readVersion(); + } + +}