This repository was archived by the owner on Sep 24, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.json
More file actions
39 lines (39 loc) · 2.75 KB
/
config.json
File metadata and controls
39 lines (39 loc) · 2.75 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
{
"base_url": "https://swapi.co/api",
"path": "$.results",
"models": {
"people": {
"description": "A People resource is an individual person or character within the Star Wars universe.",
"fields": [
{ "name": "name", "type": "string", "description": "The name of this person." },
{ "name": "birth_year", "type": "string", "description": "The birth year of the person, using the in-universe standard of BBY or ABY - Before the Battle of Yavin or After the Battle of Yavin. The Battle of Yavin is a battle that occurs at the end of Star Wars episode IV: A New Hope." },
{ "name": "eye_color", "type": "string", "description": "The eye color of this person. Will be \"unknown\" if not known or \"n/a\" if the person does not have an eye." },
{ "name": "gender", "type": "string", "description": "The gender of this person. Either \"Male\", \"Female\" or \"unknown\", \"n/a\" if the person does not have a gender." },
{ "name": "hair_color", "type": "string", "description": "The hair color of this person. Will be \"unknown\" if not known or \"n/a\" if the person does not have hair." },
{ "name": "height", "type": "string", "description": "The height of the person in centimeters." },
{ "name": "mass", "type": "string", "description": "The mass of the person in kilograms." },
{ "name": "skin_color", "type": "string", "description": "The skin color of this person." },
{ "name": "homeworld", "type": "string", "description": "The URL of a planet resource, a planet that this person was born on or inhabits." },
{ "name": "films", "type": "[object]", "description": "An array of film resource URLs that this person has been in." },
{ "name": "species", "type": "[object]", "description": "An array of species resource URLs that this person belongs to." },
{ "name": "starships", "type": "[object]", "description": "An array of starship resource URLs that this person has piloted." },
{ "name": "vehicles", "type": "[object]", "description": "An array of vehicle resource URLs that this person has piloted." },
{ "name": "url", "type": "string", "description": "The hypermedia URL of this resource." },
{ "name": "created", "type": "string", "description": "The ISO 8601 date format of the time that this resource was created." },
{ "name": "edited", "type": "string", "description": "The ISO 8601 date format of the time that this resource was edited." }
]
}
},
"resources": {
"people": {
"many": {
"path": "/people",
"extract": "$.results",
"params": {
"search": { "type": "string", "required": false },
"page": { "type": "integer", "required": false, "default": 1 }
}
}
}
}
}