Last active
October 7, 2018 20:54
-
-
Save DouglasOliveira10/9e13537a34d88d57d4578edf56873eaf to your computer and use it in GitHub Desktop.
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
@RestController | |
public class LivroController { | |
@GetMapping("/livros") | |
public List<Livro> findAll() { | |
List<Livro> livros = Arrays.asList( | |
new Livro(1L, "A menina que roubava livros."), | |
new Livro(2L, "O senhor dos anéis")); | |
return livros; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment