Endpoint: vehicles
GEThttps://swapi.mimo.dev/api/vehicles/AT-AT
Request
GETvehicles
1fetch("https://swapi.mimo.dev/api/vehicles/AT-AT")
2 .then((res) => res.json())
3 .then((json) => console.log(json))
4 .catch((error) => console.error(error))
Response
response.json
1{
2 "name": "AT-AT",
3 "model": "All Terrain Armored Transport",
4 "manufacturer": "Kuat Drive Yards, Imperial Department of Military Research",
5 "cost_in_credits": "unknown",
6 "length": "20",
7 "max_atmosphering_speed": "60",
8 "crew": "5",
9 "passengers": "40",
10 "cargo_capacity": "1000",
11 "consumables": "unknown",
12 "vehicle_class": "assault walker",
13 "pilots": [],
14 "films": [
15 "https://swapi.mimo.dev/api/films/2/",
16 "https://swapi.mimo.dev/api/films/3/"
17 ],
18 "created": "2014-12-15T12:38:25.937000Z",
19 "edited": "2014-12-20T21:30:21.677000Z",
20 "url": "https://swapi.mimo.dev/api/vehicles/18/"
21}