Map Pics

    EndpointDescription
    GET /v1/maps/pics/:map_idGets a map pic

    GET /v1/maps/pics/:map_id

    Gets a map pic

    Request Parameters

    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".

    Example Request

    Header:

    GET /v1/maps/pics/0
    Host: api.pkmnapi.com
    Authorization: Bearer <access_token>
    Accept: image/png
    

    Body:

    None

    Response Parameters

    None

    Example Response

    Header:

    HTTP/1.1 200 OK
    Content-Type: image/png
    Content-Disposition: attachment; filename="map-0.png"
    Server: pkmnapi/0.1.0
    

    Body:

    map-0.png