Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/gnobroga/api-team
É uma API para criar grupos de Pokemon com base em chamadas para o Pokemon API
https://github.com/gnobroga/api-team
Last synced: 29 days ago
JSON representation
É uma API para criar grupos de Pokemon com base em chamadas para o Pokemon API
- Host: GitHub
- URL: https://github.com/gnobroga/api-team
- Owner: GNobroga
- Created: 2023-12-21T23:07:18.000Z (about 1 year ago)
- Default Branch: master
- Last Pushed: 2023-12-21T23:07:56.000Z (about 1 year ago)
- Last Synced: 2024-04-09T15:11:51.667Z (10 months ago)
- Language: C#
- Homepage:
- Size: 9.77 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# API TEAM
Uma para API para cadastrar times de pokemon consumindo o https://pokeapi.co/api/v2/pokemon para obter dados referentes a um pokemon de acordo com seu nome.
## Endpoints
### api/teams - GET
```json
{
"1": {
"owner": "sleao",
"pokemons": [
{
"id": 9,
"name": "blastoise",
"weight": 855,
"height": 16
},
{
"id": 25,
"name": "pikachu",
"weight": 60,
"height": 4
}
]
},
"2": {
"owner": "sleao",
"pokemons": [
{
"id": 9,
"name": "blastoise",
"weight": 855,
"height": 16
},
{
"id": 25,
"name": "pikachu",
"weight": 60,
"height": 4
},
{
"id": 3,
"name": "venusaur",
"weight": 1000,
"height": 20
},
{
"id": 6,
"name": "charizard",
"weight": 905,
"height": 17
},
{
"id": 131,
"name": "lapras",
"weight": 2200,
"height": 25
},
{
"id": 54,
"name": "psyduck",
"weight": 196,
"height": 8
}
]
}
}
```Deverá listar todos os times registrados
### api/teams/{id} - GET
Busca um time registrado por ID
```json
{
"owner": "sleao",
"pokemons": [
{
"id": 9,
"name": "blastoise",
"weight": 855,
"height": 16
},
{
"id": 25,
"name": "pikachu",
"weight": 60,
"height": 4
}
]
}
```### api/teams - POST
Rota para criação de um time, que recebe um JSON nesse formato
```json
{
"user": "sleao",
"team": [
"blastoise",
"pikachu",
"charizard",
"venusaur",
"lapras",
"dragonite"
]
}```