Commit 25c467df authored by benhoumine's avatar benhoumine

Test post request

parent ca987b93
......@@ -8,6 +8,7 @@ import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
import isima.f2.model.Poubelle;
......@@ -28,4 +29,12 @@ public class PoubelleController {
public Poubelle savePoubelle(@RequestBody Poubelle poubelle) {
return poubelles.ajouterPoubelle(poubelle);
public void testPost(@RequestParam String id) {
System.out.println("Test Post Id "+id);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment