Skip to content

Instantly share code, notes, and snippets.

@jacobaraujo7
Last active December 1, 2021 14:13
Show Gist options
  • Save jacobaraujo7/e046230b9708fb63387421b87f835f83 to your computer and use it in GitHub Desktop.
Save jacobaraujo7/e046230b9708fb63387421b87f835f83 to your computer and use it in GitHub Desktop.
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