diff --git a/src/main/java/sacip/rest/RestInterface.java b/src/main/java/sacip/rest/RestInterface.java index 7b5da25..06e94b5 100644 --- a/src/main/java/sacip/rest/RestInterface.java +++ b/src/main/java/sacip/rest/RestInterface.java @@ -1,15 +1,39 @@ package sacip.rest; -import org.springframework.web.bind.annotation.GetMapping; -import org.springframework.web.bind.annotation.RestController; +import org.springframework.web.bind.annotation.*; @RestController +@RequestMapping("/interface") public class RestInterface { private String test = "HELLO WORLD"; - @GetMapping("/test") - public String test(String name) { + @GetMapping("/contas") + public String fazLogin() + { + return ""; + } + + @PostMapping("/contas") + public String criaNovaConta(String name) { + return test; + } + + @PutMapping("/contas") + public String editarConta(String name) { return test; } + + @GetMapping("/pergunta") + public String buscaPergunta() + { + return ""; + } + + @PostMapping("/pergunta") + public String registraPergunta() + { + return ""; + } } + diff --git a/src/main/java/sacip/rest/RestTracking.java b/src/main/java/sacip/rest/RestTracking.java new file mode 100644 index 0000000..213157f --- /dev/null +++ b/src/main/java/sacip/rest/RestTracking.java @@ -0,0 +1,38 @@ +package sacip.rest; + +import org.springframework.web.bind.annotation.*; + +@RestController +@RequestMapping("/rastreador") +public class RestTracking { + + private String test = "HELLO WORLD"; + + @PostMapping("/cliques") + public String armazenaCliques(){ + return ""; + } + + @PostMapping("/tempoLogin") + public String armazenaTempoLogin(String name) { + return test; + } + + @PostMapping("/tempoConteudo") + public String armazenaTempoConteudo(String name) { + return test; + } + + @PostMapping("/exercicioResolvido") + public String armazenaExercicioResolvido() + { + return ""; + } + + @PostMapping("/novoConteudoTrilha") + public String armazenaNovoConteudoTrilha() + { + return ""; + } +} + diff --git a/src/main/java/sacip/rest/RestTutor.java b/src/main/java/sacip/rest/RestTutor.java new file mode 100644 index 0000000..343371f --- /dev/null +++ b/src/main/java/sacip/rest/RestTutor.java @@ -0,0 +1,32 @@ +package sacip.rest; + +import org.springframework.web.bind.annotation.*; + +@RestController +@RequestMapping("/tutor") +public class RestTutor { + + private String test = "HELLO WORLD"; + + @GetMapping("/requisitaConteudos") + public String getConteudosRecomendados(){ + return ""; + } + + @GetMapping("/trilha/{user}") + public String getTrilhaUsuario(String name) { + return test; + } + + @GetMapping("/trilha") + public String getTrilhas(String name) { + return test; + } + + @GetMapping("/dicas") + public String getDicas(String name) { + return test; + } + +} +