poptart 0.0.6 → 0.0.7
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/Gemfile.lock +1 -1
- data/README.md +35 -0
- data/lib/poptart/survey.rb +2 -2
- data/lib/poptart/user.rb +2 -2
- data/lib/version.rb +1 -1
- data/spec/requests/answering_survey_questions_spec.rb +2 -2
- data/spec/vcr/answering/survey_questions_answers_a_multiple_choice_question.yml +1003 -77
- data/spec/vcr/answering/survey_questions_answers_a_survey_question.yml +1585 -346
- data/spec/vcr/answering/survey_questions_creates_and_returns_a_random_question_survey.yml +63 -74
- data/spec/vcr/answering/survey_questions_creates_and_returns_an_empty_survey.yml +29 -30
- data/spec/vcr/answering/survey_questions_finds_survey_question_for_id.yml +65 -110
- metadata +2 -2
@@ -6094,6 +6094,933 @@ http_interactions:
|
|
6094
6094
|
}
|
6095
6095
|
http_version:
|
6096
6096
|
recorded_at: Sat, 20 Sep 2014 14:13:50 GMT
|
6097
|
+
- request:
|
6098
|
+
method: post
|
6099
|
+
uri: http://localhost:3000//api/surveys/11/survey_questions/
|
6100
|
+
body:
|
6101
|
+
encoding: UTF-8
|
6102
|
+
string: '{"survey_question":{"question_id":25}}'
|
6103
|
+
headers:
|
6104
|
+
User-Agent:
|
6105
|
+
- Faraday v0.9.0
|
6106
|
+
Content-Type:
|
6107
|
+
- application/json
|
6108
|
+
Api-Token:
|
6109
|
+
- testing
|
6110
|
+
Accept-Encoding:
|
6111
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
6112
|
+
Accept:
|
6113
|
+
- "*/*"
|
6114
|
+
response:
|
6115
|
+
status:
|
6116
|
+
code: 201
|
6117
|
+
message: 'Created '
|
6118
|
+
headers:
|
6119
|
+
X-Frame-Options:
|
6120
|
+
- SAMEORIGIN
|
6121
|
+
X-Xss-Protection:
|
6122
|
+
- 1; mode=block
|
6123
|
+
X-Content-Type-Options:
|
6124
|
+
- nosniff
|
6125
|
+
X-Ua-Compatible:
|
6126
|
+
- chrome=1
|
6127
|
+
Content-Type:
|
6128
|
+
- application/json; charset=utf-8
|
6129
|
+
Etag:
|
6130
|
+
- '"216070265b651c1f34b7d85ec659340e"'
|
6131
|
+
Cache-Control:
|
6132
|
+
- max-age=0, private, must-revalidate
|
6133
|
+
X-Request-Id:
|
6134
|
+
- d9cc5f9a-04e0-4a39-a4b2-88088b8aff02
|
6135
|
+
X-Runtime:
|
6136
|
+
- '0.009726'
|
6137
|
+
Server:
|
6138
|
+
- WEBrick/1.3.1 (Ruby/2.1.2/2014-05-08)
|
6139
|
+
Date:
|
6140
|
+
- Sat, 20 Sep 2014 14:14:34 GMT
|
6141
|
+
Content-Length:
|
6142
|
+
- '183'
|
6143
|
+
Connection:
|
6144
|
+
- Keep-Alive
|
6145
|
+
body:
|
6146
|
+
encoding: UTF-8
|
6147
|
+
string: |-
|
6148
|
+
{
|
6149
|
+
"id": 29,
|
6150
|
+
"survey_id": 11,
|
6151
|
+
"question_id": 25,
|
6152
|
+
"order_index": null,
|
6153
|
+
"answer": null,
|
6154
|
+
"created_at": "2014-09-20T14:14:34.511Z",
|
6155
|
+
"updated_at": "2014-09-20T14:14:34.511Z"
|
6156
|
+
}
|
6157
|
+
http_version:
|
6158
|
+
recorded_at: Sat, 20 Sep 2014 14:14:34 GMT
|
6159
|
+
- request:
|
6160
|
+
method: get
|
6161
|
+
uri: http://localhost:3000/api/surveys/11
|
6162
|
+
body:
|
6163
|
+
encoding: US-ASCII
|
6164
|
+
string: ''
|
6165
|
+
headers:
|
6166
|
+
User-Agent:
|
6167
|
+
- Faraday v0.9.0
|
6168
|
+
Content-Type:
|
6169
|
+
- application/json
|
6170
|
+
Api-Token:
|
6171
|
+
- testing
|
6172
|
+
Accept-Encoding:
|
6173
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
6174
|
+
Accept:
|
6175
|
+
- "*/*"
|
6176
|
+
response:
|
6177
|
+
status:
|
6178
|
+
code: 200
|
6179
|
+
message: 'OK '
|
6180
|
+
headers:
|
6181
|
+
X-Frame-Options:
|
6182
|
+
- SAMEORIGIN
|
6183
|
+
X-Xss-Protection:
|
6184
|
+
- 1; mode=block
|
6185
|
+
X-Content-Type-Options:
|
6186
|
+
- nosniff
|
6187
|
+
X-Ua-Compatible:
|
6188
|
+
- chrome=1
|
6189
|
+
Content-Type:
|
6190
|
+
- application/json; charset=utf-8
|
6191
|
+
Etag:
|
6192
|
+
- '"723f99377dee9985ab2bd05f41fe1e0f"'
|
6193
|
+
Cache-Control:
|
6194
|
+
- max-age=0, private, must-revalidate
|
6195
|
+
X-Request-Id:
|
6196
|
+
- d55b7a0e-8277-416b-8d57-50aa662488c4
|
6197
|
+
X-Runtime:
|
6198
|
+
- '0.009244'
|
6199
|
+
Server:
|
6200
|
+
- WEBrick/1.3.1 (Ruby/2.1.2/2014-05-08)
|
6201
|
+
Date:
|
6202
|
+
- Sat, 20 Sep 2014 14:14:34 GMT
|
6203
|
+
Content-Length:
|
6204
|
+
- '957'
|
6205
|
+
Connection:
|
6206
|
+
- Keep-Alive
|
6207
|
+
body:
|
6208
|
+
encoding: UTF-8
|
6209
|
+
string: |-
|
6210
|
+
{
|
6211
|
+
"id": 11,
|
6212
|
+
"user_id": 11,
|
6213
|
+
"_links": {
|
6214
|
+
"self": {
|
6215
|
+
"href": "http://localhost:3000/api/surveys/11"
|
6216
|
+
},
|
6217
|
+
"survey_questions": {
|
6218
|
+
"post": {
|
6219
|
+
"href": "/api/surveys/11/survey_questions"
|
6220
|
+
},
|
6221
|
+
"put": {
|
6222
|
+
"href": "/api/surveys/11/survey_questions"
|
6223
|
+
}
|
6224
|
+
}
|
6225
|
+
},
|
6226
|
+
"completed": false,
|
6227
|
+
"survey_questions": [
|
6228
|
+
{
|
6229
|
+
"id": 29,
|
6230
|
+
"text": "Where are you?",
|
6231
|
+
"type": "multiple",
|
6232
|
+
"responses": [
|
6233
|
+
"At Home",
|
6234
|
+
"At Work",
|
6235
|
+
"In a car",
|
6236
|
+
"Other"
|
6237
|
+
],
|
6238
|
+
"answer": null,
|
6239
|
+
"freeform": true,
|
6240
|
+
"_links": {
|
6241
|
+
"self": {
|
6242
|
+
"href": "/api/surveys/11/survey_questions/29"
|
6243
|
+
},
|
6244
|
+
"post": {
|
6245
|
+
"href": "http://localhost:3000/api/surveys/11/survey_questions"
|
6246
|
+
},
|
6247
|
+
"put": {
|
6248
|
+
"href": "/api/surveys/11/survey_questions/29"
|
6249
|
+
},
|
6250
|
+
"survey": {
|
6251
|
+
"href": "/api/surveys/11"
|
6252
|
+
}
|
6253
|
+
}
|
6254
|
+
}
|
6255
|
+
]
|
6256
|
+
}
|
6257
|
+
http_version:
|
6258
|
+
recorded_at: Sat, 20 Sep 2014 14:14:34 GMT
|
6259
|
+
- request:
|
6260
|
+
method: put
|
6261
|
+
uri: http://localhost:3000//api/surveys/11/survey_questions/29/
|
6262
|
+
body:
|
6263
|
+
encoding: UTF-8
|
6264
|
+
string: '{"id":29,"survey_question":{"answer":"At Home"}}'
|
6265
|
+
headers:
|
6266
|
+
User-Agent:
|
6267
|
+
- Faraday v0.9.0
|
6268
|
+
Content-Type:
|
6269
|
+
- application/json
|
6270
|
+
Api-Token:
|
6271
|
+
- testing
|
6272
|
+
Accept-Encoding:
|
6273
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
6274
|
+
Accept:
|
6275
|
+
- "*/*"
|
6276
|
+
response:
|
6277
|
+
status:
|
6278
|
+
code: 204
|
6279
|
+
message: 'No Content '
|
6280
|
+
headers:
|
6281
|
+
X-Frame-Options:
|
6282
|
+
- SAMEORIGIN
|
6283
|
+
X-Xss-Protection:
|
6284
|
+
- 1; mode=block
|
6285
|
+
X-Content-Type-Options:
|
6286
|
+
- nosniff
|
6287
|
+
X-Ua-Compatible:
|
6288
|
+
- chrome=1
|
6289
|
+
Cache-Control:
|
6290
|
+
- no-cache
|
6291
|
+
X-Request-Id:
|
6292
|
+
- d85911a5-c346-449a-9ca7-c3307294edeb
|
6293
|
+
X-Runtime:
|
6294
|
+
- '0.008021'
|
6295
|
+
Server:
|
6296
|
+
- WEBrick/1.3.1 (Ruby/2.1.2/2014-05-08)
|
6297
|
+
Date:
|
6298
|
+
- Sat, 20 Sep 2014 14:14:34 GMT
|
6299
|
+
Connection:
|
6300
|
+
- Keep-Alive
|
6301
|
+
body:
|
6302
|
+
encoding: UTF-8
|
6303
|
+
string: ''
|
6304
|
+
http_version:
|
6305
|
+
recorded_at: Sat, 20 Sep 2014 14:14:34 GMT
|
6306
|
+
- request:
|
6307
|
+
method: get
|
6308
|
+
uri: http://localhost:3000/api/surveys/11
|
6309
|
+
body:
|
6310
|
+
encoding: US-ASCII
|
6311
|
+
string: ''
|
6312
|
+
headers:
|
6313
|
+
User-Agent:
|
6314
|
+
- Faraday v0.9.0
|
6315
|
+
Content-Type:
|
6316
|
+
- application/json
|
6317
|
+
Api-Token:
|
6318
|
+
- testing
|
6319
|
+
Accept-Encoding:
|
6320
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
6321
|
+
Accept:
|
6322
|
+
- "*/*"
|
6323
|
+
response:
|
6324
|
+
status:
|
6325
|
+
code: 200
|
6326
|
+
message: 'OK '
|
6327
|
+
headers:
|
6328
|
+
X-Frame-Options:
|
6329
|
+
- SAMEORIGIN
|
6330
|
+
X-Xss-Protection:
|
6331
|
+
- 1; mode=block
|
6332
|
+
X-Content-Type-Options:
|
6333
|
+
- nosniff
|
6334
|
+
X-Ua-Compatible:
|
6335
|
+
- chrome=1
|
6336
|
+
Content-Type:
|
6337
|
+
- application/json; charset=utf-8
|
6338
|
+
Etag:
|
6339
|
+
- '"3ececcdef7bd70dd573783088773e17e"'
|
6340
|
+
Cache-Control:
|
6341
|
+
- max-age=0, private, must-revalidate
|
6342
|
+
X-Request-Id:
|
6343
|
+
- 75ca4bc4-1e96-45ad-819e-00242cf1b8ed
|
6344
|
+
X-Runtime:
|
6345
|
+
- '0.012384'
|
6346
|
+
Server:
|
6347
|
+
- WEBrick/1.3.1 (Ruby/2.1.2/2014-05-08)
|
6348
|
+
Date:
|
6349
|
+
- Sat, 20 Sep 2014 14:14:34 GMT
|
6350
|
+
Content-Length:
|
6351
|
+
- '962'
|
6352
|
+
Connection:
|
6353
|
+
- Keep-Alive
|
6354
|
+
body:
|
6355
|
+
encoding: UTF-8
|
6356
|
+
string: |-
|
6357
|
+
{
|
6358
|
+
"id": 11,
|
6359
|
+
"user_id": 11,
|
6360
|
+
"_links": {
|
6361
|
+
"self": {
|
6362
|
+
"href": "http://localhost:3000/api/surveys/11"
|
6363
|
+
},
|
6364
|
+
"survey_questions": {
|
6365
|
+
"post": {
|
6366
|
+
"href": "/api/surveys/11/survey_questions"
|
6367
|
+
},
|
6368
|
+
"put": {
|
6369
|
+
"href": "/api/surveys/11/survey_questions"
|
6370
|
+
}
|
6371
|
+
}
|
6372
|
+
},
|
6373
|
+
"completed": false,
|
6374
|
+
"survey_questions": [
|
6375
|
+
{
|
6376
|
+
"id": 29,
|
6377
|
+
"text": "Where are you?",
|
6378
|
+
"type": "multiple",
|
6379
|
+
"responses": [
|
6380
|
+
"At Home",
|
6381
|
+
"At Work",
|
6382
|
+
"In a car",
|
6383
|
+
"Other"
|
6384
|
+
],
|
6385
|
+
"answer": "At Home",
|
6386
|
+
"freeform": true,
|
6387
|
+
"_links": {
|
6388
|
+
"self": {
|
6389
|
+
"href": "/api/surveys/11/survey_questions/29"
|
6390
|
+
},
|
6391
|
+
"post": {
|
6392
|
+
"href": "http://localhost:3000/api/surveys/11/survey_questions"
|
6393
|
+
},
|
6394
|
+
"put": {
|
6395
|
+
"href": "/api/surveys/11/survey_questions/29"
|
6396
|
+
},
|
6397
|
+
"survey": {
|
6398
|
+
"href": "/api/surveys/11"
|
6399
|
+
}
|
6400
|
+
}
|
6401
|
+
}
|
6402
|
+
]
|
6403
|
+
}
|
6404
|
+
http_version:
|
6405
|
+
recorded_at: Sat, 20 Sep 2014 14:14:34 GMT
|
6406
|
+
- request:
|
6407
|
+
method: post
|
6408
|
+
uri: http://localhost:3000//api/surveys/65/survey_questions/
|
6409
|
+
body:
|
6410
|
+
encoding: UTF-8
|
6411
|
+
string: '{"survey_question":{"question_id":25}}'
|
6412
|
+
headers:
|
6413
|
+
User-Agent:
|
6414
|
+
- Faraday v0.9.0
|
6415
|
+
Content-Type:
|
6416
|
+
- application/json
|
6417
|
+
Api-Token:
|
6418
|
+
- testing
|
6419
|
+
Accept-Encoding:
|
6420
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
6421
|
+
Accept:
|
6422
|
+
- "*/*"
|
6423
|
+
response:
|
6424
|
+
status:
|
6425
|
+
code: 201
|
6426
|
+
message: 'Created '
|
6427
|
+
headers:
|
6428
|
+
X-Frame-Options:
|
6429
|
+
- SAMEORIGIN
|
6430
|
+
X-Xss-Protection:
|
6431
|
+
- 1; mode=block
|
6432
|
+
X-Content-Type-Options:
|
6433
|
+
- nosniff
|
6434
|
+
X-Ua-Compatible:
|
6435
|
+
- chrome=1
|
6436
|
+
Content-Type:
|
6437
|
+
- application/json; charset=utf-8
|
6438
|
+
Etag:
|
6439
|
+
- '"0d661ff6e50572f4aa3dc7fb6b08a367"'
|
6440
|
+
Cache-Control:
|
6441
|
+
- max-age=0, private, must-revalidate
|
6442
|
+
X-Request-Id:
|
6443
|
+
- a1cb4fe5-80dc-478a-b414-d2ec80b61c9e
|
6444
|
+
X-Runtime:
|
6445
|
+
- '0.008532'
|
6446
|
+
Server:
|
6447
|
+
- WEBrick/1.3.1 (Ruby/2.1.2/2014-05-08)
|
6448
|
+
Date:
|
6449
|
+
- Sun, 21 Sep 2014 20:23:35 GMT
|
6450
|
+
Content-Length:
|
6451
|
+
- '184'
|
6452
|
+
Connection:
|
6453
|
+
- Keep-Alive
|
6454
|
+
body:
|
6455
|
+
encoding: UTF-8
|
6456
|
+
string: |-
|
6457
|
+
{
|
6458
|
+
"id": 224,
|
6459
|
+
"survey_id": 65,
|
6460
|
+
"question_id": 25,
|
6461
|
+
"order_index": null,
|
6462
|
+
"answer": null,
|
6463
|
+
"created_at": "2014-09-21T20:23:35.156Z",
|
6464
|
+
"updated_at": "2014-09-21T20:23:35.156Z"
|
6465
|
+
}
|
6466
|
+
http_version:
|
6467
|
+
recorded_at: Sun, 21 Sep 2014 20:23:35 GMT
|
6468
|
+
- request:
|
6469
|
+
method: get
|
6470
|
+
uri: http://localhost:3000/api/surveys/65
|
6471
|
+
body:
|
6472
|
+
encoding: US-ASCII
|
6473
|
+
string: ''
|
6474
|
+
headers:
|
6475
|
+
User-Agent:
|
6476
|
+
- Faraday v0.9.0
|
6477
|
+
Content-Type:
|
6478
|
+
- application/json
|
6479
|
+
Api-Token:
|
6480
|
+
- testing
|
6481
|
+
Accept-Encoding:
|
6482
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
6483
|
+
Accept:
|
6484
|
+
- "*/*"
|
6485
|
+
response:
|
6486
|
+
status:
|
6487
|
+
code: 200
|
6488
|
+
message: 'OK '
|
6489
|
+
headers:
|
6490
|
+
X-Frame-Options:
|
6491
|
+
- SAMEORIGIN
|
6492
|
+
X-Xss-Protection:
|
6493
|
+
- 1; mode=block
|
6494
|
+
X-Content-Type-Options:
|
6495
|
+
- nosniff
|
6496
|
+
X-Ua-Compatible:
|
6497
|
+
- chrome=1
|
6498
|
+
Content-Type:
|
6499
|
+
- application/json; charset=utf-8
|
6500
|
+
Etag:
|
6501
|
+
- '"181c3306ab0712b2d87d4f3f7b4a21d5"'
|
6502
|
+
Cache-Control:
|
6503
|
+
- max-age=0, private, must-revalidate
|
6504
|
+
X-Request-Id:
|
6505
|
+
- 68e9ab92-c82d-4dfb-b312-8bc59042a811
|
6506
|
+
X-Runtime:
|
6507
|
+
- '0.012300'
|
6508
|
+
Server:
|
6509
|
+
- WEBrick/1.3.1 (Ruby/2.1.2/2014-05-08)
|
6510
|
+
Date:
|
6511
|
+
- Sun, 21 Sep 2014 20:23:35 GMT
|
6512
|
+
Content-Length:
|
6513
|
+
- '1032'
|
6514
|
+
Connection:
|
6515
|
+
- Keep-Alive
|
6516
|
+
body:
|
6517
|
+
encoding: UTF-8
|
6518
|
+
string: |-
|
6519
|
+
{
|
6520
|
+
"id": 65,
|
6521
|
+
"service_user_id": "8c6471f37453b3322e58630166cae6402c3e090cba9b23a1501593bb4d781e2a",
|
6522
|
+
"_links": {
|
6523
|
+
"self": {
|
6524
|
+
"href": "http://localhost:3000/api/surveys/65"
|
6525
|
+
},
|
6526
|
+
"survey_questions": {
|
6527
|
+
"post": {
|
6528
|
+
"href": "/api/surveys/65/survey_questions"
|
6529
|
+
},
|
6530
|
+
"put": {
|
6531
|
+
"href": "/api/surveys/65/survey_questions"
|
6532
|
+
}
|
6533
|
+
}
|
6534
|
+
},
|
6535
|
+
"completed": false,
|
6536
|
+
"survey_questions": [
|
6537
|
+
{
|
6538
|
+
"id": 224,
|
6539
|
+
"text": "Where are you?",
|
6540
|
+
"type": "multiple",
|
6541
|
+
"responses": [
|
6542
|
+
"At Home",
|
6543
|
+
"At Work",
|
6544
|
+
"In a car",
|
6545
|
+
"Other"
|
6546
|
+
],
|
6547
|
+
"answer": null,
|
6548
|
+
"freeform": true,
|
6549
|
+
"_links": {
|
6550
|
+
"self": {
|
6551
|
+
"href": "/api/surveys/65/survey_questions/224"
|
6552
|
+
},
|
6553
|
+
"post": {
|
6554
|
+
"href": "http://localhost:3000/api/surveys/65/survey_questions"
|
6555
|
+
},
|
6556
|
+
"put": {
|
6557
|
+
"href": "/api/surveys/65/survey_questions/224"
|
6558
|
+
},
|
6559
|
+
"survey": {
|
6560
|
+
"href": "/api/surveys/65"
|
6561
|
+
}
|
6562
|
+
}
|
6563
|
+
}
|
6564
|
+
]
|
6565
|
+
}
|
6566
|
+
http_version:
|
6567
|
+
recorded_at: Sun, 21 Sep 2014 20:23:35 GMT
|
6568
|
+
- request:
|
6569
|
+
method: put
|
6570
|
+
uri: http://localhost:3000//api/surveys/65/survey_questions/224/
|
6571
|
+
body:
|
6572
|
+
encoding: UTF-8
|
6573
|
+
string: '{"id":224,"survey_question":{"answer":"At Home"}}'
|
6574
|
+
headers:
|
6575
|
+
User-Agent:
|
6576
|
+
- Faraday v0.9.0
|
6577
|
+
Content-Type:
|
6578
|
+
- application/json
|
6579
|
+
Api-Token:
|
6580
|
+
- testing
|
6581
|
+
Accept-Encoding:
|
6582
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
6583
|
+
Accept:
|
6584
|
+
- "*/*"
|
6585
|
+
response:
|
6586
|
+
status:
|
6587
|
+
code: 204
|
6588
|
+
message: 'No Content '
|
6589
|
+
headers:
|
6590
|
+
X-Frame-Options:
|
6591
|
+
- SAMEORIGIN
|
6592
|
+
X-Xss-Protection:
|
6593
|
+
- 1; mode=block
|
6594
|
+
X-Content-Type-Options:
|
6595
|
+
- nosniff
|
6596
|
+
X-Ua-Compatible:
|
6597
|
+
- chrome=1
|
6598
|
+
Cache-Control:
|
6599
|
+
- no-cache
|
6600
|
+
X-Request-Id:
|
6601
|
+
- 25c92e76-4909-4244-87fe-7ac79bcee56b
|
6602
|
+
X-Runtime:
|
6603
|
+
- '0.010178'
|
6604
|
+
Server:
|
6605
|
+
- WEBrick/1.3.1 (Ruby/2.1.2/2014-05-08)
|
6606
|
+
Date:
|
6607
|
+
- Sun, 21 Sep 2014 20:23:35 GMT
|
6608
|
+
Connection:
|
6609
|
+
- Keep-Alive
|
6610
|
+
body:
|
6611
|
+
encoding: UTF-8
|
6612
|
+
string: ''
|
6613
|
+
http_version:
|
6614
|
+
recorded_at: Sun, 21 Sep 2014 20:23:35 GMT
|
6615
|
+
- request:
|
6616
|
+
method: get
|
6617
|
+
uri: http://localhost:3000/api/surveys/65
|
6618
|
+
body:
|
6619
|
+
encoding: US-ASCII
|
6620
|
+
string: ''
|
6621
|
+
headers:
|
6622
|
+
User-Agent:
|
6623
|
+
- Faraday v0.9.0
|
6624
|
+
Content-Type:
|
6625
|
+
- application/json
|
6626
|
+
Api-Token:
|
6627
|
+
- testing
|
6628
|
+
Accept-Encoding:
|
6629
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
6630
|
+
Accept:
|
6631
|
+
- "*/*"
|
6632
|
+
response:
|
6633
|
+
status:
|
6634
|
+
code: 200
|
6635
|
+
message: 'OK '
|
6636
|
+
headers:
|
6637
|
+
X-Frame-Options:
|
6638
|
+
- SAMEORIGIN
|
6639
|
+
X-Xss-Protection:
|
6640
|
+
- 1; mode=block
|
6641
|
+
X-Content-Type-Options:
|
6642
|
+
- nosniff
|
6643
|
+
X-Ua-Compatible:
|
6644
|
+
- chrome=1
|
6645
|
+
Content-Type:
|
6646
|
+
- application/json; charset=utf-8
|
6647
|
+
Etag:
|
6648
|
+
- '"430957e672aa959c85178c870ca962e8"'
|
6649
|
+
Cache-Control:
|
6650
|
+
- max-age=0, private, must-revalidate
|
6651
|
+
X-Request-Id:
|
6652
|
+
- 724e6f91-b7ab-4ea0-8a3a-40da5f615845
|
6653
|
+
X-Runtime:
|
6654
|
+
- '0.010487'
|
6655
|
+
Server:
|
6656
|
+
- WEBrick/1.3.1 (Ruby/2.1.2/2014-05-08)
|
6657
|
+
Date:
|
6658
|
+
- Sun, 21 Sep 2014 20:23:35 GMT
|
6659
|
+
Content-Length:
|
6660
|
+
- '1037'
|
6661
|
+
Connection:
|
6662
|
+
- Keep-Alive
|
6663
|
+
body:
|
6664
|
+
encoding: UTF-8
|
6665
|
+
string: |-
|
6666
|
+
{
|
6667
|
+
"id": 65,
|
6668
|
+
"service_user_id": "8c6471f37453b3322e58630166cae6402c3e090cba9b23a1501593bb4d781e2a",
|
6669
|
+
"_links": {
|
6670
|
+
"self": {
|
6671
|
+
"href": "http://localhost:3000/api/surveys/65"
|
6672
|
+
},
|
6673
|
+
"survey_questions": {
|
6674
|
+
"post": {
|
6675
|
+
"href": "/api/surveys/65/survey_questions"
|
6676
|
+
},
|
6677
|
+
"put": {
|
6678
|
+
"href": "/api/surveys/65/survey_questions"
|
6679
|
+
}
|
6680
|
+
}
|
6681
|
+
},
|
6682
|
+
"completed": false,
|
6683
|
+
"survey_questions": [
|
6684
|
+
{
|
6685
|
+
"id": 224,
|
6686
|
+
"text": "Where are you?",
|
6687
|
+
"type": "multiple",
|
6688
|
+
"responses": [
|
6689
|
+
"At Home",
|
6690
|
+
"At Work",
|
6691
|
+
"In a car",
|
6692
|
+
"Other"
|
6693
|
+
],
|
6694
|
+
"answer": "At Home",
|
6695
|
+
"freeform": true,
|
6696
|
+
"_links": {
|
6697
|
+
"self": {
|
6698
|
+
"href": "/api/surveys/65/survey_questions/224"
|
6699
|
+
},
|
6700
|
+
"post": {
|
6701
|
+
"href": "http://localhost:3000/api/surveys/65/survey_questions"
|
6702
|
+
},
|
6703
|
+
"put": {
|
6704
|
+
"href": "/api/surveys/65/survey_questions/224"
|
6705
|
+
},
|
6706
|
+
"survey": {
|
6707
|
+
"href": "/api/surveys/65"
|
6708
|
+
}
|
6709
|
+
}
|
6710
|
+
}
|
6711
|
+
]
|
6712
|
+
}
|
6713
|
+
http_version:
|
6714
|
+
recorded_at: Sun, 21 Sep 2014 20:23:35 GMT
|
6715
|
+
- request:
|
6716
|
+
method: post
|
6717
|
+
uri: http://localhost:3000//api/surveys/77/survey_questions/
|
6718
|
+
body:
|
6719
|
+
encoding: UTF-8
|
6720
|
+
string: '{"survey_question":{"question_id":25}}'
|
6721
|
+
headers:
|
6722
|
+
User-Agent:
|
6723
|
+
- Faraday v0.9.0
|
6724
|
+
Content-Type:
|
6725
|
+
- application/json
|
6726
|
+
Api-Token:
|
6727
|
+
- testing
|
6728
|
+
Accept-Encoding:
|
6729
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
6730
|
+
Accept:
|
6731
|
+
- "*/*"
|
6732
|
+
response:
|
6733
|
+
status:
|
6734
|
+
code: 201
|
6735
|
+
message: 'Created '
|
6736
|
+
headers:
|
6737
|
+
X-Frame-Options:
|
6738
|
+
- SAMEORIGIN
|
6739
|
+
X-Xss-Protection:
|
6740
|
+
- 1; mode=block
|
6741
|
+
X-Content-Type-Options:
|
6742
|
+
- nosniff
|
6743
|
+
X-Ua-Compatible:
|
6744
|
+
- chrome=1
|
6745
|
+
Content-Type:
|
6746
|
+
- application/json; charset=utf-8
|
6747
|
+
Etag:
|
6748
|
+
- '"4bf34e4b11914cdf7fd25ddee99beaa3"'
|
6749
|
+
Cache-Control:
|
6750
|
+
- max-age=0, private, must-revalidate
|
6751
|
+
X-Request-Id:
|
6752
|
+
- abf72ef3-13bb-40a8-8d32-6904b1c297d4
|
6753
|
+
X-Runtime:
|
6754
|
+
- '0.022003'
|
6755
|
+
Server:
|
6756
|
+
- WEBrick/1.3.1 (Ruby/2.1.2/2014-05-08)
|
6757
|
+
Date:
|
6758
|
+
- Sun, 21 Sep 2014 20:27:15 GMT
|
6759
|
+
Content-Length:
|
6760
|
+
- '184'
|
6761
|
+
Connection:
|
6762
|
+
- Keep-Alive
|
6763
|
+
body:
|
6764
|
+
encoding: UTF-8
|
6765
|
+
string: |-
|
6766
|
+
{
|
6767
|
+
"id": 241,
|
6768
|
+
"survey_id": 77,
|
6769
|
+
"question_id": 25,
|
6770
|
+
"order_index": null,
|
6771
|
+
"answer": null,
|
6772
|
+
"created_at": "2014-09-21T20:27:15.114Z",
|
6773
|
+
"updated_at": "2014-09-21T20:27:15.114Z"
|
6774
|
+
}
|
6775
|
+
http_version:
|
6776
|
+
recorded_at: Sun, 21 Sep 2014 20:27:15 GMT
|
6777
|
+
- request:
|
6778
|
+
method: get
|
6779
|
+
uri: http://localhost:3000/api/surveys/77
|
6780
|
+
body:
|
6781
|
+
encoding: US-ASCII
|
6782
|
+
string: ''
|
6783
|
+
headers:
|
6784
|
+
User-Agent:
|
6785
|
+
- Faraday v0.9.0
|
6786
|
+
Content-Type:
|
6787
|
+
- application/json
|
6788
|
+
Api-Token:
|
6789
|
+
- testing
|
6790
|
+
Accept-Encoding:
|
6791
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
6792
|
+
Accept:
|
6793
|
+
- "*/*"
|
6794
|
+
response:
|
6795
|
+
status:
|
6796
|
+
code: 200
|
6797
|
+
message: 'OK '
|
6798
|
+
headers:
|
6799
|
+
X-Frame-Options:
|
6800
|
+
- SAMEORIGIN
|
6801
|
+
X-Xss-Protection:
|
6802
|
+
- 1; mode=block
|
6803
|
+
X-Content-Type-Options:
|
6804
|
+
- nosniff
|
6805
|
+
X-Ua-Compatible:
|
6806
|
+
- chrome=1
|
6807
|
+
Content-Type:
|
6808
|
+
- application/json; charset=utf-8
|
6809
|
+
Etag:
|
6810
|
+
- '"f218efaedbcb18962757a0b158310ad8"'
|
6811
|
+
Cache-Control:
|
6812
|
+
- max-age=0, private, must-revalidate
|
6813
|
+
X-Request-Id:
|
6814
|
+
- 4918060f-b43e-4cc1-a679-2b217cb2eff7
|
6815
|
+
X-Runtime:
|
6816
|
+
- '0.010885'
|
6817
|
+
Server:
|
6818
|
+
- WEBrick/1.3.1 (Ruby/2.1.2/2014-05-08)
|
6819
|
+
Date:
|
6820
|
+
- Sun, 21 Sep 2014 20:27:15 GMT
|
6821
|
+
Content-Length:
|
6822
|
+
- '1032'
|
6823
|
+
Connection:
|
6824
|
+
- Keep-Alive
|
6825
|
+
body:
|
6826
|
+
encoding: UTF-8
|
6827
|
+
string: |-
|
6828
|
+
{
|
6829
|
+
"id": 77,
|
6830
|
+
"service_user_id": "143c09dfe70bcc59e054cad10b2039c8f984e8d984869fbcb5bb44c4ab202c0b",
|
6831
|
+
"_links": {
|
6832
|
+
"self": {
|
6833
|
+
"href": "http://localhost:3000/api/surveys/77"
|
6834
|
+
},
|
6835
|
+
"survey_questions": {
|
6836
|
+
"post": {
|
6837
|
+
"href": "/api/surveys/77/survey_questions"
|
6838
|
+
},
|
6839
|
+
"put": {
|
6840
|
+
"href": "/api/surveys/77/survey_questions"
|
6841
|
+
}
|
6842
|
+
}
|
6843
|
+
},
|
6844
|
+
"completed": false,
|
6845
|
+
"survey_questions": [
|
6846
|
+
{
|
6847
|
+
"id": 241,
|
6848
|
+
"text": "Where are you?",
|
6849
|
+
"type": "multiple",
|
6850
|
+
"responses": [
|
6851
|
+
"At Home",
|
6852
|
+
"At Work",
|
6853
|
+
"In a car",
|
6854
|
+
"Other"
|
6855
|
+
],
|
6856
|
+
"answer": null,
|
6857
|
+
"freeform": true,
|
6858
|
+
"_links": {
|
6859
|
+
"self": {
|
6860
|
+
"href": "/api/surveys/77/survey_questions/241"
|
6861
|
+
},
|
6862
|
+
"post": {
|
6863
|
+
"href": "http://localhost:3000/api/surveys/77/survey_questions"
|
6864
|
+
},
|
6865
|
+
"put": {
|
6866
|
+
"href": "/api/surveys/77/survey_questions/241"
|
6867
|
+
},
|
6868
|
+
"survey": {
|
6869
|
+
"href": "/api/surveys/77"
|
6870
|
+
}
|
6871
|
+
}
|
6872
|
+
}
|
6873
|
+
]
|
6874
|
+
}
|
6875
|
+
http_version:
|
6876
|
+
recorded_at: Sun, 21 Sep 2014 20:27:15 GMT
|
6877
|
+
- request:
|
6878
|
+
method: put
|
6879
|
+
uri: http://localhost:3000//api/surveys/77/survey_questions/241/
|
6880
|
+
body:
|
6881
|
+
encoding: UTF-8
|
6882
|
+
string: '{"id":241,"survey_question":{"answer":"At Home"}}'
|
6883
|
+
headers:
|
6884
|
+
User-Agent:
|
6885
|
+
- Faraday v0.9.0
|
6886
|
+
Content-Type:
|
6887
|
+
- application/json
|
6888
|
+
Api-Token:
|
6889
|
+
- testing
|
6890
|
+
Accept-Encoding:
|
6891
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
6892
|
+
Accept:
|
6893
|
+
- "*/*"
|
6894
|
+
response:
|
6895
|
+
status:
|
6896
|
+
code: 204
|
6897
|
+
message: 'No Content '
|
6898
|
+
headers:
|
6899
|
+
X-Frame-Options:
|
6900
|
+
- SAMEORIGIN
|
6901
|
+
X-Xss-Protection:
|
6902
|
+
- 1; mode=block
|
6903
|
+
X-Content-Type-Options:
|
6904
|
+
- nosniff
|
6905
|
+
X-Ua-Compatible:
|
6906
|
+
- chrome=1
|
6907
|
+
Cache-Control:
|
6908
|
+
- no-cache
|
6909
|
+
X-Request-Id:
|
6910
|
+
- cd6fa32b-cb28-4295-8b67-6cdf58ece553
|
6911
|
+
X-Runtime:
|
6912
|
+
- '0.010069'
|
6913
|
+
Server:
|
6914
|
+
- WEBrick/1.3.1 (Ruby/2.1.2/2014-05-08)
|
6915
|
+
Date:
|
6916
|
+
- Sun, 21 Sep 2014 20:27:15 GMT
|
6917
|
+
Connection:
|
6918
|
+
- Keep-Alive
|
6919
|
+
body:
|
6920
|
+
encoding: UTF-8
|
6921
|
+
string: ''
|
6922
|
+
http_version:
|
6923
|
+
recorded_at: Sun, 21 Sep 2014 20:27:15 GMT
|
6924
|
+
- request:
|
6925
|
+
method: get
|
6926
|
+
uri: http://localhost:3000/api/surveys/77
|
6927
|
+
body:
|
6928
|
+
encoding: US-ASCII
|
6929
|
+
string: ''
|
6930
|
+
headers:
|
6931
|
+
User-Agent:
|
6932
|
+
- Faraday v0.9.0
|
6933
|
+
Content-Type:
|
6934
|
+
- application/json
|
6935
|
+
Api-Token:
|
6936
|
+
- testing
|
6937
|
+
Accept-Encoding:
|
6938
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
6939
|
+
Accept:
|
6940
|
+
- "*/*"
|
6941
|
+
response:
|
6942
|
+
status:
|
6943
|
+
code: 200
|
6944
|
+
message: 'OK '
|
6945
|
+
headers:
|
6946
|
+
X-Frame-Options:
|
6947
|
+
- SAMEORIGIN
|
6948
|
+
X-Xss-Protection:
|
6949
|
+
- 1; mode=block
|
6950
|
+
X-Content-Type-Options:
|
6951
|
+
- nosniff
|
6952
|
+
X-Ua-Compatible:
|
6953
|
+
- chrome=1
|
6954
|
+
Content-Type:
|
6955
|
+
- application/json; charset=utf-8
|
6956
|
+
Etag:
|
6957
|
+
- '"d2af8804a0b575a2cda70192423c8746"'
|
6958
|
+
Cache-Control:
|
6959
|
+
- max-age=0, private, must-revalidate
|
6960
|
+
X-Request-Id:
|
6961
|
+
- c58c1c0f-0032-493e-b0db-f6bf333be2c0
|
6962
|
+
X-Runtime:
|
6963
|
+
- '0.014557'
|
6964
|
+
Server:
|
6965
|
+
- WEBrick/1.3.1 (Ruby/2.1.2/2014-05-08)
|
6966
|
+
Date:
|
6967
|
+
- Sun, 21 Sep 2014 20:27:15 GMT
|
6968
|
+
Content-Length:
|
6969
|
+
- '1037'
|
6970
|
+
Connection:
|
6971
|
+
- Keep-Alive
|
6972
|
+
body:
|
6973
|
+
encoding: UTF-8
|
6974
|
+
string: |-
|
6975
|
+
{
|
6976
|
+
"id": 77,
|
6977
|
+
"service_user_id": "143c09dfe70bcc59e054cad10b2039c8f984e8d984869fbcb5bb44c4ab202c0b",
|
6978
|
+
"_links": {
|
6979
|
+
"self": {
|
6980
|
+
"href": "http://localhost:3000/api/surveys/77"
|
6981
|
+
},
|
6982
|
+
"survey_questions": {
|
6983
|
+
"post": {
|
6984
|
+
"href": "/api/surveys/77/survey_questions"
|
6985
|
+
},
|
6986
|
+
"put": {
|
6987
|
+
"href": "/api/surveys/77/survey_questions"
|
6988
|
+
}
|
6989
|
+
}
|
6990
|
+
},
|
6991
|
+
"completed": false,
|
6992
|
+
"survey_questions": [
|
6993
|
+
{
|
6994
|
+
"id": 241,
|
6995
|
+
"text": "Where are you?",
|
6996
|
+
"type": "multiple",
|
6997
|
+
"responses": [
|
6998
|
+
"At Home",
|
6999
|
+
"At Work",
|
7000
|
+
"In a car",
|
7001
|
+
"Other"
|
7002
|
+
],
|
7003
|
+
"answer": "At Home",
|
7004
|
+
"freeform": true,
|
7005
|
+
"_links": {
|
7006
|
+
"self": {
|
7007
|
+
"href": "/api/surveys/77/survey_questions/241"
|
7008
|
+
},
|
7009
|
+
"post": {
|
7010
|
+
"href": "http://localhost:3000/api/surveys/77/survey_questions"
|
7011
|
+
},
|
7012
|
+
"put": {
|
7013
|
+
"href": "/api/surveys/77/survey_questions/241"
|
7014
|
+
},
|
7015
|
+
"survey": {
|
7016
|
+
"href": "/api/surveys/77"
|
7017
|
+
}
|
7018
|
+
}
|
7019
|
+
}
|
7020
|
+
]
|
7021
|
+
}
|
7022
|
+
http_version:
|
7023
|
+
recorded_at: Sun, 21 Sep 2014 20:27:15 GMT
|
6097
7024
|
- request:
|
6098
7025
|
method: get
|
6099
7026
|
uri: http://localhost:3000/api/questions/
|
@@ -6131,13 +7058,13 @@ http_interactions:
|
|
6131
7058
|
Cache-Control:
|
6132
7059
|
- max-age=0, private, must-revalidate
|
6133
7060
|
X-Request-Id:
|
6134
|
-
-
|
7061
|
+
- ff0ab642-459a-47c6-9b5b-0da3fb4e31ee
|
6135
7062
|
X-Runtime:
|
6136
|
-
- '0.
|
7063
|
+
- '0.007920'
|
6137
7064
|
Server:
|
6138
7065
|
- WEBrick/1.3.1 (Ruby/2.1.2/2014-05-08)
|
6139
7066
|
Date:
|
6140
|
-
-
|
7067
|
+
- Sun, 21 Sep 2014 20:28:01 GMT
|
6141
7068
|
Content-Length:
|
6142
7069
|
- '7773'
|
6143
7070
|
Connection:
|
@@ -6512,7 +7439,7 @@ http_interactions:
|
|
6512
7439
|
}
|
6513
7440
|
]
|
6514
7441
|
http_version:
|
6515
|
-
recorded_at:
|
7442
|
+
recorded_at: Sun, 21 Sep 2014 20:28:01 GMT
|
6516
7443
|
- request:
|
6517
7444
|
method: post
|
6518
7445
|
uri: http://localhost:3000/api/users/
|
@@ -6546,42 +7473,41 @@ http_interactions:
|
|
6546
7473
|
Content-Type:
|
6547
7474
|
- application/json; charset=utf-8
|
6548
7475
|
Etag:
|
6549
|
-
- '"
|
7476
|
+
- '"f9e6630cbd5e45fd8bcd72ed9624091d"'
|
6550
7477
|
Cache-Control:
|
6551
7478
|
- max-age=0, private, must-revalidate
|
6552
7479
|
X-Request-Id:
|
6553
|
-
-
|
7480
|
+
- b81942c4-d65b-465d-a7e1-07ef0c0efa36
|
6554
7481
|
X-Runtime:
|
6555
|
-
- '0.
|
7482
|
+
- '0.006588'
|
6556
7483
|
Server:
|
6557
7484
|
- WEBrick/1.3.1 (Ruby/2.1.2/2014-05-08)
|
6558
7485
|
Date:
|
6559
|
-
-
|
7486
|
+
- Sun, 21 Sep 2014 20:28:01 GMT
|
6560
7487
|
Content-Length:
|
6561
|
-
- '
|
7488
|
+
- '260'
|
6562
7489
|
Connection:
|
6563
7490
|
- Keep-Alive
|
6564
7491
|
body:
|
6565
7492
|
encoding: UTF-8
|
6566
7493
|
string: |-
|
6567
7494
|
{
|
6568
|
-
"
|
6569
|
-
"service_user_id": "3aa49be2db36a85fe4c6b19e6345c8379836716ee035c972e748c7c71195864c",
|
7495
|
+
"service_user_id": "e81f9df2f19ac3d0e4634061bff685bbb732abb269049eafdd4fa9ae7c836c6b",
|
6570
7496
|
"_links": {
|
6571
7497
|
"self": {
|
6572
|
-
"href": "http://localhost:3000/api/users/
|
7498
|
+
"href": "http://localhost:3000/api/users/86"
|
6573
7499
|
}
|
6574
7500
|
},
|
6575
|
-
"token": "
|
7501
|
+
"token": "c2ffdad2f8fb5aa69b36f5ea0468938657cf4a56a20fd6fda99e9f279b8f8b89"
|
6576
7502
|
}
|
6577
7503
|
http_version:
|
6578
|
-
recorded_at:
|
7504
|
+
recorded_at: Sun, 21 Sep 2014 20:28:01 GMT
|
6579
7505
|
- request:
|
6580
7506
|
method: post
|
6581
7507
|
uri: http://localhost:3000/api/surveys/
|
6582
7508
|
body:
|
6583
7509
|
encoding: UTF-8
|
6584
|
-
string: '{"survey":{"
|
7510
|
+
string: '{"survey":{"service_user_id":"e81f9df2f19ac3d0e4634061bff685bbb732abb269049eafdd4fa9ae7c836c6b"}}'
|
6585
7511
|
headers:
|
6586
7512
|
User-Agent:
|
6587
7513
|
- Faraday v0.9.0
|
@@ -6609,37 +7535,37 @@ http_interactions:
|
|
6609
7535
|
Content-Type:
|
6610
7536
|
- application/json; charset=utf-8
|
6611
7537
|
Etag:
|
6612
|
-
- '"
|
7538
|
+
- '"124615ac9af8f535a02c5356bab8ac97"'
|
6613
7539
|
Cache-Control:
|
6614
7540
|
- max-age=0, private, must-revalidate
|
6615
7541
|
X-Request-Id:
|
6616
|
-
-
|
7542
|
+
- fca93440-fa4f-4b72-88f5-100ff0bc6b7c
|
6617
7543
|
X-Runtime:
|
6618
|
-
- '0.
|
7544
|
+
- '0.010446'
|
6619
7545
|
Server:
|
6620
7546
|
- WEBrick/1.3.1 (Ruby/2.1.2/2014-05-08)
|
6621
7547
|
Date:
|
6622
|
-
-
|
7548
|
+
- Sun, 21 Sep 2014 20:28:01 GMT
|
6623
7549
|
Content-Length:
|
6624
|
-
- '
|
7550
|
+
- '430'
|
6625
7551
|
Connection:
|
6626
7552
|
- Keep-Alive
|
6627
7553
|
body:
|
6628
7554
|
encoding: UTF-8
|
6629
7555
|
string: |-
|
6630
7556
|
{
|
6631
|
-
"id":
|
6632
|
-
"
|
7557
|
+
"id": 86,
|
7558
|
+
"service_user_id": "e81f9df2f19ac3d0e4634061bff685bbb732abb269049eafdd4fa9ae7c836c6b",
|
6633
7559
|
"_links": {
|
6634
7560
|
"self": {
|
6635
|
-
"href": "http://localhost:3000/api/surveys/
|
7561
|
+
"href": "http://localhost:3000/api/surveys/86"
|
6636
7562
|
},
|
6637
7563
|
"survey_questions": {
|
6638
7564
|
"post": {
|
6639
|
-
"href": "/api/surveys/
|
7565
|
+
"href": "/api/surveys/86/survey_questions"
|
6640
7566
|
},
|
6641
7567
|
"put": {
|
6642
|
-
"href": "/api/surveys/
|
7568
|
+
"href": "/api/surveys/86/survey_questions"
|
6643
7569
|
}
|
6644
7570
|
}
|
6645
7571
|
},
|
@@ -6649,10 +7575,10 @@ http_interactions:
|
|
6649
7575
|
]
|
6650
7576
|
}
|
6651
7577
|
http_version:
|
6652
|
-
recorded_at:
|
7578
|
+
recorded_at: Sun, 21 Sep 2014 20:28:01 GMT
|
6653
7579
|
- request:
|
6654
7580
|
method: post
|
6655
|
-
uri: http://localhost:3000//api/surveys/
|
7581
|
+
uri: http://localhost:3000//api/surveys/86/survey_questions/
|
6656
7582
|
body:
|
6657
7583
|
encoding: UTF-8
|
6658
7584
|
string: '{"survey_question":{"question_id":25}}'
|
@@ -6683,38 +7609,38 @@ http_interactions:
|
|
6683
7609
|
Content-Type:
|
6684
7610
|
- application/json; charset=utf-8
|
6685
7611
|
Etag:
|
6686
|
-
- '"
|
7612
|
+
- '"74b50adb92c0a142ae7e24901464325b"'
|
6687
7613
|
Cache-Control:
|
6688
7614
|
- max-age=0, private, must-revalidate
|
6689
7615
|
X-Request-Id:
|
6690
|
-
-
|
7616
|
+
- 9e12faa6-551c-4530-82a5-182dc593b52e
|
6691
7617
|
X-Runtime:
|
6692
|
-
- '0.
|
7618
|
+
- '0.009521'
|
6693
7619
|
Server:
|
6694
7620
|
- WEBrick/1.3.1 (Ruby/2.1.2/2014-05-08)
|
6695
7621
|
Date:
|
6696
|
-
-
|
7622
|
+
- Sun, 21 Sep 2014 20:28:01 GMT
|
6697
7623
|
Content-Length:
|
6698
|
-
- '
|
7624
|
+
- '184'
|
6699
7625
|
Connection:
|
6700
7626
|
- Keep-Alive
|
6701
7627
|
body:
|
6702
7628
|
encoding: UTF-8
|
6703
7629
|
string: |-
|
6704
7630
|
{
|
6705
|
-
"id":
|
6706
|
-
"survey_id":
|
7631
|
+
"id": 274,
|
7632
|
+
"survey_id": 86,
|
6707
7633
|
"question_id": 25,
|
6708
7634
|
"order_index": null,
|
6709
7635
|
"answer": null,
|
6710
|
-
"created_at": "2014-09-
|
6711
|
-
"updated_at": "2014-09-
|
7636
|
+
"created_at": "2014-09-21T20:28:01.949Z",
|
7637
|
+
"updated_at": "2014-09-21T20:28:01.949Z"
|
6712
7638
|
}
|
6713
7639
|
http_version:
|
6714
|
-
recorded_at:
|
7640
|
+
recorded_at: Sun, 21 Sep 2014 20:28:01 GMT
|
6715
7641
|
- request:
|
6716
7642
|
method: get
|
6717
|
-
uri: http://localhost:3000/api/surveys/
|
7643
|
+
uri: http://localhost:3000/api/surveys/86
|
6718
7644
|
body:
|
6719
7645
|
encoding: US-ASCII
|
6720
7646
|
string: ''
|
@@ -6745,44 +7671,44 @@ http_interactions:
|
|
6745
7671
|
Content-Type:
|
6746
7672
|
- application/json; charset=utf-8
|
6747
7673
|
Etag:
|
6748
|
-
- '"
|
7674
|
+
- '"8b4f82eba1438597db1f7510c051bdf4"'
|
6749
7675
|
Cache-Control:
|
6750
7676
|
- max-age=0, private, must-revalidate
|
6751
7677
|
X-Request-Id:
|
6752
|
-
-
|
7678
|
+
- 46bdef44-4668-46d4-af05-22567a593001
|
6753
7679
|
X-Runtime:
|
6754
|
-
- '0.
|
7680
|
+
- '0.009840'
|
6755
7681
|
Server:
|
6756
7682
|
- WEBrick/1.3.1 (Ruby/2.1.2/2014-05-08)
|
6757
7683
|
Date:
|
6758
|
-
-
|
7684
|
+
- Sun, 21 Sep 2014 20:28:01 GMT
|
6759
7685
|
Content-Length:
|
6760
|
-
- '
|
7686
|
+
- '1032'
|
6761
7687
|
Connection:
|
6762
7688
|
- Keep-Alive
|
6763
7689
|
body:
|
6764
7690
|
encoding: UTF-8
|
6765
7691
|
string: |-
|
6766
7692
|
{
|
6767
|
-
"id":
|
6768
|
-
"
|
7693
|
+
"id": 86,
|
7694
|
+
"service_user_id": "e81f9df2f19ac3d0e4634061bff685bbb732abb269049eafdd4fa9ae7c836c6b",
|
6769
7695
|
"_links": {
|
6770
7696
|
"self": {
|
6771
|
-
"href": "http://localhost:3000/api/surveys/
|
7697
|
+
"href": "http://localhost:3000/api/surveys/86"
|
6772
7698
|
},
|
6773
7699
|
"survey_questions": {
|
6774
7700
|
"post": {
|
6775
|
-
"href": "/api/surveys/
|
7701
|
+
"href": "/api/surveys/86/survey_questions"
|
6776
7702
|
},
|
6777
7703
|
"put": {
|
6778
|
-
"href": "/api/surveys/
|
7704
|
+
"href": "/api/surveys/86/survey_questions"
|
6779
7705
|
}
|
6780
7706
|
}
|
6781
7707
|
},
|
6782
7708
|
"completed": false,
|
6783
7709
|
"survey_questions": [
|
6784
7710
|
{
|
6785
|
-
"id":
|
7711
|
+
"id": 274,
|
6786
7712
|
"text": "Where are you?",
|
6787
7713
|
"type": "multiple",
|
6788
7714
|
"responses": [
|
@@ -6795,29 +7721,29 @@ http_interactions:
|
|
6795
7721
|
"freeform": true,
|
6796
7722
|
"_links": {
|
6797
7723
|
"self": {
|
6798
|
-
"href": "/api/surveys/
|
7724
|
+
"href": "/api/surveys/86/survey_questions/274"
|
6799
7725
|
},
|
6800
7726
|
"post": {
|
6801
|
-
"href": "http://localhost:3000/api/surveys/
|
7727
|
+
"href": "http://localhost:3000/api/surveys/86/survey_questions"
|
6802
7728
|
},
|
6803
7729
|
"put": {
|
6804
|
-
"href": "/api/surveys/
|
7730
|
+
"href": "/api/surveys/86/survey_questions/274"
|
6805
7731
|
},
|
6806
7732
|
"survey": {
|
6807
|
-
"href": "/api/surveys/
|
7733
|
+
"href": "/api/surveys/86"
|
6808
7734
|
}
|
6809
7735
|
}
|
6810
7736
|
}
|
6811
7737
|
]
|
6812
7738
|
}
|
6813
7739
|
http_version:
|
6814
|
-
recorded_at:
|
7740
|
+
recorded_at: Sun, 21 Sep 2014 20:28:01 GMT
|
6815
7741
|
- request:
|
6816
7742
|
method: put
|
6817
|
-
uri: http://localhost:3000//api/surveys/
|
7743
|
+
uri: http://localhost:3000//api/surveys/86/survey_questions/274/
|
6818
7744
|
body:
|
6819
7745
|
encoding: UTF-8
|
6820
|
-
string: '{"id":
|
7746
|
+
string: '{"id":274,"survey_question":{"answer":"At Home"}}'
|
6821
7747
|
headers:
|
6822
7748
|
User-Agent:
|
6823
7749
|
- Faraday v0.9.0
|
@@ -6845,23 +7771,23 @@ http_interactions:
|
|
6845
7771
|
Cache-Control:
|
6846
7772
|
- no-cache
|
6847
7773
|
X-Request-Id:
|
6848
|
-
-
|
7774
|
+
- e94b4bc7-7f10-46cf-a024-f86c94fc4248
|
6849
7775
|
X-Runtime:
|
6850
|
-
- '0.
|
7776
|
+
- '0.008535'
|
6851
7777
|
Server:
|
6852
7778
|
- WEBrick/1.3.1 (Ruby/2.1.2/2014-05-08)
|
6853
7779
|
Date:
|
6854
|
-
-
|
7780
|
+
- Sun, 21 Sep 2014 20:28:01 GMT
|
6855
7781
|
Connection:
|
6856
7782
|
- Keep-Alive
|
6857
7783
|
body:
|
6858
7784
|
encoding: UTF-8
|
6859
7785
|
string: ''
|
6860
7786
|
http_version:
|
6861
|
-
recorded_at:
|
7787
|
+
recorded_at: Sun, 21 Sep 2014 20:28:01 GMT
|
6862
7788
|
- request:
|
6863
7789
|
method: get
|
6864
|
-
uri: http://localhost:3000/api/surveys/
|
7790
|
+
uri: http://localhost:3000/api/surveys/86
|
6865
7791
|
body:
|
6866
7792
|
encoding: US-ASCII
|
6867
7793
|
string: ''
|
@@ -6892,44 +7818,44 @@ http_interactions:
|
|
6892
7818
|
Content-Type:
|
6893
7819
|
- application/json; charset=utf-8
|
6894
7820
|
Etag:
|
6895
|
-
- '"
|
7821
|
+
- '"81d2757b954c88017bb526a4698a62bb"'
|
6896
7822
|
Cache-Control:
|
6897
7823
|
- max-age=0, private, must-revalidate
|
6898
7824
|
X-Request-Id:
|
6899
|
-
-
|
7825
|
+
- ec6c3ca1-aa63-4593-93f4-0df49e389534
|
6900
7826
|
X-Runtime:
|
6901
|
-
- '0.
|
7827
|
+
- '0.012396'
|
6902
7828
|
Server:
|
6903
7829
|
- WEBrick/1.3.1 (Ruby/2.1.2/2014-05-08)
|
6904
7830
|
Date:
|
6905
|
-
-
|
7831
|
+
- Sun, 21 Sep 2014 20:28:02 GMT
|
6906
7832
|
Content-Length:
|
6907
|
-
- '
|
7833
|
+
- '1037'
|
6908
7834
|
Connection:
|
6909
7835
|
- Keep-Alive
|
6910
7836
|
body:
|
6911
7837
|
encoding: UTF-8
|
6912
7838
|
string: |-
|
6913
7839
|
{
|
6914
|
-
"id":
|
6915
|
-
"
|
7840
|
+
"id": 86,
|
7841
|
+
"service_user_id": "e81f9df2f19ac3d0e4634061bff685bbb732abb269049eafdd4fa9ae7c836c6b",
|
6916
7842
|
"_links": {
|
6917
7843
|
"self": {
|
6918
|
-
"href": "http://localhost:3000/api/surveys/
|
7844
|
+
"href": "http://localhost:3000/api/surveys/86"
|
6919
7845
|
},
|
6920
7846
|
"survey_questions": {
|
6921
7847
|
"post": {
|
6922
|
-
"href": "/api/surveys/
|
7848
|
+
"href": "/api/surveys/86/survey_questions"
|
6923
7849
|
},
|
6924
7850
|
"put": {
|
6925
|
-
"href": "/api/surveys/
|
7851
|
+
"href": "/api/surveys/86/survey_questions"
|
6926
7852
|
}
|
6927
7853
|
}
|
6928
7854
|
},
|
6929
7855
|
"completed": false,
|
6930
7856
|
"survey_questions": [
|
6931
7857
|
{
|
6932
|
-
"id":
|
7858
|
+
"id": 274,
|
6933
7859
|
"text": "Where are you?",
|
6934
7860
|
"type": "multiple",
|
6935
7861
|
"responses": [
|
@@ -6942,21 +7868,21 @@ http_interactions:
|
|
6942
7868
|
"freeform": true,
|
6943
7869
|
"_links": {
|
6944
7870
|
"self": {
|
6945
|
-
"href": "/api/surveys/
|
7871
|
+
"href": "/api/surveys/86/survey_questions/274"
|
6946
7872
|
},
|
6947
7873
|
"post": {
|
6948
|
-
"href": "http://localhost:3000/api/surveys/
|
7874
|
+
"href": "http://localhost:3000/api/surveys/86/survey_questions"
|
6949
7875
|
},
|
6950
7876
|
"put": {
|
6951
|
-
"href": "/api/surveys/
|
7877
|
+
"href": "/api/surveys/86/survey_questions/274"
|
6952
7878
|
},
|
6953
7879
|
"survey": {
|
6954
|
-
"href": "/api/surveys/
|
7880
|
+
"href": "/api/surveys/86"
|
6955
7881
|
}
|
6956
7882
|
}
|
6957
7883
|
}
|
6958
7884
|
]
|
6959
7885
|
}
|
6960
7886
|
http_version:
|
6961
|
-
recorded_at:
|
7887
|
+
recorded_at: Sun, 21 Sep 2014 20:28:02 GMT
|
6962
7888
|
recorded_with: VCR 2.6.0
|