-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
8f4112b
commit 0434d18
Showing
3 changed files
with
98 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 ""; | ||
} | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 ""; | ||
} | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | ||
} | ||
|
||
} | ||
|