Skip to content

Commit

Permalink
registranto endpoints
Browse files Browse the repository at this point in the history
  • Loading branch information
AdsonEsteves committed Oct 12, 2020
1 parent 8f4112b commit 0434d18
Show file tree
Hide file tree
Showing 3 changed files with 98 additions and 4 deletions.
32 changes: 28 additions & 4 deletions src/main/java/sacip/rest/RestInterface.java
Original file line number Diff line number Diff line change
@@ -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 "";
}
}

38 changes: 38 additions & 0 deletions src/main/java/sacip/rest/RestTracking.java
Original file line number Diff line number Diff line change
@@ -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 "";
}
}

32 changes: 32 additions & 0 deletions src/main/java/sacip/rest/RestTutor.java
Original file line number Diff line number Diff line change
@@ -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;
}

}

0 comments on commit 0434d18

Please sign in to comment.