Skip to content
Snippets Groups Projects
Commit 6140180a authored by Hugo Dutoit's avatar Hugo Dutoit
Browse files

ca marche pas curl sur windows

parent 6001e98c
No related branches found
No related tags found
No related merge requests found
......@@ -16,7 +16,7 @@ import java.util.logging.Logger;
*/
public class Main {
// Base URI the Grizzly HTTP server will listen on
public static final String BASE_URI = "http://localhost:8080/myapp/";
public static final String BASE_URI = "http://localhost:8080/api/v1/";
/**
* Starts Grizzly HTTP server exposing JAX-RS resources defined in this application.
......
......@@ -2,11 +2,18 @@ package fr.ulille.iut.tva.ressource;
import fr.ulille.iut.tva.service.CalculTva;
import fr.ulille.iut.tva.service.TauxTva;
import jakarta.ws.rs.*;
/**
* TvaRessource
*/
@Path("tva")
public class TvaRessource {
private CalculTva calculTva = new CalculTva();
@GET
@Path("tauxpardefaut")
public double getValeurTauxParDefaut() {
return TauxTva.NORMAL.taux;
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment