localwiki_client 0.1.0 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (40) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +2 -0
  3. data/.travis.yml +2 -1
  4. data/History.txt +11 -0
  5. data/README.md +33 -0
  6. data/Rakefile +19 -2
  7. data/integration/helper.rb +9 -0
  8. data/{spec/integration → integration}/live_saltlake_wiki_spec.rb +2 -2
  9. data/integration/live_test_wiki_spec.rb +47 -0
  10. data/lib/localwiki/client.rb +131 -38
  11. data/lib/localwiki/version.rb +1 -1
  12. data/localwiki_client.gemspec +6 -2
  13. data/spec/basic_crud_spec.rb +67 -0
  14. data/spec/basic_spec.rb +34 -0
  15. data/spec/fetch_version_spec.rb +43 -0
  16. data/spec/fixtures/cassettes/basic.yml +91 -0
  17. data/spec/fixtures/cassettes/basic_crud.yml +90 -0
  18. data/spec/fixtures/cassettes/basic_crud_delete_fail.yml +42 -0
  19. data/spec/fixtures/cassettes/basic_crud_delete_success.yml +42 -0
  20. data/spec/fixtures/cassettes/basic_crud_read_fail.yml +52 -0
  21. data/spec/fixtures/cassettes/basic_crud_read_success.yml +40 -0
  22. data/spec/fixtures/cassettes/basic_crud_update_success.yml +42 -0
  23. data/spec/fixtures/cassettes/basic_fetch_version_success.yml +130 -0
  24. data/spec/fixtures/cassettes/basic_page_by_name_spaces.yml +41 -0
  25. data/spec/fixtures/cassettes/basic_unique_authors_success.yml +130 -0
  26. data/spec/fixtures/cassettes/fetch.yml +46 -0
  27. data/spec/fixtures/cassettes/localwiki_client.yml +366 -0
  28. data/spec/fixtures/cassettes/slug.yml +46 -0
  29. data/spec/helper.rb +15 -3
  30. data/spec/localwiki_client_spec.rb +31 -25
  31. data/spec/slug_spec.rb +26 -0
  32. metadata +100 -61
  33. data/localwiki_client-0.0.4.gem +0 -0
  34. data/spec/data/page_fetch.json +0 -9
  35. data/spec/data/site_fetch.json +0 -10
  36. data/spec/data/site_list.json +0 -18
  37. data/spec/data/user_list.json +0 -49
  38. data/spec/page_spec.rb +0 -41
  39. data/spec/site_spec.rb +0 -48
  40. data/spec/user_spec.rb +0 -41
