Skip to content

Band Names

Henrique Tedeschi edited this page May 31, 2020 · 2 revisions

Overview

For this section, you will find all information to use bandnames.

Usage

Token and Headers

Make sure you have included the Authorization header with your token to use the API properly. To request a Token go to parksandrecapi.com and follow the steps to request one.

Header Required Values/Examples
Authorization Required Bearer {token}

Endpoints

Method Endpoint
GET /api/v1/bandnames
GET /api/v1/bandnames/{name}
GET /api/v1/bandnames/ping

[GET] api/v1/bandnames

When reaching this endpoint, the response will be like this:

[
    {
        "name": "A.D. and the D Bags",
        "__v": 0
    },
    {
        "name": "The Andy Andy Andies",
        "__v": 0
    },
    ...
]

[GET] api/v1/bandnames/{name}

Parameters to be included:

Parameter Type Required Example
name string optional andy

When reaching this endpoint, the response will be like this:

[
    {
        "name": "The Andy Andy Andies",
        "__v": 0
    },
    {
        "name": "Andy Dwyer Experience",
        "__v": 0
    }
]

[GET] api/v1/bandnames/ping

When reaching this endpoint, the response will be like this:

{
    "success": true,
    "date": "2020-05-31T19:31:15.522Z"
}