localwiki_client 0.2.0 → 0.3.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 +4 -4
- data/.gitignore +2 -1
- data/History.txt +5 -0
- data/README.md +17 -9
- data/Rakefile +6 -0
- data/integration/helper.rb +1 -1
- data/integration/live_saltlake_wiki_spec.rb +2 -2
- data/integration/live_test_wiki_spec.rb +26 -11
- data/lib/localwiki/client.rb +143 -115
- data/lib/localwiki/resource.rb +76 -0
- data/lib/localwiki/version.rb +1 -1
- data/lib/localwiki_client.rb +1 -0
- data/localwiki_client.gemspec +1 -0
- data/spec/basic_crud_spec.rb +12 -5
- data/spec/basic_spec.rb +2 -2
- data/spec/fixtures/cassettes/basic.yml +21 -19
- data/spec/fixtures/cassettes/basic_crud.yml +21 -19
- data/spec/fixtures/cassettes/basic_crud_delete_fail.yml +11 -9
- data/spec/fixtures/cassettes/basic_crud_delete_success.yml +10 -8
- data/spec/fixtures/cassettes/basic_crud_page_by_name_success.yml +40 -0
- data/spec/fixtures/cassettes/basic_crud_read_fail.yml +22 -34
- data/spec/fixtures/cassettes/basic_crud_read_success.yml +11 -11
- data/spec/fixtures/cassettes/basic_crud_update_success.yml +11 -9
- data/spec/fixtures/cassettes/basic_fetch_version_success.yml +41 -37
- data/spec/fixtures/cassettes/basic_page_by_name_spaces.yml +12 -12
- data/spec/fixtures/cassettes/basic_unique_authors_success.yml +41 -37
- data/spec/fixtures/cassettes/fetch.yml +8 -8
- data/spec/fixtures/cassettes/list.yml +93 -0
- data/spec/fixtures/cassettes/list_file_success.yml +40 -0
- data/spec/fixtures/cassettes/list_limit_success.yml +124 -0
- data/spec/fixtures/cassettes/list_map_success.yml +42 -0
- data/spec/fixtures/cassettes/list_page_success.yml +1108 -0
- data/spec/fixtures/cassettes/list_page_tags_success.yml +42 -0
- data/spec/fixtures/cassettes/list_site_success.yml +46 -0
- data/spec/fixtures/cassettes/list_tag_success.yml +43 -0
- data/spec/fixtures/cassettes/list_user_success.yml +56 -0
- data/spec/fixtures/cassettes/localwiki_client.yml +121 -115
- data/spec/fixtures/cassettes/slug.yml +8 -8
- data/spec/helper.rb +7 -0
- data/spec/list_spec.rb +47 -0
- data/spec/localwiki_client_spec.rb +4 -12
- data/spec/localwiki_spec.rb +17 -0
- data/spec/map_spec.rb +135 -0
- data/spec/resource_spec.rb +60 -0
- metadata +33 -4
@@ -0,0 +1,42 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: http://ec2-54-234-151-52.compute-1.amazonaws.com/api/page_tags?format=json&limit=0
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
User-Agent:
|
11
|
+
- Faraday v0.8.7
|
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
|
+
- Fri, 29 Mar 2013 02:07:22 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: UTF-8
|
35
|
+
string: '{"meta": {"limit": 0, "offset": 0, "total_count": 2}, "objects": [{"id":
|
36
|
+
5, "page": "/api/page/cats", "resource_uri": "/api/page_tags/cats", "tags":
|
37
|
+
[]}, {"id": 4, "page": "/api/page/TestPage145d11d3-143d-4e94-9d70-a23b1991a719",
|
38
|
+
"resource_uri": "/api/page_tags/TestPage145d11d3-143d-4e94-9d70-a23b1991a719",
|
39
|
+
"tags": ["/api/tag/test_page_145"]}]}'
|
40
|
+
http_version:
|
41
|
+
recorded_at: Fri, 29 Mar 2013 02:06:38 GMT
|
42
|
+
recorded_with: VCR 2.4.0
|
@@ -0,0 +1,46 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: http://ec2-54-234-151-52.compute-1.amazonaws.com/api/site?format=json&limit=0
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
User-Agent:
|
11
|
+
- Faraday v0.8.7
|
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
|
+
- Fri, 29 Mar 2013 02:07:20 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: UTF-8
|
35
|
+
string: '{"meta": {"limit": 0, "offset": 0, "total_count": 1}, "objects": [{"domain":
|
36
|
+
"example.com", "id": 1, "language_code": "en-us", "license": "<p>Except where
|
37
|
+
otherwise noted, this content is licensed under a <a rel=\"license\" href=\"http://creativecommons.org/licenses/by/3.0/\">Creative
|
38
|
+
Commons Attribution License</a>. See <a href=\"/Copyrights\">Copyrights.</p>",
|
39
|
+
"name": "example.com", "resource_uri": "/api/site/1", "signup_tos": "I agree
|
40
|
+
to release my contributions 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: Fri, 29 Mar 2013 02:06:36 GMT
|
46
|
+
recorded_with: VCR 2.4.0
|
@@ -0,0 +1,43 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: http://ec2-54-234-151-52.compute-1.amazonaws.com/api/tag?format=json&limit=0
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
User-Agent:
|
11
|
+
- Faraday v0.8.7
|
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
|
+
- Fri, 29 Mar 2013 02:07:22 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: UTF-8
|
35
|
+
string: '{"meta": {"limit": 0, "offset": 0, "total_count": 5}, "objects": [{"id":
|
36
|
+
5, "name": "cats_test", "resource_uri": "/api/tag/cats_test", "slug": "cats_test"},
|
37
|
+
{"id": 3, "name": "h_test", "resource_uri": "/api/tag/h_test", "slug": "h_test"},
|
38
|
+
{"id": 1, "name": "huh", "resource_uri": "/api/tag/huh", "slug": "huh"}, {"id":
|
39
|
+
2, "name": "oh", "resource_uri": "/api/tag/oh", "slug": "oh"}, {"id": 4, "name":
|
40
|
+
"test_page_145", "resource_uri": "/api/tag/test_page_145", "slug": "test_page_145"}]}'
|
41
|
+
http_version:
|
42
|
+
recorded_at: Fri, 29 Mar 2013 02:06:38 GMT
|
43
|
+
recorded_with: VCR 2.4.0
|
@@ -0,0 +1,56 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: http://ec2-54-234-151-52.compute-1.amazonaws.com/api/user?format=json&limit=0
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
User-Agent:
|
11
|
+
- Faraday v0.8.7
|
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
|
+
- Fri, 29 Mar 2013 02:07:20 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: UTF-8
|
35
|
+
string: '{"meta": {"limit": 0, "offset": 0, "total_count": 10}, "objects": [{"date_joined":
|
36
|
+
"2013-02-17T01:54:39.818130", "first_name": "", "last_name": "", "resource_uri":
|
37
|
+
"", "username": "AnonymousUser"}, {"date_joined": "2013-02-17T01:54:39.475061",
|
38
|
+
"first_name": "", "last_name": "", "resource_uri": "/api/user/1", "username":
|
39
|
+
"admin"}, {"date_joined": "2013-02-17T02:18:27", "first_name": "Brandon",
|
40
|
+
"last_name": "Faloona", "resource_uri": "/api/user/2", "username": "bfaloona"},
|
41
|
+
{"date_joined": "2013-02-17T02:22:04", "first_name": "seth", "last_name":
|
42
|
+
"vincent", "resource_uri": "/api/user/3", "username": "sethvincent"}, {"date_joined":
|
43
|
+
"2013-02-18T17:38:47.905689", "first_name": "Jerry", "last_name": "Frost",
|
44
|
+
"resource_uri": "/api/user/5", "username": "jsfrost"}, {"date_joined": "2013-02-19T13:19:00.264989",
|
45
|
+
"first_name": "Matt", "last_name": "", "resource_uri": "/api/user/6", "username":
|
46
|
+
"adkinsm"}, {"date_joined": "2013-02-20T17:50:23.075011", "first_name": "Neal",
|
47
|
+
"last_name": "Rodruck", "resource_uri": "/api/user/7", "username": "NealRodruck"},
|
48
|
+
{"date_joined": "2013-02-17T12:30:03.990737", "first_name": "Helen", "last_name":
|
49
|
+
"Canzler", "resource_uri": "/api/user/4", "username": "hcanzl"}, {"date_joined":
|
50
|
+
"2013-02-23T18:04:04.738064", "first_name": "will", "last_name": "", "resource_uri":
|
51
|
+
"/api/user/8", "username": "will"}, {"date_joined": "2013-02-26T21:41:59.989091",
|
52
|
+
"first_name": "testuser", "last_name": "", "resource_uri": "/api/user/9",
|
53
|
+
"username": "testuser"}]}'
|
54
|
+
http_version:
|
55
|
+
recorded_at: Fri, 29 Mar 2013 02:06:36 GMT
|
56
|
+
recorded_with: VCR 2.4.0
|
@@ -7,23 +7,23 @@ http_interactions:
|
|
7
7
|
encoding: US-ASCII
|
8
8
|
string: ''
|
9
9
|
headers:
|
10
|
+
User-Agent:
|
11
|
+
- Faraday v0.8.7
|
10
12
|
Accept-Encoding:
|
11
13
|
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
12
14
|
Accept:
|
13
|
-
-
|
14
|
-
User-Agent:
|
15
|
-
- Ruby
|
15
|
+
- '*/*'
|
16
16
|
response:
|
17
17
|
status:
|
18
18
|
code: 200
|
19
19
|
message: OK
|
20
20
|
headers:
|
21
21
|
Date:
|
22
|
-
-
|
22
|
+
- Fri, 29 Mar 2013 02:07:23 GMT
|
23
23
|
Server:
|
24
24
|
- Apache/2.2.22 (Ubuntu)
|
25
25
|
Access-Control-Allow-Origin:
|
26
|
-
-
|
26
|
+
- '*'
|
27
27
|
Access-Control-Allow-Methods:
|
28
28
|
- POST,GET,OPTIONS,PUT,DELETE
|
29
29
|
Transfer-Encoding:
|
@@ -31,8 +31,8 @@ http_interactions:
|
|
31
31
|
Content-Type:
|
32
32
|
- application/vnd.api.v1+json; charset=utf-8
|
33
33
|
body:
|
34
|
-
encoding:
|
35
|
-
string:
|
34
|
+
encoding: UTF-8
|
35
|
+
string: '{"domain": "example.com", "id": 1, "language_code": "en-us", "license":
|
36
36
|
"<p>Except where otherwise noted, this content is licensed under a <a rel=\"license\"
|
37
37
|
href=\"http://creativecommons.org/licenses/by/3.0/\">Creative Commons Attribution
|
38
38
|
License</a>. See <a href=\"/Copyrights\">Copyrights.</p>", "name": "example.com",
|
@@ -42,7 +42,7 @@ http_interactions:
|
|
42
42
|
See <a href=\"/Copyrights\" target=\"_blank\">Copyrights</a>.", "time_zone":
|
43
43
|
"America/Chicago"}'
|
44
44
|
http_version:
|
45
|
-
recorded_at:
|
45
|
+
recorded_at: Fri, 29 Mar 2013 02:06:39 GMT
|
46
46
|
- request:
|
47
47
|
method: get
|
48
48
|
uri: http://ec2-54-234-151-52.compute-1.amazonaws.com/api/site?format=json&limit=1
|
@@ -50,23 +50,23 @@ http_interactions:
|
|
50
50
|
encoding: US-ASCII
|
51
51
|
string: ''
|
52
52
|
headers:
|
53
|
+
User-Agent:
|
54
|
+
- Faraday v0.8.7
|
53
55
|
Accept-Encoding:
|
54
56
|
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
55
57
|
Accept:
|
56
|
-
-
|
57
|
-
User-Agent:
|
58
|
-
- Ruby
|
58
|
+
- '*/*'
|
59
59
|
response:
|
60
60
|
status:
|
61
61
|
code: 200
|
62
62
|
message: OK
|
63
63
|
headers:
|
64
64
|
Date:
|
65
|
-
-
|
65
|
+
- Fri, 29 Mar 2013 02:07:23 GMT
|
66
66
|
Server:
|
67
67
|
- Apache/2.2.22 (Ubuntu)
|
68
68
|
Access-Control-Allow-Origin:
|
69
|
-
-
|
69
|
+
- '*'
|
70
70
|
Access-Control-Allow-Methods:
|
71
71
|
- POST,GET,OPTIONS,PUT,DELETE
|
72
72
|
Transfer-Encoding:
|
@@ -74,8 +74,8 @@ http_interactions:
|
|
74
74
|
Content-Type:
|
75
75
|
- application/vnd.api.v1+json; charset=utf-8
|
76
76
|
body:
|
77
|
-
encoding:
|
78
|
-
string:
|
77
|
+
encoding: UTF-8
|
78
|
+
string: '{"meta": {"limit": 1, "next": null, "offset": 0, "previous": null,
|
79
79
|
"total_count": 1}, "objects": [{"domain": "example.com", "id": 1, "language_code":
|
80
80
|
"en-us", "license": "<p>Except where otherwise noted, this content is licensed
|
81
81
|
under a <a rel=\"license\" href=\"http://creativecommons.org/licenses/by/3.0/\">Creative
|
@@ -86,7 +86,7 @@ http_interactions:
|
|
86
86
|
See <a href=\"/Copyrights\" target=\"_blank\">Copyrights</a>.", "time_zone":
|
87
87
|
"America/Chicago"}]}'
|
88
88
|
http_version:
|
89
|
-
recorded_at:
|
89
|
+
recorded_at: Fri, 29 Mar 2013 02:06:39 GMT
|
90
90
|
- request:
|
91
91
|
method: get
|
92
92
|
uri: http://ec2-54-234-151-52.compute-1.amazonaws.com/api/page?format=json&limit=1
|
@@ -94,23 +94,23 @@ http_interactions:
|
|
94
94
|
encoding: US-ASCII
|
95
95
|
string: ''
|
96
96
|
headers:
|
97
|
+
User-Agent:
|
98
|
+
- Faraday v0.8.7
|
97
99
|
Accept-Encoding:
|
98
100
|
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
99
101
|
Accept:
|
100
|
-
-
|
101
|
-
User-Agent:
|
102
|
-
- Ruby
|
102
|
+
- '*/*'
|
103
103
|
response:
|
104
104
|
status:
|
105
105
|
code: 200
|
106
106
|
message: OK
|
107
107
|
headers:
|
108
108
|
Date:
|
109
|
-
-
|
109
|
+
- Fri, 29 Mar 2013 02:07:23 GMT
|
110
110
|
Server:
|
111
111
|
- Apache/2.2.22 (Ubuntu)
|
112
112
|
Access-Control-Allow-Origin:
|
113
|
-
-
|
113
|
+
- '*'
|
114
114
|
Access-Control-Allow-Methods:
|
115
115
|
- POST,GET,OPTIONS,PUT,DELETE
|
116
116
|
Transfer-Encoding:
|
@@ -122,63 +122,63 @@ http_interactions:
|
|
122
122
|
string: !binary |-
|
123
123
|
eyJtZXRhIjogeyJsaW1pdCI6IDEsICJuZXh0IjogIi9hcGkvcGFnZT9vZmZz
|
124
124
|
ZXQ9MSZsaW1pdD0xJmxpbWl0PTEmZm9ybWF0PWpzb24iLCAib2Zmc2V0Ijog
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
XG5cdFx0PC90cj5cblx0XHQ8dHI+XG5cdFx0XHQ8dGQgc3R5bGU9XCJiYWNr
|
140
|
-
Z3JvdW5kLWNvbG9yOiByZ2IoMjMyLCAyMzYsIDIzOSk7XCI+XG5cdFx0XHRc
|
141
|
-
dDxzdHJvbmc+V2Vic2l0ZTwvc3Ryb25nPjwvdGQ+XG5cdFx0PC90cj5cblx0
|
142
|
-
XHQ8dHI+XG5cdFx0XHQ8dGQ+XG5cdFx0XHRcdEFkZCBsaW5rIGhlcmU8L3Rk
|
125
|
+
MCwgInByZXZpb3VzIjogbnVsbCwgInRvdGFsX2NvdW50IjogMTQxfSwgIm9i
|
126
|
+
amVjdHMiOiBbeyJjb250ZW50IjogIjx0YWJsZT5cblx0PHRib2R5PlxuXHRc
|
127
|
+
dDx0cj5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GJldHRlciwgbG9vayB1cCBvciBjYWxsIHRo
|
173
|
+
ZW0gZm9yIHRoZSBtaXNzaW5nIGluZm9ybWF0aW9uITwvcD5cbjxoMz5cblx0
|
174
|
+
UmVsYXRlZCBMaW5rczwvaDM+XG48dWw+XG5cdDxsaT5cblx0XHQ8YSBocmVm
|
175
|
+
PVwiU2hvcHBpbmdcIj5TaG9wcGluZzwvYT48L2xpPlxuPC91bD5cbjxwPlxu
|
176
|
+
XHTCoDwvcD5cbiIsICJpZCI6IDEsICJtYXAiOiBudWxsLCAibmFtZSI6ICJU
|
177
|
+
ZW1wbGF0ZXMvQnVzaW5lc3MiLCAicGFnZV90YWdzIjogbnVsbCwgInJlc291
|
178
|
+
cmNlX3VyaSI6ICIvYXBpL3BhZ2UvVGVtcGxhdGVzL0J1c2luZXNzIiwgInNs
|
179
|
+
dWciOiAidGVtcGxhdGVzL2J1c2luZXNzIn1dfQ==
|
180
180
|
http_version:
|
181
|
-
recorded_at:
|
181
|
+
recorded_at: Fri, 29 Mar 2013 02:06:39 GMT
|
182
182
|
- request:
|
183
183
|
method: get
|
184
184
|
uri: http://ec2-54-234-151-52.compute-1.amazonaws.com/api/user?format=json&limit=1
|
@@ -186,23 +186,23 @@ http_interactions:
|
|
186
186
|
encoding: US-ASCII
|
187
187
|
string: ''
|
188
188
|
headers:
|
189
|
+
User-Agent:
|
190
|
+
- Faraday v0.8.7
|
189
191
|
Accept-Encoding:
|
190
192
|
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
191
193
|
Accept:
|
192
|
-
-
|
193
|
-
User-Agent:
|
194
|
-
- Ruby
|
194
|
+
- '*/*'
|
195
195
|
response:
|
196
196
|
status:
|
197
197
|
code: 200
|
198
198
|
message: OK
|
199
199
|
headers:
|
200
200
|
Date:
|
201
|
-
-
|
201
|
+
- Fri, 29 Mar 2013 02:07:24 GMT
|
202
202
|
Server:
|
203
203
|
- Apache/2.2.22 (Ubuntu)
|
204
204
|
Access-Control-Allow-Origin:
|
205
|
-
-
|
205
|
+
- '*'
|
206
206
|
Access-Control-Allow-Methods:
|
207
207
|
- POST,GET,OPTIONS,PUT,DELETE
|
208
208
|
Transfer-Encoding:
|
@@ -210,13 +210,13 @@ http_interactions:
|
|
210
210
|
Content-Type:
|
211
211
|
- application/vnd.api.v1+json; charset=utf-8
|
212
212
|
body:
|
213
|
-
encoding:
|
214
|
-
string:
|
213
|
+
encoding: UTF-8
|
214
|
+
string: '{"meta": {"limit": 1, "next": "/api/user?offset=1&limit=1&limit=1&format=json",
|
215
215
|
"offset": 0, "previous": null, "total_count": 10}, "objects": [{"date_joined":
|
216
216
|
"2013-02-17T01:54:39.818130", "first_name": "", "last_name": "", "resource_uri":
|
217
217
|
"", "username": "AnonymousUser"}]}'
|
218
218
|
http_version:
|
219
|
-
recorded_at:
|
219
|
+
recorded_at: Fri, 29 Mar 2013 02:06:39 GMT
|
220
220
|
- request:
|
221
221
|
method: get
|
222
222
|
uri: http://ec2-54-234-151-52.compute-1.amazonaws.com/api/file?format=json&limit=1
|
@@ -224,23 +224,23 @@ http_interactions:
|
|
224
224
|
encoding: US-ASCII
|
225
225
|
string: ''
|
226
226
|
headers:
|
227
|
+
User-Agent:
|
228
|
+
- Faraday v0.8.7
|
227
229
|
Accept-Encoding:
|
228
230
|
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
229
231
|
Accept:
|
230
|
-
-
|
231
|
-
User-Agent:
|
232
|
-
- Ruby
|
232
|
+
- '*/*'
|
233
233
|
response:
|
234
234
|
status:
|
235
235
|
code: 200
|
236
236
|
message: OK
|
237
237
|
headers:
|
238
238
|
Date:
|
239
|
-
-
|
239
|
+
- Fri, 29 Mar 2013 02:07:24 GMT
|
240
240
|
Server:
|
241
241
|
- Apache/2.2.22 (Ubuntu)
|
242
242
|
Access-Control-Allow-Origin:
|
243
|
-
-
|
243
|
+
- '*'
|
244
244
|
Access-Control-Allow-Methods:
|
245
245
|
- POST,GET,OPTIONS,PUT,DELETE
|
246
246
|
Transfer-Encoding:
|
@@ -248,11 +248,13 @@ http_interactions:
|
|
248
248
|
Content-Type:
|
249
249
|
- application/vnd.api.v1+json; charset=utf-8
|
250
250
|
body:
|
251
|
-
encoding:
|
252
|
-
string:
|
253
|
-
"total_count":
|
251
|
+
encoding: UTF-8
|
252
|
+
string: '{"meta": {"limit": 1, "next": null, "offset": 0, "previous": null,
|
253
|
+
"total_count": 1}, "objects": [{"file": "/media/pages/files/lkl77lz3z0csg0tx.gif",
|
254
|
+
"id": 1, "name": "ajax-loader(2).gif", "resource_uri": "/api/file/1", "slug":
|
255
|
+
"front page"}]}'
|
254
256
|
http_version:
|
255
|
-
recorded_at:
|
257
|
+
recorded_at: Fri, 29 Mar 2013 02:06:39 GMT
|
256
258
|
- request:
|
257
259
|
method: get
|
258
260
|
uri: http://ec2-54-234-151-52.compute-1.amazonaws.com/api/map?format=json&limit=1
|
@@ -260,23 +262,23 @@ http_interactions:
|
|
260
262
|
encoding: US-ASCII
|
261
263
|
string: ''
|
262
264
|
headers:
|
265
|
+
User-Agent:
|
266
|
+
- Faraday v0.8.7
|
263
267
|
Accept-Encoding:
|
264
268
|
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
265
269
|
Accept:
|
266
|
-
-
|
267
|
-
User-Agent:
|
268
|
-
- Ruby
|
270
|
+
- '*/*'
|
269
271
|
response:
|
270
272
|
status:
|
271
273
|
code: 200
|
272
274
|
message: OK
|
273
275
|
headers:
|
274
276
|
Date:
|
275
|
-
-
|
277
|
+
- Fri, 29 Mar 2013 02:07:24 GMT
|
276
278
|
Server:
|
277
279
|
- Apache/2.2.22 (Ubuntu)
|
278
280
|
Access-Control-Allow-Origin:
|
279
|
-
-
|
281
|
+
- '*'
|
280
282
|
Access-Control-Allow-Methods:
|
281
283
|
- POST,GET,OPTIONS,PUT,DELETE
|
282
284
|
Transfer-Encoding:
|
@@ -284,11 +286,15 @@ http_interactions:
|
|
284
286
|
Content-Type:
|
285
287
|
- application/vnd.api.v1+json; charset=utf-8
|
286
288
|
body:
|
287
|
-
encoding:
|
288
|
-
string:
|
289
|
-
"total_count":
|
289
|
+
encoding: UTF-8
|
290
|
+
string: '{"meta": {"limit": 1, "next": null, "offset": 0, "previous": null,
|
291
|
+
"total_count": 1}, "objects": [{"geom": {"geometries": [{"coordinates": [-122.450771,
|
292
|
+
37.762443], "type": "Point"}], "type": "GeometryCollection"}, "id": 1, "length":
|
293
|
+
0.0, "lines": null, "page": "/api/page/Front_Page", "points": {"coordinates":
|
294
|
+
[[-122.450771, 37.762443]], "type": "MultiPoint"}, "polys": null, "resource_uri":
|
295
|
+
"/api/map/Front_Page"}]}'
|
290
296
|
http_version:
|
291
|
-
recorded_at:
|
297
|
+
recorded_at: Fri, 29 Mar 2013 02:06:40 GMT
|
292
298
|
- request:
|
293
299
|
method: get
|
294
300
|
uri: http://ec2-54-234-151-52.compute-1.amazonaws.com/api/tag?format=json&limit=1
|
@@ -296,23 +302,23 @@ http_interactions:
|
|
296
302
|
encoding: US-ASCII
|
297
303
|
string: ''
|
298
304
|
headers:
|
305
|
+
User-Agent:
|
306
|
+
- Faraday v0.8.7
|
299
307
|
Accept-Encoding:
|
300
308
|
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
301
309
|
Accept:
|
302
|
-
-
|
303
|
-
User-Agent:
|
304
|
-
- Ruby
|
310
|
+
- '*/*'
|
305
311
|
response:
|
306
312
|
status:
|
307
313
|
code: 200
|
308
314
|
message: OK
|
309
315
|
headers:
|
310
316
|
Date:
|
311
|
-
-
|
317
|
+
- Fri, 29 Mar 2013 02:07:24 GMT
|
312
318
|
Server:
|
313
319
|
- Apache/2.2.22 (Ubuntu)
|
314
320
|
Access-Control-Allow-Origin:
|
315
|
-
-
|
321
|
+
- '*'
|
316
322
|
Access-Control-Allow-Methods:
|
317
323
|
- POST,GET,OPTIONS,PUT,DELETE
|
318
324
|
Transfer-Encoding:
|
@@ -320,12 +326,12 @@ http_interactions:
|
|
320
326
|
Content-Type:
|
321
327
|
- application/vnd.api.v1+json; charset=utf-8
|
322
328
|
body:
|
323
|
-
encoding:
|
324
|
-
string:
|
329
|
+
encoding: UTF-8
|
330
|
+
string: '{"meta": {"limit": 1, "next": "/api/tag?offset=1&limit=1&limit=1&format=json",
|
325
331
|
"offset": 0, "previous": null, "total_count": 5}, "objects": [{"id": 5, "name":
|
326
332
|
"cats_test", "resource_uri": "/api/tag/cats_test", "slug": "cats_test"}]}'
|
327
333
|
http_version:
|
328
|
-
recorded_at:
|
334
|
+
recorded_at: Fri, 29 Mar 2013 02:06:40 GMT
|
329
335
|
- request:
|
330
336
|
method: get
|
331
337
|
uri: http://ec2-54-234-151-52.compute-1.amazonaws.com/api/page_tags?format=json&limit=1
|
@@ -333,23 +339,23 @@ http_interactions:
|
|
333
339
|
encoding: US-ASCII
|
334
340
|
string: ''
|
335
341
|
headers:
|
342
|
+
User-Agent:
|
343
|
+
- Faraday v0.8.7
|
336
344
|
Accept-Encoding:
|
337
345
|
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
338
346
|
Accept:
|
339
|
-
-
|
340
|
-
User-Agent:
|
341
|
-
- Ruby
|
347
|
+
- '*/*'
|
342
348
|
response:
|
343
349
|
status:
|
344
350
|
code: 200
|
345
351
|
message: OK
|
346
352
|
headers:
|
347
353
|
Date:
|
348
|
-
-
|
354
|
+
- Fri, 29 Mar 2013 02:07:25 GMT
|
349
355
|
Server:
|
350
356
|
- Apache/2.2.22 (Ubuntu)
|
351
357
|
Access-Control-Allow-Origin:
|
352
|
-
-
|
358
|
+
- '*'
|
353
359
|
Access-Control-Allow-Methods:
|
354
360
|
- POST,GET,OPTIONS,PUT,DELETE
|
355
361
|
Transfer-Encoding:
|
@@ -357,10 +363,10 @@ http_interactions:
|
|
357
363
|
Content-Type:
|
358
364
|
- application/vnd.api.v1+json; charset=utf-8
|
359
365
|
body:
|
360
|
-
encoding:
|
361
|
-
string:
|
366
|
+
encoding: UTF-8
|
367
|
+
string: '{"meta": {"limit": 1, "next": "/api/page_tags?offset=1&limit=1&limit=1&format=json",
|
362
368
|
"offset": 0, "previous": null, "total_count": 2}, "objects": [{"id": 5, "page":
|
363
369
|
"/api/page/cats", "resource_uri": "/api/page_tags/cats", "tags": []}]}'
|
364
370
|
http_version:
|
365
|
-
recorded_at:
|
371
|
+
recorded_at: Fri, 29 Mar 2013 02:06:40 GMT
|
366
372
|
recorded_with: VCR 2.4.0
|