Last active
December 1, 2021 14:13
-
-
Save jacobaraujo7/e046230b9708fb63387421b87f835f83 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
CONSUMIR UMA API REST USANDO BLOC, REPOSITORY/DATASOURCE | |
## API PARA CONSUMIR | |
https://www.intoxianime.com/?rest_route=/wp/v2/posts&page=1&per_page=10 | |
- page: essa váriavel pode ir de 1 a 100 e representa a quantidade de itens que a api trará. | |
- per_page: Quantidade de itens por página. | |
REGRAS: | |
- Usar padrão BLoC. | |
- Usar padrão Repository com Datasource | |
- Usar infinty list (Quando chegao no final, carregar mais itens. | |
- Usar teste. | |
- Não ferir os princípios do SOLID. | |
- Não é necessário uma arquitetura especifica. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment