pluct 0.1.5 → 0.1.6

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,308 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: http://localhost:8888/
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
+ Content-Type:
15
+ - application/json
16
+ Params:
17
+ - ''
18
+ User-Agent:
19
+ - Ruby
20
+ response:
21
+ status:
22
+ code: 200
23
+ message: OK
24
+ headers:
25
+ Content-Length:
26
+ - '2'
27
+ Server:
28
+ - TornadoServer/2.4.1
29
+ Etag:
30
+ - '"bf21a9e8fbc5a3846fb05b4fa0859e0917b2202f"'
31
+ Link:
32
+ - <http://localhost:8888/root/schemas/root>; rel=describedby
33
+ Cache-Control:
34
+ - max-age=0
35
+ Access-Control-Allow-Origin:
36
+ - '*'
37
+ Content-Type:
38
+ - application/json; charset=UTF-8; profile=http://localhost:8888/root/schemas/root
39
+ body:
40
+ encoding: UTF-8
41
+ string: '{}'
42
+ http_version:
43
+ recorded_at: Wed, 07 Aug 2013 03:06:58 GMT
44
+ - request:
45
+ method: get
46
+ uri: http://localhost:8888/root/schemas/root
47
+ body:
48
+ encoding: US-ASCII
49
+ string: ''
50
+ headers:
51
+ Accept:
52
+ - '*/*; q=0.5, application/xml'
53
+ Accept-Encoding:
54
+ - gzip, deflate
55
+ Content-Type:
56
+ - application/json
57
+ Params:
58
+ - ''
59
+ User-Agent:
60
+ - Ruby
61
+ response:
62
+ status:
63
+ code: 200
64
+ message: OK
65
+ headers:
66
+ Content-Length:
67
+ - '414'
68
+ Server:
69
+ - TornadoServer/2.4.1
70
+ Etag:
71
+ - '"26c5b90764472752bd035a39e9a521f804374711"'
72
+ Cache-Control:
73
+ - max-age=0
74
+ Access-Control-Allow-Origin:
75
+ - '*'
76
+ Content-Type:
77
+ - application/json; charset=UTF-8
78
+ body:
79
+ encoding: UTF-8
80
+ string: '{"$schema": "http://json-schema.org/draft-04/hyper-schema#", "type":
81
+ "object", "links": [{"href": "http://localhost:8888", "rel": "self"}, {"href":
82
+ "http://localhost:8888/{context_name}", "rel": "context"}, {"href": "http://localhost:8888/{context_name}/{collection_name}",
83
+ "rel": "collection"}, {"href": "http://localhost:8888/{context_name}/{collection_name}/{resource_id}",
84
+ "rel": "resource"}], "title": "Root"}'
85
+ http_version:
86
+ recorded_at: Wed, 07 Aug 2013 03:06:58 GMT
87
+ - request:
88
+ method: get
89
+ uri: http://localhost:8888/pluct/people
90
+ body:
91
+ encoding: US-ASCII
92
+ string: ''
93
+ headers:
94
+ Accept:
95
+ - '*/*; q=0.5, application/xml'
96
+ Accept-Encoding:
97
+ - gzip, deflate
98
+ Content-Type:
99
+ - application/json
100
+ User-Agent:
101
+ - Ruby
102
+ response:
103
+ status:
104
+ code: 200
105
+ message: OK
106
+ headers:
107
+ Content-Length:
108
+ - '588'
109
+ Server:
110
+ - TornadoServer/2.4.1
111
+ Etag:
112
+ - '"78545dadcd3a2ef8620d0147a3ce2648397f1f31"'
113
+ Link:
114
+ - <http://localhost:8888/pluct/schemas/person-collection>; rel=describedby
115
+ Cache-Control:
116
+ - max-age=0
117
+ Access-Control-Allow-Origin:
118
+ - '*'
119
+ Content-Type:
120
+ - application/json; charset=UTF-8; profile=http://localhost:8888/pluct/schemas/person-collection
121
+ body:
122
+ encoding: UTF-8
123
+ string: '{"items": [{"name": "Alice", "resource_id": "c5a9f68fdd164b16b0a98b7fe1d92a45"},
124
+ {"name": "Alice", "resource_id": "e16f26dc099b490ab6500e76da8dd4a3"}, {"name":
125
+ "Alice", "resource_id": "e8f4b3bded62440d8260f96541143cb4"}, {"name": "Alice",
126
+ "resource_id": "2efaddd96b634a3481390a783aa4f9a2"}, {"name": "Alice", "resource_id":
127
+ "45a2f8d827a842ab8133e611dfc3963d"}, {"name": "Alice", "resource_id": "736d623fde46421ea3f98a35774cfbdc"},
128
+ {"name": "Alice", "resource_id": "112987725871472a9471d38cd9d03f75"}, {"name":
129
+ "Alice", "resource_id": "b5ee73d3ca0f44cf8a7a364ec46cbae8"}], "item_count":
130
+ 8}'
131
+ http_version:
132
+ recorded_at: Wed, 07 Aug 2013 03:06:58 GMT
133
+ - request:
134
+ method: get
135
+ uri: http://localhost:8888/pluct/schemas/person-collection
136
+ body:
137
+ encoding: US-ASCII
138
+ string: ''
139
+ headers:
140
+ Accept:
141
+ - '*/*; q=0.5, application/xml'
142
+ Accept-Encoding:
143
+ - gzip, deflate
144
+ Content-Type:
145
+ - application/json
146
+ Params:
147
+ - ''
148
+ User-Agent:
149
+ - Ruby
150
+ response:
151
+ status:
152
+ code: 200
153
+ message: OK
154
+ headers:
155
+ Content-Length:
156
+ - '732'
157
+ Server:
158
+ - TornadoServer/2.4.1
159
+ Etag:
160
+ - '"46465f1efd5fa543dd173c5b8eb61b6304d7aa71"'
161
+ Cache-Control:
162
+ - max-age=0
163
+ Access-Control-Allow-Origin:
164
+ - '*'
165
+ Content-Type:
166
+ - application/json; charset=UTF-8
167
+ body:
168
+ encoding: UTF-8
169
+ string: '{"links": [{"href": "http://localhost:8888/pluct/people", "rel": "self"},
170
+ {"href": "http://localhost:8888/pluct/people", "method": "POST", "rel": "add",
171
+ "schema": {"$ref": "http://localhost:8888/pluct/schemas/person-new"}}, {"href":
172
+ "http://localhost:8888/pluct/people?page={previous_page}", "rel": "previous"},
173
+ {"href": "http://localhost:8888/pluct/people?page={next_page}", "rel": "next"}],
174
+ "title": "Collection", "required": ["items"], "$schema": "http://json-schema.org/draft-04/hyper-schema#",
175
+ "type": "object", "properties": {"items": {"items": {"$ref": "http://localhost:8888/pluct/schemas/person"},
176
+ "type": "array"}, "previous_page": {"type": "integer"}, "next_page": {"type":
177
+ "integer"}, "item_count": {"type": "integer"}}}'
178
+ http_version:
179
+ recorded_at: Wed, 07 Aug 2013 03:06:58 GMT
180
+ - request:
181
+ method: post
182
+ uri: http://localhost:8888/pluct/people
183
+ body:
184
+ encoding: UTF-8
185
+ string: '{"name":"Alice"}'
186
+ headers:
187
+ Accept:
188
+ - '*/*; q=0.5, application/xml'
189
+ Accept-Encoding:
190
+ - gzip, deflate
191
+ Content-Type:
192
+ - application/json
193
+ Content-Length:
194
+ - '16'
195
+ User-Agent:
196
+ - Ruby
197
+ response:
198
+ status:
199
+ code: 201
200
+ message: Created
201
+ headers:
202
+ Content-Length:
203
+ - '0'
204
+ Server:
205
+ - TornadoServer/2.4.1
206
+ Location:
207
+ - http://localhost:8888/pluct/people/81d12d7b038f4f28b6d0abe80e694931
208
+ Cache-Control:
209
+ - max-age=0
210
+ Access-Control-Allow-Origin:
211
+ - '*'
212
+ Content-Type:
213
+ - text/html; charset=UTF-8
214
+ body:
215
+ encoding: UTF-8
216
+ string: ''
217
+ http_version:
218
+ recorded_at: Wed, 07 Aug 2013 03:06:58 GMT
219
+ - request:
220
+ method: get
221
+ uri: http://localhost:8888/pluct/people/81d12d7b038f4f28b6d0abe80e694931
222
+ body:
223
+ encoding: US-ASCII
224
+ string: ''
225
+ headers:
226
+ Accept:
227
+ - '*/*; q=0.5, application/xml'
228
+ Accept-Encoding:
229
+ - gzip, deflate
230
+ Content-Type:
231
+ - application/json
232
+ User-Agent:
233
+ - Ruby
234
+ response:
235
+ status:
236
+ code: 200
237
+ message: OK
238
+ headers:
239
+ Content-Length:
240
+ - '156'
241
+ Server:
242
+ - TornadoServer/2.4.1
243
+ Etag:
244
+ - '"bc4cf8f442a8ab731aa10ea22e3dea76b26079ca"'
245
+ Link:
246
+ - <http://localhost:8888/pluct/schemas/person>; rel=describedby
247
+ Cache-Control:
248
+ - max-age=0
249
+ Access-Control-Allow-Origin:
250
+ - '*'
251
+ Content-Type:
252
+ - application/json; charset=UTF-8; profile=http://localhost:8888/pluct/schemas/person
253
+ body:
254
+ encoding: UTF-8
255
+ string: '{"_resource_uri": "http://localhost:8888/pluct/people/81d12d7b038f4f28b6d0abe80e694931",
256
+ "name": "Alice", "resource_id": "81d12d7b038f4f28b6d0abe80e694931"}'
257
+ http_version:
258
+ recorded_at: Wed, 07 Aug 2013 03:06:58 GMT
259
+ - request:
260
+ method: get
261
+ uri: http://localhost:8888/pluct/schemas/person
262
+ body:
263
+ encoding: US-ASCII
264
+ string: ''
265
+ headers:
266
+ Accept:
267
+ - '*/*; q=0.5, application/xml'
268
+ Accept-Encoding:
269
+ - gzip, deflate
270
+ Content-Type:
271
+ - application/json
272
+ Params:
273
+ - ''
274
+ User-Agent:
275
+ - Ruby
276
+ response:
277
+ status:
278
+ code: 200
279
+ message: OK
280
+ headers:
281
+ Content-Length:
282
+ - '869'
283
+ Server:
284
+ - TornadoServer/2.4.1
285
+ Etag:
286
+ - '"4bd0cf12c29e056e89ec5a6d5513825098dceb8d"'
287
+ Cache-Control:
288
+ - max-age=0
289
+ Access-Control-Allow-Origin:
290
+ - '*'
291
+ Content-Type:
292
+ - application/json; charset=UTF-8
293
+ body:
294
+ encoding: UTF-8
295
+ string: '{"links": [{"href": "http://localhost:8888/pluct/people/{resource_id}",
296
+ "rel": "self"}, {"href": "http://localhost:8888/pluct/people/{resource_id}",
297
+ "rel": "item"}, {"href": "http://localhost:8888/pluct/people/{resource_id}",
298
+ "method": "PATCH", "rel": "update", "schema": {"$ref": "http://localhost:8888/pluct/schemas/person"}},
299
+ {"href": "http://localhost:8888/pluct/people/{resource_id}", "method": "PUT",
300
+ "rel": "replace", "schema": {"$ref": "http://localhost:8888/pluct/schemas/person"}},
301
+ {"href": "http://localhost:8888/pluct/people/{resource_id}", "method": "DELETE",
302
+ "rel": "delete", "schema": {"$ref": "http://localhost:8888/pluct/schemas/person"}}],
303
+ "title": "Person", "collection_name": "people", "resource_id": "person", "$schema":
304
+ "http://json-schema.org/draft-04/hyper-schema#", "type": "object", "properties":
305
+ {"name": {"type": "string", "title": "Name"}}}'
306
+ http_version:
307
+ recorded_at: Wed, 07 Aug 2013 03:06:58 GMT
308
+ recorded_with: VCR 2.5.0
@@ -0,0 +1,520 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: http://localhost:8888/
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
+ Content-Type:
15
+ - application/json
16
+ Params:
17
+ - ''
18
+ User-Agent:
19
+ - Ruby
20
+ response:
21
+ status:
22
+ code: 200
23
+ message: OK
24
+ headers:
25
+ Content-Length:
26
+ - '2'
27
+ Server:
28
+ - TornadoServer/2.4.1
29
+ Etag:
30
+ - '"bf21a9e8fbc5a3846fb05b4fa0859e0917b2202f"'
31
+ Link:
32
+ - <http://localhost:8888/root/schemas/root>; rel=describedby
33
+ Cache-Control:
34
+ - max-age=0
35
+ Access-Control-Allow-Origin:
36
+ - '*'
37
+ Content-Type:
38
+ - application/json; charset=UTF-8; profile=http://localhost:8888/root/schemas/root
39
+ body:
40
+ encoding: UTF-8
41
+ string: '{}'
42
+ http_version:
43
+ recorded_at: Wed, 07 Aug 2013 03:28:19 GMT
44
+ - request:
45
+ method: get
46
+ uri: http://localhost:8888/root/schemas/root
47
+ body:
48
+ encoding: US-ASCII
49
+ string: ''
50
+ headers:
51
+ Accept:
52
+ - '*/*; q=0.5, application/xml'
53
+ Accept-Encoding:
54
+ - gzip, deflate
55
+ Content-Type:
56
+ - application/json
57
+ Params:
58
+ - ''
59
+ User-Agent:
60
+ - Ruby
61
+ response:
62
+ status:
63
+ code: 200
64
+ message: OK
65
+ headers:
66
+ Content-Length:
67
+ - '414'
68
+ Server:
69
+ - TornadoServer/2.4.1
70
+ Etag:
71
+ - '"26c5b90764472752bd035a39e9a521f804374711"'
72
+ Cache-Control:
73
+ - max-age=0
74
+ Access-Control-Allow-Origin:
75
+ - '*'
76
+ Content-Type:
77
+ - application/json; charset=UTF-8
78
+ body:
79
+ encoding: UTF-8
80
+ string: '{"$schema": "http://json-schema.org/draft-04/hyper-schema#", "type":
81
+ "object", "links": [{"href": "http://localhost:8888", "rel": "self"}, {"href":
82
+ "http://localhost:8888/{context_name}", "rel": "context"}, {"href": "http://localhost:8888/{context_name}/{collection_name}",
83
+ "rel": "collection"}, {"href": "http://localhost:8888/{context_name}/{collection_name}/{resource_id}",
84
+ "rel": "resource"}], "title": "Root"}'
85
+ http_version:
86
+ recorded_at: Wed, 07 Aug 2013 03:28:19 GMT
87
+ - request:
88
+ method: get
89
+ uri: http://localhost:8888/pluct/people
90
+ body:
91
+ encoding: US-ASCII
92
+ string: ''
93
+ headers:
94
+ Accept:
95
+ - '*/*; q=0.5, application/xml'
96
+ Accept-Encoding:
97
+ - gzip, deflate
98
+ Content-Type:
99
+ - application/json
100
+ User-Agent:
101
+ - Ruby
102
+ response:
103
+ status:
104
+ code: 200
105
+ message: OK
106
+ headers:
107
+ Content-Length:
108
+ - '833'
109
+ Server:
110
+ - TornadoServer/2.4.1
111
+ Etag:
112
+ - '"0c31bc8404ba6ae1853aeb90250498a8ffef3822"'
113
+ Link:
114
+ - <http://localhost:8888/pluct/schemas/person-collection>; rel=describedby
115
+ Cache-Control:
116
+ - max-age=0
117
+ Access-Control-Allow-Origin:
118
+ - '*'
119
+ Content-Type:
120
+ - application/json; charset=UTF-8; profile=http://localhost:8888/pluct/schemas/person-collection
121
+ body:
122
+ encoding: UTF-8
123
+ string: '{"items": [{"name": "Alice", "resource_id": "c5a9f68fdd164b16b0a98b7fe1d92a45"},
124
+ {"name": "Alice", "resource_id": "e16f26dc099b490ab6500e76da8dd4a3"}, {"name":
125
+ "Alice", "resource_id": "e8f4b3bded62440d8260f96541143cb4"}, {"name": "Alice",
126
+ "resource_id": "2efaddd96b634a3481390a783aa4f9a2"}, {"name": "Alice", "resource_id":
127
+ "45a2f8d827a842ab8133e611dfc3963d"}, {"name": "Alice", "resource_id": "736d623fde46421ea3f98a35774cfbdc"},
128
+ {"name": "Alice", "resource_id": "112987725871472a9471d38cd9d03f75"}, {"name":
129
+ "Alice", "resource_id": "b5ee73d3ca0f44cf8a7a364ec46cbae8"}, {"name": "Alice",
130
+ "resource_id": "81d12d7b038f4f28b6d0abe80e694931"}, {"_resource_uri": "http://localhost:8888/pluct/people/ce9456e69884453e9870d47633a49716",
131
+ "name": "Alice", "resource_id": "ce9456e69884453e9870d47633a49716"}], "next_page":
132
+ 2, "item_count": 16}'
133
+ http_version:
134
+ recorded_at: Wed, 07 Aug 2013 03:28:19 GMT
135
+ - request:
136
+ method: get
137
+ uri: http://localhost:8888/pluct/schemas/person-collection
138
+ body:
139
+ encoding: US-ASCII
140
+ string: ''
141
+ headers:
142
+ Accept:
143
+ - '*/*; q=0.5, application/xml'
144
+ Accept-Encoding:
145
+ - gzip, deflate
146
+ Content-Type:
147
+ - application/json
148
+ Params:
149
+ - ''
150
+ User-Agent:
151
+ - Ruby
152
+ response:
153
+ status:
154
+ code: 200
155
+ message: OK
156
+ headers:
157
+ Content-Length:
158
+ - '732'
159
+ Server:
160
+ - TornadoServer/2.4.1
161
+ Etag:
162
+ - '"46465f1efd5fa543dd173c5b8eb61b6304d7aa71"'
163
+ Cache-Control:
164
+ - max-age=0
165
+ Access-Control-Allow-Origin:
166
+ - '*'
167
+ Content-Type:
168
+ - application/json; charset=UTF-8
169
+ body:
170
+ encoding: UTF-8
171
+ string: '{"links": [{"href": "http://localhost:8888/pluct/people", "rel": "self"},
172
+ {"href": "http://localhost:8888/pluct/people", "method": "POST", "rel": "add",
173
+ "schema": {"$ref": "http://localhost:8888/pluct/schemas/person-new"}}, {"href":
174
+ "http://localhost:8888/pluct/people?page={previous_page}", "rel": "previous"},
175
+ {"href": "http://localhost:8888/pluct/people?page={next_page}", "rel": "next"}],
176
+ "title": "Collection", "required": ["items"], "$schema": "http://json-schema.org/draft-04/hyper-schema#",
177
+ "type": "object", "properties": {"items": {"items": {"$ref": "http://localhost:8888/pluct/schemas/person"},
178
+ "type": "array"}, "previous_page": {"type": "integer"}, "next_page": {"type":
179
+ "integer"}, "item_count": {"type": "integer"}}}'
180
+ http_version:
181
+ recorded_at: Wed, 07 Aug 2013 03:28:19 GMT
182
+ - request:
183
+ method: post
184
+ uri: http://localhost:8888/pluct/people
185
+ body:
186
+ encoding: UTF-8
187
+ string: '{"name":"Alice"}'
188
+ headers:
189
+ Accept:
190
+ - '*/*; q=0.5, application/xml'
191
+ Accept-Encoding:
192
+ - gzip, deflate
193
+ Content-Type:
194
+ - application/json
195
+ Content-Length:
196
+ - '16'
197
+ User-Agent:
198
+ - Ruby
199
+ response:
200
+ status:
201
+ code: 201
202
+ message: Created
203
+ headers:
204
+ Content-Length:
205
+ - '0'
206
+ Server:
207
+ - TornadoServer/2.4.1
208
+ Location:
209
+ - http://localhost:8888/pluct/people/05602c677d454ec8af9baa465583f07b
210
+ Cache-Control:
211
+ - max-age=0
212
+ Access-Control-Allow-Origin:
213
+ - '*'
214
+ Content-Type:
215
+ - text/html; charset=UTF-8
216
+ body:
217
+ encoding: UTF-8
218
+ string: ''
219
+ http_version:
220
+ recorded_at: Wed, 07 Aug 2013 03:28:19 GMT
221
+ - request:
222
+ method: get
223
+ uri: http://localhost:8888/
224
+ body:
225
+ encoding: US-ASCII
226
+ string: ''
227
+ headers:
228
+ Accept:
229
+ - '*/*; q=0.5, application/xml'
230
+ Accept-Encoding:
231
+ - gzip, deflate
232
+ Content-Type:
233
+ - application/json
234
+ Params:
235
+ - ''
236
+ User-Agent:
237
+ - Ruby
238
+ response:
239
+ status:
240
+ code: 200
241
+ message: OK
242
+ headers:
243
+ Content-Length:
244
+ - '2'
245
+ Server:
246
+ - TornadoServer/2.4.1
247
+ Etag:
248
+ - '"bf21a9e8fbc5a3846fb05b4fa0859e0917b2202f"'
249
+ Link:
250
+ - <http://localhost:8888/root/schemas/root>; rel=describedby
251
+ Cache-Control:
252
+ - max-age=0
253
+ Access-Control-Allow-Origin:
254
+ - '*'
255
+ Content-Type:
256
+ - application/json; charset=UTF-8; profile=http://localhost:8888/root/schemas/root
257
+ body:
258
+ encoding: UTF-8
259
+ string: '{}'
260
+ http_version:
261
+ recorded_at: Wed, 07 Aug 2013 03:28:19 GMT
262
+ - request:
263
+ method: get
264
+ uri: http://localhost:8888/root/schemas/root
265
+ body:
266
+ encoding: US-ASCII
267
+ string: ''
268
+ headers:
269
+ Accept:
270
+ - '*/*; q=0.5, application/xml'
271
+ Accept-Encoding:
272
+ - gzip, deflate
273
+ Content-Type:
274
+ - application/json
275
+ Params:
276
+ - ''
277
+ User-Agent:
278
+ - Ruby
279
+ response:
280
+ status:
281
+ code: 200
282
+ message: OK
283
+ headers:
284
+ Content-Length:
285
+ - '414'
286
+ Server:
287
+ - TornadoServer/2.4.1
288
+ Etag:
289
+ - '"26c5b90764472752bd035a39e9a521f804374711"'
290
+ Cache-Control:
291
+ - max-age=0
292
+ Access-Control-Allow-Origin:
293
+ - '*'
294
+ Content-Type:
295
+ - application/json; charset=UTF-8
296
+ body:
297
+ encoding: UTF-8
298
+ string: '{"$schema": "http://json-schema.org/draft-04/hyper-schema#", "type":
299
+ "object", "links": [{"href": "http://localhost:8888", "rel": "self"}, {"href":
300
+ "http://localhost:8888/{context_name}", "rel": "context"}, {"href": "http://localhost:8888/{context_name}/{collection_name}",
301
+ "rel": "collection"}, {"href": "http://localhost:8888/{context_name}/{collection_name}/{resource_id}",
302
+ "rel": "resource"}], "title": "Root"}'
303
+ http_version:
304
+ recorded_at: Wed, 07 Aug 2013 03:28:19 GMT
305
+ - request:
306
+ method: get
307
+ uri: http://localhost:8888/pluct/people/05602c677d454ec8af9baa465583f07b
308
+ body:
309
+ encoding: US-ASCII
310
+ string: ''
311
+ headers:
312
+ Accept:
313
+ - '*/*; q=0.5, application/xml'
314
+ Accept-Encoding:
315
+ - gzip, deflate
316
+ Content-Type:
317
+ - application/json
318
+ User-Agent:
319
+ - Ruby
320
+ response:
321
+ status:
322
+ code: 200
323
+ message: OK
324
+ headers:
325
+ Content-Length:
326
+ - '156'
327
+ Server:
328
+ - TornadoServer/2.4.1
329
+ Etag:
330
+ - '"45e2cbb1b8543883b83e3eea4b9a28a26ee70642"'
331
+ Link:
332
+ - <http://localhost:8888/pluct/schemas/person>; rel=describedby
333
+ Cache-Control:
334
+ - max-age=0
335
+ Access-Control-Allow-Origin:
336
+ - '*'
337
+ Content-Type:
338
+ - application/json; charset=UTF-8; profile=http://localhost:8888/pluct/schemas/person
339
+ body:
340
+ encoding: UTF-8
341
+ string: '{"_resource_uri": "http://localhost:8888/pluct/people/05602c677d454ec8af9baa465583f07b",
342
+ "name": "Alice", "resource_id": "05602c677d454ec8af9baa465583f07b"}'
343
+ http_version:
344
+ recorded_at: Wed, 07 Aug 2013 03:28:19 GMT
345
+ - request:
346
+ method: get
347
+ uri: http://localhost:8888/pluct/schemas/person
348
+ body:
349
+ encoding: US-ASCII
350
+ string: ''
351
+ headers:
352
+ Accept:
353
+ - '*/*; q=0.5, application/xml'
354
+ Accept-Encoding:
355
+ - gzip, deflate
356
+ Content-Type:
357
+ - application/json
358
+ Params:
359
+ - ''
360
+ User-Agent:
361
+ - Ruby
362
+ response:
363
+ status:
364
+ code: 200
365
+ message: OK
366
+ headers:
367
+ Content-Length:
368
+ - '869'
369
+ Server:
370
+ - TornadoServer/2.4.1
371
+ Etag:
372
+ - '"4bd0cf12c29e056e89ec5a6d5513825098dceb8d"'
373
+ Cache-Control:
374
+ - max-age=0
375
+ Access-Control-Allow-Origin:
376
+ - '*'
377
+ Content-Type:
378
+ - application/json; charset=UTF-8
379
+ body:
380
+ encoding: UTF-8
381
+ string: '{"links": [{"href": "http://localhost:8888/pluct/people/{resource_id}",
382
+ "rel": "self"}, {"href": "http://localhost:8888/pluct/people/{resource_id}",
383
+ "rel": "item"}, {"href": "http://localhost:8888/pluct/people/{resource_id}",
384
+ "method": "PATCH", "rel": "update", "schema": {"$ref": "http://localhost:8888/pluct/schemas/person"}},
385
+ {"href": "http://localhost:8888/pluct/people/{resource_id}", "method": "PUT",
386
+ "rel": "replace", "schema": {"$ref": "http://localhost:8888/pluct/schemas/person"}},
387
+ {"href": "http://localhost:8888/pluct/people/{resource_id}", "method": "DELETE",
388
+ "rel": "delete", "schema": {"$ref": "http://localhost:8888/pluct/schemas/person"}}],
389
+ "title": "Person", "collection_name": "people", "resource_id": "person", "$schema":
390
+ "http://json-schema.org/draft-04/hyper-schema#", "type": "object", "properties":
391
+ {"name": {"type": "string", "title": "Name"}}}'
392
+ http_version:
393
+ recorded_at: Wed, 07 Aug 2013 03:28:19 GMT
394
+ - request:
395
+ method: put
396
+ uri: http://localhost:8888/pluct/people/05602c677d454ec8af9baa465583f07b
397
+ body:
398
+ encoding: UTF-8
399
+ string: '{"name":"Alice PUT"}'
400
+ headers:
401
+ Accept:
402
+ - '*/*; q=0.5, application/xml'
403
+ Accept-Encoding:
404
+ - gzip, deflate
405
+ Content-Type:
406
+ - application/json
407
+ Content-Length:
408
+ - '20'
409
+ User-Agent:
410
+ - Ruby
411
+ response:
412
+ status:
413
+ code: 204
414
+ message: No Content
415
+ headers:
416
+ Access-Control-Allow-Origin:
417
+ - '*'
418
+ Cache-Control:
419
+ - max-age=0
420
+ Content-Type:
421
+ - text/html; charset=UTF-8
422
+ Content-Length:
423
+ - '0'
424
+ Server:
425
+ - TornadoServer/2.4.1
426
+ body:
427
+ encoding: UTF-8
428
+ string: ''
429
+ http_version:
430
+ recorded_at: Wed, 07 Aug 2013 03:28:19 GMT
431
+ - request:
432
+ method: get
433
+ uri: http://localhost:8888/pluct/people/05602c677d454ec8af9baa465583f07b
434
+ body:
435
+ encoding: US-ASCII
436
+ string: ''
437
+ headers:
438
+ Accept:
439
+ - '*/*; q=0.5, application/xml'
440
+ Accept-Encoding:
441
+ - gzip, deflate
442
+ Content-Type:
443
+ - application/json
444
+ User-Agent:
445
+ - Ruby
446
+ response:
447
+ status:
448
+ code: 200
449
+ message: OK
450
+ headers:
451
+ Content-Length:
452
+ - '160'
453
+ Server:
454
+ - TornadoServer/2.4.1
455
+ Etag:
456
+ - '"0182e37f052203c7869c9898e5a3bd15c2308e0c"'
457
+ Link:
458
+ - <http://localhost:8888/pluct/schemas/person>; rel=describedby
459
+ Cache-Control:
460
+ - max-age=0
461
+ Access-Control-Allow-Origin:
462
+ - '*'
463
+ Content-Type:
464
+ - application/json; charset=UTF-8; profile=http://localhost:8888/pluct/schemas/person
465
+ body:
466
+ encoding: UTF-8
467
+ string: '{"_resource_uri": "http://localhost:8888/pluct/people/05602c677d454ec8af9baa465583f07b",
468
+ "name": "Alice PUT", "resource_id": "05602c677d454ec8af9baa465583f07b"}'
469
+ http_version:
470
+ recorded_at: Wed, 07 Aug 2013 03:28:19 GMT
471
+ - request:
472
+ method: get
473
+ uri: http://localhost:8888/pluct/schemas/person
474
+ body:
475
+ encoding: US-ASCII
476
+ string: ''
477
+ headers:
478
+ Accept:
479
+ - '*/*; q=0.5, application/xml'
480
+ Accept-Encoding:
481
+ - gzip, deflate
482
+ Content-Type:
483
+ - application/json
484
+ Params:
485
+ - ''
486
+ User-Agent:
487
+ - Ruby
488
+ response:
489
+ status:
490
+ code: 200
491
+ message: OK
492
+ headers:
493
+ Content-Length:
494
+ - '869'
495
+ Server:
496
+ - TornadoServer/2.4.1
497
+ Etag:
498
+ - '"4bd0cf12c29e056e89ec5a6d5513825098dceb8d"'
499
+ Cache-Control:
500
+ - max-age=0
501
+ Access-Control-Allow-Origin:
502
+ - '*'
503
+ Content-Type:
504
+ - application/json; charset=UTF-8
505
+ body:
506
+ encoding: UTF-8
507
+ string: '{"links": [{"href": "http://localhost:8888/pluct/people/{resource_id}",
508
+ "rel": "self"}, {"href": "http://localhost:8888/pluct/people/{resource_id}",
509
+ "rel": "item"}, {"href": "http://localhost:8888/pluct/people/{resource_id}",
510
+ "method": "PATCH", "rel": "update", "schema": {"$ref": "http://localhost:8888/pluct/schemas/person"}},
511
+ {"href": "http://localhost:8888/pluct/people/{resource_id}", "method": "PUT",
512
+ "rel": "replace", "schema": {"$ref": "http://localhost:8888/pluct/schemas/person"}},
513
+ {"href": "http://localhost:8888/pluct/people/{resource_id}", "method": "DELETE",
514
+ "rel": "delete", "schema": {"$ref": "http://localhost:8888/pluct/schemas/person"}}],
515
+ "title": "Person", "collection_name": "people", "resource_id": "person", "$schema":
516
+ "http://json-schema.org/draft-04/hyper-schema#", "type": "object", "properties":
517
+ {"name": {"type": "string", "title": "Name"}}}'
518
+ http_version:
519
+ recorded_at: Wed, 07 Aug 2013 03:28:19 GMT
520
+ recorded_with: VCR 2.5.0