rsbe-client 0.5.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 +21 -0
- data/.rspec +3 -0
- data/GETTING-STARTED.md +17 -0
- data/Gemfile +4 -0
- data/LICENSE.txt +22 -0
- data/README.md +73 -0
- data/Rakefile +11 -0
- data/TODO.md +38 -0
- data/lib/rsbe/client.rb +50 -0
- data/lib/rsbe/client/base.rb +140 -0
- data/lib/rsbe/client/collection.rb +84 -0
- data/lib/rsbe/client/connection.rb +24 -0
- data/lib/rsbe/client/method_not_implemented_error.rb +6 -0
- data/lib/rsbe/client/not_found_error.rb +6 -0
- data/lib/rsbe/client/partner.rb +82 -0
- data/lib/rsbe/client/provider.rb +47 -0
- data/lib/rsbe/client/se.rb +97 -0
- data/lib/rsbe/client/search.rb +80 -0
- data/lib/rsbe/client/search_results.rb +41 -0
- data/lib/rsbe/client/unrecognized_resource_error.rb +6 -0
- data/lib/rsbe/client/version.rb +5 -0
- data/lib/rsbe/client/wrong_origin_error.rb +6 -0
- data/rsbe-client.gemspec +30 -0
- data/spec/fixtures/partners/partners_all.json +1 -0
- data/spec/fixtures/partners/partners_none.json +1 -0
- data/spec/rsbe/client/base_spec.rb +10 -0
- data/spec/rsbe/client/collection_spec.rb +186 -0
- data/spec/rsbe/client/connection_spec.rb +20 -0
- data/spec/rsbe/client/partner_spec.rb +185 -0
- data/spec/rsbe/client/provider_spec.rb +122 -0
- data/spec/rsbe/client/se_spec.rb +273 -0
- data/spec/rsbe/client/search_results_spec.rb +140 -0
- data/spec/rsbe/client/search_spec.rb +74 -0
- data/spec/rsbe/client_spec.rb +52 -0
- data/spec/spec_helper.rb +43 -0
- data/spec/vcr_cassettes/client/find_collection.yml +53 -0
- data/spec/vcr_cassettes/client/find_partner.yml +52 -0
- data/spec/vcr_cassettes/client/find_provider.yml +52 -0
- data/spec/vcr_cassettes/client/find_se.yml +53 -0
- data/spec/vcr_cassettes/collection/find-existing.yml +53 -0
- data/spec/vcr_cassettes/collection/find-non_existent.yml +50 -0
- data/spec/vcr_cassettes/collection/lazy-eval-dne.yml +285 -0
- data/spec/vcr_cassettes/collection/lazy-eval-exists.yml +53 -0
- data/spec/vcr_cassettes/collection/save-create-known-id.yml +103 -0
- data/spec/vcr_cassettes/collection/save-create-unknown-id.yml +56 -0
- data/spec/vcr_cassettes/collection/save-invalid.yml +143 -0
- data/spec/vcr_cassettes/collection/save-update-valid.yml +99 -0
- data/spec/vcr_cassettes/partner/all.yml +300 -0
- data/spec/vcr_cassettes/partner/dne-with-id.yml +238 -0
- data/spec/vcr_cassettes/partner/find-existing.yml +52 -0
- data/spec/vcr_cassettes/partner/find-non_existent.yml +50 -0
- data/spec/vcr_cassettes/partner/lazy-eval-exists.yml +53 -0
- data/spec/vcr_cassettes/partner/save-create-known-id.yml +101 -0
- data/spec/vcr_cassettes/partner/save-create-unknown-id.yml +54 -0
- data/spec/vcr_cassettes/partner/save-invalid.yml +177 -0
- data/spec/vcr_cassettes/partner/save-unknown-id.yml +54 -0
- data/spec/vcr_cassettes/partner/save-update-valid.yml +98 -0
- data/spec/vcr_cassettes/partner/with-collections.yml +203 -0
- data/spec/vcr_cassettes/partner/without-collections.yml +101 -0
- data/spec/vcr_cassettes/provider/all.yml +248 -0
- data/spec/vcr_cassettes/provider/find-existing.yml +52 -0
- data/spec/vcr_cassettes/provider/find-non_existent.yml +50 -0
- data/spec/vcr_cassettes/provider/save-create-known-id.yml +101 -0
- data/spec/vcr_cassettes/provider/save-create-unknown-id.yml +54 -0
- data/spec/vcr_cassettes/provider/save-invalid.yml +178 -0
- data/spec/vcr_cassettes/provider/save-update-valid.yml +144 -0
- data/spec/vcr_cassettes/se/find-existing.yml +53 -0
- data/spec/vcr_cassettes/se/find-non_existent.yml +50 -0
- data/spec/vcr_cassettes/se/lazy-eval-exists.yml +52 -0
- data/spec/vcr_cassettes/se/save-create-known-id.yml +146 -0
- data/spec/vcr_cassettes/se/save-create-unknown-id.yml +56 -0
- data/spec/vcr_cassettes/se/save-invalid.yml +305 -0
- data/spec/vcr_cassettes/se/save-update-valid.yml +99 -0
- data/spec/vcr_cassettes/se/search-malformed-uuid.yml +54 -0
- data/spec/vcr_cassettes/se/search-with-existing-se.yml +52 -0
- data/spec/vcr_cassettes/se/search-with-missing-se.yml +52 -0
- data/spec/vcr_cassettes/search/search-with-existing-se.yml +52 -0
- data/spec/vcr_cassettes/search_results/no-results.yml +52 -0
- data/spec/vcr_cassettes/search_results/search-by-digi_id.yml +101 -0
- data/spec/vcr_cassettes/search_results/search-by-step.yml +201 -0
- metadata +307 -0
@@ -0,0 +1,248 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: http://foo:bar@localhost:3000/api/v0/providers
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
User-Agent:
|
11
|
+
- Faraday v0.9.0
|
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
|
+
X-Frame-Options:
|
22
|
+
- SAMEORIGIN
|
23
|
+
X-Xss-Protection:
|
24
|
+
- 1; mode=block
|
25
|
+
X-Content-Type-Options:
|
26
|
+
- nosniff
|
27
|
+
X-Ua-Compatible:
|
28
|
+
- chrome=1
|
29
|
+
Content-Type:
|
30
|
+
- application/json; charset=utf-8
|
31
|
+
X-Meta-Request-Version:
|
32
|
+
- 0.2.9
|
33
|
+
Etag:
|
34
|
+
- '"4e20c1385d5014d8a299425611473d40"'
|
35
|
+
Cache-Control:
|
36
|
+
- max-age=0, private, must-revalidate
|
37
|
+
Set-Cookie:
|
38
|
+
- request_method=GET; path=/
|
39
|
+
X-Request-Id:
|
40
|
+
- 9f78a1dd-4c7b-4a60-a8c8-fcf928b9a9f5
|
41
|
+
X-Runtime:
|
42
|
+
- '0.291113'
|
43
|
+
Connection:
|
44
|
+
- close
|
45
|
+
Server:
|
46
|
+
- thin 1.6.2 codename Doc Brown
|
47
|
+
body:
|
48
|
+
encoding: UTF-8
|
49
|
+
string: '[{"id":"0938b200-e388-4626-bee8-69b3fc73ecdb","name":"Portia","created_at":"2015-08-10T02:51:43.853Z","updated_at":"2015-08-10T02:51:43.853Z","url":"http://localhost:3000/api/v0/providers/0938b200-e388-4626-bee8-69b3fc73ecdb"},{"id":"42229f77-8ecf-4dc9-8442-235b6382ace9","name":"Cassius","created_at":"2015-08-10T02:52:19.147Z","updated_at":"2015-08-10T02:52:19.147Z","url":"http://localhost:3000/api/v0/providers/42229f77-8ecf-4dc9-8442-235b6382ace9"},{"id":"99773b2d-5ed3-43c9-ac8c-2e06cffb6772","name":"Caesar","created_at":"2015-08-10T02:52:40.635Z","updated_at":"2015-08-10T02:52:40.635Z","url":"http://localhost:3000/api/v0/providers/99773b2d-5ed3-43c9-ac8c-2e06cffb6772"},{"id":"ff7ac5cb-72c3-4021-942d-f7b0c9ec7caf","name":"Brutus","created_at":"2015-08-10T02:53:01.731Z","updated_at":"2015-08-10T02:53:01.731Z","url":"http://localhost:3000/api/v0/providers/ff7ac5cb-72c3-4021-942d-f7b0c9ec7caf"}]'
|
50
|
+
http_version:
|
51
|
+
recorded_at: Mon, 10 Aug 2015 02:55:02 GMT
|
52
|
+
- request:
|
53
|
+
method: get
|
54
|
+
uri: http://foo:bar@localhost:3000/api/v0/providers/0938b200-e388-4626-bee8-69b3fc73ecdb
|
55
|
+
body:
|
56
|
+
encoding: US-ASCII
|
57
|
+
string: ''
|
58
|
+
headers:
|
59
|
+
User-Agent:
|
60
|
+
- Faraday v0.9.0
|
61
|
+
Accept-Encoding:
|
62
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
63
|
+
Accept:
|
64
|
+
- '*/*'
|
65
|
+
response:
|
66
|
+
status:
|
67
|
+
code: 200
|
68
|
+
message: OK
|
69
|
+
headers:
|
70
|
+
X-Frame-Options:
|
71
|
+
- SAMEORIGIN
|
72
|
+
X-Xss-Protection:
|
73
|
+
- 1; mode=block
|
74
|
+
X-Content-Type-Options:
|
75
|
+
- nosniff
|
76
|
+
X-Ua-Compatible:
|
77
|
+
- chrome=1
|
78
|
+
Content-Type:
|
79
|
+
- application/json; charset=utf-8
|
80
|
+
X-Meta-Request-Version:
|
81
|
+
- 0.2.9
|
82
|
+
Etag:
|
83
|
+
- '"770f7ebbe3708957ff501285e8ab86d9"'
|
84
|
+
Cache-Control:
|
85
|
+
- max-age=0, private, must-revalidate
|
86
|
+
Set-Cookie:
|
87
|
+
- request_method=GET; path=/
|
88
|
+
X-Request-Id:
|
89
|
+
- f49880ab-c856-4464-ab6f-f20873817a59
|
90
|
+
X-Runtime:
|
91
|
+
- '0.154230'
|
92
|
+
Connection:
|
93
|
+
- close
|
94
|
+
Server:
|
95
|
+
- thin 1.6.2 codename Doc Brown
|
96
|
+
body:
|
97
|
+
encoding: UTF-8
|
98
|
+
string: '{"id":"0938b200-e388-4626-bee8-69b3fc73ecdb","name":"Portia","created_at":"2015-08-10T02:51:43.853Z","updated_at":"2015-08-10T02:51:43.853Z","providers_url":"http://localhost:3000/api/v0/providers","lock_version":0}'
|
99
|
+
http_version:
|
100
|
+
recorded_at: Mon, 10 Aug 2015 02:55:02 GMT
|
101
|
+
- request:
|
102
|
+
method: get
|
103
|
+
uri: http://foo:bar@localhost:3000/api/v0/providers/42229f77-8ecf-4dc9-8442-235b6382ace9
|
104
|
+
body:
|
105
|
+
encoding: US-ASCII
|
106
|
+
string: ''
|
107
|
+
headers:
|
108
|
+
User-Agent:
|
109
|
+
- Faraday v0.9.0
|
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
|
+
X-Frame-Options:
|
120
|
+
- SAMEORIGIN
|
121
|
+
X-Xss-Protection:
|
122
|
+
- 1; mode=block
|
123
|
+
X-Content-Type-Options:
|
124
|
+
- nosniff
|
125
|
+
X-Ua-Compatible:
|
126
|
+
- chrome=1
|
127
|
+
Content-Type:
|
128
|
+
- application/json; charset=utf-8
|
129
|
+
X-Meta-Request-Version:
|
130
|
+
- 0.2.9
|
131
|
+
Etag:
|
132
|
+
- '"94e0f227684b1c7fead2c92b58346568"'
|
133
|
+
Cache-Control:
|
134
|
+
- max-age=0, private, must-revalidate
|
135
|
+
Set-Cookie:
|
136
|
+
- request_method=GET; path=/
|
137
|
+
X-Request-Id:
|
138
|
+
- ec4aed2b-9c48-4763-8e0c-a44f3a0a2869
|
139
|
+
X-Runtime:
|
140
|
+
- '0.107511'
|
141
|
+
Connection:
|
142
|
+
- close
|
143
|
+
Server:
|
144
|
+
- thin 1.6.2 codename Doc Brown
|
145
|
+
body:
|
146
|
+
encoding: UTF-8
|
147
|
+
string: '{"id":"42229f77-8ecf-4dc9-8442-235b6382ace9","name":"Cassius","created_at":"2015-08-10T02:52:19.147Z","updated_at":"2015-08-10T02:52:19.147Z","providers_url":"http://localhost:3000/api/v0/providers","lock_version":0}'
|
148
|
+
http_version:
|
149
|
+
recorded_at: Mon, 10 Aug 2015 02:55:02 GMT
|
150
|
+
- request:
|
151
|
+
method: get
|
152
|
+
uri: http://foo:bar@localhost:3000/api/v0/providers/99773b2d-5ed3-43c9-ac8c-2e06cffb6772
|
153
|
+
body:
|
154
|
+
encoding: US-ASCII
|
155
|
+
string: ''
|
156
|
+
headers:
|
157
|
+
User-Agent:
|
158
|
+
- Faraday v0.9.0
|
159
|
+
Accept-Encoding:
|
160
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
161
|
+
Accept:
|
162
|
+
- '*/*'
|
163
|
+
response:
|
164
|
+
status:
|
165
|
+
code: 200
|
166
|
+
message: OK
|
167
|
+
headers:
|
168
|
+
X-Frame-Options:
|
169
|
+
- SAMEORIGIN
|
170
|
+
X-Xss-Protection:
|
171
|
+
- 1; mode=block
|
172
|
+
X-Content-Type-Options:
|
173
|
+
- nosniff
|
174
|
+
X-Ua-Compatible:
|
175
|
+
- chrome=1
|
176
|
+
Content-Type:
|
177
|
+
- application/json; charset=utf-8
|
178
|
+
X-Meta-Request-Version:
|
179
|
+
- 0.2.9
|
180
|
+
Etag:
|
181
|
+
- '"9dfb7b86aea694a3d1799e3823619efc"'
|
182
|
+
Cache-Control:
|
183
|
+
- max-age=0, private, must-revalidate
|
184
|
+
Set-Cookie:
|
185
|
+
- request_method=GET; path=/
|
186
|
+
X-Request-Id:
|
187
|
+
- 706f00d4-97c1-4418-a740-322220aaef06
|
188
|
+
X-Runtime:
|
189
|
+
- '0.109001'
|
190
|
+
Connection:
|
191
|
+
- close
|
192
|
+
Server:
|
193
|
+
- thin 1.6.2 codename Doc Brown
|
194
|
+
body:
|
195
|
+
encoding: UTF-8
|
196
|
+
string: '{"id":"99773b2d-5ed3-43c9-ac8c-2e06cffb6772","name":"Caesar","created_at":"2015-08-10T02:52:40.635Z","updated_at":"2015-08-10T02:52:40.635Z","providers_url":"http://localhost:3000/api/v0/providers","lock_version":0}'
|
197
|
+
http_version:
|
198
|
+
recorded_at: Mon, 10 Aug 2015 02:55:02 GMT
|
199
|
+
- request:
|
200
|
+
method: get
|
201
|
+
uri: http://foo:bar@localhost:3000/api/v0/providers/ff7ac5cb-72c3-4021-942d-f7b0c9ec7caf
|
202
|
+
body:
|
203
|
+
encoding: US-ASCII
|
204
|
+
string: ''
|
205
|
+
headers:
|
206
|
+
User-Agent:
|
207
|
+
- Faraday v0.9.0
|
208
|
+
Accept-Encoding:
|
209
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
210
|
+
Accept:
|
211
|
+
- '*/*'
|
212
|
+
response:
|
213
|
+
status:
|
214
|
+
code: 200
|
215
|
+
message: OK
|
216
|
+
headers:
|
217
|
+
X-Frame-Options:
|
218
|
+
- SAMEORIGIN
|
219
|
+
X-Xss-Protection:
|
220
|
+
- 1; mode=block
|
221
|
+
X-Content-Type-Options:
|
222
|
+
- nosniff
|
223
|
+
X-Ua-Compatible:
|
224
|
+
- chrome=1
|
225
|
+
Content-Type:
|
226
|
+
- application/json; charset=utf-8
|
227
|
+
X-Meta-Request-Version:
|
228
|
+
- 0.2.9
|
229
|
+
Etag:
|
230
|
+
- '"bde57959da46dc6cd8e025d3bfc9bc2b"'
|
231
|
+
Cache-Control:
|
232
|
+
- max-age=0, private, must-revalidate
|
233
|
+
Set-Cookie:
|
234
|
+
- request_method=GET; path=/
|
235
|
+
X-Request-Id:
|
236
|
+
- d6975ce5-9ddb-4252-a52d-a364622af8c6
|
237
|
+
X-Runtime:
|
238
|
+
- '0.109820'
|
239
|
+
Connection:
|
240
|
+
- close
|
241
|
+
Server:
|
242
|
+
- thin 1.6.2 codename Doc Brown
|
243
|
+
body:
|
244
|
+
encoding: UTF-8
|
245
|
+
string: '{"id":"ff7ac5cb-72c3-4021-942d-f7b0c9ec7caf","name":"Brutus","created_at":"2015-08-10T02:53:01.731Z","updated_at":"2015-08-10T02:53:01.731Z","providers_url":"http://localhost:3000/api/v0/providers","lock_version":0}'
|
246
|
+
http_version:
|
247
|
+
recorded_at: Mon, 10 Aug 2015 02:55:02 GMT
|
248
|
+
recorded_with: VCR 2.9.3
|
@@ -0,0 +1,52 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: http://foo:bar@localhost:3000/api/v0/providers/0938b200-e388-4626-bee8-69b3fc73ecdb
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
User-Agent:
|
11
|
+
- Faraday v0.9.0
|
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
|
+
X-Frame-Options:
|
22
|
+
- SAMEORIGIN
|
23
|
+
X-Xss-Protection:
|
24
|
+
- 1; mode=block
|
25
|
+
X-Content-Type-Options:
|
26
|
+
- nosniff
|
27
|
+
X-Ua-Compatible:
|
28
|
+
- chrome=1
|
29
|
+
Content-Type:
|
30
|
+
- application/json; charset=utf-8
|
31
|
+
X-Meta-Request-Version:
|
32
|
+
- 0.2.9
|
33
|
+
Etag:
|
34
|
+
- '"770f7ebbe3708957ff501285e8ab86d9"'
|
35
|
+
Cache-Control:
|
36
|
+
- max-age=0, private, must-revalidate
|
37
|
+
Set-Cookie:
|
38
|
+
- request_method=GET; path=/
|
39
|
+
X-Request-Id:
|
40
|
+
- ab68ce78-7d61-4c25-bb01-b19bc10426c6
|
41
|
+
X-Runtime:
|
42
|
+
- '0.107692'
|
43
|
+
Connection:
|
44
|
+
- close
|
45
|
+
Server:
|
46
|
+
- thin 1.6.2 codename Doc Brown
|
47
|
+
body:
|
48
|
+
encoding: UTF-8
|
49
|
+
string: '{"id":"0938b200-e388-4626-bee8-69b3fc73ecdb","name":"Portia","created_at":"2015-08-10T02:51:43.853Z","updated_at":"2015-08-10T02:51:43.853Z","providers_url":"http://localhost:3000/api/v0/providers","lock_version":0}'
|
50
|
+
http_version:
|
51
|
+
recorded_at: Mon, 10 Aug 2015 03:05:58 GMT
|
52
|
+
recorded_with: VCR 2.9.3
|
@@ -0,0 +1,50 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: http://foo:bar@localhost:3000/api/v0/providers/bad45d46-a14a-489f-97ac-384afb552a13
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
User-Agent:
|
11
|
+
- Faraday v0.9.0
|
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: 404
|
19
|
+
message: Not Found
|
20
|
+
headers:
|
21
|
+
X-Frame-Options:
|
22
|
+
- SAMEORIGIN
|
23
|
+
X-Xss-Protection:
|
24
|
+
- 1; mode=block
|
25
|
+
X-Content-Type-Options:
|
26
|
+
- nosniff
|
27
|
+
X-Ua-Compatible:
|
28
|
+
- chrome=1
|
29
|
+
Content-Type:
|
30
|
+
- application/json; charset=utf-8
|
31
|
+
X-Meta-Request-Version:
|
32
|
+
- 0.2.9
|
33
|
+
Cache-Control:
|
34
|
+
- no-cache
|
35
|
+
Set-Cookie:
|
36
|
+
- request_method=GET; path=/
|
37
|
+
X-Request-Id:
|
38
|
+
- c0d3a506-aeba-448a-9f72-75ca17f54868
|
39
|
+
X-Runtime:
|
40
|
+
- '0.084358'
|
41
|
+
Connection:
|
42
|
+
- close
|
43
|
+
Server:
|
44
|
+
- thin 1.6.2 codename Doc Brown
|
45
|
+
body:
|
46
|
+
encoding: UTF-8
|
47
|
+
string: '{"error":"Couldn''t find Provider with id=bad45d46-a14a-489f-97ac-384afb552a13"}'
|
48
|
+
http_version:
|
49
|
+
recorded_at: Mon, 10 Aug 2015 03:06:46 GMT
|
50
|
+
recorded_with: VCR 2.9.3
|
@@ -0,0 +1,101 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: http://foo:bar@localhost:3000/api/v0/providers/51213be7-c8de-4e06-8cc2-06bfc82cdd68
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
User-Agent:
|
11
|
+
- Faraday v0.9.0
|
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: 404
|
19
|
+
message: Not Found
|
20
|
+
headers:
|
21
|
+
X-Frame-Options:
|
22
|
+
- SAMEORIGIN
|
23
|
+
X-Xss-Protection:
|
24
|
+
- 1; mode=block
|
25
|
+
X-Content-Type-Options:
|
26
|
+
- nosniff
|
27
|
+
X-Ua-Compatible:
|
28
|
+
- chrome=1
|
29
|
+
Content-Type:
|
30
|
+
- application/json; charset=utf-8
|
31
|
+
X-Meta-Request-Version:
|
32
|
+
- 0.2.9
|
33
|
+
Cache-Control:
|
34
|
+
- no-cache
|
35
|
+
Set-Cookie:
|
36
|
+
- request_method=GET; path=/
|
37
|
+
X-Request-Id:
|
38
|
+
- 180bc746-1219-4cbb-ab79-667145388fac
|
39
|
+
X-Runtime:
|
40
|
+
- '0.081444'
|
41
|
+
Connection:
|
42
|
+
- close
|
43
|
+
Server:
|
44
|
+
- thin 1.6.2 codename Doc Brown
|
45
|
+
body:
|
46
|
+
encoding: UTF-8
|
47
|
+
string: '{"error":"Couldn''t find Provider with id=51213be7-c8de-4e06-8cc2-06bfc82cdd68"}'
|
48
|
+
http_version:
|
49
|
+
recorded_at: Mon, 10 Aug 2015 03:13:54 GMT
|
50
|
+
- request:
|
51
|
+
method: post
|
52
|
+
uri: http://foo:bar@localhost:3000/api/v0/providers
|
53
|
+
body:
|
54
|
+
encoding: UTF-8
|
55
|
+
string: '{"id":"51213be7-c8de-4e06-8cc2-06bfc82cdd68","name":"Octavius"}'
|
56
|
+
headers:
|
57
|
+
User-Agent:
|
58
|
+
- Faraday v0.9.0
|
59
|
+
Content-Type:
|
60
|
+
- application/json
|
61
|
+
Accept-Encoding:
|
62
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
63
|
+
Accept:
|
64
|
+
- '*/*'
|
65
|
+
response:
|
66
|
+
status:
|
67
|
+
code: 201
|
68
|
+
message: Created
|
69
|
+
headers:
|
70
|
+
X-Frame-Options:
|
71
|
+
- SAMEORIGIN
|
72
|
+
X-Xss-Protection:
|
73
|
+
- 1; mode=block
|
74
|
+
X-Content-Type-Options:
|
75
|
+
- nosniff
|
76
|
+
X-Ua-Compatible:
|
77
|
+
- chrome=1
|
78
|
+
Location:
|
79
|
+
- http://localhost:3000/api/v0/providers/51213be7-c8de-4e06-8cc2-06bfc82cdd68
|
80
|
+
Content-Type:
|
81
|
+
- application/json; charset=utf-8
|
82
|
+
X-Meta-Request-Version:
|
83
|
+
- 0.2.9
|
84
|
+
Etag:
|
85
|
+
- '"aeb9183ce7d3da0ac7de57781d56088e"'
|
86
|
+
Cache-Control:
|
87
|
+
- max-age=0, private, must-revalidate
|
88
|
+
X-Request-Id:
|
89
|
+
- 373ffeeb-0eca-4382-814b-aec09143332d
|
90
|
+
X-Runtime:
|
91
|
+
- '0.162835'
|
92
|
+
Connection:
|
93
|
+
- close
|
94
|
+
Server:
|
95
|
+
- thin 1.6.2 codename Doc Brown
|
96
|
+
body:
|
97
|
+
encoding: UTF-8
|
98
|
+
string: '{"id":"51213be7-c8de-4e06-8cc2-06bfc82cdd68","name":"Octavius","lock_version":0,"created_at":"2015-08-10T03:13:55.010Z","updated_at":"2015-08-10T03:13:55.010Z"}'
|
99
|
+
http_version:
|
100
|
+
recorded_at: Mon, 10 Aug 2015 03:13:55 GMT
|
101
|
+
recorded_with: VCR 2.9.3
|