commit e01953f0c85b0f4389db7f84133320030fd076a4 Author: flifloo Date: Tue Mar 22 14:48:54 2022 +0100 Initial commit diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..2d513a0 --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +/.idea/ +/target/ diff --git a/pom.xml b/pom.xml new file mode 100644 index 0000000..6b32426 --- /dev/null +++ b/pom.xml @@ -0,0 +1,84 @@ + + + + 4.0.0 + + fr.univ.lyon1.iut + FilmFlix + 1.0-SNAPSHOT + war + + FilmFlix Maven Webapp + + http://www.example.com + + + UTF-8 + 1.7 + 1.7 + 3.0.10.Final + + + + + junit + junit + 4.11 + test + + + + org.jboss.resteasy + resteasy-jaxrs + ${resteasy-version} + + + org.jboss.resteasy + resteasy-jackson-provider + ${resteasy-version} + + + org.jboss.resteasy + resteasy-multipart-provider + ${resteasy-version} + + + + + FilmFlix + + + + maven-clean-plugin + 3.1.0 + + + + maven-resources-plugin + 3.0.2 + + + maven-compiler-plugin + 3.8.0 + + + maven-surefire-plugin + 2.22.1 + + + maven-war-plugin + 3.2.2 + + + maven-install-plugin + 2.5.2 + + + maven-deploy-plugin + 2.8.2 + + + + + diff --git a/src/main/java/fr/univ/lyon1/iut/Resource.java b/src/main/java/fr/univ/lyon1/iut/Resource.java new file mode 100644 index 0000000..d69e123 --- /dev/null +++ b/src/main/java/fr/univ/lyon1/iut/Resource.java @@ -0,0 +1,19 @@ +package fr.univ.lyon1.iut; + +import javax.ws.rs.*; +import javax.ws.rs.core.Response; +import javax.ws.rs.core.Response.Status; + +@Path("/api") +public class Resource { + @GET + @Path("/isAlive") + public Response isAlive() { + try { + + } catch (Exception e) { + return Response.status(Status.INTERNAL_SERVER_ERROR).entity(e.getMessage()).build(); + } + return Response.ok("Ok").build(); + } +} diff --git a/src/main/webapp/WEB-INF/web.xml b/src/main/webapp/WEB-INF/web.xml new file mode 100644 index 0000000..4f55962 --- /dev/null +++ b/src/main/webapp/WEB-INF/web.xml @@ -0,0 +1,29 @@ + + + Archetype Created Web Application + + + resteasy.resources + fr.univ.lyon1.iut.Resource + + + resteasy.servlet.mapping.prefix + /service + + + org.jboss.resteasy.plugins.server.servlet.ResteasyBootstrap + + + api + org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher + + + api + /service/* + + diff --git a/src/main/webapp/index.jsp b/src/main/webapp/index.jsp new file mode 100644 index 0000000..c38169b --- /dev/null +++ b/src/main/webapp/index.jsp @@ -0,0 +1,5 @@ + + +

Hello World!

+ +