Endpoint | Description |
---|---|
GET /v1/imgs/game_boy | Gets the Game Boy image |
GET /v1/imgs/pokemon_logo | Gets the Pokémon logo |
POST /v1/imgs/pokemon_logo | Updates the Pokémon logo |
GET /v1/imgs/town_map | Gets the town map |
Gets the Game Boy image
Location | Name | Type | Required? | Description |
---|---|---|---|---|
header |
Accept
|
string | Type of image to return. Must be "image/png" or "image/jpeg". |
Header:
GET /v1/imgs/game_boy
Host: api.pkmnapi.com
Authorization: Bearer <access_token>
Accept: image/png
Body:
None
Header:
HTTP/1.1 200 OK
Content-Type: image/png
Content-Disposition: attachment; filename="game_boy.png"
Server: pkmnapi/0.1.0
Body:
Gets the Pokémon logo
Location | Name | Type | Required? | Description |
---|---|---|---|---|
header |
Accept
|
string | Type of image to return. Must be "image/png" or "image/jpeg". |
Header:
GET /v1/imgs/pokemon_logo
Host: api.pkmnapi.com
Authorization: Bearer <access_token>
Accept: image/png
Body:
None
Header:
HTTP/1.1 200 OK
Content-Type: image/png
Content-Disposition: attachment; filename="pokemon_logo.png"
Server: pkmnapi/0.1.0
Body:
Updates the Pokémon logo
Location | Name | Type | Required? | Description |
---|---|---|---|---|
header |
Content-Type
|
string | Type of image to upload. Must be "image/png" or "image/jpeg". | |
header |
X-Patch-Description
|
string | Description of change. | |
body |
<raw>
|
binary | ✔️ | Pokémon logo. |
Header:
POST /v1/imgs/pokemon_logo
Host: api.pkmnapi.com
Authorization: Bearer <access_token>
Content-Type: image/png
X-Patch-Description: Update Pokémon to Digimon
Body:
⚠️ Images must be 8-bit (or fewer) grayscale and the dimensions must be multiples of 8 pixels
Headers:
HTTP/1.1 202 Accepted
Content-Type: application/json
Server: pkmnapi/0.1.0
Body:
{}
Gets the town map
Location | Name | Type | Required? | Description |
---|---|---|---|---|
header |
Accept
|
string | Type of image to return. Must be "image/png" or "image/jpeg". |
Header:
GET /v1/imgs/town_map
Host: api.pkmnapi.com
Authorization: Bearer <access_token>
Accept: image/png
Body:
None
Header:
HTTP/1.1 200 OK
Content-Type: image/png
Content-Disposition: attachment; filename="town_map.png"
Server: pkmnapi/0.1.0
Body: