Endpoint | Description |
---|---|
GET /v1/maps/pics/:map_id | Gets a map pic |
Gets a map pic
Location | Name | Type | Required? | Description |
---|---|---|---|---|
url |
:map_id
|
string | ✔️ | Map ID. |
header |
Accept
|
string | Type of image to return. Must be "image/png" or "image/jpeg". |
Header:
GET /v1/maps/pics/0
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="map-0.png"
Server: pkmnapi/0.1.0
Body: