serpscan 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +15 -0
- data/Gemfile +4 -0
- data/LICENSE.txt +22 -0
- data/README.md +82 -0
- data/Rakefile +1 -0
- data/lib/serpscan.rb +16 -0
- data/lib/serpscan/account.rb +8 -0
- data/lib/serpscan/api.rb +48 -0
- data/lib/serpscan/errors.rb +3 -0
- data/lib/serpscan/keyword.rb +10 -0
- data/lib/serpscan/search_engine.rb +6 -0
- data/lib/serpscan/search_engine_country.rb +21 -0
- data/lib/serpscan/serpscan_child_object.rb +23 -0
- data/lib/serpscan/serpscan_object.rb +68 -0
- data/lib/serpscan/utilities.rb +18 -0
- data/lib/serpscan/version.rb +3 -0
- data/lib/serpscan/website.rb +16 -0
- data/serpscan.gemspec +30 -0
- data/spec/fixtures/vcr_cassettes/Serpscan_Keyword/it_should_behave_like_a_creatable_object/should_return_object_after_creation.yml +52 -0
- data/spec/fixtures/vcr_cassettes/Serpscan_Keyword/it_should_behave_like_a_deletable_object/should_return_true_after_delete.yml +86 -0
- data/spec/fixtures/vcr_cassettes/Serpscan_Keyword/it_should_behave_like_a_findable_object/should_return_a_value_for_alltime_change.yml +46 -0
- data/spec/fixtures/vcr_cassettes/Serpscan_Keyword/it_should_behave_like_a_findable_object/should_return_a_value_for_current_rank.yml +46 -0
- data/spec/fixtures/vcr_cassettes/Serpscan_Keyword/it_should_behave_like_a_findable_object/should_return_a_value_for_day_change.yml +46 -0
- data/spec/fixtures/vcr_cassettes/Serpscan_Keyword/it_should_behave_like_a_findable_object/should_return_a_value_for_id.yml +46 -0
- data/spec/fixtures/vcr_cassettes/Serpscan_Keyword/it_should_behave_like_a_findable_object/should_return_a_value_for_initial_rank.yml +46 -0
- data/spec/fixtures/vcr_cassettes/Serpscan_Keyword/it_should_behave_like_a_findable_object/should_return_a_value_for_phrase.yml +46 -0
- data/spec/fixtures/vcr_cassettes/Serpscan_Keyword/it_should_behave_like_a_findable_object/should_return_a_value_for_search_engine_country_id.yml +46 -0
- data/spec/fixtures/vcr_cassettes/Serpscan_Keyword/it_should_behave_like_a_findable_object/should_return_a_value_for_search_volume.yml +46 -0
- data/spec/fixtures/vcr_cassettes/Serpscan_Keyword/it_should_behave_like_a_findable_object/should_return_a_value_for_week_change.yml +46 -0
- data/spec/fixtures/vcr_cassettes/Serpscan_SearchEngine/it_should_behave_like_a_findable_object/should_return_a_value_for_countries.yml +46 -0
- data/spec/fixtures/vcr_cassettes/Serpscan_SearchEngine/it_should_behave_like_a_findable_object/should_return_a_value_for_id.yml +46 -0
- data/spec/fixtures/vcr_cassettes/Serpscan_SearchEngine/it_should_behave_like_a_findable_object/should_return_a_value_for_title.yml +46 -0
- data/spec/fixtures/vcr_cassettes/Serpscan_SearchEngine/it_should_behave_like_a_listable_object/should_return_an_array_of_Serpscan_SearchEngine_objects.yml +46 -0
- data/spec/fixtures/vcr_cassettes/Serpscan_SearchEngine/it_should_behave_like_a_listable_object/should_return_an_array_of_objects.yml +46 -0
- data/spec/fixtures/vcr_cassettes/Serpscan_Website/create_keyword/should_return_a_keyword_object.yml +96 -0
- data/spec/fixtures/vcr_cassettes/Serpscan_Website/it_should_behave_like_a_creatable_object/should_return_object_after_creation.yml +51 -0
- data/spec/fixtures/vcr_cassettes/Serpscan_Website/it_should_behave_like_a_deletable_object/should_return_true_after_delete.yml +86 -0
- data/spec/fixtures/vcr_cassettes/Serpscan_Website/it_should_behave_like_a_findable_object/should_return_a_value_for_id.yml +46 -0
- data/spec/fixtures/vcr_cassettes/Serpscan_Website/it_should_behave_like_a_findable_object/should_return_a_value_for_url.yml +46 -0
- data/spec/fixtures/vcr_cassettes/Serpscan_Website/it_should_behave_like_a_listable_object/should_return_an_array_of_Serpscan_Website_objects.yml +46 -0
- data/spec/fixtures/vcr_cassettes/Serpscan_Website/it_should_behave_like_a_listable_object/should_return_an_array_of_objects.yml +46 -0
- data/spec/fixtures/vcr_cassettes/Serpscan_Website/keywords/should_return_a_paginated_array_of_keyword_objects.yml +663 -0
- data/spec/fixtures/vcr_cassettes/Serpscan_Website/keywords/should_return_an_array_of_keyword_objects.yml +90 -0
- data/spec/lib/serpscan/keyword_spec.rb +8 -0
- data/spec/lib/serpscan/search_engine_spec.rb +6 -0
- data/spec/lib/serpscan/website_spec.rb +32 -0
- data/spec/spec_helper.rb +24 -0
- data/spec/support/shared_examples/creatable.rb +7 -0
- data/spec/support/shared_examples/deletable.rb +7 -0
- data/spec/support/shared_examples/findable.rb +9 -0
- data/spec/support/shared_examples/listable.rb +7 -0
- metadata +240 -0
@@ -0,0 +1,46 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: http://localhost:5055/api/v1/keywords/1?token=123
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
Accept:
|
11
|
+
- "*/*; q=0.5, application/xml"
|
12
|
+
Accept-Encoding:
|
13
|
+
- gzip, deflate
|
14
|
+
User-Agent:
|
15
|
+
- Ruby
|
16
|
+
response:
|
17
|
+
status:
|
18
|
+
code: 200
|
19
|
+
message: 'OK '
|
20
|
+
headers:
|
21
|
+
Content-Type:
|
22
|
+
- application/json; charset=utf-8
|
23
|
+
X-Ua-Compatible:
|
24
|
+
- IE=Edge
|
25
|
+
Etag:
|
26
|
+
- '"227c5fa24bcc8a2adac7353eae5b60df"'
|
27
|
+
Cache-Control:
|
28
|
+
- max-age=0, private, must-revalidate
|
29
|
+
X-Request-Id:
|
30
|
+
- f96d17cdacc39bb04bcf7c2ef9b8b49d
|
31
|
+
X-Runtime:
|
32
|
+
- '0.078011'
|
33
|
+
Server:
|
34
|
+
- WEBrick/1.3.1 (Ruby/1.9.3/2013-01-15)
|
35
|
+
Date:
|
36
|
+
- Sun, 22 Feb 2015 20:41:41 GMT
|
37
|
+
Content-Length:
|
38
|
+
- '185'
|
39
|
+
Connection:
|
40
|
+
- Keep-Alive
|
41
|
+
body:
|
42
|
+
encoding: UTF-8
|
43
|
+
string: '{"id":1,"phrase":"example keyword","current_rank":1,"initial_rank":100,"day_change":"+99","week_change":"+99","alltime_change":"+99","search_volume":"1000","search_engine_country_id":1}'
|
44
|
+
http_version:
|
45
|
+
recorded_at: Sun, 22 Feb 2015 20:41:41 GMT
|
46
|
+
recorded_with: VCR 2.9.3
|
@@ -0,0 +1,46 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: http://localhost:5055/api/v1/search_engines/1?token=123
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
Accept:
|
11
|
+
- "*/*; q=0.5, application/xml"
|
12
|
+
Accept-Encoding:
|
13
|
+
- gzip, deflate
|
14
|
+
User-Agent:
|
15
|
+
- Ruby
|
16
|
+
response:
|
17
|
+
status:
|
18
|
+
code: 200
|
19
|
+
message: 'OK '
|
20
|
+
headers:
|
21
|
+
Content-Type:
|
22
|
+
- application/json; charset=utf-8
|
23
|
+
X-Ua-Compatible:
|
24
|
+
- IE=Edge
|
25
|
+
Etag:
|
26
|
+
- '"2a1e4207ef78d6626187c20027e40083"'
|
27
|
+
Cache-Control:
|
28
|
+
- max-age=0, private, must-revalidate
|
29
|
+
X-Request-Id:
|
30
|
+
- bf52aca53e461b13547c5ca87420e86a
|
31
|
+
X-Runtime:
|
32
|
+
- '0.082465'
|
33
|
+
Server:
|
34
|
+
- WEBrick/1.3.1 (Ruby/1.9.3/2013-01-15)
|
35
|
+
Date:
|
36
|
+
- Sun, 22 Feb 2015 20:41:42 GMT
|
37
|
+
Content-Length:
|
38
|
+
- '86'
|
39
|
+
Connection:
|
40
|
+
- Keep-Alive
|
41
|
+
body:
|
42
|
+
encoding: UTF-8
|
43
|
+
string: '{"id":1,"title":"Google","countries":[{"id":1,"location":"USA","search_engine_id":1}]}'
|
44
|
+
http_version:
|
45
|
+
recorded_at: Sun, 22 Feb 2015 20:41:42 GMT
|
46
|
+
recorded_with: VCR 2.9.3
|
@@ -0,0 +1,46 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: http://localhost:5055/api/v1/search_engines/1?token=123
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
Accept:
|
11
|
+
- "*/*; q=0.5, application/xml"
|
12
|
+
Accept-Encoding:
|
13
|
+
- gzip, deflate
|
14
|
+
User-Agent:
|
15
|
+
- Ruby
|
16
|
+
response:
|
17
|
+
status:
|
18
|
+
code: 200
|
19
|
+
message: 'OK '
|
20
|
+
headers:
|
21
|
+
Content-Type:
|
22
|
+
- application/json; charset=utf-8
|
23
|
+
X-Ua-Compatible:
|
24
|
+
- IE=Edge
|
25
|
+
Etag:
|
26
|
+
- '"2a1e4207ef78d6626187c20027e40083"'
|
27
|
+
Cache-Control:
|
28
|
+
- max-age=0, private, must-revalidate
|
29
|
+
X-Request-Id:
|
30
|
+
- 79ce9d3c204ed4ed419afa0afac6c6e7
|
31
|
+
X-Runtime:
|
32
|
+
- '0.031583'
|
33
|
+
Server:
|
34
|
+
- WEBrick/1.3.1 (Ruby/1.9.3/2013-01-15)
|
35
|
+
Date:
|
36
|
+
- Sun, 22 Feb 2015 20:41:42 GMT
|
37
|
+
Content-Length:
|
38
|
+
- '86'
|
39
|
+
Connection:
|
40
|
+
- Keep-Alive
|
41
|
+
body:
|
42
|
+
encoding: UTF-8
|
43
|
+
string: '{"id":1,"title":"Google","countries":[{"id":1,"location":"USA","search_engine_id":1}]}'
|
44
|
+
http_version:
|
45
|
+
recorded_at: Sun, 22 Feb 2015 20:41:42 GMT
|
46
|
+
recorded_with: VCR 2.9.3
|
@@ -0,0 +1,46 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: http://localhost:5055/api/v1/search_engines/1?token=123
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
Accept:
|
11
|
+
- "*/*; q=0.5, application/xml"
|
12
|
+
Accept-Encoding:
|
13
|
+
- gzip, deflate
|
14
|
+
User-Agent:
|
15
|
+
- Ruby
|
16
|
+
response:
|
17
|
+
status:
|
18
|
+
code: 200
|
19
|
+
message: 'OK '
|
20
|
+
headers:
|
21
|
+
Content-Type:
|
22
|
+
- application/json; charset=utf-8
|
23
|
+
X-Ua-Compatible:
|
24
|
+
- IE=Edge
|
25
|
+
Etag:
|
26
|
+
- '"2a1e4207ef78d6626187c20027e40083"'
|
27
|
+
Cache-Control:
|
28
|
+
- max-age=0, private, must-revalidate
|
29
|
+
X-Request-Id:
|
30
|
+
- 398bdbe9d0dc814804ceff50fb3efca0
|
31
|
+
X-Runtime:
|
32
|
+
- '0.032671'
|
33
|
+
Server:
|
34
|
+
- WEBrick/1.3.1 (Ruby/1.9.3/2013-01-15)
|
35
|
+
Date:
|
36
|
+
- Sun, 22 Feb 2015 20:41:42 GMT
|
37
|
+
Content-Length:
|
38
|
+
- '86'
|
39
|
+
Connection:
|
40
|
+
- Keep-Alive
|
41
|
+
body:
|
42
|
+
encoding: UTF-8
|
43
|
+
string: '{"id":1,"title":"Google","countries":[{"id":1,"location":"USA","search_engine_id":1}]}'
|
44
|
+
http_version:
|
45
|
+
recorded_at: Sun, 22 Feb 2015 20:41:42 GMT
|
46
|
+
recorded_with: VCR 2.9.3
|
@@ -0,0 +1,46 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: http://localhost:5055/api/v1/search_engines?token=123
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
Accept:
|
11
|
+
- "*/*; q=0.5, application/xml"
|
12
|
+
Accept-Encoding:
|
13
|
+
- gzip, deflate
|
14
|
+
User-Agent:
|
15
|
+
- Ruby
|
16
|
+
response:
|
17
|
+
status:
|
18
|
+
code: 200
|
19
|
+
message: 'OK '
|
20
|
+
headers:
|
21
|
+
Content-Type:
|
22
|
+
- application/json; charset=utf-8
|
23
|
+
X-Ua-Compatible:
|
24
|
+
- IE=Edge
|
25
|
+
Etag:
|
26
|
+
- '"32c92eaf9e1ae3568c10f3ce8bae4a16"'
|
27
|
+
Cache-Control:
|
28
|
+
- max-age=0, private, must-revalidate
|
29
|
+
X-Request-Id:
|
30
|
+
- bd15aff67b46719c41f3ec63f0b4d3bc
|
31
|
+
X-Runtime:
|
32
|
+
- '0.683118'
|
33
|
+
Server:
|
34
|
+
- WEBrick/1.3.1 (Ruby/1.9.3/2013-01-15)
|
35
|
+
Date:
|
36
|
+
- Tue, 24 Feb 2015 06:25:43 GMT
|
37
|
+
Content-Length:
|
38
|
+
- '100'
|
39
|
+
Connection:
|
40
|
+
- Keep-Alive
|
41
|
+
body:
|
42
|
+
encoding: UTF-8
|
43
|
+
string: '{"results":[{"id":1,"title":"Google","countries":[{"id":1,"location":"USA","search_engine_id":1}]}]}'
|
44
|
+
http_version:
|
45
|
+
recorded_at: Tue, 24 Feb 2015 06:25:43 GMT
|
46
|
+
recorded_with: VCR 2.9.3
|
@@ -0,0 +1,46 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: http://localhost:5055/api/v1/search_engines?token=123
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
Accept:
|
11
|
+
- "*/*; q=0.5, application/xml"
|
12
|
+
Accept-Encoding:
|
13
|
+
- gzip, deflate
|
14
|
+
User-Agent:
|
15
|
+
- Ruby
|
16
|
+
response:
|
17
|
+
status:
|
18
|
+
code: 200
|
19
|
+
message: 'OK '
|
20
|
+
headers:
|
21
|
+
Content-Type:
|
22
|
+
- application/json; charset=utf-8
|
23
|
+
X-Ua-Compatible:
|
24
|
+
- IE=Edge
|
25
|
+
Etag:
|
26
|
+
- '"32c92eaf9e1ae3568c10f3ce8bae4a16"'
|
27
|
+
Cache-Control:
|
28
|
+
- max-age=0, private, must-revalidate
|
29
|
+
X-Request-Id:
|
30
|
+
- 6084349191dfd9b13ac3b318c59b95cd
|
31
|
+
X-Runtime:
|
32
|
+
- '0.061687'
|
33
|
+
Server:
|
34
|
+
- WEBrick/1.3.1 (Ruby/1.9.3/2013-01-15)
|
35
|
+
Date:
|
36
|
+
- Sun, 22 Feb 2015 20:41:42 GMT
|
37
|
+
Content-Length:
|
38
|
+
- '100'
|
39
|
+
Connection:
|
40
|
+
- Keep-Alive
|
41
|
+
body:
|
42
|
+
encoding: UTF-8
|
43
|
+
string: '{"results":[{"id":1,"title":"Google","countries":[{"id":1,"location":"USA","search_engine_id":1}]}]}'
|
44
|
+
http_version:
|
45
|
+
recorded_at: Sun, 22 Feb 2015 20:41:42 GMT
|
46
|
+
recorded_with: VCR 2.9.3
|
data/spec/fixtures/vcr_cassettes/Serpscan_Website/create_keyword/should_return_a_keyword_object.yml
ADDED
@@ -0,0 +1,96 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: http://localhost:5055/api/v1/websites/1?token=123
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
Accept:
|
11
|
+
- "*/*; q=0.5, application/xml"
|
12
|
+
Accept-Encoding:
|
13
|
+
- gzip, deflate
|
14
|
+
User-Agent:
|
15
|
+
- Ruby
|
16
|
+
response:
|
17
|
+
status:
|
18
|
+
code: 200
|
19
|
+
message: 'OK '
|
20
|
+
headers:
|
21
|
+
Content-Type:
|
22
|
+
- application/json; charset=utf-8
|
23
|
+
X-Ua-Compatible:
|
24
|
+
- IE=Edge
|
25
|
+
Etag:
|
26
|
+
- '"c959b5255215b9b0a60282ec6a65f51d"'
|
27
|
+
Cache-Control:
|
28
|
+
- max-age=0, private, must-revalidate
|
29
|
+
X-Request-Id:
|
30
|
+
- 4c717fc2c65ebcddc46f8c3131f446ff
|
31
|
+
X-Runtime:
|
32
|
+
- '0.022719'
|
33
|
+
Server:
|
34
|
+
- WEBrick/1.3.1 (Ruby/1.9.3/2013-01-15)
|
35
|
+
Date:
|
36
|
+
- Sun, 22 Feb 2015 21:26:07 GMT
|
37
|
+
Content-Length:
|
38
|
+
- '28'
|
39
|
+
Connection:
|
40
|
+
- Keep-Alive
|
41
|
+
body:
|
42
|
+
encoding: UTF-8
|
43
|
+
string: '{"id":1,"url":"example.com"}'
|
44
|
+
http_version:
|
45
|
+
recorded_at: Sun, 22 Feb 2015 21:26:07 GMT
|
46
|
+
- request:
|
47
|
+
method: post
|
48
|
+
uri: http://localhost:5055/api/v1/keywords?keyword%5Bphrase%5D=new%20keyword&keyword%5Bwebsite_id%5D=1&token=123
|
49
|
+
body:
|
50
|
+
encoding: UTF-8
|
51
|
+
string: '{"keyword":{"phrase":"new keyword","website_id":1}}'
|
52
|
+
headers:
|
53
|
+
Accept:
|
54
|
+
- "*/*; q=0.5, application/xml"
|
55
|
+
Accept-Encoding:
|
56
|
+
- gzip, deflate
|
57
|
+
Content-Length:
|
58
|
+
- '51'
|
59
|
+
User-Agent:
|
60
|
+
- Ruby
|
61
|
+
response:
|
62
|
+
status:
|
63
|
+
code: 201
|
64
|
+
message: 'Created '
|
65
|
+
headers:
|
66
|
+
Content-Type:
|
67
|
+
- application/json; charset=utf-8
|
68
|
+
X-Ua-Compatible:
|
69
|
+
- IE=Edge
|
70
|
+
Etag:
|
71
|
+
- '"bdf4ef2089d02e9a52a59ccfa7b3499e"'
|
72
|
+
Cache-Control:
|
73
|
+
- max-age=0, private, must-revalidate
|
74
|
+
X-Request-Id:
|
75
|
+
- aec48d9577adfcc69cd7a907303f2b28
|
76
|
+
X-Runtime:
|
77
|
+
- '0.064045'
|
78
|
+
Server:
|
79
|
+
- WEBrick/1.3.1 (Ruby/1.9.3/2013-01-15)
|
80
|
+
Date:
|
81
|
+
- Sun, 22 Feb 2015 21:26:07 GMT
|
82
|
+
Content-Length:
|
83
|
+
- '420'
|
84
|
+
Connection:
|
85
|
+
- Keep-Alive
|
86
|
+
Set-Cookie:
|
87
|
+
- _serps_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFRkkiJTUzYzMwMTI5ZTc5ZTNhMGJjNjE0ZjQxMTFmOGUwYmQyBjsAVA%3D%3D--0fdb66a13fc7cc2c5d19fef5add5ce13692479a7;
|
88
|
+
path=/; HttpOnly
|
89
|
+
body:
|
90
|
+
encoding: UTF-8
|
91
|
+
string: '{"website_id":null,"page":null,"total_pages":null,"results":[{"id":9,"phrase":"new
|
92
|
+
keyword","current_rank":null,"initial_rank":null,"day_change":null,"week_change":null,"alltime_change":"_","search_volume":null,"search_engine_country_id":1}],"id":9,"phrase":"new
|
93
|
+
keyword","current_rank":null,"initial_rank":null,"day_change":null,"week_change":null,"alltime_change":"_","search_volume":null,"search_engine_country_id":1}'
|
94
|
+
http_version:
|
95
|
+
recorded_at: Sun, 22 Feb 2015 21:26:07 GMT
|
96
|
+
recorded_with: VCR 2.9.3
|
@@ -0,0 +1,51 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: http://localhost:5055/api/v1/websites?token=123&website%5Burl%5D=example-website.com
|
6
|
+
body:
|
7
|
+
encoding: UTF-8
|
8
|
+
string: '{"website":{"url":"example-website.com"}}'
|
9
|
+
headers:
|
10
|
+
Accept:
|
11
|
+
- "*/*; q=0.5, application/xml"
|
12
|
+
Accept-Encoding:
|
13
|
+
- gzip, deflate
|
14
|
+
Content-Length:
|
15
|
+
- '41'
|
16
|
+
User-Agent:
|
17
|
+
- Ruby
|
18
|
+
response:
|
19
|
+
status:
|
20
|
+
code: 201
|
21
|
+
message: 'Created '
|
22
|
+
headers:
|
23
|
+
Content-Type:
|
24
|
+
- application/json; charset=utf-8
|
25
|
+
X-Ua-Compatible:
|
26
|
+
- IE=Edge
|
27
|
+
Etag:
|
28
|
+
- '"cb0620dfa50f8c4e40e50bb022cb58fd"'
|
29
|
+
Cache-Control:
|
30
|
+
- max-age=0, private, must-revalidate
|
31
|
+
X-Request-Id:
|
32
|
+
- 4971dad8b521774ac6255c26663344eb
|
33
|
+
X-Runtime:
|
34
|
+
- '0.177275'
|
35
|
+
Server:
|
36
|
+
- WEBrick/1.3.1 (Ruby/1.9.3/2013-01-15)
|
37
|
+
Date:
|
38
|
+
- Sun, 22 Feb 2015 20:41:42 GMT
|
39
|
+
Content-Length:
|
40
|
+
- '36'
|
41
|
+
Connection:
|
42
|
+
- Keep-Alive
|
43
|
+
Set-Cookie:
|
44
|
+
- _serps_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFRkkiJTA0NjE1MTE3YzYwYjIzNmNhZmUxNjE5Yzc3YzgwNjVkBjsAVA%3D%3D--be6f4e2644285c9687c1027e0728731407c21855;
|
45
|
+
path=/; HttpOnly
|
46
|
+
body:
|
47
|
+
encoding: UTF-8
|
48
|
+
string: '{"id":2,"url":"example-website.com"}'
|
49
|
+
http_version:
|
50
|
+
recorded_at: Sun, 22 Feb 2015 20:41:42 GMT
|
51
|
+
recorded_with: VCR 2.9.3
|
@@ -0,0 +1,86 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: http://localhost:5055/api/v1/websites/2?token=123
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
Accept:
|
11
|
+
- "*/*; q=0.5, application/xml"
|
12
|
+
Accept-Encoding:
|
13
|
+
- gzip, deflate
|
14
|
+
User-Agent:
|
15
|
+
- Ruby
|
16
|
+
response:
|
17
|
+
status:
|
18
|
+
code: 200
|
19
|
+
message: 'OK '
|
20
|
+
headers:
|
21
|
+
Content-Type:
|
22
|
+
- application/json; charset=utf-8
|
23
|
+
X-Ua-Compatible:
|
24
|
+
- IE=Edge
|
25
|
+
Etag:
|
26
|
+
- '"cb0620dfa50f8c4e40e50bb022cb58fd"'
|
27
|
+
Cache-Control:
|
28
|
+
- max-age=0, private, must-revalidate
|
29
|
+
X-Request-Id:
|
30
|
+
- 8922cbff9ae33e9e4cc9da1f50f2651c
|
31
|
+
X-Runtime:
|
32
|
+
- '0.023296'
|
33
|
+
Server:
|
34
|
+
- WEBrick/1.3.1 (Ruby/1.9.3/2013-01-15)
|
35
|
+
Date:
|
36
|
+
- Sun, 22 Feb 2015 20:41:42 GMT
|
37
|
+
Content-Length:
|
38
|
+
- '36'
|
39
|
+
Connection:
|
40
|
+
- Keep-Alive
|
41
|
+
body:
|
42
|
+
encoding: UTF-8
|
43
|
+
string: '{"id":2,"url":"example-website.com"}'
|
44
|
+
http_version:
|
45
|
+
recorded_at: Sun, 22 Feb 2015 20:41:42 GMT
|
46
|
+
- request:
|
47
|
+
method: delete
|
48
|
+
uri: http://localhost:5055/api/v1/websites/2?token=123
|
49
|
+
body:
|
50
|
+
encoding: US-ASCII
|
51
|
+
string: ''
|
52
|
+
headers:
|
53
|
+
Accept:
|
54
|
+
- "*/*; q=0.5, application/xml"
|
55
|
+
Accept-Encoding:
|
56
|
+
- gzip, deflate
|
57
|
+
User-Agent:
|
58
|
+
- Ruby
|
59
|
+
response:
|
60
|
+
status:
|
61
|
+
code: 204
|
62
|
+
message: 'No Content '
|
63
|
+
headers:
|
64
|
+
X-Ua-Compatible:
|
65
|
+
- IE=Edge
|
66
|
+
Cache-Control:
|
67
|
+
- no-cache
|
68
|
+
X-Request-Id:
|
69
|
+
- 980183b5f2ebcd003d7234eb4d27fffd
|
70
|
+
X-Runtime:
|
71
|
+
- '0.123777'
|
72
|
+
Server:
|
73
|
+
- WEBrick/1.3.1 (Ruby/1.9.3/2013-01-15)
|
74
|
+
Date:
|
75
|
+
- Sun, 22 Feb 2015 20:41:42 GMT
|
76
|
+
Connection:
|
77
|
+
- close
|
78
|
+
Set-Cookie:
|
79
|
+
- _serps_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFRkkiJTU3ZDkyODMxZjVkMjU1MDgwZDVlNGVhMGFmYWRhMmUwBjsAVA%3D%3D--63979569eb863084ffc0c18f178ab3475f770c19;
|
80
|
+
path=/; HttpOnly
|
81
|
+
body:
|
82
|
+
encoding: UTF-8
|
83
|
+
string: ''
|
84
|
+
http_version:
|
85
|
+
recorded_at: Sun, 22 Feb 2015 20:41:42 GMT
|
86
|
+
recorded_with: VCR 2.9.3
|