tatooine 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/.gitignore +22 -0
- data/Gemfile +4 -0
- data/LICENSE.txt +22 -0
- data/README.md +52 -0
- data/Rakefile +8 -0
- data/lib/tatooine.rb +17 -0
- data/lib/tatooine/error.rb +25 -0
- data/lib/tatooine/film.rb +6 -0
- data/lib/tatooine/middleware/raise_http_error.rb +34 -0
- data/lib/tatooine/person.rb +6 -0
- data/lib/tatooine/planet.rb +6 -0
- data/lib/tatooine/resource.rb +125 -0
- data/lib/tatooine/species.rb +6 -0
- data/lib/tatooine/starship.rb +6 -0
- data/lib/tatooine/vehicle.rb +6 -0
- data/lib/tatooine/version.rb +3 -0
- data/spec/error_spec.rb +21 -0
- data/spec/film_spec.rb +107 -0
- data/spec/fixtures/film_schema.json +1 -0
- data/spec/fixtures/vcr_cassettes/film_1.yml +57 -0
- data/spec/fixtures/vcr_cassettes/film_1_and_schema.yml +57 -0
- data/spec/fixtures/vcr_cassettes/film_count.yml +101 -0
- data/spec/fixtures/vcr_cassettes/film_list.yml +441 -0
- data/spec/fixtures/vcr_cassettes/film_schema.yml +101 -0
- data/spec/fixtures/vcr_cassettes/person_1.yml +49 -0
- data/spec/fixtures/vcr_cassettes/person_1_and_schema.yml +49 -0
- data/spec/fixtures/vcr_cassettes/person_count.yml +58 -0
- data/spec/fixtures/vcr_cassettes/person_list.yml +58 -0
- data/spec/fixtures/vcr_cassettes/person_next.yml +56 -0
- data/spec/fixtures/vcr_cassettes/person_previous.yml +58 -0
- data/spec/fixtures/vcr_cassettes/person_schema.yml +58 -0
- data/spec/fixtures/vcr_cassettes/planet_1.yml +50 -0
- data/spec/fixtures/vcr_cassettes/planet_1_and_schema.yml +50 -0
- data/spec/fixtures/vcr_cassettes/planet_count.yml +60 -0
- data/spec/fixtures/vcr_cassettes/planet_list.yml +60 -0
- data/spec/fixtures/vcr_cassettes/planet_next.yml +63 -0
- data/spec/fixtures/vcr_cassettes/planet_previous.yml +60 -0
- data/spec/fixtures/vcr_cassettes/planet_schema.yml +60 -0
- data/spec/fixtures/vcr_cassettes/species_1.yml +52 -0
- data/spec/fixtures/vcr_cassettes/species_1_and_schema.yml +52 -0
- data/spec/fixtures/vcr_cassettes/species_count.yml +63 -0
- data/spec/fixtures/vcr_cassettes/species_list.yml +63 -0
- data/spec/fixtures/vcr_cassettes/species_next.yml +59 -0
- data/spec/fixtures/vcr_cassettes/species_previous.yml +63 -0
- data/spec/fixtures/vcr_cassettes/species_schema.yml +63 -0
- data/spec/fixtures/vcr_cassettes/starship_10.yml +51 -0
- data/spec/fixtures/vcr_cassettes/starship_2_and_schema.yml +51 -0
- data/spec/fixtures/vcr_cassettes/starship_count.yml +78 -0
- data/spec/fixtures/vcr_cassettes/starship_list.yml +78 -0
- data/spec/fixtures/vcr_cassettes/starship_next.yml +76 -0
- data/spec/fixtures/vcr_cassettes/starship_previous.yml +78 -0
- data/spec/fixtures/vcr_cassettes/starship_schema.yml +78 -0
- data/spec/fixtures/vcr_cassettes/vehicle_14.yml +50 -0
- data/spec/fixtures/vcr_cassettes/vehicle_14_and_schema.yml +50 -0
- data/spec/fixtures/vcr_cassettes/vehicle_count.yml +70 -0
- data/spec/fixtures/vcr_cassettes/vehicle_list.yml +70 -0
- data/spec/fixtures/vcr_cassettes/vehicle_next.yml +68 -0
- data/spec/fixtures/vcr_cassettes/vehicle_previous.yml +70 -0
- data/spec/fixtures/vcr_cassettes/vehicle_schema.yml +70 -0
- data/spec/person_spec.rb +120 -0
- data/spec/planet_spec.rb +106 -0
- data/spec/spec_helper.rb +21 -0
- data/spec/species_spec.rb +111 -0
- data/spec/starship_spec.rb +106 -0
- data/spec/vehicle_spec.rb +106 -0
- data/tatooine.gemspec +30 -0
- metadata +272 -0
@@ -0,0 +1 @@
|
|
1
|
+
{"type": "object", "properties": {"species": {"type": "array", "description": "The species resources featured within this film."}, "url": {"type": "string", "description": "The url of this resource"}, "opening_crawl": {"type": "string", "description": "The opening crawl text at the beginning of this film."}, "director": {"type": "string", "description": "The director of this film."}, "episode_id": {"type": "integer", "description": "The episode number of this film."}, "starships": {"type": "array", "description": "The starship resources featured within this film."}, "planets": {"type": "array", "description": "The planet resources featured within this film."}, "vehicles": {"type": "array", "description": "The vehicle resources featured within this film."}, "characters": {"type": "array", "description": "The people resources featured within this film."}, "title": {"type": "string", "description": "The title of this film."}, "producer": {"type": "string", "description": "The producer(s) of this film."}}, "title": "Film", "$schema": "http://json-schema.org/draft-04/schema", "description": "A Star Wars film", "required": ["title", "episode_id", "opening_crawl", "director", "producer", "characters", "planets", "starships", "vehicles", "species", "url"]}
|
@@ -0,0 +1,57 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: http://swapi.co/api/films/1/
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
User-Agent:
|
11
|
+
- Tatooine Ruby Gem - 0.0.1
|
12
|
+
Accept-Encoding:
|
13
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
14
|
+
Accept:
|
15
|
+
- "*/*"
|
16
|
+
response:
|
17
|
+
status:
|
18
|
+
code: 200
|
19
|
+
message: OK
|
20
|
+
headers:
|
21
|
+
Date:
|
22
|
+
- Mon, 16 Feb 2015 23:37:38 GMT
|
23
|
+
Content-Type:
|
24
|
+
- application/json
|
25
|
+
Transfer-Encoding:
|
26
|
+
- chunked
|
27
|
+
Connection:
|
28
|
+
- keep-alive
|
29
|
+
Set-Cookie:
|
30
|
+
- __cfduid=db1fd2b97459cd487542364c9ac1684b81424129857; expires=Tue, 16-Feb-16
|
31
|
+
23:37:37 GMT; path=/; domain=.swapi.co; HttpOnly
|
32
|
+
Allow:
|
33
|
+
- GET, HEAD, OPTIONS
|
34
|
+
X-Frame-Options:
|
35
|
+
- SAMEORIGIN
|
36
|
+
Vary:
|
37
|
+
- Accept, Cookie
|
38
|
+
Via:
|
39
|
+
- 1.1 vegur
|
40
|
+
Server:
|
41
|
+
- cloudflare-nginx
|
42
|
+
Cf-Ray:
|
43
|
+
- 1b9d92fb966f0cbf-LHR
|
44
|
+
body:
|
45
|
+
encoding: UTF-8
|
46
|
+
string: '{"title":"A New Hope","episode_id":4,"opening_crawl":"It is a period
|
47
|
+
of civil war.\r\nRebel spaceships, striking\r\nfrom a hidden base, have won\r\ntheir
|
48
|
+
first victory against\r\nthe evil Galactic Empire.\r\n\r\nDuring the battle,
|
49
|
+
Rebel\r\nspies managed to steal secret\r\nplans to the Empire''s\r\nultimate
|
50
|
+
weapon, the DEATH\r\nSTAR, an armored space\r\nstation with enough power\r\nto
|
51
|
+
destroy an entire planet.\r\n\r\nPursued by the Empire''s\r\nsinister agents,
|
52
|
+
Princess\r\nLeia races home aboard her\r\nstarship, custodian of the\r\nstolen
|
53
|
+
plans that can save her\r\npeople and restore\r\nfreedom to the galaxy....","director":"George
|
54
|
+
Lucas","producer":"Gary Kurtz, Rick McCallum","characters":["http://swapi.co/api/people/1/","http://swapi.co/api/people/2/","http://swapi.co/api/people/3/","http://swapi.co/api/people/4/","http://swapi.co/api/people/5/","http://swapi.co/api/people/6/","http://swapi.co/api/people/7/","http://swapi.co/api/people/8/","http://swapi.co/api/people/9/","http://swapi.co/api/people/10/","http://swapi.co/api/people/12/","http://swapi.co/api/people/13/","http://swapi.co/api/people/14/","http://swapi.co/api/people/15/","http://swapi.co/api/people/16/","http://swapi.co/api/people/18/","http://swapi.co/api/people/19/","http://swapi.co/api/people/81/"],"planets":["http://swapi.co/api/planets/2/","http://swapi.co/api/planets/3/","http://swapi.co/api/planets/1/"],"starships":["http://swapi.co/api/starships/2/","http://swapi.co/api/starships/3/","http://swapi.co/api/starships/5/","http://swapi.co/api/starships/9/","http://swapi.co/api/starships/10/","http://swapi.co/api/starships/11/","http://swapi.co/api/starships/12/","http://swapi.co/api/starships/13/"],"vehicles":["http://swapi.co/api/vehicles/4/","http://swapi.co/api/vehicles/6/","http://swapi.co/api/vehicles/7/","http://swapi.co/api/vehicles/8/"],"species":["http://swapi.co/api/species/2/","http://swapi.co/api/species/4/","http://swapi.co/api/species/5/","http://swapi.co/api/species/1/","http://swapi.co/api/species/3/"],"created":"2014-12-10T14:23:31.880000Z","edited":"2014-12-20T19:49:45.256000Z","url":"http://swapi.co/api/films/1/"}'
|
55
|
+
http_version:
|
56
|
+
recorded_at: Mon, 16 Feb 2015 23:37:39 GMT
|
57
|
+
recorded_with: VCR 2.9.3
|
@@ -0,0 +1,57 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: http://swapi.co/api/films/1/
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
User-Agent:
|
11
|
+
- Tatooine Ruby Gem - 0.0.1
|
12
|
+
Accept-Encoding:
|
13
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
14
|
+
Accept:
|
15
|
+
- "*/*"
|
16
|
+
response:
|
17
|
+
status:
|
18
|
+
code: 200
|
19
|
+
message: OK
|
20
|
+
headers:
|
21
|
+
Date:
|
22
|
+
- Tue, 17 Feb 2015 00:02:26 GMT
|
23
|
+
Content-Type:
|
24
|
+
- application/json
|
25
|
+
Transfer-Encoding:
|
26
|
+
- chunked
|
27
|
+
Connection:
|
28
|
+
- keep-alive
|
29
|
+
Set-Cookie:
|
30
|
+
- __cfduid=db959de28c2a7700e78f2c92a9af54efe1424131345; expires=Wed, 17-Feb-16
|
31
|
+
00:02:25 GMT; path=/; domain=.swapi.co; HttpOnly
|
32
|
+
Allow:
|
33
|
+
- GET, HEAD, OPTIONS
|
34
|
+
X-Frame-Options:
|
35
|
+
- SAMEORIGIN
|
36
|
+
Vary:
|
37
|
+
- Accept, Cookie
|
38
|
+
Via:
|
39
|
+
- 1.1 vegur
|
40
|
+
Server:
|
41
|
+
- cloudflare-nginx
|
42
|
+
Cf-Ray:
|
43
|
+
- 1b9db74c7fb306d0-LHR
|
44
|
+
body:
|
45
|
+
encoding: UTF-8
|
46
|
+
string: '{"title":"A New Hope","episode_id":4,"opening_crawl":"It is a period
|
47
|
+
of civil war.\r\nRebel spaceships, striking\r\nfrom a hidden base, have won\r\ntheir
|
48
|
+
first victory against\r\nthe evil Galactic Empire.\r\n\r\nDuring the battle,
|
49
|
+
Rebel\r\nspies managed to steal secret\r\nplans to the Empire''s\r\nultimate
|
50
|
+
weapon, the DEATH\r\nSTAR, an armored space\r\nstation with enough power\r\nto
|
51
|
+
destroy an entire planet.\r\n\r\nPursued by the Empire''s\r\nsinister agents,
|
52
|
+
Princess\r\nLeia races home aboard her\r\nstarship, custodian of the\r\nstolen
|
53
|
+
plans that can save her\r\npeople and restore\r\nfreedom to the galaxy....","director":"George
|
54
|
+
Lucas","producer":"Gary Kurtz, Rick McCallum","characters":["http://swapi.co/api/people/1/","http://swapi.co/api/people/2/","http://swapi.co/api/people/3/","http://swapi.co/api/people/4/","http://swapi.co/api/people/5/","http://swapi.co/api/people/6/","http://swapi.co/api/people/7/","http://swapi.co/api/people/8/","http://swapi.co/api/people/9/","http://swapi.co/api/people/10/","http://swapi.co/api/people/12/","http://swapi.co/api/people/13/","http://swapi.co/api/people/14/","http://swapi.co/api/people/15/","http://swapi.co/api/people/16/","http://swapi.co/api/people/18/","http://swapi.co/api/people/19/","http://swapi.co/api/people/81/"],"planets":["http://swapi.co/api/planets/2/","http://swapi.co/api/planets/3/","http://swapi.co/api/planets/1/"],"starships":["http://swapi.co/api/starships/2/","http://swapi.co/api/starships/3/","http://swapi.co/api/starships/5/","http://swapi.co/api/starships/9/","http://swapi.co/api/starships/10/","http://swapi.co/api/starships/11/","http://swapi.co/api/starships/12/","http://swapi.co/api/starships/13/"],"vehicles":["http://swapi.co/api/vehicles/4/","http://swapi.co/api/vehicles/6/","http://swapi.co/api/vehicles/7/","http://swapi.co/api/vehicles/8/"],"species":["http://swapi.co/api/species/2/","http://swapi.co/api/species/4/","http://swapi.co/api/species/5/","http://swapi.co/api/species/1/","http://swapi.co/api/species/3/"],"created":"2014-12-10T14:23:31.880000Z","edited":"2014-12-20T19:49:45.256000Z","url":"http://swapi.co/api/films/1/"}'
|
55
|
+
http_version:
|
56
|
+
recorded_at: Tue, 17 Feb 2015 00:02:27 GMT
|
57
|
+
recorded_with: VCR 2.9.3
|
@@ -0,0 +1,101 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: http://swapi.co/api/films/
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
User-Agent:
|
11
|
+
- Tatooine Ruby Gem - 0.0.1
|
12
|
+
Accept-Encoding:
|
13
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
14
|
+
Accept:
|
15
|
+
- "*/*"
|
16
|
+
response:
|
17
|
+
status:
|
18
|
+
code: 200
|
19
|
+
message: OK
|
20
|
+
headers:
|
21
|
+
Date:
|
22
|
+
- Mon, 16 Feb 2015 23:37:30 GMT
|
23
|
+
Content-Type:
|
24
|
+
- application/json
|
25
|
+
Transfer-Encoding:
|
26
|
+
- chunked
|
27
|
+
Connection:
|
28
|
+
- keep-alive
|
29
|
+
Set-Cookie:
|
30
|
+
- __cfduid=de31df18fb81a85737d06138599c22c901424129849; expires=Tue, 16-Feb-16
|
31
|
+
23:37:29 GMT; path=/; domain=.swapi.co; HttpOnly
|
32
|
+
Allow:
|
33
|
+
- GET, HEAD, OPTIONS
|
34
|
+
X-Frame-Options:
|
35
|
+
- SAMEORIGIN
|
36
|
+
Vary:
|
37
|
+
- Accept, Cookie
|
38
|
+
Via:
|
39
|
+
- 1.1 vegur
|
40
|
+
Server:
|
41
|
+
- cloudflare-nginx
|
42
|
+
Cf-Ray:
|
43
|
+
- 1b9d92c6ee040b7b-LHR
|
44
|
+
body:
|
45
|
+
encoding: UTF-8
|
46
|
+
string: '{"count":6,"next":null,"previous":null,"results":[{"title":"A New Hope","episode_id":4,"opening_crawl":"It
|
47
|
+
is a period of civil war.\r\nRebel spaceships, striking\r\nfrom a hidden base,
|
48
|
+
have won\r\ntheir first victory against\r\nthe evil Galactic Empire.\r\n\r\nDuring
|
49
|
+
the battle, Rebel\r\nspies managed to steal secret\r\nplans to the Empire''s\r\nultimate
|
50
|
+
weapon, the DEATH\r\nSTAR, an armored space\r\nstation with enough power\r\nto
|
51
|
+
destroy an entire planet.\r\n\r\nPursued by the Empire''s\r\nsinister agents,
|
52
|
+
Princess\r\nLeia races home aboard her\r\nstarship, custodian of the\r\nstolen
|
53
|
+
plans that can save her\r\npeople and restore\r\nfreedom to the galaxy....","director":"George
|
54
|
+
Lucas","producer":"Gary Kurtz, Rick McCallum","characters":["http://swapi.co/api/people/1/","http://swapi.co/api/people/2/","http://swapi.co/api/people/3/","http://swapi.co/api/people/4/","http://swapi.co/api/people/5/","http://swapi.co/api/people/6/","http://swapi.co/api/people/7/","http://swapi.co/api/people/8/","http://swapi.co/api/people/9/","http://swapi.co/api/people/10/","http://swapi.co/api/people/12/","http://swapi.co/api/people/13/","http://swapi.co/api/people/14/","http://swapi.co/api/people/15/","http://swapi.co/api/people/16/","http://swapi.co/api/people/18/","http://swapi.co/api/people/19/","http://swapi.co/api/people/81/"],"planets":["http://swapi.co/api/planets/2/","http://swapi.co/api/planets/3/","http://swapi.co/api/planets/1/"],"starships":["http://swapi.co/api/starships/2/","http://swapi.co/api/starships/3/","http://swapi.co/api/starships/5/","http://swapi.co/api/starships/9/","http://swapi.co/api/starships/10/","http://swapi.co/api/starships/11/","http://swapi.co/api/starships/12/","http://swapi.co/api/starships/13/"],"vehicles":["http://swapi.co/api/vehicles/4/","http://swapi.co/api/vehicles/6/","http://swapi.co/api/vehicles/7/","http://swapi.co/api/vehicles/8/"],"species":["http://swapi.co/api/species/2/","http://swapi.co/api/species/4/","http://swapi.co/api/species/5/","http://swapi.co/api/species/1/","http://swapi.co/api/species/3/"],"created":"2014-12-10T14:23:31.880000Z","edited":"2014-12-20T19:49:45.256000Z","url":"http://swapi.co/api/films/1/"},{"title":"The
|
55
|
+
Empire Strikes Back","episode_id":5,"opening_crawl":"It is a dark time for
|
56
|
+
the\r\nRebellion. Although the Death\r\nStar has been destroyed,\r\nImperial
|
57
|
+
troops have driven the\r\nRebel forces from their hidden\r\nbase and pursued
|
58
|
+
them across\r\nthe galaxy.\r\n\r\nEvading the dreaded Imperial\r\nStarfleet,
|
59
|
+
a group of freedom\r\nfighters led by Luke Skywalker\r\nhas established a
|
60
|
+
new secret\r\nbase on the remote ice world\r\nof Hoth.\r\n\r\nThe evil lord
|
61
|
+
Darth Vader,\r\nobsessed with finding young\r\nSkywalker, has dispatched\r\nthousands
|
62
|
+
of remote probes into\r\nthe far reaches of space....","director":"Irvin Kershner","producer":"Gary
|
63
|
+
Kutz, Rick McCallum","characters":["http://swapi.co/api/people/1/","http://swapi.co/api/people/2/","http://swapi.co/api/people/3/","http://swapi.co/api/people/4/","http://swapi.co/api/people/5/","http://swapi.co/api/people/10/","http://swapi.co/api/people/13/","http://swapi.co/api/people/14/","http://swapi.co/api/people/18/","http://swapi.co/api/people/20/","http://swapi.co/api/people/21/","http://swapi.co/api/people/22/","http://swapi.co/api/people/23/","http://swapi.co/api/people/24/","http://swapi.co/api/people/25/","http://swapi.co/api/people/26/"],"planets":["http://swapi.co/api/planets/4/","http://swapi.co/api/planets/5/","http://swapi.co/api/planets/6/","http://swapi.co/api/planets/27/"],"starships":["http://swapi.co/api/starships/10/","http://swapi.co/api/starships/11/","http://swapi.co/api/starships/12/","http://swapi.co/api/starships/15/","http://swapi.co/api/starships/21/","http://swapi.co/api/starships/22/","http://swapi.co/api/starships/23/","http://swapi.co/api/starships/3/","http://swapi.co/api/starships/17/"],"vehicles":["http://swapi.co/api/vehicles/14/","http://swapi.co/api/vehicles/20/","http://swapi.co/api/vehicles/16/","http://swapi.co/api/vehicles/18/","http://swapi.co/api/vehicles/19/","http://swapi.co/api/vehicles/8/"],"species":["http://swapi.co/api/species/2/","http://swapi.co/api/species/6/","http://swapi.co/api/species/7/","http://swapi.co/api/species/1/","http://swapi.co/api/species/3/"],"created":"2014-12-12T11:26:24.656000Z","edited":"2014-12-15T13:07:53.386000Z","url":"http://swapi.co/api/films/2/"},{"title":"Return
|
64
|
+
of the Jedi","episode_id":6,"opening_crawl":"Luke Skywalker has returned to\r\nhis
|
65
|
+
home planet of Tatooine in\r\nan attempt to rescue his\r\nfriend Han Solo
|
66
|
+
from the\r\nclutches of the vile gangster\r\nJabba the Hutt.\r\n\r\nLittle
|
67
|
+
does Luke know that the\r\nGALACTIC EMPIRE has secretly\r\nbegun construction
|
68
|
+
on a new\r\narmored space station even\r\nmore powerful than the first\r\ndreaded
|
69
|
+
Death Star.\r\n\r\nWhen completed, this ultimate\r\nweapon will spell certain
|
70
|
+
doom\r\nfor the small band of rebels\r\nstruggling to restore freedom\r\nto
|
71
|
+
the galaxy...","director":"Richard Marquand","producer":"Howard G. Kazanjian,
|
72
|
+
George Lucas, Rick McCallum","characters":["http://swapi.co/api/people/1/","http://swapi.co/api/people/2/","http://swapi.co/api/people/3/","http://swapi.co/api/people/4/","http://swapi.co/api/people/5/","http://swapi.co/api/people/10/","http://swapi.co/api/people/13/","http://swapi.co/api/people/14/","http://swapi.co/api/people/16/","http://swapi.co/api/people/18/","http://swapi.co/api/people/20/","http://swapi.co/api/people/21/","http://swapi.co/api/people/22/","http://swapi.co/api/people/25/","http://swapi.co/api/people/27/","http://swapi.co/api/people/28/","http://swapi.co/api/people/29/","http://swapi.co/api/people/30/","http://swapi.co/api/people/31/","http://swapi.co/api/people/45/"],"planets":["http://swapi.co/api/planets/5/","http://swapi.co/api/planets/7/","http://swapi.co/api/planets/8/","http://swapi.co/api/planets/9/","http://swapi.co/api/planets/1/"],"starships":["http://swapi.co/api/starships/10/","http://swapi.co/api/starships/11/","http://swapi.co/api/starships/12/","http://swapi.co/api/starships/15/","http://swapi.co/api/starships/22/","http://swapi.co/api/starships/23/","http://swapi.co/api/starships/27/","http://swapi.co/api/starships/28/","http://swapi.co/api/starships/29/","http://swapi.co/api/starships/3/","http://swapi.co/api/starships/17/","http://swapi.co/api/starships/2/"],"vehicles":["http://swapi.co/api/vehicles/16/","http://swapi.co/api/vehicles/25/","http://swapi.co/api/vehicles/24/","http://swapi.co/api/vehicles/26/","http://swapi.co/api/vehicles/18/","http://swapi.co/api/vehicles/19/","http://swapi.co/api/vehicles/30/","http://swapi.co/api/vehicles/8/"],"species":["http://swapi.co/api/species/2/","http://swapi.co/api/species/5/","http://swapi.co/api/species/6/","http://swapi.co/api/species/8/","http://swapi.co/api/species/9/","http://swapi.co/api/species/10/","http://swapi.co/api/species/15/","http://swapi.co/api/species/1/","http://swapi.co/api/species/3/"],"created":"2014-12-18T10:39:33.255000Z","edited":"2014-12-20T09:48:37.462000Z","url":"http://swapi.co/api/films/3/"},{"title":"The
|
73
|
+
Phantom Menace","episode_id":1,"opening_crawl":"Turmoil has engulfed the\r\nGalactic
|
74
|
+
Republic. The taxation\r\nof trade routes to outlying star\r\nsystems is in
|
75
|
+
dispute.\r\n\r\nHoping to resolve the matter\r\nwith a blockade of deadly\r\nbattleships,
|
76
|
+
the greedy Trade\r\nFederation has stopped all\r\nshipping to the small planet\r\nof
|
77
|
+
Naboo.\r\n\r\nWhile the Congress of the\r\nRepublic endlessly debates\r\nthis
|
78
|
+
alarming chain of events,\r\nthe Supreme Chancellor has\r\nsecretly dispatched
|
79
|
+
two Jedi\r\nKnights, the guardians of\r\npeace and justice in the\r\ngalaxy,
|
80
|
+
to settle the conflict....","director":"George Lucas","producer":"Rick McCallum","characters":["http://swapi.co/api/people/2/","http://swapi.co/api/people/3/","http://swapi.co/api/people/10/","http://swapi.co/api/people/11/","http://swapi.co/api/people/16/","http://swapi.co/api/people/20/","http://swapi.co/api/people/21/","http://swapi.co/api/people/32/","http://swapi.co/api/people/33/","http://swapi.co/api/people/34/","http://swapi.co/api/people/35/","http://swapi.co/api/people/36/","http://swapi.co/api/people/37/","http://swapi.co/api/people/38/","http://swapi.co/api/people/39/","http://swapi.co/api/people/40/","http://swapi.co/api/people/41/","http://swapi.co/api/people/42/","http://swapi.co/api/people/43/","http://swapi.co/api/people/44/","http://swapi.co/api/people/46/","http://swapi.co/api/people/47/","http://swapi.co/api/people/48/","http://swapi.co/api/people/49/","http://swapi.co/api/people/50/","http://swapi.co/api/people/51/","http://swapi.co/api/people/52/","http://swapi.co/api/people/53/","http://swapi.co/api/people/54/","http://swapi.co/api/people/55/","http://swapi.co/api/people/56/","http://swapi.co/api/people/57/","http://swapi.co/api/people/58/","http://swapi.co/api/people/59/"],"planets":["http://swapi.co/api/planets/8/","http://swapi.co/api/planets/9/","http://swapi.co/api/planets/1/"],"starships":["http://swapi.co/api/starships/40/","http://swapi.co/api/starships/41/","http://swapi.co/api/starships/31/","http://swapi.co/api/starships/32/","http://swapi.co/api/starships/39/"],"vehicles":["http://swapi.co/api/vehicles/38/","http://swapi.co/api/vehicles/36/","http://swapi.co/api/vehicles/37/","http://swapi.co/api/vehicles/34/","http://swapi.co/api/vehicles/35/","http://swapi.co/api/vehicles/33/","http://swapi.co/api/vehicles/42/"],"species":["http://swapi.co/api/species/2/","http://swapi.co/api/species/6/","http://swapi.co/api/species/11/","http://swapi.co/api/species/12/","http://swapi.co/api/species/13/","http://swapi.co/api/species/14/","http://swapi.co/api/species/15/","http://swapi.co/api/species/16/","http://swapi.co/api/species/17/","http://swapi.co/api/species/18/","http://swapi.co/api/species/19/","http://swapi.co/api/species/20/","http://swapi.co/api/species/21/","http://swapi.co/api/species/22/","http://swapi.co/api/species/23/","http://swapi.co/api/species/24/","http://swapi.co/api/species/25/","http://swapi.co/api/species/26/","http://swapi.co/api/species/27/","http://swapi.co/api/species/1/"],"created":"2014-12-19T16:52:55.740000Z","edited":"2014-12-20T10:54:07.216000Z","url":"http://swapi.co/api/films/4/"},{"title":"Attack
|
81
|
+
of the Clones","episode_id":2,"opening_crawl":"There is unrest in the Galactic\r\nSenate.
|
82
|
+
Several thousand solar\r\nsystems have declared their\r\nintentions to leave
|
83
|
+
the Republic.\r\n\r\nThis separatist movement,\r\nunder the leadership of
|
84
|
+
the\r\nmysterious Count Dooku, has\r\nmade it difficult for the limited\r\nnumber
|
85
|
+
of Jedi Knights to maintain \r\npeace and order in the galaxy.\r\n\r\nSenator
|
86
|
+
Amidala, the former\r\nQueen of Naboo, is returning\r\nto the Galactic Senate
|
87
|
+
to vote\r\non the critical issue of creating\r\nan ARMY OF THE REPUBLIC\r\nto
|
88
|
+
assist the overwhelmed\r\nJedi....","director":"George Lucas","producer":"Rick
|
89
|
+
McCallum","characters":["http://swapi.co/api/people/2/","http://swapi.co/api/people/3/","http://swapi.co/api/people/6/","http://swapi.co/api/people/7/","http://swapi.co/api/people/10/","http://swapi.co/api/people/11/","http://swapi.co/api/people/20/","http://swapi.co/api/people/21/","http://swapi.co/api/people/22/","http://swapi.co/api/people/33/","http://swapi.co/api/people/35/","http://swapi.co/api/people/36/","http://swapi.co/api/people/40/","http://swapi.co/api/people/43/","http://swapi.co/api/people/46/","http://swapi.co/api/people/51/","http://swapi.co/api/people/52/","http://swapi.co/api/people/53/","http://swapi.co/api/people/58/","http://swapi.co/api/people/59/","http://swapi.co/api/people/60/","http://swapi.co/api/people/61/","http://swapi.co/api/people/62/","http://swapi.co/api/people/63/","http://swapi.co/api/people/64/","http://swapi.co/api/people/65/","http://swapi.co/api/people/66/","http://swapi.co/api/people/67/","http://swapi.co/api/people/68/","http://swapi.co/api/people/69/","http://swapi.co/api/people/70/","http://swapi.co/api/people/71/","http://swapi.co/api/people/72/","http://swapi.co/api/people/73/","http://swapi.co/api/people/74/","http://swapi.co/api/people/75/","http://swapi.co/api/people/76/","http://swapi.co/api/people/77/","http://swapi.co/api/people/78/","http://swapi.co/api/people/82/"],"planets":["http://swapi.co/api/planets/8/","http://swapi.co/api/planets/9/","http://swapi.co/api/planets/10/","http://swapi.co/api/planets/11/","http://swapi.co/api/planets/1/"],"starships":["http://swapi.co/api/starships/21/","http://swapi.co/api/starships/39/","http://swapi.co/api/starships/43/","http://swapi.co/api/starships/47/","http://swapi.co/api/starships/48/","http://swapi.co/api/starships/49/","http://swapi.co/api/starships/32/","http://swapi.co/api/starships/52/","http://swapi.co/api/starships/58/"],"vehicles":["http://swapi.co/api/vehicles/57/","http://swapi.co/api/vehicles/50/","http://swapi.co/api/vehicles/51/","http://swapi.co/api/vehicles/53/","http://swapi.co/api/vehicles/54/","http://swapi.co/api/vehicles/55/","http://swapi.co/api/vehicles/45/","http://swapi.co/api/vehicles/46/","http://swapi.co/api/vehicles/4/","http://swapi.co/api/vehicles/56/","http://swapi.co/api/vehicles/44/"],"species":["http://swapi.co/api/species/2/","http://swapi.co/api/species/6/","http://swapi.co/api/species/12/","http://swapi.co/api/species/13/","http://swapi.co/api/species/15/","http://swapi.co/api/species/28/","http://swapi.co/api/species/29/","http://swapi.co/api/species/30/","http://swapi.co/api/species/31/","http://swapi.co/api/species/32/","http://swapi.co/api/species/33/","http://swapi.co/api/species/34/","http://swapi.co/api/species/35/","http://swapi.co/api/species/1/"],"created":"2014-12-20T10:57:57.886000Z","edited":"2014-12-20T20:18:48.516000Z","url":"http://swapi.co/api/films/5/"},{"title":"Revenge
|
90
|
+
of the Sith","episode_id":3,"opening_crawl":"War! The Republic is crumbling\r\nunder
|
91
|
+
attacks by the ruthless\r\nSith Lord, Count Dooku.\r\nThere are heroes on
|
92
|
+
both sides.\r\nEvil is everywhere.\r\n\r\nIn a stunning move, the\r\nfiendish
|
93
|
+
droid leader, General\r\nGrievous, has swept into the\r\nRepublic capital
|
94
|
+
and kidnapped\r\nChancellor Palpatine, leader of\r\nthe Galactic Senate.\r\n\r\nAs
|
95
|
+
the Separatist Droid Army\r\nattempts to flee the besieged\r\ncapital with
|
96
|
+
their valuable\r\nhostage, two Jedi Knights lead a\r\ndesperate mission to
|
97
|
+
rescue the\r\ncaptive Chancellor....","director":"George Lucas","producer":"Rick
|
98
|
+
McCallum","characters":["http://swapi.co/api/people/1/","http://swapi.co/api/people/2/","http://swapi.co/api/people/3/","http://swapi.co/api/people/4/","http://swapi.co/api/people/5/","http://swapi.co/api/people/6/","http://swapi.co/api/people/7/","http://swapi.co/api/people/10/","http://swapi.co/api/people/11/","http://swapi.co/api/people/12/","http://swapi.co/api/people/13/","http://swapi.co/api/people/20/","http://swapi.co/api/people/21/","http://swapi.co/api/people/33/","http://swapi.co/api/people/35/","http://swapi.co/api/people/46/","http://swapi.co/api/people/51/","http://swapi.co/api/people/52/","http://swapi.co/api/people/53/","http://swapi.co/api/people/54/","http://swapi.co/api/people/55/","http://swapi.co/api/people/56/","http://swapi.co/api/people/58/","http://swapi.co/api/people/63/","http://swapi.co/api/people/64/","http://swapi.co/api/people/67/","http://swapi.co/api/people/68/","http://swapi.co/api/people/75/","http://swapi.co/api/people/78/","http://swapi.co/api/people/79/","http://swapi.co/api/people/80/","http://swapi.co/api/people/81/","http://swapi.co/api/people/82/","http://swapi.co/api/people/83/"],"planets":["http://swapi.co/api/planets/2/","http://swapi.co/api/planets/5/","http://swapi.co/api/planets/8/","http://swapi.co/api/planets/9/","http://swapi.co/api/planets/12/","http://swapi.co/api/planets/13/","http://swapi.co/api/planets/14/","http://swapi.co/api/planets/15/","http://swapi.co/api/planets/16/","http://swapi.co/api/planets/17/","http://swapi.co/api/planets/18/","http://swapi.co/api/planets/19/","http://swapi.co/api/planets/1/"],"starships":["http://swapi.co/api/starships/48/","http://swapi.co/api/starships/59/","http://swapi.co/api/starships/61/","http://swapi.co/api/starships/32/","http://swapi.co/api/starships/63/","http://swapi.co/api/starships/64/","http://swapi.co/api/starships/65/","http://swapi.co/api/starships/66/","http://swapi.co/api/starships/68/","http://swapi.co/api/starships/74/","http://swapi.co/api/starships/75/","http://swapi.co/api/starships/2/"],"vehicles":["http://swapi.co/api/vehicles/50/","http://swapi.co/api/vehicles/53/","http://swapi.co/api/vehicles/33/","http://swapi.co/api/vehicles/56/","http://swapi.co/api/vehicles/72/","http://swapi.co/api/vehicles/73/","http://swapi.co/api/vehicles/67/","http://swapi.co/api/vehicles/71/","http://swapi.co/api/vehicles/76/","http://swapi.co/api/vehicles/60/","http://swapi.co/api/vehicles/62/","http://swapi.co/api/vehicles/70/","http://swapi.co/api/vehicles/69/"],"species":["http://swapi.co/api/species/2/","http://swapi.co/api/species/6/","http://swapi.co/api/species/15/","http://swapi.co/api/species/19/","http://swapi.co/api/species/20/","http://swapi.co/api/species/23/","http://swapi.co/api/species/24/","http://swapi.co/api/species/25/","http://swapi.co/api/species/26/","http://swapi.co/api/species/27/","http://swapi.co/api/species/28/","http://swapi.co/api/species/29/","http://swapi.co/api/species/30/","http://swapi.co/api/species/33/","http://swapi.co/api/species/34/","http://swapi.co/api/species/35/","http://swapi.co/api/species/36/","http://swapi.co/api/species/37/","http://swapi.co/api/species/1/","http://swapi.co/api/species/3/"],"created":"2014-12-20T18:49:38.403000Z","edited":"2014-12-20T20:47:52.073000Z","url":"http://swapi.co/api/films/6/"}]}'
|
99
|
+
http_version:
|
100
|
+
recorded_at: Mon, 16 Feb 2015 23:37:31 GMT
|
101
|
+
recorded_with: VCR 2.9.3
|
@@ -0,0 +1,441 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: http://swapi.co/api/films/
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
User-Agent:
|
11
|
+
- Tatooine Ruby Gem - 0.0.1
|
12
|
+
Accept-Encoding:
|
13
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
14
|
+
Accept:
|
15
|
+
- "*/*"
|
16
|
+
response:
|
17
|
+
status:
|
18
|
+
code: 200
|
19
|
+
message: OK
|
20
|
+
headers:
|
21
|
+
Date:
|
22
|
+
- Mon, 16 Feb 2015 23:37:30 GMT
|
23
|
+
Content-Type:
|
24
|
+
- application/json
|
25
|
+
Transfer-Encoding:
|
26
|
+
- chunked
|
27
|
+
Connection:
|
28
|
+
- keep-alive
|
29
|
+
Set-Cookie:
|
30
|
+
- __cfduid=d8083dd727fa0b2bcf7e89b27877018391424129850; expires=Tue, 16-Feb-16
|
31
|
+
23:37:30 GMT; path=/; domain=.swapi.co; HttpOnly
|
32
|
+
Allow:
|
33
|
+
- GET, HEAD, OPTIONS
|
34
|
+
X-Frame-Options:
|
35
|
+
- SAMEORIGIN
|
36
|
+
Vary:
|
37
|
+
- Accept, Cookie
|
38
|
+
Via:
|
39
|
+
- 1.1 vegur
|
40
|
+
Server:
|
41
|
+
- cloudflare-nginx
|
42
|
+
Cf-Ray:
|
43
|
+
- 1b9d92cbdd4706ca-LHR
|
44
|
+
body:
|
45
|
+
encoding: UTF-8
|
46
|
+
string: '{"count":6,"next":null,"previous":null,"results":[{"title":"A New Hope","episode_id":4,"opening_crawl":"It
|
47
|
+
is a period of civil war.\r\nRebel spaceships, striking\r\nfrom a hidden base,
|
48
|
+
have won\r\ntheir first victory against\r\nthe evil Galactic Empire.\r\n\r\nDuring
|
49
|
+
the battle, Rebel\r\nspies managed to steal secret\r\nplans to the Empire''s\r\nultimate
|
50
|
+
weapon, the DEATH\r\nSTAR, an armored space\r\nstation with enough power\r\nto
|
51
|
+
destroy an entire planet.\r\n\r\nPursued by the Empire''s\r\nsinister agents,
|
52
|
+
Princess\r\nLeia races home aboard her\r\nstarship, custodian of the\r\nstolen
|
53
|
+
plans that can save her\r\npeople and restore\r\nfreedom to the galaxy....","director":"George
|
54
|
+
Lucas","producer":"Gary Kurtz, Rick McCallum","characters":["http://swapi.co/api/people/1/","http://swapi.co/api/people/2/","http://swapi.co/api/people/3/","http://swapi.co/api/people/4/","http://swapi.co/api/people/5/","http://swapi.co/api/people/6/","http://swapi.co/api/people/7/","http://swapi.co/api/people/8/","http://swapi.co/api/people/9/","http://swapi.co/api/people/10/","http://swapi.co/api/people/12/","http://swapi.co/api/people/13/","http://swapi.co/api/people/14/","http://swapi.co/api/people/15/","http://swapi.co/api/people/16/","http://swapi.co/api/people/18/","http://swapi.co/api/people/19/","http://swapi.co/api/people/81/"],"planets":["http://swapi.co/api/planets/2/","http://swapi.co/api/planets/3/","http://swapi.co/api/planets/1/"],"starships":["http://swapi.co/api/starships/2/","http://swapi.co/api/starships/3/","http://swapi.co/api/starships/5/","http://swapi.co/api/starships/9/","http://swapi.co/api/starships/10/","http://swapi.co/api/starships/11/","http://swapi.co/api/starships/12/","http://swapi.co/api/starships/13/"],"vehicles":["http://swapi.co/api/vehicles/4/","http://swapi.co/api/vehicles/6/","http://swapi.co/api/vehicles/7/","http://swapi.co/api/vehicles/8/"],"species":["http://swapi.co/api/species/2/","http://swapi.co/api/species/4/","http://swapi.co/api/species/5/","http://swapi.co/api/species/1/","http://swapi.co/api/species/3/"],"created":"2014-12-10T14:23:31.880000Z","edited":"2014-12-20T19:49:45.256000Z","url":"http://swapi.co/api/films/1/"},{"title":"The
|
55
|
+
Empire Strikes Back","episode_id":5,"opening_crawl":"It is a dark time for
|
56
|
+
the\r\nRebellion. Although the Death\r\nStar has been destroyed,\r\nImperial
|
57
|
+
troops have driven the\r\nRebel forces from their hidden\r\nbase and pursued
|
58
|
+
them across\r\nthe galaxy.\r\n\r\nEvading the dreaded Imperial\r\nStarfleet,
|
59
|
+
a group of freedom\r\nfighters led by Luke Skywalker\r\nhas established a
|
60
|
+
new secret\r\nbase on the remote ice world\r\nof Hoth.\r\n\r\nThe evil lord
|
61
|
+
Darth Vader,\r\nobsessed with finding young\r\nSkywalker, has dispatched\r\nthousands
|
62
|
+
of remote probes into\r\nthe far reaches of space....","director":"Irvin Kershner","producer":"Gary
|
63
|
+
Kutz, Rick McCallum","characters":["http://swapi.co/api/people/1/","http://swapi.co/api/people/2/","http://swapi.co/api/people/3/","http://swapi.co/api/people/4/","http://swapi.co/api/people/5/","http://swapi.co/api/people/10/","http://swapi.co/api/people/13/","http://swapi.co/api/people/14/","http://swapi.co/api/people/18/","http://swapi.co/api/people/20/","http://swapi.co/api/people/21/","http://swapi.co/api/people/22/","http://swapi.co/api/people/23/","http://swapi.co/api/people/24/","http://swapi.co/api/people/25/","http://swapi.co/api/people/26/"],"planets":["http://swapi.co/api/planets/4/","http://swapi.co/api/planets/5/","http://swapi.co/api/planets/6/","http://swapi.co/api/planets/27/"],"starships":["http://swapi.co/api/starships/10/","http://swapi.co/api/starships/11/","http://swapi.co/api/starships/12/","http://swapi.co/api/starships/15/","http://swapi.co/api/starships/21/","http://swapi.co/api/starships/22/","http://swapi.co/api/starships/23/","http://swapi.co/api/starships/3/","http://swapi.co/api/starships/17/"],"vehicles":["http://swapi.co/api/vehicles/14/","http://swapi.co/api/vehicles/20/","http://swapi.co/api/vehicles/16/","http://swapi.co/api/vehicles/18/","http://swapi.co/api/vehicles/19/","http://swapi.co/api/vehicles/8/"],"species":["http://swapi.co/api/species/2/","http://swapi.co/api/species/6/","http://swapi.co/api/species/7/","http://swapi.co/api/species/1/","http://swapi.co/api/species/3/"],"created":"2014-12-12T11:26:24.656000Z","edited":"2014-12-15T13:07:53.386000Z","url":"http://swapi.co/api/films/2/"},{"title":"Return
|
64
|
+
of the Jedi","episode_id":6,"opening_crawl":"Luke Skywalker has returned to\r\nhis
|
65
|
+
home planet of Tatooine in\r\nan attempt to rescue his\r\nfriend Han Solo
|
66
|
+
from the\r\nclutches of the vile gangster\r\nJabba the Hutt.\r\n\r\nLittle
|
67
|
+
does Luke know that the\r\nGALACTIC EMPIRE has secretly\r\nbegun construction
|
68
|
+
on a new\r\narmored space station even\r\nmore powerful than the first\r\ndreaded
|
69
|
+
Death Star.\r\n\r\nWhen completed, this ultimate\r\nweapon will spell certain
|
70
|
+
doom\r\nfor the small band of rebels\r\nstruggling to restore freedom\r\nto
|
71
|
+
the galaxy...","director":"Richard Marquand","producer":"Howard G. Kazanjian,
|
72
|
+
George Lucas, Rick McCallum","characters":["http://swapi.co/api/people/1/","http://swapi.co/api/people/2/","http://swapi.co/api/people/3/","http://swapi.co/api/people/4/","http://swapi.co/api/people/5/","http://swapi.co/api/people/10/","http://swapi.co/api/people/13/","http://swapi.co/api/people/14/","http://swapi.co/api/people/16/","http://swapi.co/api/people/18/","http://swapi.co/api/people/20/","http://swapi.co/api/people/21/","http://swapi.co/api/people/22/","http://swapi.co/api/people/25/","http://swapi.co/api/people/27/","http://swapi.co/api/people/28/","http://swapi.co/api/people/29/","http://swapi.co/api/people/30/","http://swapi.co/api/people/31/","http://swapi.co/api/people/45/"],"planets":["http://swapi.co/api/planets/5/","http://swapi.co/api/planets/7/","http://swapi.co/api/planets/8/","http://swapi.co/api/planets/9/","http://swapi.co/api/planets/1/"],"starships":["http://swapi.co/api/starships/10/","http://swapi.co/api/starships/11/","http://swapi.co/api/starships/12/","http://swapi.co/api/starships/15/","http://swapi.co/api/starships/22/","http://swapi.co/api/starships/23/","http://swapi.co/api/starships/27/","http://swapi.co/api/starships/28/","http://swapi.co/api/starships/29/","http://swapi.co/api/starships/3/","http://swapi.co/api/starships/17/","http://swapi.co/api/starships/2/"],"vehicles":["http://swapi.co/api/vehicles/16/","http://swapi.co/api/vehicles/25/","http://swapi.co/api/vehicles/24/","http://swapi.co/api/vehicles/26/","http://swapi.co/api/vehicles/18/","http://swapi.co/api/vehicles/19/","http://swapi.co/api/vehicles/30/","http://swapi.co/api/vehicles/8/"],"species":["http://swapi.co/api/species/2/","http://swapi.co/api/species/5/","http://swapi.co/api/species/6/","http://swapi.co/api/species/8/","http://swapi.co/api/species/9/","http://swapi.co/api/species/10/","http://swapi.co/api/species/15/","http://swapi.co/api/species/1/","http://swapi.co/api/species/3/"],"created":"2014-12-18T10:39:33.255000Z","edited":"2014-12-20T09:48:37.462000Z","url":"http://swapi.co/api/films/3/"},{"title":"The
|
73
|
+
Phantom Menace","episode_id":1,"opening_crawl":"Turmoil has engulfed the\r\nGalactic
|
74
|
+
Republic. The taxation\r\nof trade routes to outlying star\r\nsystems is in
|
75
|
+
dispute.\r\n\r\nHoping to resolve the matter\r\nwith a blockade of deadly\r\nbattleships,
|
76
|
+
the greedy Trade\r\nFederation has stopped all\r\nshipping to the small planet\r\nof
|
77
|
+
Naboo.\r\n\r\nWhile the Congress of the\r\nRepublic endlessly debates\r\nthis
|
78
|
+
alarming chain of events,\r\nthe Supreme Chancellor has\r\nsecretly dispatched
|
79
|
+
two Jedi\r\nKnights, the guardians of\r\npeace and justice in the\r\ngalaxy,
|
80
|
+
to settle the conflict....","director":"George Lucas","producer":"Rick McCallum","characters":["http://swapi.co/api/people/2/","http://swapi.co/api/people/3/","http://swapi.co/api/people/10/","http://swapi.co/api/people/11/","http://swapi.co/api/people/16/","http://swapi.co/api/people/20/","http://swapi.co/api/people/21/","http://swapi.co/api/people/32/","http://swapi.co/api/people/33/","http://swapi.co/api/people/34/","http://swapi.co/api/people/35/","http://swapi.co/api/people/36/","http://swapi.co/api/people/37/","http://swapi.co/api/people/38/","http://swapi.co/api/people/39/","http://swapi.co/api/people/40/","http://swapi.co/api/people/41/","http://swapi.co/api/people/42/","http://swapi.co/api/people/43/","http://swapi.co/api/people/44/","http://swapi.co/api/people/46/","http://swapi.co/api/people/47/","http://swapi.co/api/people/48/","http://swapi.co/api/people/49/","http://swapi.co/api/people/50/","http://swapi.co/api/people/51/","http://swapi.co/api/people/52/","http://swapi.co/api/people/53/","http://swapi.co/api/people/54/","http://swapi.co/api/people/55/","http://swapi.co/api/people/56/","http://swapi.co/api/people/57/","http://swapi.co/api/people/58/","http://swapi.co/api/people/59/"],"planets":["http://swapi.co/api/planets/8/","http://swapi.co/api/planets/9/","http://swapi.co/api/planets/1/"],"starships":["http://swapi.co/api/starships/40/","http://swapi.co/api/starships/41/","http://swapi.co/api/starships/31/","http://swapi.co/api/starships/32/","http://swapi.co/api/starships/39/"],"vehicles":["http://swapi.co/api/vehicles/38/","http://swapi.co/api/vehicles/36/","http://swapi.co/api/vehicles/37/","http://swapi.co/api/vehicles/34/","http://swapi.co/api/vehicles/35/","http://swapi.co/api/vehicles/33/","http://swapi.co/api/vehicles/42/"],"species":["http://swapi.co/api/species/2/","http://swapi.co/api/species/6/","http://swapi.co/api/species/11/","http://swapi.co/api/species/12/","http://swapi.co/api/species/13/","http://swapi.co/api/species/14/","http://swapi.co/api/species/15/","http://swapi.co/api/species/16/","http://swapi.co/api/species/17/","http://swapi.co/api/species/18/","http://swapi.co/api/species/19/","http://swapi.co/api/species/20/","http://swapi.co/api/species/21/","http://swapi.co/api/species/22/","http://swapi.co/api/species/23/","http://swapi.co/api/species/24/","http://swapi.co/api/species/25/","http://swapi.co/api/species/26/","http://swapi.co/api/species/27/","http://swapi.co/api/species/1/"],"created":"2014-12-19T16:52:55.740000Z","edited":"2014-12-20T10:54:07.216000Z","url":"http://swapi.co/api/films/4/"},{"title":"Attack
|
81
|
+
of the Clones","episode_id":2,"opening_crawl":"There is unrest in the Galactic\r\nSenate.
|
82
|
+
Several thousand solar\r\nsystems have declared their\r\nintentions to leave
|
83
|
+
the Republic.\r\n\r\nThis separatist movement,\r\nunder the leadership of
|
84
|
+
the\r\nmysterious Count Dooku, has\r\nmade it difficult for the limited\r\nnumber
|
85
|
+
of Jedi Knights to maintain \r\npeace and order in the galaxy.\r\n\r\nSenator
|
86
|
+
Amidala, the former\r\nQueen of Naboo, is returning\r\nto the Galactic Senate
|
87
|
+
to vote\r\non the critical issue of creating\r\nan ARMY OF THE REPUBLIC\r\nto
|
88
|
+
assist the overwhelmed\r\nJedi....","director":"George Lucas","producer":"Rick
|
89
|
+
McCallum","characters":["http://swapi.co/api/people/2/","http://swapi.co/api/people/3/","http://swapi.co/api/people/6/","http://swapi.co/api/people/7/","http://swapi.co/api/people/10/","http://swapi.co/api/people/11/","http://swapi.co/api/people/20/","http://swapi.co/api/people/21/","http://swapi.co/api/people/22/","http://swapi.co/api/people/33/","http://swapi.co/api/people/35/","http://swapi.co/api/people/36/","http://swapi.co/api/people/40/","http://swapi.co/api/people/43/","http://swapi.co/api/people/46/","http://swapi.co/api/people/51/","http://swapi.co/api/people/52/","http://swapi.co/api/people/53/","http://swapi.co/api/people/58/","http://swapi.co/api/people/59/","http://swapi.co/api/people/60/","http://swapi.co/api/people/61/","http://swapi.co/api/people/62/","http://swapi.co/api/people/63/","http://swapi.co/api/people/64/","http://swapi.co/api/people/65/","http://swapi.co/api/people/66/","http://swapi.co/api/people/67/","http://swapi.co/api/people/68/","http://swapi.co/api/people/69/","http://swapi.co/api/people/70/","http://swapi.co/api/people/71/","http://swapi.co/api/people/72/","http://swapi.co/api/people/73/","http://swapi.co/api/people/74/","http://swapi.co/api/people/75/","http://swapi.co/api/people/76/","http://swapi.co/api/people/77/","http://swapi.co/api/people/78/","http://swapi.co/api/people/82/"],"planets":["http://swapi.co/api/planets/8/","http://swapi.co/api/planets/9/","http://swapi.co/api/planets/10/","http://swapi.co/api/planets/11/","http://swapi.co/api/planets/1/"],"starships":["http://swapi.co/api/starships/21/","http://swapi.co/api/starships/39/","http://swapi.co/api/starships/43/","http://swapi.co/api/starships/47/","http://swapi.co/api/starships/48/","http://swapi.co/api/starships/49/","http://swapi.co/api/starships/32/","http://swapi.co/api/starships/52/","http://swapi.co/api/starships/58/"],"vehicles":["http://swapi.co/api/vehicles/57/","http://swapi.co/api/vehicles/50/","http://swapi.co/api/vehicles/51/","http://swapi.co/api/vehicles/53/","http://swapi.co/api/vehicles/54/","http://swapi.co/api/vehicles/55/","http://swapi.co/api/vehicles/45/","http://swapi.co/api/vehicles/46/","http://swapi.co/api/vehicles/4/","http://swapi.co/api/vehicles/56/","http://swapi.co/api/vehicles/44/"],"species":["http://swapi.co/api/species/2/","http://swapi.co/api/species/6/","http://swapi.co/api/species/12/","http://swapi.co/api/species/13/","http://swapi.co/api/species/15/","http://swapi.co/api/species/28/","http://swapi.co/api/species/29/","http://swapi.co/api/species/30/","http://swapi.co/api/species/31/","http://swapi.co/api/species/32/","http://swapi.co/api/species/33/","http://swapi.co/api/species/34/","http://swapi.co/api/species/35/","http://swapi.co/api/species/1/"],"created":"2014-12-20T10:57:57.886000Z","edited":"2014-12-20T20:18:48.516000Z","url":"http://swapi.co/api/films/5/"},{"title":"Revenge
|
90
|
+
of the Sith","episode_id":3,"opening_crawl":"War! The Republic is crumbling\r\nunder
|
91
|
+
attacks by the ruthless\r\nSith Lord, Count Dooku.\r\nThere are heroes on
|
92
|
+
both sides.\r\nEvil is everywhere.\r\n\r\nIn a stunning move, the\r\nfiendish
|
93
|
+
droid leader, General\r\nGrievous, has swept into the\r\nRepublic capital
|
94
|
+
and kidnapped\r\nChancellor Palpatine, leader of\r\nthe Galactic Senate.\r\n\r\nAs
|
95
|
+
the Separatist Droid Army\r\nattempts to flee the besieged\r\ncapital with
|
96
|
+
their valuable\r\nhostage, two Jedi Knights lead a\r\ndesperate mission to
|
97
|
+
rescue the\r\ncaptive Chancellor....","director":"George Lucas","producer":"Rick
|
98
|
+
McCallum","characters":["http://swapi.co/api/people/1/","http://swapi.co/api/people/2/","http://swapi.co/api/people/3/","http://swapi.co/api/people/4/","http://swapi.co/api/people/5/","http://swapi.co/api/people/6/","http://swapi.co/api/people/7/","http://swapi.co/api/people/10/","http://swapi.co/api/people/11/","http://swapi.co/api/people/12/","http://swapi.co/api/people/13/","http://swapi.co/api/people/20/","http://swapi.co/api/people/21/","http://swapi.co/api/people/33/","http://swapi.co/api/people/35/","http://swapi.co/api/people/46/","http://swapi.co/api/people/51/","http://swapi.co/api/people/52/","http://swapi.co/api/people/53/","http://swapi.co/api/people/54/","http://swapi.co/api/people/55/","http://swapi.co/api/people/56/","http://swapi.co/api/people/58/","http://swapi.co/api/people/63/","http://swapi.co/api/people/64/","http://swapi.co/api/people/67/","http://swapi.co/api/people/68/","http://swapi.co/api/people/75/","http://swapi.co/api/people/78/","http://swapi.co/api/people/79/","http://swapi.co/api/people/80/","http://swapi.co/api/people/81/","http://swapi.co/api/people/82/","http://swapi.co/api/people/83/"],"planets":["http://swapi.co/api/planets/2/","http://swapi.co/api/planets/5/","http://swapi.co/api/planets/8/","http://swapi.co/api/planets/9/","http://swapi.co/api/planets/12/","http://swapi.co/api/planets/13/","http://swapi.co/api/planets/14/","http://swapi.co/api/planets/15/","http://swapi.co/api/planets/16/","http://swapi.co/api/planets/17/","http://swapi.co/api/planets/18/","http://swapi.co/api/planets/19/","http://swapi.co/api/planets/1/"],"starships":["http://swapi.co/api/starships/48/","http://swapi.co/api/starships/59/","http://swapi.co/api/starships/61/","http://swapi.co/api/starships/32/","http://swapi.co/api/starships/63/","http://swapi.co/api/starships/64/","http://swapi.co/api/starships/65/","http://swapi.co/api/starships/66/","http://swapi.co/api/starships/68/","http://swapi.co/api/starships/74/","http://swapi.co/api/starships/75/","http://swapi.co/api/starships/2/"],"vehicles":["http://swapi.co/api/vehicles/50/","http://swapi.co/api/vehicles/53/","http://swapi.co/api/vehicles/33/","http://swapi.co/api/vehicles/56/","http://swapi.co/api/vehicles/72/","http://swapi.co/api/vehicles/73/","http://swapi.co/api/vehicles/67/","http://swapi.co/api/vehicles/71/","http://swapi.co/api/vehicles/76/","http://swapi.co/api/vehicles/60/","http://swapi.co/api/vehicles/62/","http://swapi.co/api/vehicles/70/","http://swapi.co/api/vehicles/69/"],"species":["http://swapi.co/api/species/2/","http://swapi.co/api/species/6/","http://swapi.co/api/species/15/","http://swapi.co/api/species/19/","http://swapi.co/api/species/20/","http://swapi.co/api/species/23/","http://swapi.co/api/species/24/","http://swapi.co/api/species/25/","http://swapi.co/api/species/26/","http://swapi.co/api/species/27/","http://swapi.co/api/species/28/","http://swapi.co/api/species/29/","http://swapi.co/api/species/30/","http://swapi.co/api/species/33/","http://swapi.co/api/species/34/","http://swapi.co/api/species/35/","http://swapi.co/api/species/36/","http://swapi.co/api/species/37/","http://swapi.co/api/species/1/","http://swapi.co/api/species/3/"],"created":"2014-12-20T18:49:38.403000Z","edited":"2014-12-20T20:47:52.073000Z","url":"http://swapi.co/api/films/6/"}]}'
|
99
|
+
http_version:
|
100
|
+
recorded_at: Mon, 16 Feb 2015 23:37:31 GMT
|
101
|
+
- request:
|
102
|
+
method: get
|
103
|
+
uri: http://swapi.co/api/species/schema
|
104
|
+
body:
|
105
|
+
encoding: US-ASCII
|
106
|
+
string: ''
|
107
|
+
headers:
|
108
|
+
User-Agent:
|
109
|
+
- Tatooine Ruby Gem - 0.0.1
|
110
|
+
Accept-Encoding:
|
111
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
112
|
+
Accept:
|
113
|
+
- "*/*"
|
114
|
+
response:
|
115
|
+
status:
|
116
|
+
code: 200
|
117
|
+
message: OK
|
118
|
+
headers:
|
119
|
+
Date:
|
120
|
+
- Mon, 16 Feb 2015 23:37:32 GMT
|
121
|
+
Content-Type:
|
122
|
+
- application/json
|
123
|
+
Transfer-Encoding:
|
124
|
+
- chunked
|
125
|
+
Connection:
|
126
|
+
- keep-alive
|
127
|
+
Set-Cookie:
|
128
|
+
- __cfduid=d48d102b54162a4850d60eef119d8250e1424129850; expires=Tue, 16-Feb-16
|
129
|
+
23:37:30 GMT; path=/; domain=.swapi.co; HttpOnly
|
130
|
+
X-Frame-Options:
|
131
|
+
- SAMEORIGIN
|
132
|
+
Via:
|
133
|
+
- 1.1 vegur
|
134
|
+
Server:
|
135
|
+
- cloudflare-nginx
|
136
|
+
Cf-Ray:
|
137
|
+
- 1b9d92d045cc138f-LHR
|
138
|
+
body:
|
139
|
+
encoding: UTF-8
|
140
|
+
string: '{"type": "object", "properties": {"edited": {"type": "string", "description":
|
141
|
+
"the ISO 8601 date format of the time that this resource was edited."}, "average_lifespan":
|
142
|
+
{"type": "string", "description": "The average lifespan of this species in
|
143
|
+
years."}, "average_height": {"type": "string", "description": "The average
|
144
|
+
height of this person in centimeters."}, "designation": {"type": "string",
|
145
|
+
"description": "The designation of this species."}, "films": {"type": "array",
|
146
|
+
"description": " An array of Film URL Resources that this species has appeared
|
147
|
+
in."}, "name": {"type": "string", "description": "The name of this species."},
|
148
|
+
"skin_colors": {"type": "string", "description": "A comma-seperated string
|
149
|
+
of common skin colors for this species, none if this species does not typically
|
150
|
+
have skin."}, "url": {"type": "string", "description": "The hypermedia URL
|
151
|
+
of this resource."}, "hair_colors": {"type": "string", "description": "A comma-seperated
|
152
|
+
string of common hair colors for this species, none if this species does not
|
153
|
+
typically have hair."}, "homeworld": {"type": "string", "description": "The
|
154
|
+
URL of a planet resource, a planet that this species originates from."}, "eye_colors":
|
155
|
+
{"type": "string", "description": "A comma-seperated string of common eye
|
156
|
+
colors for this species, none if this species does not typically have eyes."},
|
157
|
+
"classification": {"type": "string", "description": "The classification of
|
158
|
+
this species."}, "created": {"type": "string", "description": " the ISO 8601
|
159
|
+
date format of the time that this resource was created."}}, "title": "People",
|
160
|
+
"$schema": "http://json-schema.org/draft-04/schema", "description": "A species
|
161
|
+
within the Star Wars universe", "required": ["name", "height", "mass", "hair_color",
|
162
|
+
"skin_color", "eye_color", "birth_year", "gender", "homeworld", "films", "species",
|
163
|
+
"vehicles", "starships", "url"]}'
|
164
|
+
http_version:
|
165
|
+
recorded_at: Mon, 16 Feb 2015 23:37:33 GMT
|
166
|
+
- request:
|
167
|
+
method: get
|
168
|
+
uri: http://swapi.co/api/starships/schema
|
169
|
+
body:
|
170
|
+
encoding: US-ASCII
|
171
|
+
string: ''
|
172
|
+
headers:
|
173
|
+
User-Agent:
|
174
|
+
- Tatooine Ruby Gem - 0.0.1
|
175
|
+
Accept-Encoding:
|
176
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
177
|
+
Accept:
|
178
|
+
- "*/*"
|
179
|
+
response:
|
180
|
+
status:
|
181
|
+
code: 200
|
182
|
+
message: OK
|
183
|
+
headers:
|
184
|
+
Date:
|
185
|
+
- Mon, 16 Feb 2015 23:37:33 GMT
|
186
|
+
Content-Type:
|
187
|
+
- application/json
|
188
|
+
Transfer-Encoding:
|
189
|
+
- chunked
|
190
|
+
Connection:
|
191
|
+
- keep-alive
|
192
|
+
Set-Cookie:
|
193
|
+
- __cfduid=dc54532b6c4e642d910bf7f034fa868f01424129852; expires=Tue, 16-Feb-16
|
194
|
+
23:37:32 GMT; path=/; domain=.swapi.co; HttpOnly
|
195
|
+
X-Frame-Options:
|
196
|
+
- SAMEORIGIN
|
197
|
+
Via:
|
198
|
+
- 1.1 vegur
|
199
|
+
Server:
|
200
|
+
- cloudflare-nginx
|
201
|
+
Cf-Ray:
|
202
|
+
- 1b9d92dc5ce00a66-LHR
|
203
|
+
body:
|
204
|
+
encoding: UTF-8
|
205
|
+
string: '{"type": "object", "properties": {"edited": {"type": "string", "description":
|
206
|
+
"the ISO 8601 date format of the time that this resource was edited."}, "length":
|
207
|
+
{"type": "string", "description": "The length of this starship in meters."},
|
208
|
+
"pilots": {"type": "array", "description": "An array of People URL Resources
|
209
|
+
that this starship has been piloted by."}, "crew": {"type": "string", "description":
|
210
|
+
"The number of personnel needed to run or pilot this starship."}, "starship_class":
|
211
|
+
{"type": "string", "description": "The class of this starship, such as Starfighter
|
212
|
+
or Deep Space Mobile Battlestation."}, "consumables": {"type": "string", "description":
|
213
|
+
"The maximum length of time that this starship can provide consumables for
|
214
|
+
it''s entire crew without having to resupply."}, "MGLT": {"type": "string",
|
215
|
+
"description": "The Maximum number of Megalights this starship can travel
|
216
|
+
in a standard hour. A Megalight is a standard unit of distance and has never
|
217
|
+
been defined before within the Star Wars universe. This figure is only really
|
218
|
+
useful for measuring the difference in speed of starships. We can assume it
|
219
|
+
is similar to AU, the distance between our Sun (Sol) and Earth."}, "manufacturer":
|
220
|
+
{"type": "string", "description": "The manufacturer of this starship. Comma
|
221
|
+
seperated if more than one."}, "cargo_capacity": {"type": "string", "description":
|
222
|
+
"The maximum number of kilograms that this starship can transport."}, "name":
|
223
|
+
{"type": "string", "description": "The name of this starship. The common name,
|
224
|
+
such as Death Star."}, "hyperdrive_rating": {"type": "string", "description":
|
225
|
+
"The class of this starships hyperdrive."}, "max_atmosphering_speed": {"type":
|
226
|
+
"string", "description": "The maximum speed of this starship in atmosphere.
|
227
|
+
n/a if this starship is incapable of atmosphering flight."}, "passengers":
|
228
|
+
{"type": "string", "description": "The number of non-essential people this
|
229
|
+
starship can transport."}, "cost_in_credits": {"type": "string", "description":
|
230
|
+
"The cost of this starship new, in galactic credits."}, "model": {"type":
|
231
|
+
"string", "description": "The model or official name of this starship. Such
|
232
|
+
as T-65 X-wing or DS-1 Orbital Battle Station."}, "films": {"type": "array",
|
233
|
+
"description": "An array of Film URL Resources that this starship has appeared
|
234
|
+
in."}, "created": {"type": "string", "description": "The ISO 8601 date format
|
235
|
+
of the time that this resource was created."}, "url": {"type": "string", "description":
|
236
|
+
"The hypermedia URL of this resource."}}, "title": "Starship", "$schema":
|
237
|
+
"http://json-schema.org/draft-04/schema", "description": "A Starship", "required":
|
238
|
+
["name", "model", "manufacturer", "cost_in_credits", "length", "max_atmosphering_speed",
|
239
|
+
"crew", "passengers", "cargo_capacity", "consumables", "hyperdrive_rating",
|
240
|
+
"MGLT", "starship_class", "pilots", "films", "created", "edited", "url"]}'
|
241
|
+
http_version:
|
242
|
+
recorded_at: Mon, 16 Feb 2015 23:37:34 GMT
|
243
|
+
- request:
|
244
|
+
method: get
|
245
|
+
uri: http://swapi.co/api/planets/schema
|
246
|
+
body:
|
247
|
+
encoding: US-ASCII
|
248
|
+
string: ''
|
249
|
+
headers:
|
250
|
+
User-Agent:
|
251
|
+
- Tatooine Ruby Gem - 0.0.1
|
252
|
+
Accept-Encoding:
|
253
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
254
|
+
Accept:
|
255
|
+
- "*/*"
|
256
|
+
response:
|
257
|
+
status:
|
258
|
+
code: 200
|
259
|
+
message: OK
|
260
|
+
headers:
|
261
|
+
Date:
|
262
|
+
- Mon, 16 Feb 2015 23:37:35 GMT
|
263
|
+
Content-Type:
|
264
|
+
- application/json
|
265
|
+
Transfer-Encoding:
|
266
|
+
- chunked
|
267
|
+
Connection:
|
268
|
+
- keep-alive
|
269
|
+
Set-Cookie:
|
270
|
+
- __cfduid=d709a40cee5f68c7f69bc518b0a4e88351424129853; expires=Tue, 16-Feb-16
|
271
|
+
23:37:33 GMT; path=/; domain=.swapi.co; HttpOnly
|
272
|
+
X-Frame-Options:
|
273
|
+
- SAMEORIGIN
|
274
|
+
Via:
|
275
|
+
- 1.1 vegur
|
276
|
+
Server:
|
277
|
+
- cloudflare-nginx
|
278
|
+
Cf-Ray:
|
279
|
+
- 1b9d92dfc71e138f-LHR
|
280
|
+
body:
|
281
|
+
encoding: UTF-8
|
282
|
+
string: '{"type": "object", "properties": {"diameter": {"type": "string", "description":
|
283
|
+
"The diameter of this planet in kilometers."}, "edited": {"type": "string",
|
284
|
+
"description": "the ISO 8601 date format of the time that this resource was
|
285
|
+
edited."}, "gravity": {"type": "string", "description": "A number denoting
|
286
|
+
the gravity of this planet. Where 1 is normal."}, "terrain": {"type": "string",
|
287
|
+
"description": "the terrain of this planet. Comma-seperated if diverse."},
|
288
|
+
"name": {"type": "string", "description": "The name of this planet."}, "url":
|
289
|
+
{"type": "string", "description": "The hypermedia URL of this resource."},
|
290
|
+
"climate": {"type": "string", "description": "The climate of this planet.
|
291
|
+
Comma-seperated if diverse."}, "rotation_period": {"type": "string", "description":
|
292
|
+
"The number of standard hours it takes for this planet to complete a single
|
293
|
+
rotation on it''s axis."}, "surface_water": {"type": "string", "description":
|
294
|
+
"The percentage of the planet surface that is naturally occuring water or
|
295
|
+
bodies of water."}, "population": {"type": "string", "description": "The average
|
296
|
+
populationof sentient beings inhabiting this planet."}, "films": {"type":
|
297
|
+
"array", "description": "An array of Film URL Resources that this planet has
|
298
|
+
appeared in."}, "created": {"type": "string", "description": "The ISO 8601
|
299
|
+
date format of the time that this resource was created."}, "residents": {"type":
|
300
|
+
"array", "description": "An array of People URL Resources that live on this
|
301
|
+
planet."}, "orbital_period": {"type": "string", "description": "The number
|
302
|
+
of standard days it takes for this planet to complete a single orbit of it''s
|
303
|
+
local star."}}, "title": "Planet", "$schema": "http://json-schema.org/draft-04/schema",
|
304
|
+
"description": "A planet.", "required": ["name", "rotation_period", "orbital_period",
|
305
|
+
"diameter", "climate", "gravity", "terrain", "surface_water", "population",
|
306
|
+
"residents", "films", "created", "edited", "url"]}'
|
307
|
+
http_version:
|
308
|
+
recorded_at: Mon, 16 Feb 2015 23:37:36 GMT
|
309
|
+
- request:
|
310
|
+
method: get
|
311
|
+
uri: http://swapi.co/api/vehicles/schema
|
312
|
+
body:
|
313
|
+
encoding: US-ASCII
|
314
|
+
string: ''
|
315
|
+
headers:
|
316
|
+
User-Agent:
|
317
|
+
- Tatooine Ruby Gem - 0.0.1
|
318
|
+
Accept-Encoding:
|
319
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
320
|
+
Accept:
|
321
|
+
- "*/*"
|
322
|
+
response:
|
323
|
+
status:
|
324
|
+
code: 200
|
325
|
+
message: OK
|
326
|
+
headers:
|
327
|
+
Date:
|
328
|
+
- Mon, 16 Feb 2015 23:37:36 GMT
|
329
|
+
Content-Type:
|
330
|
+
- application/json
|
331
|
+
Transfer-Encoding:
|
332
|
+
- chunked
|
333
|
+
Connection:
|
334
|
+
- keep-alive
|
335
|
+
Set-Cookie:
|
336
|
+
- __cfduid=d55b08a78e7b8eec55ab9d0e6e9c23b071424129855; expires=Tue, 16-Feb-16
|
337
|
+
23:37:35 GMT; path=/; domain=.swapi.co; HttpOnly
|
338
|
+
X-Frame-Options:
|
339
|
+
- SAMEORIGIN
|
340
|
+
Via:
|
341
|
+
- 1.1 vegur
|
342
|
+
Server:
|
343
|
+
- cloudflare-nginx
|
344
|
+
Cf-Ray:
|
345
|
+
- 1b9d92ec53d00cf5-LHR
|
346
|
+
body:
|
347
|
+
encoding: UTF-8
|
348
|
+
string: '{"type": "object", "properties": {"edited": {"type": "string", "description":
|
349
|
+
"the ISO 8601 date format of the time that this resource was edited."}, "length":
|
350
|
+
{"type": "string", "description": "The length of this vehicle in meters."},
|
351
|
+
"pilots": {"type": "array", "description": "An array of People URL Resources
|
352
|
+
that this vehicle has been piloted by."}, "crew": {"type": "string", "description":
|
353
|
+
"The number of personnel needed to run or pilot this vehicle."}, "consumables":
|
354
|
+
{"type": "string", "description": "The maximum length of time that this vehicle
|
355
|
+
can provide consumables for it''s entire crew without having to resupply."},
|
356
|
+
"url": {"type": "string", "description": "The hypermedia URL of this resource."},
|
357
|
+
"manufacturer": {"type": "string", "description": "The manufacturer of this
|
358
|
+
vehicle. Comma seperated if more than one."}, "films": {"type": "array", "description":
|
359
|
+
"An array of Film URL Resources that this vehicle has appeared in."}, "name":
|
360
|
+
{"type": "string", "description": "The name of this vehicle. The common name,
|
361
|
+
such as Sand Crawler."}, "cargo_capacity": {"type": "string", "description":
|
362
|
+
"The maximum number of kilograms that this vehicle can transport."}, "max_atmosphering_speed":
|
363
|
+
{"type": "string", "description": "The maximum speed of this vehicle in atmosphere."},
|
364
|
+
"passengers": {"type": "string", "description": "The number of non-essential
|
365
|
+
people this vehicle can transport."}, "cost_in_credits": {"type": "string",
|
366
|
+
"description": "The cost of this vehicle new, in galactic credits."}, "model":
|
367
|
+
{"type": "string", "description": "The model or official name of this vehicle.
|
368
|
+
Such as All Terrain Attack Transport."}, "created": {"type": "string", "description":
|
369
|
+
"The ISO 8601 date format of the time that this resource was created."}, "vehicle_class":
|
370
|
+
{"type": "string", "description": "The class of this vehicle, such as Wheeled."}},
|
371
|
+
"title": "Starship", "$schema": "http://json-schema.org/draft-04/schema",
|
372
|
+
"description": "A vehicle.", "required": ["name", "model", "manufacturer",
|
373
|
+
"cost_in_credits", "length", "max_atmosphering_speed", "crew", "passengers",
|
374
|
+
"cargo_capacity", "consumables", "vehicle_class", "pilots", "films", "created",
|
375
|
+
"edited", "url"]}'
|
376
|
+
http_version:
|
377
|
+
recorded_at: Mon, 16 Feb 2015 23:37:37 GMT
|
378
|
+
- request:
|
379
|
+
method: get
|
380
|
+
uri: http://swapi.co/api/people/schema
|
381
|
+
body:
|
382
|
+
encoding: US-ASCII
|
383
|
+
string: ''
|
384
|
+
headers:
|
385
|
+
User-Agent:
|
386
|
+
- Tatooine Ruby Gem - 0.0.1
|
387
|
+
Accept-Encoding:
|
388
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
389
|
+
Accept:
|
390
|
+
- "*/*"
|
391
|
+
response:
|
392
|
+
status:
|
393
|
+
code: 200
|
394
|
+
message: OK
|
395
|
+
headers:
|
396
|
+
Date:
|
397
|
+
- Mon, 16 Feb 2015 23:37:37 GMT
|
398
|
+
Content-Type:
|
399
|
+
- application/json
|
400
|
+
Transfer-Encoding:
|
401
|
+
- chunked
|
402
|
+
Connection:
|
403
|
+
- keep-alive
|
404
|
+
Set-Cookie:
|
405
|
+
- __cfduid=debc2e116bb23967972f5f4c9ed57fdad1424129856; expires=Tue, 16-Feb-16
|
406
|
+
23:37:36 GMT; path=/; domain=.swapi.co; HttpOnly
|
407
|
+
X-Frame-Options:
|
408
|
+
- SAMEORIGIN
|
409
|
+
Via:
|
410
|
+
- 1.1 vegur
|
411
|
+
Server:
|
412
|
+
- cloudflare-nginx
|
413
|
+
Cf-Ray:
|
414
|
+
- 1b9d92f5e9960cf5-LHR
|
415
|
+
body:
|
416
|
+
encoding: UTF-8
|
417
|
+
string: '{"type": "object", "properties": {"eye_color": {"type": "string", "description":
|
418
|
+
"The eye color of this person."}, "homeworld": {"type": "string", "description":
|
419
|
+
"The url of the planet resource that this person was born on."}, "mass": {"type":
|
420
|
+
"string", "description": "The mass of this person in kilograms."}, "height":
|
421
|
+
{"type": "string", "description": "The height of this person in meters."},
|
422
|
+
"films": {"type": "array", "description": "An array of urls of film resources
|
423
|
+
that this person has been in."}, "name": {"type": "string", "description":
|
424
|
+
"The name of this person."}, "birth_year": {"type": "string", "description":
|
425
|
+
"The birth year of this person. BBY (Before the Battle of Yavin) or ABY (After
|
426
|
+
the Battle of Yavin)."}, "starships": {"type": "array", "description": "An
|
427
|
+
array of starship resources that this person has piloted"}, "skin_color":
|
428
|
+
{"type": "string", "description": "The skin color of this person."}, "species":
|
429
|
+
{"type": "array", "description": "The url of the species resource that this
|
430
|
+
person is."}, "vehicles": {"type": "array", "description": "An array of vehicle
|
431
|
+
resources that this person has piloted"}, "hair_color": {"type": "string",
|
432
|
+
"description": "The hair color of this person."}, "gender": {"type": "string",
|
433
|
+
"description": "The gender of this person (if known)."}, "url": {"type": "string",
|
434
|
+
"description": "The url of this resource"}}, "title": "People", "$schema":
|
435
|
+
"http://json-schema.org/draft-04/schema", "description": "A person within
|
436
|
+
the Star Wars universe", "required": ["name", "height", "mass", "hair_color",
|
437
|
+
"skin_color", "eye_color", "birth_year", "gender", "homeworld", "films", "species",
|
438
|
+
"vehicles", "starships", "url"]}'
|
439
|
+
http_version:
|
440
|
+
recorded_at: Mon, 16 Feb 2015 23:37:38 GMT
|
441
|
+
recorded_with: VCR 2.9.3
|