pluct 0.1.5 → 0.1.6
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/lib/pluct/helpers/request.rb +3 -5
- data/lib/pluct/resource.rb +6 -5
- data/lib/pluct/version.rb +1 -1
- data/spec/integration/delete_spec.rb +31 -0
- data/spec/integration/patch_spec.rb +33 -0
- data/spec/integration/post_spec.rb +24 -0
- data/spec/integration/put_spec.rb +33 -0
- data/spec/integration/resource_spec.rb +4 -4
- data/spec/pluct/resource_spec.rb +8 -8
- data/spec/support/vcr/integration/delete.yml +464 -0
- data/spec/support/vcr/integration/patch.yml +520 -0
- data/spec/support/vcr/integration/post.yml +308 -0
- data/spec/support/vcr/integration/put.yml +520 -0
- metadata +19 -3
|
@@ -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:32: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:32: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
|
+
- '833'
|
|
109
|
+
Server:
|
|
110
|
+
- TornadoServer/2.4.1
|
|
111
|
+
Etag:
|
|
112
|
+
- '"04535720e632fa0c2aae37d1e4fdabc4d7ca853d"'
|
|
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": 19}'
|
|
133
|
+
http_version:
|
|
134
|
+
recorded_at: Wed, 07 Aug 2013 03:32:58 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:32:58 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/e30f824667d44cf09fdf1caf2646f437
|
|
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:32:58 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:32:58 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:32:58 GMT
|
|
305
|
+
- request:
|
|
306
|
+
method: get
|
|
307
|
+
uri: http://localhost:8888/pluct/people/e30f824667d44cf09fdf1caf2646f437
|
|
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
|
+
- '"02055ad9047496319a2b00e0fcb22bb624162461"'
|
|
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/e30f824667d44cf09fdf1caf2646f437",
|
|
342
|
+
"name": "Alice", "resource_id": "e30f824667d44cf09fdf1caf2646f437"}'
|
|
343
|
+
http_version:
|
|
344
|
+
recorded_at: Wed, 07 Aug 2013 03:32:58 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:32:58 GMT
|
|
394
|
+
- request:
|
|
395
|
+
method: patch
|
|
396
|
+
uri: http://localhost:8888/pluct/people/e30f824667d44cf09fdf1caf2646f437
|
|
397
|
+
body:
|
|
398
|
+
encoding: UTF-8
|
|
399
|
+
string: '{"name":"Alice PATCH"}'
|
|
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
|
+
- '22'
|
|
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:32:58 GMT
|
|
431
|
+
- request:
|
|
432
|
+
method: get
|
|
433
|
+
uri: http://localhost:8888/pluct/people/e30f824667d44cf09fdf1caf2646f437
|
|
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
|
+
- '162'
|
|
453
|
+
Server:
|
|
454
|
+
- TornadoServer/2.4.1
|
|
455
|
+
Etag:
|
|
456
|
+
- '"8e965534dd7391922ce84e4483068d38b9daf12a"'
|
|
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/e30f824667d44cf09fdf1caf2646f437",
|
|
468
|
+
"name": "Alice PATCH", "resource_id": "e30f824667d44cf09fdf1caf2646f437"}'
|
|
469
|
+
http_version:
|
|
470
|
+
recorded_at: Wed, 07 Aug 2013 03:32:58 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:32:58 GMT
|
|
520
|
+
recorded_with: VCR 2.5.0
|