-
Notifications
You must be signed in to change notification settings - Fork 0
Characters
Henrique Tedeschi edited this page May 31, 2020
·
1 revision
For this section, you will find all information to use characters
.
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} |
Method | Endpoint |
---|---|
GET | /api/v1/characters |
GET | /api/v1/characters/{name} |
GET | /api/v1/bandnames/ping |
When reaching this endpoint, the response will be like this:
[
{
"name": "Leslie Knope",
"portrayed": "Amy Poehler",
"background": "Knope was born on January 18, 1975 (S4: E3) in Eagleton, ...",
"personality": "Leslie Knope is extremely cheerful, ambitious, hard-working and optimistic",
"__v": 0
},
{
"name": "Ann Perkins",
"portrayed": "Rashida Jones",
"background": "At the start of the series, Ann Perkins was living with her boyfriend Andy Dwyer. ...",
"personality": "",
"__v": 0
},
...
]
Parameters to be included:
Parameter | Type | Required | Example |
---|---|---|---|
name | string | optional | ron |
When reaching this endpoint, the response will be like this:
[
{
"name": "Ron Swanson",
"portrayed": "Nick Offerman",
"background": "Despite Ron being a very private person, including getting his birthdate redacted from all public documents, ...",
"personality": "",
"__v": 0
}
]
When reaching this endpoint, the response will be like this:
{
"success": true,
"date": "2020-05-31T19:31:15.522Z"
}
Created by Henrique Tedeschi. See the Disclaimer.