Explorar el Código

Merge branch 'master' of https://gitlab.univ-artois.fr/ili-2019-2020/microfolielens

TIBAL hace 5 años
padre
commit
1457f4db79
Se han modificado 3 ficheros con 1 adiciones y 55 borrados
  1. 0 0
      Rest/.gitkeep
  2. 0 49
      Rest/RestApplication.java
  3. 1 6
      WebContent/index.html

+ 0 - 0
Rest/.gitkeep


+ 0 - 49
Rest/RestApplication.java

@@ -1,49 +0,0 @@
-package microfolies;
-
-import java.net.URI;
-import java.util.Date;
-import java.util.logging.Logger;
-
-import javax.ws.rs.GET;
-import javax.ws.rs.PathParam;
-import javax.ws.rs.Produces;
-import javax.ws.rs.core.UriBuilder;
-
-import org.glassfish.jersey.jdkhttp.JdkHttpServerFactory;
-import org.glassfish.jersey.server.ResourceConfig;
-import com.sun.net.httpserver.HttpServer;
-
-@Path("/microfolies")
-@Produces("text/plain")
-public class RestApplication {
-
-	private static Logger LOGGER = Logger.getLogger("jai.jaxrs");
-
-	@Path("/badge/{id}/{espace}")
-	@GET
-	public String validerBadge(@PathParam("id") String id, @PathParam("espace") String espace) {
-		LOGGER.info("validation du badge " + id + " a l'espace " + espace);
-		return "Success";
-	}
-
-	@Path("freq/{espace}/{from}/{to}")
-	@GET
-	public int frequence(@PathParam("espace") String espace, @PathParam("from") Date from, @PathParam("to") Date to) {
-		LOGGER.info("frequence de " + from + " a " + to + " espace " + espace);
-		return "Graphe";
-	}
-
-	@Path("profile/{id}")
-	@GET
-	public int profil(@PathParam("id")String id) {
-		LOGGER.info("profil " +id);
-		return "Profil";
-	}
-
-	public static void main(String[] args) {
-		URI baseUri = UriBuilder.fromUri("http://localhost/").port(9998).build();
-		ResourceConfig config = new ResourceConfig(RestApplication.class);
-		HttpServer server = JdkHttpServerFactory.createHttpServer(baseUri, config);
-	}
-
-}

+ 1 - 6
WebContent/index.html

@@ -52,12 +52,7 @@
          <div id="chart-container" class="container">
             <canvas id="myChart"></canvas>
          </div>
-         <div class="container">
-            <h4 class="section-title">Nos abonnés:</h4>
-            <div id="data-container">
-
-            </div>
-         </div>
+       
 
       </main>