@@ -0,0 +1,91 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: http://ec2-54-234-151-52.compute-1.amazonaws.com/api/site/1?format=json
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ Accept-Encoding:
11
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
12
+ Accept:
13
+ - ! '*/*'
14
+ User-Agent:
15
+ - Ruby
16
+ response:
17
+ status:
18
+ code: 200
19
+ message: OK
20
+ headers:
21
+ Date:
22
+ - Sat, 16 Mar 2013 01:07:51 GMT
23
+ Server:
24
+ - Apache/2.2.22 (Ubuntu)
25
+ Access-Control-Allow-Origin:
26
+ - ! '*'
27
+ Access-Control-Allow-Methods:
28
+ - POST,GET,OPTIONS,PUT,DELETE
29
+ Transfer-Encoding:
30
+ - chunked
31
+ Content-Type:
32
+ - application/vnd.api.v1+json; charset=utf-8
33
+ body:
34
+ encoding: US-ASCII
35
+ string: ! '{"domain": "example.com", "id": 1, "language_code": "en-us", "license":
36
+ "<p>Except where otherwise noted, this content is licensed under a <a rel=\"license\"
37
+ href=\"http://creativecommons.org/licenses/by/3.0/\">Creative Commons Attribution
38
+ License</a>. See <a href=\"/Copyrights\">Copyrights.</p>", "name": "example.com",
39
+ "resource_uri": "/api/site/1", "signup_tos": "I agree to release my contributions
40
+ under the <a rel=\"license\" href=\"http://creativecommons.org/licenses/by/3.0/\"
41
+ target=\"_blank\">Creative Commons-By license</a>, unless noted otherwise.
42
+ See <a href=\"/Copyrights\" target=\"_blank\">Copyrights</a>.", "time_zone":
43
+ "America/Chicago"}'
44
+ http_version:
45
+ recorded_at: Sat, 16 Mar 2013 01:07:20 GMT
46
+ - request:
47
+ method: post
48
+ uri: http://ec2-54-234-151-52.compute-1.amazonaws.com/api/page/
49
+ body:
50
+ encoding: UTF-8
51
+ string: ! '{"name":"Test Page0c230d1d-7442-42f2-bbc9-e2768c5a562e","content":"<p>Created
52
+ page with spaces!</p>"}'
53
+ headers:
54
+ Content-Type:
55
+ - application/json
56
+ Authorization:
57
+ - ApiKey testuser:key
58
+ Accept:
59
+ - ! '*/*'
60
+ User-Agent:
61
+ - Ruby
62
+ response:
63
+ status:
64
+ code: 201
65
+ message: CREATED
66
+ headers:
67
+ Date:
68
+ - Sat, 16 Mar 2013 01:07:51 GMT
69
+ Server:
70
+ - Apache/2.2.22 (Ubuntu)
71
+ Vary:
72
+ - Cookie,Accept-Encoding
73
+ Access-Control-Allow-Origin:
74
+ - ! '*'
75
+ Access-Control-Allow-Methods:
76
+ - POST,GET,OPTIONS,PUT,DELETE
77
+ Set-Cookie:
78
+ - sessionid=c8e100346799ef6074dec276b229bac1; expires=Sat, 30-Mar-2013 01:07:52
79
+ GMT; Max-Age=1209600; Path=/
80
+ Location:
81
+ - http://ec2-54-234-151-52.compute-1.amazonaws.com/api/page/Test_Page0c230d1d-7442-42f2-bbc9-e2768c5a562e
82
+ Content-Length:
83
+ - '0'
84
+ Content-Type:
85
+ - text/html; charset=utf-8
86
+ body:
87
+ encoding: US-ASCII
88
+ string: ''
89
+ http_version:
90
+ recorded_at: Sat, 16 Mar 2013 01:07:21 GMT
91
+ recorded_with: VCR 2.4.0
@@ -0,0 +1,90 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: http://ec2-54-234-151-52.compute-1.amazonaws.com/api/site/1?format=json
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ Accept-Encoding:
11
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
12
+ Accept:
13
+ - ! '*/*'
14
+ User-Agent:
15
+ - Ruby
16
+ response:
17
+ status:
18
+ code: 200
19
+ message: OK
20
+ headers:
21
+ Date:
22
+ - Sat, 16 Mar 2013 01:07:50 GMT
23
+ Server:
24
+ - Apache/2.2.22 (Ubuntu)
25
+ Access-Control-Allow-Origin:
26
+ - ! '*'
27
+ Access-Control-Allow-Methods:
28
+ - POST,GET,OPTIONS,PUT,DELETE
29
+ Transfer-Encoding:
30
+ - chunked
31
+ Content-Type:
32
+ - application/vnd.api.v1+json; charset=utf-8
33
+ body:
34
+ encoding: US-ASCII
35
+ string: ! '{"domain": "example.com", "id": 1, "language_code": "en-us", "license":
36
+ "<p>Except where otherwise noted, this content is licensed under a <a rel=\"license\"
37
+ href=\"http://creativecommons.org/licenses/by/3.0/\">Creative Commons Attribution
38
+ License</a>. See <a href=\"/Copyrights\">Copyrights.</p>", "name": "example.com",
39
+ "resource_uri": "/api/site/1", "signup_tos": "I agree to release my contributions
40
+ under the <a rel=\"license\" href=\"http://creativecommons.org/licenses/by/3.0/\"
41
+ target=\"_blank\">Creative Commons-By license</a>, unless noted otherwise.
42
+ See <a href=\"/Copyrights\" target=\"_blank\">Copyrights</a>.", "time_zone":
43
+ "America/Chicago"}'
44
+ http_version:
45
+ recorded_at: Sat, 16 Mar 2013 01:07:19 GMT
46
+ - request:
47
+ method: post
48
+ uri: http://ec2-54-234-151-52.compute-1.amazonaws.com/api/page/
49
+ body:
50
+ encoding: UTF-8
51
+ string: ! '{"name":"TestPage533b1957-d395-4edf-81a6-f38a60f1459c","content":"<p>Created!</p>"}'
52
+ headers:
53
+ Content-Type:
54
+ - application/json
55
+ Authorization:
56
+ - ApiKey testuser:key
57
+ Accept:
58
+ - ! '*/*'
59
+ User-Agent:
60
+ - Ruby
61
+ response:
62
+ status:
63
+ code: 201
64
+ message: CREATED
65
+ headers:
66
+ Date:
67
+ - Sat, 16 Mar 2013 01:07:50 GMT
68
+ Server:
69
+ - Apache/2.2.22 (Ubuntu)
70
+ Vary:
71
+ - Cookie,Accept-Encoding
72
+ Access-Control-Allow-Origin:
73
+ - ! '*'
74
+ Access-Control-Allow-Methods:
75
+ - POST,GET,OPTIONS,PUT,DELETE
76
+ Set-Cookie:
77
+ - sessionid=e6ca591c90fc5bb8964c53dd2e6436eb; expires=Sat, 30-Mar-2013 01:07:50
78
+ GMT; Max-Age=1209600; Path=/
79
+ Location:
80
+ - http://ec2-54-234-151-52.compute-1.amazonaws.com/api/page/TestPage533b1957-d395-4edf-81a6-f38a60f1459c
81
+ Content-Length:
82
+ - '0'
83
+ Content-Type:
84
+ - text/html; charset=utf-8
85
+ body:
86
+ encoding: US-ASCII
87
+ string: ''
88
+ http_version:
89
+ recorded_at: Sat, 16 Mar 2013 01:07:19 GMT
90
+ recorded_with: VCR 2.4.0
@@ -0,0 +1,42 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: delete
5
+ uri: http://ec2-54-234-151-52.compute-1.amazonaws.com/api/page/TestPage506da7d1-4cb8-4aa1-bc50-455e7ed8ef02
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ Content-Type:
11
+ - application/json
12
+ Authorization:
13
+ - ApiKey testuser:key
14
+ Accept:
15
+ - ! '*/*'
16
+ User-Agent:
17
+ - Ruby
18
+ response:
19
+ status:
20
+ code: 404
21
+ message: NOT FOUND
22
+ headers:
23
+ Date:
24
+ - Sat, 16 Mar 2013 01:17:55 GMT
25
+ Server:
26
+ - Apache/2.2.22 (Ubuntu)
27
+ Access-Control-Allow-Origin:
28
+ - ! '*'
29
+ Access-Control-Allow-Methods:
30
+ - POST,GET,OPTIONS,PUT,DELETE
31
+ Vary:
32
+ - Accept-Encoding
33
+ Content-Length:
34
+ - '0'
35
+ Content-Type:
36
+ - text/html; charset=utf-8
37
+ body:
38
+ encoding: US-ASCII
39
+ string: ''
40
+ http_version:
41
+ recorded_at: Sat, 16 Mar 2013 01:17:24 GMT
42
+ recorded_with: VCR 2.4.0
@@ -0,0 +1,42 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: delete
5
+ uri: http://ec2-54-234-151-52.compute-1.amazonaws.com/api/page/TestPage533b1957-d395-4edf-81a6-f38a60f1459c
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ Content-Type:
11
+ - application/json
12
+ Authorization:
13
+ - ApiKey testuser:key
14
+ Accept:
15
+ - ! '*/*'
16
+ User-Agent:
17
+ - Ruby
18
+ response:
19
+ status:
20
+ code: 204
21
+ message: NO CONTENT
22
+ headers:
23
+ Date:
24
+ - Sat, 16 Mar 2013 01:07:51 GMT
25
+ Server:
26
+ - Apache/2.2.22 (Ubuntu)
27
+ Access-Control-Allow-Origin:
28
+ - ! '*'
29
+ Access-Control-Allow-Methods:
30
+ - POST,GET,OPTIONS,PUT,DELETE
31
+ Content-Length:
32
+ - '0'
33
+ Vary:
34
+ - Accept-Encoding
35
+ Content-Type:
36
+ - text/html; charset=utf-8
37
+ body:
38
+ encoding: US-ASCII
39
+ string: ''
40
+ http_version:
41
+ recorded_at: Sat, 16 Mar 2013 01:07:20 GMT
42
+ recorded_with: VCR 2.4.0
@@ -0,0 +1,52 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: http://ec2-54-234-151-52.compute-1.amazonaws.com/api/page/TestPage506da7d1-4cb8-4aa1-bc50-455e7ed8ef02?format=json
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ Accept-Encoding:
11
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
12
+ Accept:
13
+ - ! '*/*'
14
+ User-Agent:
15
+ - Ruby
16
+ response:
17
+ status:
18
+ code: 404
19
+ message: !binary |-
20
+ Tk9UIEZPVU5E
21
+ headers:
22
+ !binary "RGF0ZQ==":
23
+ - !binary |-
24
+ U2F0LCAxNiBNYXIgMjAxMyAwMToxNzo1NSBHTVQ=
25
+ !binary "U2VydmVy":
26
+ - !binary |-
27
+ QXBhY2hlLzIuMi4yMiAoVWJ1bnR1KQ==
28
+ !binary "QWNjZXNzLUNvbnRyb2wtQWxsb3ctT3JpZ2lu":
29
+ - !binary |-
30
+ Kg==
31
+ !binary "QWNjZXNzLUNvbnRyb2wtQWxsb3ctTWV0aG9kcw==":
32
+ - !binary |-
33
+ UE9TVCxHRVQsT1BUSU9OUyxQVVQsREVMRVRF
34
+ !binary "VmFyeQ==":
35
+ - !binary |-
36
+ QWNjZXB0LUVuY29kaW5n
37
+ !binary "Q29udGVudC1FbmNvZGluZw==":
38
+ - !binary |-
39
+ Z3ppcA==
40
+ !binary "Q29udGVudC1MZW5ndGg=":
41
+ - !binary |-
42
+ MjA=
43
+ !binary "Q29udGVudC1UeXBl":
44
+ - !binary |-
45
+ dGV4dC9odG1sOyBjaGFyc2V0PXV0Zi04
46
+ body:
47
+ encoding: ASCII-8BIT
48
+ string: !binary |-
49
+ H4sIAAAAAAAAAwMAAAAAAAAAAAA=
50
+ http_version:
51
+ recorded_at: Sat, 16 Mar 2013 01:17:24 GMT
52
+ recorded_with: VCR 2.4.0
@@ -0,0 +1,40 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: http://ec2-54-234-151-52.compute-1.amazonaws.com/api/page/TestPage533b1957-d395-4edf-81a6-f38a60f1459c?format=json
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ Accept-Encoding:
11
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
12
+ Accept:
13
+ - ! '*/*'
14
+ User-Agent:
15
+ - Ruby
16
+ response:
17
+ status:
18
+ code: 200
19
+ message: OK
20
+ headers:
21
+ Date:
22
+ - Sat, 16 Mar 2013 01:07:50 GMT
23
+ Server:
24
+ - Apache/2.2.22 (Ubuntu)
25
+ Access-Control-Allow-Origin:
26
+ - ! '*'
27
+ Access-Control-Allow-Methods:
28
+ - POST,GET,OPTIONS,PUT,DELETE
29
+ Transfer-Encoding:
30
+ - chunked
31
+ Content-Type:
32
+ - application/vnd.api.v1+json; charset=utf-8
33
+ body:
34
+ encoding: US-ASCII
35
+ string: ! '{"content": "<p>Created!</p>", "id": 254, "map": null, "name": "TestPage533b1957-d395-4edf-81a6-f38a60f1459c",
36
+ "page_tags": null, "resource_uri": "/api/page/TestPage533b1957-d395-4edf-81a6-f38a60f1459c",
37
+ "slug": "testpage533b1957-d395-4edf-81a6-f38a60f1459c"}'
38
+ http_version:
39
+ recorded_at: Sat, 16 Mar 2013 01:07:19 GMT
40
+ recorded_with: VCR 2.4.0
@@ -0,0 +1,42 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: put
5
+ uri: http://ec2-54-234-151-52.compute-1.amazonaws.com/api/page/TestPage533b1957-d395-4edf-81a6-f38a60f1459c
6
+ body:
7
+ encoding: UTF-8
8
+ string: ! '{"content":"<foo>"}'
9
+ headers:
10
+ Content-Type:
11
+ - application/json
12
+ Authorization:
13
+ - ApiKey testuser:key
14
+ Accept:
15
+ - ! '*/*'
16
+ User-Agent:
17
+ - Ruby
18
+ response:
19
+ status:
20
+ code: 204
21
+ message: NO CONTENT
22
+ headers:
23
+ Date:
24
+ - Sat, 16 Mar 2013 01:07:50 GMT
25
+ Server:
26
+ - Apache/2.2.22 (Ubuntu)
27
+ Access-Control-Allow-Origin:
28
+ - ! '*'
29
+ Access-Control-Allow-Methods:
30
+ - POST,GET,OPTIONS,PUT,DELETE
31
+ Content-Length:
32
+ - '0'
33
+ Vary:
34
+ - Accept-Encoding
35
+ Content-Type:
36
+ - text/html; charset=utf-8
37
+ body:
38
+ encoding: US-ASCII
39
+ string: ''
40
+ http_version:
41
+ recorded_at: Sat, 16 Mar 2013 01:07:20 GMT
42
+ recorded_with: VCR 2.4.0
@@ -0,0 +1,130 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: http://ec2-54-234-151-52.compute-1.amazonaws.com/api/page/
6
+ body:
7
+ encoding: UTF-8
8
+ string: ! '{"name":"TestPagec741d8ca-a27c-44b4-a77e-9539688a2695","content":"<p>Created!</p>"}'
9
+ headers:
10
+ Content-Type:
11
+ - application/json
12
+ Authorization:
13
+ - ApiKey testuser:key
14
+ Accept:
15
+ - ! '*/*'
16
+ User-Agent:
17
+ - Ruby
18
+ response:
19
+ status:
20
+ code: 201
21
+ message: CREATED
22
+ headers:
23
+ Date:
24
+ - Sat, 16 Mar 2013 05:14:51 GMT
25
+ Server:
26
+ - Apache/2.2.22 (Ubuntu)
27
+ Vary:
28
+ - Cookie,Accept-Encoding
29
+ Access-Control-Allow-Origin:
30
+ - ! '*'
31
+ Access-Control-Allow-Methods:
32
+ - POST,GET,OPTIONS,PUT,DELETE
33
+ Set-Cookie:
34
+ - sessionid=78e682d36fda5707c22f0c1cf3acf820; expires=Sat, 30-Mar-2013 05:14:51
35
+ GMT; Max-Age=1209600; Path=/
36
+ Location:
37
+ - http://ec2-54-234-151-52.compute-1.amazonaws.com/api/page/TestPagec741d8ca-a27c-44b4-a77e-9539688a2695
38
+ Content-Length:
39
+ - '0'
40
+ Content-Type:
41
+ - text/html; charset=utf-8
42
+ body:
43
+ encoding: US-ASCII
44
+ string: ''
45
+ http_version:
46
+ recorded_at: Sat, 16 Mar 2013 05:14:20 GMT
47
+ - request:
48
+ method: put
49
+ uri: http://ec2-54-234-151-52.compute-1.amazonaws.com/api/page/TestPagec741d8ca-a27c-44b4-a77e-9539688a2695
50
+ body:
51
+ encoding: UTF-8
52
+ string: ! '{"content":"<p>foo</p>"}'
53
+ headers:
54
+ Content-Type:
55
+ - application/json
56
+ Authorization:
57
+ - ApiKey testuser:key
58
+ Accept:
59
+ - ! '*/*'
60
+ User-Agent:
61
+ - Ruby
62
+ response:
63
+ status:
64
+ code: 204
65
+ message: NO CONTENT
66
+ headers:
67
+ Date:
68
+ - Sat, 16 Mar 2013 05:14:51 GMT
69
+ Server:
70
+ - Apache/2.2.22 (Ubuntu)
71
+ Access-Control-Allow-Origin:
72
+ - ! '*'
73
+ Access-Control-Allow-Methods:
74
+ - POST,GET,OPTIONS,PUT,DELETE
75
+ Content-Length:
76
+ - '0'
77
+ Vary:
78
+ - Accept-Encoding
79
+ Content-Type:
80
+ - text/html; charset=utf-8
81
+ body:
82
+ encoding: US-ASCII
83
+ string: ''
84
+ http_version:
85
+ recorded_at: Sat, 16 Mar 2013 05:14:20 GMT
86
+ - request:
87
+ method: get
88
+ uri: http://ec2-54-234-151-52.compute-1.amazonaws.com/api/page_version?format=json&name=TestPagec741d8ca-a27c-44b4-a77e-9539688a2695
89
+ body:
90
+ encoding: US-ASCII
91
+ string: ''
92
+ headers:
93
+ Accept-Encoding:
94
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
95
+ Accept:
96
+ - ! '*/*'
97
+ User-Agent:
98
+ - Ruby
99
+ response:
100
+ status:
101
+ code: 200
102
+ message: OK
103
+ headers:
104
+ Date:
105
+ - Sat, 16 Mar 2013 05:14:51 GMT
106
+ Server:
107
+ - Apache/2.2.22 (Ubuntu)
108
+ Access-Control-Allow-Origin:
109
+ - ! '*'
110
+ Access-Control-Allow-Methods:
111
+ - POST,GET,OPTIONS,PUT,DELETE
112
+ Transfer-Encoding:
113
+ - chunked
114
+ Content-Type:
115
+ - application/vnd.api.v1+json; charset=utf-8
116
+ body:
117
+ encoding: US-ASCII
118
+ string: ! '{"meta": {"limit": 20, "next": null, "offset": 0, "previous": null,
119
+ "total_count": 2}, "objects": [{"content": "<p>foo</p>", "history_comment":
120
+ null, "history_date": "2013-03-16T00:14:51.669749", "history_id": 718, "history_type":
121
+ 1, "history_user": "/api/user/2", "history_user_ip": "70.89.154.169", "id":
122
+ 285, "name": "TestPagec741d8ca-a27c-44b4-a77e-9539688a2695", "resource_uri":
123
+ "/api/page_version/718", "slug": "testpagec741d8ca-a27c-44b4-a77e-9539688a2695"},
124
+ {"content": "<p>Created!</p>", "history_comment": null, "history_date": "2013-03-16T00:14:51.249885",
125
+ "history_id": 717, "history_type": 0, "history_user": "/api/user/2", "history_user_ip":
126
+ "70.89.154.169", "id": 285, "name": "TestPagec741d8ca-a27c-44b4-a77e-9539688a2695",
127
+ "resource_uri": "/api/page_version/717", "slug": "testpagec741d8ca-a27c-44b4-a77e-9539688a2695"}]}'
128
+ http_version:
129
+ recorded_at: Sat, 16 Mar 2013 05:14:21 GMT
130
+ recorded_with: VCR 2.4.0
@@ -0,0 +1,41 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: http://ec2-54-234-151-52.compute-1.amazonaws.com/api/page/Test_Page0c230d1d-7442-42f2-bbc9-e2768c5a562e?format=json
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ Accept-Encoding:
11
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
12
+ Accept:
13
+ - ! '*/*'
14
+ User-Agent:
15
+ - Ruby
16
+ response:
17
+ status:
18
+ code: 200
19
+ message: OK
20
+ headers:
21
+ Date:
22
+ - Sat, 16 Mar 2013 01:07:52 GMT
23
+ Server:
24
+ - Apache/2.2.22 (Ubuntu)
25
+ Access-Control-Allow-Origin:
26
+ - ! '*'
27
+ Access-Control-Allow-Methods:
28
+ - POST,GET,OPTIONS,PUT,DELETE
29
+ Transfer-Encoding:
30
+ - chunked
31
+ Content-Type:
32
+ - application/vnd.api.v1+json; charset=utf-8
33
+ body:
34
+ encoding: US-ASCII
35
+ string: ! '{"content": "<p>Created page with spaces!</p>", "id": 255, "map":
36
+ null, "name": "Test Page0c230d1d-7442-42f2-bbc9-e2768c5a562e", "page_tags":
37
+ null, "resource_uri": "/api/page/Test_Page0c230d1d-7442-42f2-bbc9-e2768c5a562e",
38
+ "slug": "test page0c230d1d-7442-42f2-bbc9-e2768c5a562e"}'
39
+ http_version:
40
+ recorded_at: Sat, 16 Mar 2013 01:07:21 GMT
41
+ recorded_with: VCR 2.4.0