poptart 0.0.12 → 0.0.13
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/poptart/survey.rb +1 -1
- data/lib/version.rb +1 -1
- data/spec/requests/answering_survey_questions_spec.rb +1 -0
- data/spec/vcr/answering/survey_questions_answers_a_survey_question.yml +874 -292
- metadata +2 -2
@@ -29085,82 +29085,6 @@ http_interactions:
|
|
29085
29085
|
}
|
29086
29086
|
http_version:
|
29087
29087
|
recorded_at: Sat, 18 Oct 2014 17:29:33 GMT
|
29088
|
-
- request:
|
29089
|
-
method: get
|
29090
|
-
uri: http://localhost:3000/
|
29091
|
-
body:
|
29092
|
-
encoding: US-ASCII
|
29093
|
-
string: ''
|
29094
|
-
headers:
|
29095
|
-
User-Agent:
|
29096
|
-
- Faraday v0.9.0
|
29097
|
-
Content-Type:
|
29098
|
-
- application/json
|
29099
|
-
Api-Token:
|
29100
|
-
- testing
|
29101
|
-
User-Token:
|
29102
|
-
- 34515edfeda418d78102a313c6c729db28e22c3c08bc53448dff21818fa0a166
|
29103
|
-
Service-User-Id:
|
29104
|
-
- 3b4401a863d219523ab6a1ba5ce49900c24b019efdbc72f74faeb8233445d915
|
29105
|
-
Accept-Encoding:
|
29106
|
-
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
29107
|
-
Accept:
|
29108
|
-
- "*/*"
|
29109
|
-
response:
|
29110
|
-
status:
|
29111
|
-
code: 200
|
29112
|
-
message: 'OK '
|
29113
|
-
headers:
|
29114
|
-
X-Frame-Options:
|
29115
|
-
- SAMEORIGIN
|
29116
|
-
X-Xss-Protection:
|
29117
|
-
- 1; mode=block
|
29118
|
-
X-Content-Type-Options:
|
29119
|
-
- nosniff
|
29120
|
-
X-Ua-Compatible:
|
29121
|
-
- chrome=1
|
29122
|
-
Content-Type:
|
29123
|
-
- application/json; charset=utf-8
|
29124
|
-
Etag:
|
29125
|
-
- '"2aa11a1ab77b139e58f765299f923a01"'
|
29126
|
-
Cache-Control:
|
29127
|
-
- max-age=0, private, must-revalidate
|
29128
|
-
X-Request-Id:
|
29129
|
-
- ee44bbfb-0c64-4ee2-8fee-83f91f4730ae
|
29130
|
-
X-Runtime:
|
29131
|
-
- '0.005548'
|
29132
|
-
Server:
|
29133
|
-
- WEBrick/1.3.1 (Ruby/2.1.2/2014-05-08)
|
29134
|
-
Date:
|
29135
|
-
- Sat, 18 Oct 2014 17:29:34 GMT
|
29136
|
-
Content-Length:
|
29137
|
-
- '469'
|
29138
|
-
Connection:
|
29139
|
-
- Keep-Alive
|
29140
|
-
body:
|
29141
|
-
encoding: UTF-8
|
29142
|
-
string: |-
|
29143
|
-
{
|
29144
|
-
"_links": {
|
29145
|
-
"self": {
|
29146
|
-
"href": "http://localhost:3000/"
|
29147
|
-
},
|
29148
|
-
"surveys": {
|
29149
|
-
"href": "http://localhost:3000/api/surveys{/id}{?query*}"
|
29150
|
-
},
|
29151
|
-
"users": {
|
29152
|
-
"href": "http://localhost:3000/api/users{/id}{?query*}"
|
29153
|
-
},
|
29154
|
-
"questions": {
|
29155
|
-
"href": "http://localhost:3000/api/questions{/id}{?query*}"
|
29156
|
-
},
|
29157
|
-
"survey_questions": {
|
29158
|
-
"href": "http://localhost:3000/api/questions{/question_id}/survey_questions{?query*}"
|
29159
|
-
}
|
29160
|
-
}
|
29161
|
-
}
|
29162
|
-
http_version:
|
29163
|
-
recorded_at: Sat, 18 Oct 2014 17:29:34 GMT
|
29164
29088
|
- request:
|
29165
29089
|
method: post
|
29166
29090
|
uri: http://localhost:3000/api/surveys/169/survey_questions
|
@@ -29658,82 +29582,6 @@ http_interactions:
|
|
29658
29582
|
}
|
29659
29583
|
http_version:
|
29660
29584
|
recorded_at: Sat, 18 Oct 2014 17:29:39 GMT
|
29661
|
-
- request:
|
29662
|
-
method: get
|
29663
|
-
uri: http://localhost:3000/
|
29664
|
-
body:
|
29665
|
-
encoding: US-ASCII
|
29666
|
-
string: ''
|
29667
|
-
headers:
|
29668
|
-
User-Agent:
|
29669
|
-
- Faraday v0.9.0
|
29670
|
-
Content-Type:
|
29671
|
-
- application/json
|
29672
|
-
Api-Token:
|
29673
|
-
- testing
|
29674
|
-
User-Token:
|
29675
|
-
- 9663e88c3430b63e9600fcddcc0a2de27573de0f423a6e348401dec590050029
|
29676
|
-
Service-User-Id:
|
29677
|
-
- 6fe1553c471aca9a8dce81aecf882ecb0a67d65359668ad854463842de752610
|
29678
|
-
Accept-Encoding:
|
29679
|
-
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
29680
|
-
Accept:
|
29681
|
-
- "*/*"
|
29682
|
-
response:
|
29683
|
-
status:
|
29684
|
-
code: 200
|
29685
|
-
message: 'OK '
|
29686
|
-
headers:
|
29687
|
-
X-Frame-Options:
|
29688
|
-
- SAMEORIGIN
|
29689
|
-
X-Xss-Protection:
|
29690
|
-
- 1; mode=block
|
29691
|
-
X-Content-Type-Options:
|
29692
|
-
- nosniff
|
29693
|
-
X-Ua-Compatible:
|
29694
|
-
- chrome=1
|
29695
|
-
Content-Type:
|
29696
|
-
- application/json; charset=utf-8
|
29697
|
-
Etag:
|
29698
|
-
- '"2aa11a1ab77b139e58f765299f923a01"'
|
29699
|
-
Cache-Control:
|
29700
|
-
- max-age=0, private, must-revalidate
|
29701
|
-
X-Request-Id:
|
29702
|
-
- 8915ddc7-95f0-40b8-b19f-cc019a3d188e
|
29703
|
-
X-Runtime:
|
29704
|
-
- '0.004657'
|
29705
|
-
Server:
|
29706
|
-
- WEBrick/1.3.1 (Ruby/2.1.2/2014-05-08)
|
29707
|
-
Date:
|
29708
|
-
- Sat, 18 Oct 2014 17:29:40 GMT
|
29709
|
-
Content-Length:
|
29710
|
-
- '469'
|
29711
|
-
Connection:
|
29712
|
-
- Keep-Alive
|
29713
|
-
body:
|
29714
|
-
encoding: UTF-8
|
29715
|
-
string: |-
|
29716
|
-
{
|
29717
|
-
"_links": {
|
29718
|
-
"self": {
|
29719
|
-
"href": "http://localhost:3000/"
|
29720
|
-
},
|
29721
|
-
"surveys": {
|
29722
|
-
"href": "http://localhost:3000/api/surveys{/id}{?query*}"
|
29723
|
-
},
|
29724
|
-
"users": {
|
29725
|
-
"href": "http://localhost:3000/api/users{/id}{?query*}"
|
29726
|
-
},
|
29727
|
-
"questions": {
|
29728
|
-
"href": "http://localhost:3000/api/questions{/id}{?query*}"
|
29729
|
-
},
|
29730
|
-
"survey_questions": {
|
29731
|
-
"href": "http://localhost:3000/api/questions{/question_id}/survey_questions{?query*}"
|
29732
|
-
}
|
29733
|
-
}
|
29734
|
-
}
|
29735
|
-
http_version:
|
29736
|
-
recorded_at: Sat, 18 Oct 2014 17:29:40 GMT
|
29737
29585
|
- request:
|
29738
29586
|
method: post
|
29739
29587
|
uri: http://localhost:3000/api/surveys/175/survey_questions
|
@@ -30355,85 +30203,713 @@ http_interactions:
|
|
30355
30203
|
},
|
30356
30204
|
"created_at": "2014-10-18T17:30:42.099Z"
|
30357
30205
|
},
|
30358
|
-
{
|
30359
|
-
"id": 258,
|
30360
|
-
"text": "What time did you got to sleep last night?",
|
30361
|
-
"type": "time",
|
30362
|
-
"responses": null,
|
30363
|
-
"answer": null,
|
30364
|
-
"freeform": false,
|
30365
|
-
"_links": {
|
30366
|
-
"self": {
|
30367
|
-
"href": "http://localhost:3000/api/surveys/180/survey_questions/258"
|
30368
|
-
},
|
30369
|
-
"post": {
|
30370
|
-
"href": "http://localhost:3000/api/surveys/180/survey_questions"
|
30371
|
-
},
|
30372
|
-
"put": {
|
30373
|
-
"href": "http://localhost:3000/api/surveys/180/survey_questions/258"
|
30374
|
-
},
|
30375
|
-
"survey": {
|
30376
|
-
"href": "http://localhost:3000/api/surveys/180"
|
30377
|
-
}
|
30206
|
+
{
|
30207
|
+
"id": 258,
|
30208
|
+
"text": "What time did you got to sleep last night?",
|
30209
|
+
"type": "time",
|
30210
|
+
"responses": null,
|
30211
|
+
"answer": null,
|
30212
|
+
"freeform": false,
|
30213
|
+
"_links": {
|
30214
|
+
"self": {
|
30215
|
+
"href": "http://localhost:3000/api/surveys/180/survey_questions/258"
|
30216
|
+
},
|
30217
|
+
"post": {
|
30218
|
+
"href": "http://localhost:3000/api/surveys/180/survey_questions"
|
30219
|
+
},
|
30220
|
+
"put": {
|
30221
|
+
"href": "http://localhost:3000/api/surveys/180/survey_questions/258"
|
30222
|
+
},
|
30223
|
+
"survey": {
|
30224
|
+
"href": "http://localhost:3000/api/surveys/180"
|
30225
|
+
}
|
30226
|
+
},
|
30227
|
+
"created_at": "2014-10-18T17:30:42.115Z"
|
30228
|
+
},
|
30229
|
+
{
|
30230
|
+
"id": 259,
|
30231
|
+
"text": "Do you like poptarts?",
|
30232
|
+
"type": "boolean",
|
30233
|
+
"responses": [
|
30234
|
+
"t",
|
30235
|
+
"f"
|
30236
|
+
],
|
30237
|
+
"answer": null,
|
30238
|
+
"freeform": false,
|
30239
|
+
"_links": {
|
30240
|
+
"self": {
|
30241
|
+
"href": "http://localhost:3000/api/surveys/180/survey_questions/259"
|
30242
|
+
},
|
30243
|
+
"post": {
|
30244
|
+
"href": "http://localhost:3000/api/surveys/180/survey_questions"
|
30245
|
+
},
|
30246
|
+
"put": {
|
30247
|
+
"href": "http://localhost:3000/api/surveys/180/survey_questions/259"
|
30248
|
+
},
|
30249
|
+
"survey": {
|
30250
|
+
"href": "http://localhost:3000/api/surveys/180"
|
30251
|
+
}
|
30252
|
+
},
|
30253
|
+
"created_at": "2014-10-18T17:30:42.117Z"
|
30254
|
+
},
|
30255
|
+
{
|
30256
|
+
"id": 255,
|
30257
|
+
"text": "How do you feel right now?",
|
30258
|
+
"type": "range",
|
30259
|
+
"responses": [
|
30260
|
+
"0",
|
30261
|
+
"10"
|
30262
|
+
],
|
30263
|
+
"answer": "foo",
|
30264
|
+
"freeform": false,
|
30265
|
+
"_links": {
|
30266
|
+
"self": {
|
30267
|
+
"href": "http://localhost:3000/api/surveys/180/survey_questions/255"
|
30268
|
+
},
|
30269
|
+
"post": {
|
30270
|
+
"href": "http://localhost:3000/api/surveys/180/survey_questions"
|
30271
|
+
},
|
30272
|
+
"put": {
|
30273
|
+
"href": "http://localhost:3000/api/surveys/180/survey_questions/255"
|
30274
|
+
},
|
30275
|
+
"survey": {
|
30276
|
+
"href": "http://localhost:3000/api/surveys/180"
|
30277
|
+
}
|
30278
|
+
},
|
30279
|
+
"created_at": "2014-10-18T17:30:42.097Z"
|
30280
|
+
}
|
30281
|
+
]
|
30282
|
+
}
|
30283
|
+
http_version:
|
30284
|
+
recorded_at: Sat, 18 Oct 2014 17:30:42 GMT
|
30285
|
+
- request:
|
30286
|
+
method: get
|
30287
|
+
uri: http://localhost:3000/
|
30288
|
+
body:
|
30289
|
+
encoding: US-ASCII
|
30290
|
+
string: ''
|
30291
|
+
headers:
|
30292
|
+
User-Agent:
|
30293
|
+
- Faraday v0.9.0
|
30294
|
+
Content-Type:
|
30295
|
+
- application/json
|
30296
|
+
Api-Token:
|
30297
|
+
- testing
|
30298
|
+
User-Token:
|
30299
|
+
- a64adb15025af2fc240b897d43212ab50348e9ac78c9b52e07b20570804ced9f
|
30300
|
+
Service-User-Id:
|
30301
|
+
- 0a589c1df5abb96b0c87bd492ce6e63860344a4f3a6b46baa4481fdc4b203bc6
|
30302
|
+
Accept-Encoding:
|
30303
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
30304
|
+
Accept:
|
30305
|
+
- "*/*"
|
30306
|
+
response:
|
30307
|
+
status:
|
30308
|
+
code: 200
|
30309
|
+
message: 'OK '
|
30310
|
+
headers:
|
30311
|
+
X-Frame-Options:
|
30312
|
+
- SAMEORIGIN
|
30313
|
+
X-Xss-Protection:
|
30314
|
+
- 1; mode=block
|
30315
|
+
X-Content-Type-Options:
|
30316
|
+
- nosniff
|
30317
|
+
X-Ua-Compatible:
|
30318
|
+
- chrome=1
|
30319
|
+
Content-Type:
|
30320
|
+
- application/json; charset=utf-8
|
30321
|
+
Etag:
|
30322
|
+
- '"2aa11a1ab77b139e58f765299f923a01"'
|
30323
|
+
Cache-Control:
|
30324
|
+
- max-age=0, private, must-revalidate
|
30325
|
+
X-Request-Id:
|
30326
|
+
- c94be389-d2e9-4673-8e27-c73ba9b1ad56
|
30327
|
+
X-Runtime:
|
30328
|
+
- '0.005350'
|
30329
|
+
Server:
|
30330
|
+
- WEBrick/1.3.1 (Ruby/2.1.2/2014-05-08)
|
30331
|
+
Date:
|
30332
|
+
- Sat, 18 Oct 2014 17:30:42 GMT
|
30333
|
+
Content-Length:
|
30334
|
+
- '469'
|
30335
|
+
Connection:
|
30336
|
+
- Keep-Alive
|
30337
|
+
body:
|
30338
|
+
encoding: UTF-8
|
30339
|
+
string: |-
|
30340
|
+
{
|
30341
|
+
"_links": {
|
30342
|
+
"self": {
|
30343
|
+
"href": "http://localhost:3000/"
|
30344
|
+
},
|
30345
|
+
"surveys": {
|
30346
|
+
"href": "http://localhost:3000/api/surveys{/id}{?query*}"
|
30347
|
+
},
|
30348
|
+
"users": {
|
30349
|
+
"href": "http://localhost:3000/api/users{/id}{?query*}"
|
30350
|
+
},
|
30351
|
+
"questions": {
|
30352
|
+
"href": "http://localhost:3000/api/questions{/id}{?query*}"
|
30353
|
+
},
|
30354
|
+
"survey_questions": {
|
30355
|
+
"href": "http://localhost:3000/api/questions{/question_id}/survey_questions{?query*}"
|
30356
|
+
}
|
30357
|
+
}
|
30358
|
+
}
|
30359
|
+
http_version:
|
30360
|
+
recorded_at: Sat, 18 Oct 2014 17:30:42 GMT
|
30361
|
+
- request:
|
30362
|
+
method: post
|
30363
|
+
uri: http://localhost:3000/api/surveys/181/survey_questions
|
30364
|
+
body:
|
30365
|
+
encoding: UTF-8
|
30366
|
+
string: '{"survey_question":{"question_id":8}}'
|
30367
|
+
headers:
|
30368
|
+
User-Agent:
|
30369
|
+
- Faraday v0.9.0
|
30370
|
+
Content-Type:
|
30371
|
+
- application/json
|
30372
|
+
Api-Token:
|
30373
|
+
- testing
|
30374
|
+
User-Token:
|
30375
|
+
- a64adb15025af2fc240b897d43212ab50348e9ac78c9b52e07b20570804ced9f
|
30376
|
+
Service-User-Id:
|
30377
|
+
- 0a589c1df5abb96b0c87bd492ce6e63860344a4f3a6b46baa4481fdc4b203bc6
|
30378
|
+
Accept-Encoding:
|
30379
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
30380
|
+
Accept:
|
30381
|
+
- "*/*"
|
30382
|
+
response:
|
30383
|
+
status:
|
30384
|
+
code: 201
|
30385
|
+
message: 'Created '
|
30386
|
+
headers:
|
30387
|
+
X-Frame-Options:
|
30388
|
+
- SAMEORIGIN
|
30389
|
+
X-Xss-Protection:
|
30390
|
+
- 1; mode=block
|
30391
|
+
X-Content-Type-Options:
|
30392
|
+
- nosniff
|
30393
|
+
X-Ua-Compatible:
|
30394
|
+
- chrome=1
|
30395
|
+
Content-Type:
|
30396
|
+
- application/json; charset=utf-8
|
30397
|
+
Etag:
|
30398
|
+
- '"2148edfc116481e4f628e088ddc17996"'
|
30399
|
+
Cache-Control:
|
30400
|
+
- max-age=0, private, must-revalidate
|
30401
|
+
X-Request-Id:
|
30402
|
+
- 3522de4e-fefb-4d0f-b0fb-b51d1ae8f0cc
|
30403
|
+
X-Runtime:
|
30404
|
+
- '0.011758'
|
30405
|
+
Server:
|
30406
|
+
- WEBrick/1.3.1 (Ruby/2.1.2/2014-05-08)
|
30407
|
+
Date:
|
30408
|
+
- Sat, 18 Oct 2014 17:30:42 GMT
|
30409
|
+
Content-Length:
|
30410
|
+
- '628'
|
30411
|
+
Connection:
|
30412
|
+
- Keep-Alive
|
30413
|
+
body:
|
30414
|
+
encoding: UTF-8
|
30415
|
+
string: |-
|
30416
|
+
{
|
30417
|
+
"id": 260,
|
30418
|
+
"text": "In the past 24 hours, have you engaged in sexual activity with another person?",
|
30419
|
+
"type": "boolean",
|
30420
|
+
"responses": [
|
30421
|
+
"t",
|
30422
|
+
"f"
|
30423
|
+
],
|
30424
|
+
"answer": null,
|
30425
|
+
"freeform": false,
|
30426
|
+
"_links": {
|
30427
|
+
"self": {
|
30428
|
+
"href": "http://localhost:3000/api/surveys/181/survey_questions/260"
|
30429
|
+
},
|
30430
|
+
"post": {
|
30431
|
+
"href": "http://localhost:3000/api/surveys/181/survey_questions"
|
30432
|
+
},
|
30433
|
+
"put": {
|
30434
|
+
"href": "http://localhost:3000/api/surveys/181/survey_questions/260"
|
30435
|
+
},
|
30436
|
+
"survey": {
|
30437
|
+
"href": "http://localhost:3000/api/surveys/181"
|
30438
|
+
}
|
30439
|
+
},
|
30440
|
+
"created_at": "2014-10-18T17:30:42.779Z"
|
30441
|
+
}
|
30442
|
+
http_version:
|
30443
|
+
recorded_at: Sat, 18 Oct 2014 17:30:42 GMT
|
30444
|
+
- request:
|
30445
|
+
method: put
|
30446
|
+
uri: http://localhost:3000/api/surveys/181/survey_questions/260
|
30447
|
+
body:
|
30448
|
+
encoding: UTF-8
|
30449
|
+
string: '{"id":260,"survey_question":{"answer":true}}'
|
30450
|
+
headers:
|
30451
|
+
User-Agent:
|
30452
|
+
- Faraday v0.9.0
|
30453
|
+
Content-Type:
|
30454
|
+
- application/json
|
30455
|
+
Api-Token:
|
30456
|
+
- testing
|
30457
|
+
User-Token:
|
30458
|
+
- a64adb15025af2fc240b897d43212ab50348e9ac78c9b52e07b20570804ced9f
|
30459
|
+
Service-User-Id:
|
30460
|
+
- 0a589c1df5abb96b0c87bd492ce6e63860344a4f3a6b46baa4481fdc4b203bc6
|
30461
|
+
Accept-Encoding:
|
30462
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
30463
|
+
Accept:
|
30464
|
+
- "*/*"
|
30465
|
+
response:
|
30466
|
+
status:
|
30467
|
+
code: 204
|
30468
|
+
message: 'No Content '
|
30469
|
+
headers:
|
30470
|
+
X-Frame-Options:
|
30471
|
+
- SAMEORIGIN
|
30472
|
+
X-Xss-Protection:
|
30473
|
+
- 1; mode=block
|
30474
|
+
X-Content-Type-Options:
|
30475
|
+
- nosniff
|
30476
|
+
X-Ua-Compatible:
|
30477
|
+
- chrome=1
|
30478
|
+
Cache-Control:
|
30479
|
+
- no-cache
|
30480
|
+
X-Request-Id:
|
30481
|
+
- 15f3bcba-d039-46cd-b1be-3129094ba692
|
30482
|
+
X-Runtime:
|
30483
|
+
- '0.011370'
|
30484
|
+
Server:
|
30485
|
+
- WEBrick/1.3.1 (Ruby/2.1.2/2014-05-08)
|
30486
|
+
Date:
|
30487
|
+
- Sat, 18 Oct 2014 17:30:42 GMT
|
30488
|
+
Connection:
|
30489
|
+
- Keep-Alive
|
30490
|
+
body:
|
30491
|
+
encoding: UTF-8
|
30492
|
+
string: ''
|
30493
|
+
http_version:
|
30494
|
+
recorded_at: Sat, 18 Oct 2014 17:30:42 GMT
|
30495
|
+
- request:
|
30496
|
+
method: get
|
30497
|
+
uri: http://localhost:3000/api/surveys/181
|
30498
|
+
body:
|
30499
|
+
encoding: US-ASCII
|
30500
|
+
string: ''
|
30501
|
+
headers:
|
30502
|
+
User-Agent:
|
30503
|
+
- Faraday v0.9.0
|
30504
|
+
Content-Type:
|
30505
|
+
- application/json
|
30506
|
+
Api-Token:
|
30507
|
+
- testing
|
30508
|
+
User-Token:
|
30509
|
+
- a64adb15025af2fc240b897d43212ab50348e9ac78c9b52e07b20570804ced9f
|
30510
|
+
Service-User-Id:
|
30511
|
+
- 0a589c1df5abb96b0c87bd492ce6e63860344a4f3a6b46baa4481fdc4b203bc6
|
30512
|
+
Accept-Encoding:
|
30513
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
30514
|
+
Accept:
|
30515
|
+
- "*/*"
|
30516
|
+
response:
|
30517
|
+
status:
|
30518
|
+
code: 200
|
30519
|
+
message: 'OK '
|
30520
|
+
headers:
|
30521
|
+
X-Frame-Options:
|
30522
|
+
- SAMEORIGIN
|
30523
|
+
X-Xss-Protection:
|
30524
|
+
- 1; mode=block
|
30525
|
+
X-Content-Type-Options:
|
30526
|
+
- nosniff
|
30527
|
+
X-Ua-Compatible:
|
30528
|
+
- chrome=1
|
30529
|
+
Content-Type:
|
30530
|
+
- application/json; charset=utf-8
|
30531
|
+
Etag:
|
30532
|
+
- '"d325b96ee81e9be689f04cb9931bd71d"'
|
30533
|
+
Cache-Control:
|
30534
|
+
- max-age=0, private, must-revalidate
|
30535
|
+
X-Request-Id:
|
30536
|
+
- d94f1975-81ca-46a8-a64b-9b4616c7a02f
|
30537
|
+
X-Runtime:
|
30538
|
+
- '0.023625'
|
30539
|
+
Server:
|
30540
|
+
- WEBrick/1.3.1 (Ruby/2.1.2/2014-05-08)
|
30541
|
+
Date:
|
30542
|
+
- Sat, 18 Oct 2014 17:30:42 GMT
|
30543
|
+
Content-Length:
|
30544
|
+
- '1207'
|
30545
|
+
Connection:
|
30546
|
+
- Keep-Alive
|
30547
|
+
body:
|
30548
|
+
encoding: UTF-8
|
30549
|
+
string: |-
|
30550
|
+
{
|
30551
|
+
"id": 181,
|
30552
|
+
"service_user_id": "0a589c1df5abb96b0c87bd492ce6e63860344a4f3a6b46baa4481fdc4b203bc6",
|
30553
|
+
"_links": {
|
30554
|
+
"self": {
|
30555
|
+
"href": "http://localhost:3000/api/surveys/181"
|
30556
|
+
},
|
30557
|
+
"survey_questions": {
|
30558
|
+
"post": {
|
30559
|
+
"href": "http://localhost:3000/api/surveys/181/survey_questions"
|
30560
|
+
},
|
30561
|
+
"put": {
|
30562
|
+
"href": "http://localhost:3000/api/surveys/181/survey_questions"
|
30563
|
+
}
|
30564
|
+
}
|
30565
|
+
},
|
30566
|
+
"completed": false,
|
30567
|
+
"survey_questions": [
|
30568
|
+
{
|
30569
|
+
"id": 260,
|
30570
|
+
"text": "In the past 24 hours, have you engaged in sexual activity with another person?",
|
30571
|
+
"type": "boolean",
|
30572
|
+
"responses": [
|
30573
|
+
"t",
|
30574
|
+
"f"
|
30575
|
+
],
|
30576
|
+
"answer": "t",
|
30577
|
+
"freeform": false,
|
30578
|
+
"_links": {
|
30579
|
+
"self": {
|
30580
|
+
"href": "http://localhost:3000/api/surveys/181/survey_questions/260"
|
30581
|
+
},
|
30582
|
+
"post": {
|
30583
|
+
"href": "http://localhost:3000/api/surveys/181/survey_questions"
|
30584
|
+
},
|
30585
|
+
"put": {
|
30586
|
+
"href": "http://localhost:3000/api/surveys/181/survey_questions/260"
|
30587
|
+
},
|
30588
|
+
"survey": {
|
30589
|
+
"href": "http://localhost:3000/api/surveys/181"
|
30590
|
+
}
|
30591
|
+
},
|
30592
|
+
"created_at": "2014-10-18T17:30:42.779Z"
|
30593
|
+
}
|
30594
|
+
]
|
30595
|
+
}
|
30596
|
+
http_version:
|
30597
|
+
recorded_at: Sat, 18 Oct 2014 17:30:42 GMT
|
30598
|
+
- request:
|
30599
|
+
method: get
|
30600
|
+
uri: http://localhost:3000/
|
30601
|
+
body:
|
30602
|
+
encoding: US-ASCII
|
30603
|
+
string: ''
|
30604
|
+
headers:
|
30605
|
+
User-Agent:
|
30606
|
+
- Faraday v0.9.0
|
30607
|
+
Content-Type:
|
30608
|
+
- application/json
|
30609
|
+
Api-Token:
|
30610
|
+
- testing
|
30611
|
+
User-Token:
|
30612
|
+
- a64adb15025af2fc240b897d43212ab50348e9ac78c9b52e07b20570804ced9f
|
30613
|
+
Service-User-Id:
|
30614
|
+
- 0a589c1df5abb96b0c87bd492ce6e63860344a4f3a6b46baa4481fdc4b203bc6
|
30615
|
+
Accept-Encoding:
|
30616
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
30617
|
+
Accept:
|
30618
|
+
- "*/*"
|
30619
|
+
response:
|
30620
|
+
status:
|
30621
|
+
code: 200
|
30622
|
+
message: 'OK '
|
30623
|
+
headers:
|
30624
|
+
X-Frame-Options:
|
30625
|
+
- SAMEORIGIN
|
30626
|
+
X-Xss-Protection:
|
30627
|
+
- 1; mode=block
|
30628
|
+
X-Content-Type-Options:
|
30629
|
+
- nosniff
|
30630
|
+
X-Ua-Compatible:
|
30631
|
+
- chrome=1
|
30632
|
+
Content-Type:
|
30633
|
+
- application/json; charset=utf-8
|
30634
|
+
Etag:
|
30635
|
+
- '"2aa11a1ab77b139e58f765299f923a01"'
|
30636
|
+
Cache-Control:
|
30637
|
+
- max-age=0, private, must-revalidate
|
30638
|
+
X-Request-Id:
|
30639
|
+
- bd98c929-7e1d-4726-8499-ddd3ece9c32c
|
30640
|
+
X-Runtime:
|
30641
|
+
- '0.005663'
|
30642
|
+
Server:
|
30643
|
+
- WEBrick/1.3.1 (Ruby/2.1.2/2014-05-08)
|
30644
|
+
Date:
|
30645
|
+
- Sat, 25 Oct 2014 18:06:30 GMT
|
30646
|
+
Content-Length:
|
30647
|
+
- '469'
|
30648
|
+
Connection:
|
30649
|
+
- Keep-Alive
|
30650
|
+
body:
|
30651
|
+
encoding: UTF-8
|
30652
|
+
string: |-
|
30653
|
+
{
|
30654
|
+
"_links": {
|
30655
|
+
"self": {
|
30656
|
+
"href": "http://localhost:3000/"
|
30657
|
+
},
|
30658
|
+
"surveys": {
|
30659
|
+
"href": "http://localhost:3000/api/surveys{/id}{?query*}"
|
30660
|
+
},
|
30661
|
+
"users": {
|
30662
|
+
"href": "http://localhost:3000/api/users{/id}{?query*}"
|
30663
|
+
},
|
30664
|
+
"questions": {
|
30665
|
+
"href": "http://localhost:3000/api/questions{/id}{?query*}"
|
30666
|
+
},
|
30667
|
+
"survey_questions": {
|
30668
|
+
"href": "http://localhost:3000/api/questions{/question_id}/survey_questions{?query*}"
|
30669
|
+
}
|
30670
|
+
}
|
30671
|
+
}
|
30672
|
+
http_version:
|
30673
|
+
recorded_at: Sat, 25 Oct 2014 18:06:30 GMT
|
30674
|
+
- request:
|
30675
|
+
method: post
|
30676
|
+
uri: http://localhost:3000/api/surveys/197/survey_questions
|
30677
|
+
body:
|
30678
|
+
encoding: UTF-8
|
30679
|
+
string: '{"survey_question":{"question_id":8}}'
|
30680
|
+
headers:
|
30681
|
+
User-Agent:
|
30682
|
+
- Faraday v0.9.0
|
30683
|
+
Content-Type:
|
30684
|
+
- application/json
|
30685
|
+
Api-Token:
|
30686
|
+
- testing
|
30687
|
+
User-Token:
|
30688
|
+
- a9a293b5b8681d140febf763c57218ad1770737a163e47acef46dff071e3f1a1
|
30689
|
+
Service-User-Id:
|
30690
|
+
- f1bc4767687c146800d26a7954fe3703d246cb7c76224d89524c1d03b4b6fa8d
|
30691
|
+
Accept-Encoding:
|
30692
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
30693
|
+
Accept:
|
30694
|
+
- "*/*"
|
30695
|
+
response:
|
30696
|
+
status:
|
30697
|
+
code: 201
|
30698
|
+
message: 'Created '
|
30699
|
+
headers:
|
30700
|
+
X-Frame-Options:
|
30701
|
+
- SAMEORIGIN
|
30702
|
+
X-Xss-Protection:
|
30703
|
+
- 1; mode=block
|
30704
|
+
X-Content-Type-Options:
|
30705
|
+
- nosniff
|
30706
|
+
X-Ua-Compatible:
|
30707
|
+
- chrome=1
|
30708
|
+
Content-Type:
|
30709
|
+
- application/json; charset=utf-8
|
30710
|
+
Etag:
|
30711
|
+
- '"75e85145785ad7402fdc270b20a10105"'
|
30712
|
+
Cache-Control:
|
30713
|
+
- max-age=0, private, must-revalidate
|
30714
|
+
X-Request-Id:
|
30715
|
+
- aa28556f-e92f-443a-ab07-1845fde19fbf
|
30716
|
+
X-Runtime:
|
30717
|
+
- '0.011315'
|
30718
|
+
Server:
|
30719
|
+
- WEBrick/1.3.1 (Ruby/2.1.2/2014-05-08)
|
30720
|
+
Date:
|
30721
|
+
- Sat, 25 Oct 2014 18:06:30 GMT
|
30722
|
+
Content-Length:
|
30723
|
+
- '648'
|
30724
|
+
Connection:
|
30725
|
+
- Keep-Alive
|
30726
|
+
body:
|
30727
|
+
encoding: UTF-8
|
30728
|
+
string: |-
|
30729
|
+
{
|
30730
|
+
"id": 282,
|
30731
|
+
"text": "In the past 24 hours, have you engaged in sexual activity with another person?",
|
30732
|
+
"type": "boolean",
|
30733
|
+
"responses": [
|
30734
|
+
"t",
|
30735
|
+
"f"
|
30736
|
+
],
|
30737
|
+
"answer": null,
|
30738
|
+
"freeform": false,
|
30739
|
+
"_links": {
|
30740
|
+
"self": {
|
30741
|
+
"href": "http://localhost:3000/api/surveys/197/survey_questions/282"
|
30742
|
+
},
|
30743
|
+
"post": {
|
30744
|
+
"href": "http://localhost:3000/api/surveys/197/survey_questions"
|
30745
|
+
},
|
30746
|
+
"put": {
|
30747
|
+
"href": "http://localhost:3000/api/surveys/197/survey_questions/282"
|
30748
|
+
},
|
30749
|
+
"survey": {
|
30750
|
+
"href": "http://localhost:3000/api/surveys/197"
|
30751
|
+
}
|
30752
|
+
},
|
30753
|
+
"created_at": "2014-10-25T18:06:30.196Z",
|
30754
|
+
"key": "had_sex"
|
30755
|
+
}
|
30756
|
+
http_version:
|
30757
|
+
recorded_at: Sat, 25 Oct 2014 18:06:30 GMT
|
30758
|
+
- request:
|
30759
|
+
method: put
|
30760
|
+
uri: http://localhost:3000/api/surveys/197/survey_questions/282
|
30761
|
+
body:
|
30762
|
+
encoding: UTF-8
|
30763
|
+
string: '{"id":282,"survey_question":{"answer":true}}'
|
30764
|
+
headers:
|
30765
|
+
User-Agent:
|
30766
|
+
- Faraday v0.9.0
|
30767
|
+
Content-Type:
|
30768
|
+
- application/json
|
30769
|
+
Api-Token:
|
30770
|
+
- testing
|
30771
|
+
User-Token:
|
30772
|
+
- a9a293b5b8681d140febf763c57218ad1770737a163e47acef46dff071e3f1a1
|
30773
|
+
Service-User-Id:
|
30774
|
+
- f1bc4767687c146800d26a7954fe3703d246cb7c76224d89524c1d03b4b6fa8d
|
30775
|
+
Accept-Encoding:
|
30776
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
30777
|
+
Accept:
|
30778
|
+
- "*/*"
|
30779
|
+
response:
|
30780
|
+
status:
|
30781
|
+
code: 204
|
30782
|
+
message: 'No Content '
|
30783
|
+
headers:
|
30784
|
+
X-Frame-Options:
|
30785
|
+
- SAMEORIGIN
|
30786
|
+
X-Xss-Protection:
|
30787
|
+
- 1; mode=block
|
30788
|
+
X-Content-Type-Options:
|
30789
|
+
- nosniff
|
30790
|
+
X-Ua-Compatible:
|
30791
|
+
- chrome=1
|
30792
|
+
Cache-Control:
|
30793
|
+
- no-cache
|
30794
|
+
X-Request-Id:
|
30795
|
+
- 50e00a3c-b145-4585-815d-51cd23e70fde
|
30796
|
+
X-Runtime:
|
30797
|
+
- '0.012071'
|
30798
|
+
Server:
|
30799
|
+
- WEBrick/1.3.1 (Ruby/2.1.2/2014-05-08)
|
30800
|
+
Date:
|
30801
|
+
- Sat, 25 Oct 2014 18:06:30 GMT
|
30802
|
+
Connection:
|
30803
|
+
- Keep-Alive
|
30804
|
+
body:
|
30805
|
+
encoding: UTF-8
|
30806
|
+
string: ''
|
30807
|
+
http_version:
|
30808
|
+
recorded_at: Sat, 25 Oct 2014 18:06:30 GMT
|
30809
|
+
- request:
|
30810
|
+
method: get
|
30811
|
+
uri: http://localhost:3000/api/surveys/197
|
30812
|
+
body:
|
30813
|
+
encoding: US-ASCII
|
30814
|
+
string: ''
|
30815
|
+
headers:
|
30816
|
+
User-Agent:
|
30817
|
+
- Faraday v0.9.0
|
30818
|
+
Content-Type:
|
30819
|
+
- application/json
|
30820
|
+
Api-Token:
|
30821
|
+
- testing
|
30822
|
+
User-Token:
|
30823
|
+
- a9a293b5b8681d140febf763c57218ad1770737a163e47acef46dff071e3f1a1
|
30824
|
+
Service-User-Id:
|
30825
|
+
- f1bc4767687c146800d26a7954fe3703d246cb7c76224d89524c1d03b4b6fa8d
|
30826
|
+
Accept-Encoding:
|
30827
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
30828
|
+
Accept:
|
30829
|
+
- "*/*"
|
30830
|
+
response:
|
30831
|
+
status:
|
30832
|
+
code: 200
|
30833
|
+
message: 'OK '
|
30834
|
+
headers:
|
30835
|
+
X-Frame-Options:
|
30836
|
+
- SAMEORIGIN
|
30837
|
+
X-Xss-Protection:
|
30838
|
+
- 1; mode=block
|
30839
|
+
X-Content-Type-Options:
|
30840
|
+
- nosniff
|
30841
|
+
X-Ua-Compatible:
|
30842
|
+
- chrome=1
|
30843
|
+
Content-Type:
|
30844
|
+
- application/json; charset=utf-8
|
30845
|
+
Etag:
|
30846
|
+
- '"5c4008ba3801aa547b13a3e02d0e1840"'
|
30847
|
+
Cache-Control:
|
30848
|
+
- max-age=0, private, must-revalidate
|
30849
|
+
X-Request-Id:
|
30850
|
+
- 0b88877a-1a49-48ed-9f01-62ccc68a3f62
|
30851
|
+
X-Runtime:
|
30852
|
+
- '0.031633'
|
30853
|
+
Server:
|
30854
|
+
- WEBrick/1.3.1 (Ruby/2.1.2/2014-05-08)
|
30855
|
+
Date:
|
30856
|
+
- Sat, 25 Oct 2014 18:06:30 GMT
|
30857
|
+
Content-Length:
|
30858
|
+
- '1231'
|
30859
|
+
Connection:
|
30860
|
+
- Keep-Alive
|
30861
|
+
body:
|
30862
|
+
encoding: UTF-8
|
30863
|
+
string: |-
|
30864
|
+
{
|
30865
|
+
"id": 197,
|
30866
|
+
"service_user_id": "f1bc4767687c146800d26a7954fe3703d246cb7c76224d89524c1d03b4b6fa8d",
|
30867
|
+
"_links": {
|
30868
|
+
"self": {
|
30869
|
+
"href": "http://localhost:3000/api/surveys/197"
|
30870
|
+
},
|
30871
|
+
"survey_questions": {
|
30872
|
+
"post": {
|
30873
|
+
"href": "http://localhost:3000/api/surveys/197/survey_questions"
|
30378
30874
|
},
|
30379
|
-
"
|
30380
|
-
|
30875
|
+
"put": {
|
30876
|
+
"href": "http://localhost:3000/api/surveys/197/survey_questions"
|
30877
|
+
}
|
30878
|
+
}
|
30879
|
+
},
|
30880
|
+
"completed": false,
|
30881
|
+
"survey_questions": [
|
30381
30882
|
{
|
30382
|
-
"id":
|
30383
|
-
"text": "
|
30883
|
+
"id": 282,
|
30884
|
+
"text": "In the past 24 hours, have you engaged in sexual activity with another person?",
|
30384
30885
|
"type": "boolean",
|
30385
30886
|
"responses": [
|
30386
30887
|
"t",
|
30387
30888
|
"f"
|
30388
30889
|
],
|
30389
|
-
"answer":
|
30390
|
-
"freeform": false,
|
30391
|
-
"_links": {
|
30392
|
-
"self": {
|
30393
|
-
"href": "http://localhost:3000/api/surveys/180/survey_questions/259"
|
30394
|
-
},
|
30395
|
-
"post": {
|
30396
|
-
"href": "http://localhost:3000/api/surveys/180/survey_questions"
|
30397
|
-
},
|
30398
|
-
"put": {
|
30399
|
-
"href": "http://localhost:3000/api/surveys/180/survey_questions/259"
|
30400
|
-
},
|
30401
|
-
"survey": {
|
30402
|
-
"href": "http://localhost:3000/api/surveys/180"
|
30403
|
-
}
|
30404
|
-
},
|
30405
|
-
"created_at": "2014-10-18T17:30:42.117Z"
|
30406
|
-
},
|
30407
|
-
{
|
30408
|
-
"id": 255,
|
30409
|
-
"text": "How do you feel right now?",
|
30410
|
-
"type": "range",
|
30411
|
-
"responses": [
|
30412
|
-
"0",
|
30413
|
-
"10"
|
30414
|
-
],
|
30415
|
-
"answer": "foo",
|
30890
|
+
"answer": "t",
|
30416
30891
|
"freeform": false,
|
30417
30892
|
"_links": {
|
30418
30893
|
"self": {
|
30419
|
-
"href": "http://localhost:3000/api/surveys/
|
30894
|
+
"href": "http://localhost:3000/api/surveys/197/survey_questions/282"
|
30420
30895
|
},
|
30421
30896
|
"post": {
|
30422
|
-
"href": "http://localhost:3000/api/surveys/
|
30897
|
+
"href": "http://localhost:3000/api/surveys/197/survey_questions"
|
30423
30898
|
},
|
30424
30899
|
"put": {
|
30425
|
-
"href": "http://localhost:3000/api/surveys/
|
30900
|
+
"href": "http://localhost:3000/api/surveys/197/survey_questions/282"
|
30426
30901
|
},
|
30427
30902
|
"survey": {
|
30428
|
-
"href": "http://localhost:3000/api/surveys/
|
30903
|
+
"href": "http://localhost:3000/api/surveys/197"
|
30429
30904
|
}
|
30430
30905
|
},
|
30431
|
-
"created_at": "2014-10-
|
30906
|
+
"created_at": "2014-10-25T18:06:30.196Z",
|
30907
|
+
"key": "had_sex"
|
30432
30908
|
}
|
30433
30909
|
]
|
30434
30910
|
}
|
30435
30911
|
http_version:
|
30436
|
-
recorded_at: Sat,
|
30912
|
+
recorded_at: Sat, 25 Oct 2014 18:06:30 GMT
|
30437
30913
|
- request:
|
30438
30914
|
method: get
|
30439
30915
|
uri: http://localhost:3000/
|
@@ -30448,9 +30924,9 @@ http_interactions:
|
|
30448
30924
|
Api-Token:
|
30449
30925
|
- testing
|
30450
30926
|
User-Token:
|
30451
|
-
-
|
30927
|
+
- a9a293b5b8681d140febf763c57218ad1770737a163e47acef46dff071e3f1a1
|
30452
30928
|
Service-User-Id:
|
30453
|
-
-
|
30929
|
+
- f1bc4767687c146800d26a7954fe3703d246cb7c76224d89524c1d03b4b6fa8d
|
30454
30930
|
Accept-Encoding:
|
30455
30931
|
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
30456
30932
|
Accept:
|
@@ -30475,13 +30951,13 @@ http_interactions:
|
|
30475
30951
|
Cache-Control:
|
30476
30952
|
- max-age=0, private, must-revalidate
|
30477
30953
|
X-Request-Id:
|
30478
|
-
-
|
30954
|
+
- 22dc0462-c513-466a-a295-c8ad5fe39e41
|
30479
30955
|
X-Runtime:
|
30480
|
-
- '0.
|
30956
|
+
- '0.026853'
|
30481
30957
|
Server:
|
30482
30958
|
- WEBrick/1.3.1 (Ruby/2.1.2/2014-05-08)
|
30483
30959
|
Date:
|
30484
|
-
- Sat,
|
30960
|
+
- Sat, 25 Oct 2014 18:09:05 GMT
|
30485
30961
|
Content-Length:
|
30486
30962
|
- '469'
|
30487
30963
|
Connection:
|
@@ -30509,7 +30985,7 @@ http_interactions:
|
|
30509
30985
|
}
|
30510
30986
|
}
|
30511
30987
|
http_version:
|
30512
|
-
recorded_at: Sat,
|
30988
|
+
recorded_at: Sat, 25 Oct 2014 18:09:05 GMT
|
30513
30989
|
- request:
|
30514
30990
|
method: get
|
30515
30991
|
uri: http://localhost:3000/api/questions
|
@@ -30524,9 +31000,9 @@ http_interactions:
|
|
30524
31000
|
Api-Token:
|
30525
31001
|
- testing
|
30526
31002
|
User-Token:
|
30527
|
-
-
|
31003
|
+
- a9a293b5b8681d140febf763c57218ad1770737a163e47acef46dff071e3f1a1
|
30528
31004
|
Service-User-Id:
|
30529
|
-
-
|
31005
|
+
- f1bc4767687c146800d26a7954fe3703d246cb7c76224d89524c1d03b4b6fa8d
|
30530
31006
|
Accept-Encoding:
|
30531
31007
|
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
30532
31008
|
Accept:
|
@@ -30547,19 +31023,19 @@ http_interactions:
|
|
30547
31023
|
Content-Type:
|
30548
31024
|
- application/json; charset=utf-8
|
30549
31025
|
Etag:
|
30550
|
-
- '"
|
31026
|
+
- '"f6b48cbf4ec8b7f87b8fd3de55ed23ea"'
|
30551
31027
|
Cache-Control:
|
30552
31028
|
- max-age=0, private, must-revalidate
|
30553
31029
|
X-Request-Id:
|
30554
|
-
-
|
31030
|
+
- ced0945b-4ed9-415a-9070-254693d545a5
|
30555
31031
|
X-Runtime:
|
30556
|
-
- '0.
|
31032
|
+
- '0.039110'
|
30557
31033
|
Server:
|
30558
31034
|
- WEBrick/1.3.1 (Ruby/2.1.2/2014-05-08)
|
30559
31035
|
Date:
|
30560
|
-
- Sat,
|
31036
|
+
- Sat, 25 Oct 2014 18:09:05 GMT
|
30561
31037
|
Content-Length:
|
30562
|
-
- '
|
31038
|
+
- '35309'
|
30563
31039
|
Connection:
|
30564
31040
|
- Keep-Alive
|
30565
31041
|
body:
|
@@ -32231,10 +32707,114 @@ http_interactions:
|
|
32231
32707
|
"absolute_index": null,
|
32232
32708
|
"parent_question_id": null,
|
32233
32709
|
"key": null
|
32710
|
+
},
|
32711
|
+
{
|
32712
|
+
"id": 125,
|
32713
|
+
"question_type": "boolean",
|
32714
|
+
"text": "Do you like poptarts?",
|
32715
|
+
"responses": [
|
32716
|
+
"t",
|
32717
|
+
"f"
|
32718
|
+
],
|
32719
|
+
"freeform": false,
|
32720
|
+
"absolute_index": null,
|
32721
|
+
"parent_question_id": null,
|
32722
|
+
"key": null
|
32723
|
+
},
|
32724
|
+
{
|
32725
|
+
"id": 126,
|
32726
|
+
"question_type": "boolean",
|
32727
|
+
"text": "Do you like poptarts?",
|
32728
|
+
"responses": [
|
32729
|
+
"t",
|
32730
|
+
"f"
|
32731
|
+
],
|
32732
|
+
"freeform": false,
|
32733
|
+
"absolute_index": null,
|
32734
|
+
"parent_question_id": null,
|
32735
|
+
"key": "testingooptarts"
|
32736
|
+
},
|
32737
|
+
{
|
32738
|
+
"id": 127,
|
32739
|
+
"question_type": "boolean",
|
32740
|
+
"text": "Do you like poptarts?",
|
32741
|
+
"responses": [
|
32742
|
+
"t",
|
32743
|
+
"f"
|
32744
|
+
],
|
32745
|
+
"freeform": true,
|
32746
|
+
"absolute_index": 10,
|
32747
|
+
"parent_question_id": 42,
|
32748
|
+
"key": "poptarts"
|
32749
|
+
},
|
32750
|
+
{
|
32751
|
+
"id": 128,
|
32752
|
+
"question_type": "multiple",
|
32753
|
+
"text": "Do you like poptarts?",
|
32754
|
+
"responses": [
|
32755
|
+
"Yes",
|
32756
|
+
"No"
|
32757
|
+
],
|
32758
|
+
"freeform": false,
|
32759
|
+
"absolute_index": null,
|
32760
|
+
"parent_question_id": null,
|
32761
|
+
"key": null
|
32762
|
+
},
|
32763
|
+
{
|
32764
|
+
"id": 129,
|
32765
|
+
"question_type": "range",
|
32766
|
+
"text": "Do you like poptarts?",
|
32767
|
+
"responses": [
|
32768
|
+
"0",
|
32769
|
+
"10"
|
32770
|
+
],
|
32771
|
+
"freeform": false,
|
32772
|
+
"absolute_index": null,
|
32773
|
+
"parent_question_id": null,
|
32774
|
+
"key": null
|
32775
|
+
},
|
32776
|
+
{
|
32777
|
+
"id": 130,
|
32778
|
+
"question_type": "boolean",
|
32779
|
+
"text": "Do you like poptarts?",
|
32780
|
+
"responses": [
|
32781
|
+
"t",
|
32782
|
+
"f"
|
32783
|
+
],
|
32784
|
+
"freeform": false,
|
32785
|
+
"absolute_index": null,
|
32786
|
+
"parent_question_id": null,
|
32787
|
+
"key": "testingooptarts"
|
32788
|
+
},
|
32789
|
+
{
|
32790
|
+
"id": 131,
|
32791
|
+
"question_type": "boolean",
|
32792
|
+
"text": "Do you like poptarts?",
|
32793
|
+
"responses": [
|
32794
|
+
"t",
|
32795
|
+
"f"
|
32796
|
+
],
|
32797
|
+
"freeform": false,
|
32798
|
+
"absolute_index": null,
|
32799
|
+
"parent_question_id": null,
|
32800
|
+
"key": "testingooptarts"
|
32801
|
+
},
|
32802
|
+
{
|
32803
|
+
"id": 132,
|
32804
|
+
"question_type": "boolean",
|
32805
|
+
"text": "Do you like poptarts?",
|
32806
|
+
"responses": [
|
32807
|
+
"t",
|
32808
|
+
"f"
|
32809
|
+
],
|
32810
|
+
"freeform": false,
|
32811
|
+
"absolute_index": null,
|
32812
|
+
"parent_question_id": null,
|
32813
|
+
"key": "testingooptarts"
|
32234
32814
|
}
|
32235
32815
|
]
|
32236
32816
|
http_version:
|
32237
|
-
recorded_at: Sat,
|
32817
|
+
recorded_at: Sat, 25 Oct 2014 18:09:05 GMT
|
32238
32818
|
- request:
|
32239
32819
|
method: post
|
32240
32820
|
uri: http://localhost:3000/api/users
|
@@ -32249,9 +32829,9 @@ http_interactions:
|
|
32249
32829
|
Api-Token:
|
32250
32830
|
- testing
|
32251
32831
|
User-Token:
|
32252
|
-
-
|
32832
|
+
- a9a293b5b8681d140febf763c57218ad1770737a163e47acef46dff071e3f1a1
|
32253
32833
|
Service-User-Id:
|
32254
|
-
-
|
32834
|
+
- f1bc4767687c146800d26a7954fe3703d246cb7c76224d89524c1d03b4b6fa8d
|
32255
32835
|
Accept-Encoding:
|
32256
32836
|
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
32257
32837
|
Accept:
|
@@ -32272,17 +32852,17 @@ http_interactions:
|
|
32272
32852
|
Content-Type:
|
32273
32853
|
- application/json; charset=utf-8
|
32274
32854
|
Etag:
|
32275
|
-
- '"
|
32855
|
+
- '"8c613939e79fe94f0c12b6dccc37702f"'
|
32276
32856
|
Cache-Control:
|
32277
32857
|
- max-age=0, private, must-revalidate
|
32278
32858
|
X-Request-Id:
|
32279
|
-
-
|
32859
|
+
- bad05e77-928c-4c16-979e-4c06979e286f
|
32280
32860
|
X-Runtime:
|
32281
|
-
- '0.
|
32861
|
+
- '0.022251'
|
32282
32862
|
Server:
|
32283
32863
|
- WEBrick/1.3.1 (Ruby/2.1.2/2014-05-08)
|
32284
32864
|
Date:
|
32285
|
-
- Sat,
|
32865
|
+
- Sat, 25 Oct 2014 18:09:05 GMT
|
32286
32866
|
Content-Length:
|
32287
32867
|
- '261'
|
32288
32868
|
Connection:
|
@@ -32291,22 +32871,22 @@ http_interactions:
|
|
32291
32871
|
encoding: UTF-8
|
32292
32872
|
string: |-
|
32293
32873
|
{
|
32294
|
-
"service_user_id": "
|
32874
|
+
"service_user_id": "d068715ec29db367e3adca0a3b2a38dcd2d011beba3b9df8840d8231044e7c08",
|
32295
32875
|
"_links": {
|
32296
32876
|
"self": {
|
32297
|
-
"href": "http://localhost:3000/api/users/
|
32877
|
+
"href": "http://localhost:3000/api/users/162"
|
32298
32878
|
}
|
32299
32879
|
},
|
32300
|
-
"token": "
|
32880
|
+
"token": "b85987387fd976bcc19264746b1dad8dc8046cc8d6ae74636d6336c452325276"
|
32301
32881
|
}
|
32302
32882
|
http_version:
|
32303
|
-
recorded_at: Sat,
|
32883
|
+
recorded_at: Sat, 25 Oct 2014 18:09:05 GMT
|
32304
32884
|
- request:
|
32305
32885
|
method: post
|
32306
32886
|
uri: http://localhost:3000/api/surveys
|
32307
32887
|
body:
|
32308
32888
|
encoding: UTF-8
|
32309
|
-
string: '{"survey":{"service_user_id":"
|
32889
|
+
string: '{"survey":{"service_user_id":"d068715ec29db367e3adca0a3b2a38dcd2d011beba3b9df8840d8231044e7c08"}}'
|
32310
32890
|
headers:
|
32311
32891
|
User-Agent:
|
32312
32892
|
- Faraday v0.9.0
|
@@ -32315,9 +32895,9 @@ http_interactions:
|
|
32315
32895
|
Api-Token:
|
32316
32896
|
- testing
|
32317
32897
|
User-Token:
|
32318
|
-
-
|
32898
|
+
- b85987387fd976bcc19264746b1dad8dc8046cc8d6ae74636d6336c452325276
|
32319
32899
|
Service-User-Id:
|
32320
|
-
-
|
32900
|
+
- d068715ec29db367e3adca0a3b2a38dcd2d011beba3b9df8840d8231044e7c08
|
32321
32901
|
Accept-Encoding:
|
32322
32902
|
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
32323
32903
|
Accept:
|
@@ -32338,50 +32918,50 @@ http_interactions:
|
|
32338
32918
|
Content-Type:
|
32339
32919
|
- application/json; charset=utf-8
|
32340
32920
|
Etag:
|
32341
|
-
- '"
|
32921
|
+
- '"4ac43ecd48bc1f7dd0f75b941c5bab91"'
|
32342
32922
|
Cache-Control:
|
32343
32923
|
- max-age=0, private, must-revalidate
|
32344
32924
|
X-Request-Id:
|
32345
|
-
-
|
32925
|
+
- 07054d81-acbb-44b7-b3a9-bf60146278ec
|
32346
32926
|
X-Runtime:
|
32347
|
-
- '0.
|
32927
|
+
- '0.037105'
|
32348
32928
|
Server:
|
32349
32929
|
- WEBrick/1.3.1 (Ruby/2.1.2/2014-05-08)
|
32350
32930
|
Date:
|
32351
|
-
- Sat,
|
32931
|
+
- Sat, 25 Oct 2014 18:09:05 GMT
|
32352
32932
|
Content-Length:
|
32353
|
-
- '
|
32933
|
+
- '475'
|
32354
32934
|
Connection:
|
32355
32935
|
- Keep-Alive
|
32356
32936
|
body:
|
32357
32937
|
encoding: UTF-8
|
32358
32938
|
string: |-
|
32359
32939
|
{
|
32360
|
-
"id":
|
32361
|
-
"service_user_id": "
|
32940
|
+
"id": 198,
|
32941
|
+
"service_user_id": "d068715ec29db367e3adca0a3b2a38dcd2d011beba3b9df8840d8231044e7c08",
|
32362
32942
|
"_links": {
|
32363
32943
|
"self": {
|
32364
|
-
"href": "http://localhost:3000/api/surveys/
|
32944
|
+
"href": "http://localhost:3000/api/surveys/198"
|
32365
32945
|
},
|
32366
32946
|
"survey_questions": {
|
32367
32947
|
"post": {
|
32368
|
-
"href": "http://localhost:3000/api/surveys/
|
32948
|
+
"href": "http://localhost:3000/api/surveys/198/survey_questions"
|
32369
32949
|
},
|
32370
32950
|
"put": {
|
32371
|
-
"href": "http://localhost:3000/api/surveys/
|
32951
|
+
"href": "http://localhost:3000/api/surveys/198/survey_questions"
|
32372
32952
|
}
|
32373
32953
|
}
|
32374
32954
|
},
|
32375
|
-
"completed":
|
32955
|
+
"completed": true,
|
32376
32956
|
"survey_questions": [
|
32377
32957
|
|
32378
32958
|
]
|
32379
32959
|
}
|
32380
32960
|
http_version:
|
32381
|
-
recorded_at: Sat,
|
32961
|
+
recorded_at: Sat, 25 Oct 2014 18:09:05 GMT
|
32382
32962
|
- request:
|
32383
32963
|
method: post
|
32384
|
-
uri: http://localhost:3000/api/surveys/
|
32964
|
+
uri: http://localhost:3000/api/surveys/198/survey_questions
|
32385
32965
|
body:
|
32386
32966
|
encoding: UTF-8
|
32387
32967
|
string: '{"survey_question":{"question_id":8}}'
|
@@ -32393,9 +32973,9 @@ http_interactions:
|
|
32393
32973
|
Api-Token:
|
32394
32974
|
- testing
|
32395
32975
|
User-Token:
|
32396
|
-
-
|
32976
|
+
- b85987387fd976bcc19264746b1dad8dc8046cc8d6ae74636d6336c452325276
|
32397
32977
|
Service-User-Id:
|
32398
|
-
-
|
32978
|
+
- d068715ec29db367e3adca0a3b2a38dcd2d011beba3b9df8840d8231044e7c08
|
32399
32979
|
Accept-Encoding:
|
32400
32980
|
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
32401
32981
|
Accept:
|
@@ -32416,26 +32996,26 @@ http_interactions:
|
|
32416
32996
|
Content-Type:
|
32417
32997
|
- application/json; charset=utf-8
|
32418
32998
|
Etag:
|
32419
|
-
- '"
|
32999
|
+
- '"6310dfc77d9b0e7bd75481f11950a40c"'
|
32420
33000
|
Cache-Control:
|
32421
33001
|
- max-age=0, private, must-revalidate
|
32422
33002
|
X-Request-Id:
|
32423
|
-
-
|
33003
|
+
- 95c2feb6-1d68-4219-9de4-fae232d290f7
|
32424
33004
|
X-Runtime:
|
32425
|
-
- '0.
|
33005
|
+
- '0.028140'
|
32426
33006
|
Server:
|
32427
33007
|
- WEBrick/1.3.1 (Ruby/2.1.2/2014-05-08)
|
32428
33008
|
Date:
|
32429
|
-
- Sat,
|
33009
|
+
- Sat, 25 Oct 2014 18:09:05 GMT
|
32430
33010
|
Content-Length:
|
32431
|
-
- '
|
33011
|
+
- '648'
|
32432
33012
|
Connection:
|
32433
33013
|
- Keep-Alive
|
32434
33014
|
body:
|
32435
33015
|
encoding: UTF-8
|
32436
33016
|
string: |-
|
32437
33017
|
{
|
32438
|
-
"id":
|
33018
|
+
"id": 283,
|
32439
33019
|
"text": "In the past 24 hours, have you engaged in sexual activity with another person?",
|
32440
33020
|
"type": "boolean",
|
32441
33021
|
"responses": [
|
@@ -32446,28 +33026,29 @@ http_interactions:
|
|
32446
33026
|
"freeform": false,
|
32447
33027
|
"_links": {
|
32448
33028
|
"self": {
|
32449
|
-
"href": "http://localhost:3000/api/surveys/
|
33029
|
+
"href": "http://localhost:3000/api/surveys/198/survey_questions/283"
|
32450
33030
|
},
|
32451
33031
|
"post": {
|
32452
|
-
"href": "http://localhost:3000/api/surveys/
|
33032
|
+
"href": "http://localhost:3000/api/surveys/198/survey_questions"
|
32453
33033
|
},
|
32454
33034
|
"put": {
|
32455
|
-
"href": "http://localhost:3000/api/surveys/
|
33035
|
+
"href": "http://localhost:3000/api/surveys/198/survey_questions/283"
|
32456
33036
|
},
|
32457
33037
|
"survey": {
|
32458
|
-
"href": "http://localhost:3000/api/surveys/
|
33038
|
+
"href": "http://localhost:3000/api/surveys/198"
|
32459
33039
|
}
|
32460
33040
|
},
|
32461
|
-
"created_at": "2014-10-
|
33041
|
+
"created_at": "2014-10-25T18:09:05.977Z",
|
33042
|
+
"key": "had_sex"
|
32462
33043
|
}
|
32463
33044
|
http_version:
|
32464
|
-
recorded_at: Sat,
|
33045
|
+
recorded_at: Sat, 25 Oct 2014 18:09:05 GMT
|
32465
33046
|
- request:
|
32466
33047
|
method: put
|
32467
|
-
uri: http://localhost:3000/api/surveys/
|
33048
|
+
uri: http://localhost:3000/api/surveys/198/survey_questions/283
|
32468
33049
|
body:
|
32469
33050
|
encoding: UTF-8
|
32470
|
-
string: '{"id":
|
33051
|
+
string: '{"id":283,"survey_question":{"answer":true}}'
|
32471
33052
|
headers:
|
32472
33053
|
User-Agent:
|
32473
33054
|
- Faraday v0.9.0
|
@@ -32476,9 +33057,9 @@ http_interactions:
|
|
32476
33057
|
Api-Token:
|
32477
33058
|
- testing
|
32478
33059
|
User-Token:
|
32479
|
-
-
|
33060
|
+
- b85987387fd976bcc19264746b1dad8dc8046cc8d6ae74636d6336c452325276
|
32480
33061
|
Service-User-Id:
|
32481
|
-
-
|
33062
|
+
- d068715ec29db367e3adca0a3b2a38dcd2d011beba3b9df8840d8231044e7c08
|
32482
33063
|
Accept-Encoding:
|
32483
33064
|
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
32484
33065
|
Accept:
|
@@ -32499,23 +33080,23 @@ http_interactions:
|
|
32499
33080
|
Cache-Control:
|
32500
33081
|
- no-cache
|
32501
33082
|
X-Request-Id:
|
32502
|
-
-
|
33083
|
+
- 32fecab8-d13e-45c3-8638-35b4e823e3bc
|
32503
33084
|
X-Runtime:
|
32504
|
-
- '0.
|
33085
|
+
- '0.012903'
|
32505
33086
|
Server:
|
32506
33087
|
- WEBrick/1.3.1 (Ruby/2.1.2/2014-05-08)
|
32507
33088
|
Date:
|
32508
|
-
- Sat,
|
33089
|
+
- Sat, 25 Oct 2014 18:09:06 GMT
|
32509
33090
|
Connection:
|
32510
33091
|
- Keep-Alive
|
32511
33092
|
body:
|
32512
33093
|
encoding: UTF-8
|
32513
33094
|
string: ''
|
32514
33095
|
http_version:
|
32515
|
-
recorded_at: Sat,
|
33096
|
+
recorded_at: Sat, 25 Oct 2014 18:09:06 GMT
|
32516
33097
|
- request:
|
32517
33098
|
method: get
|
32518
|
-
uri: http://localhost:3000/api/surveys/
|
33099
|
+
uri: http://localhost:3000/api/surveys/198
|
32519
33100
|
body:
|
32520
33101
|
encoding: US-ASCII
|
32521
33102
|
string: ''
|
@@ -32527,9 +33108,9 @@ http_interactions:
|
|
32527
33108
|
Api-Token:
|
32528
33109
|
- testing
|
32529
33110
|
User-Token:
|
32530
|
-
-
|
33111
|
+
- b85987387fd976bcc19264746b1dad8dc8046cc8d6ae74636d6336c452325276
|
32531
33112
|
Service-User-Id:
|
32532
|
-
-
|
33113
|
+
- d068715ec29db367e3adca0a3b2a38dcd2d011beba3b9df8840d8231044e7c08
|
32533
33114
|
Accept-Encoding:
|
32534
33115
|
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
32535
33116
|
Accept:
|
@@ -32550,44 +33131,44 @@ http_interactions:
|
|
32550
33131
|
Content-Type:
|
32551
33132
|
- application/json; charset=utf-8
|
32552
33133
|
Etag:
|
32553
|
-
- '"
|
33134
|
+
- '"5b1a8df89fa8edcd631a568443ca1827"'
|
32554
33135
|
Cache-Control:
|
32555
33136
|
- max-age=0, private, must-revalidate
|
32556
33137
|
X-Request-Id:
|
32557
|
-
-
|
33138
|
+
- bd5f067a-0698-4937-8d48-7a62ca8226f5
|
32558
33139
|
X-Runtime:
|
32559
|
-
- '0.
|
33140
|
+
- '0.015588'
|
32560
33141
|
Server:
|
32561
33142
|
- WEBrick/1.3.1 (Ruby/2.1.2/2014-05-08)
|
32562
33143
|
Date:
|
32563
|
-
- Sat,
|
33144
|
+
- Sat, 25 Oct 2014 18:09:06 GMT
|
32564
33145
|
Content-Length:
|
32565
|
-
- '
|
33146
|
+
- '1230'
|
32566
33147
|
Connection:
|
32567
33148
|
- Keep-Alive
|
32568
33149
|
body:
|
32569
33150
|
encoding: UTF-8
|
32570
33151
|
string: |-
|
32571
33152
|
{
|
32572
|
-
"id":
|
32573
|
-
"service_user_id": "
|
33153
|
+
"id": 198,
|
33154
|
+
"service_user_id": "d068715ec29db367e3adca0a3b2a38dcd2d011beba3b9df8840d8231044e7c08",
|
32574
33155
|
"_links": {
|
32575
33156
|
"self": {
|
32576
|
-
"href": "http://localhost:3000/api/surveys/
|
33157
|
+
"href": "http://localhost:3000/api/surveys/198"
|
32577
33158
|
},
|
32578
33159
|
"survey_questions": {
|
32579
33160
|
"post": {
|
32580
|
-
"href": "http://localhost:3000/api/surveys/
|
33161
|
+
"href": "http://localhost:3000/api/surveys/198/survey_questions"
|
32581
33162
|
},
|
32582
33163
|
"put": {
|
32583
|
-
"href": "http://localhost:3000/api/surveys/
|
33164
|
+
"href": "http://localhost:3000/api/surveys/198/survey_questions"
|
32584
33165
|
}
|
32585
33166
|
}
|
32586
33167
|
},
|
32587
|
-
"completed":
|
33168
|
+
"completed": true,
|
32588
33169
|
"survey_questions": [
|
32589
33170
|
{
|
32590
|
-
"id":
|
33171
|
+
"id": 283,
|
32591
33172
|
"text": "In the past 24 hours, have you engaged in sexual activity with another person?",
|
32592
33173
|
"type": "boolean",
|
32593
33174
|
"responses": [
|
@@ -32598,22 +33179,23 @@ http_interactions:
|
|
32598
33179
|
"freeform": false,
|
32599
33180
|
"_links": {
|
32600
33181
|
"self": {
|
32601
|
-
"href": "http://localhost:3000/api/surveys/
|
33182
|
+
"href": "http://localhost:3000/api/surveys/198/survey_questions/283"
|
32602
33183
|
},
|
32603
33184
|
"post": {
|
32604
|
-
"href": "http://localhost:3000/api/surveys/
|
33185
|
+
"href": "http://localhost:3000/api/surveys/198/survey_questions"
|
32605
33186
|
},
|
32606
33187
|
"put": {
|
32607
|
-
"href": "http://localhost:3000/api/surveys/
|
33188
|
+
"href": "http://localhost:3000/api/surveys/198/survey_questions/283"
|
32608
33189
|
},
|
32609
33190
|
"survey": {
|
32610
|
-
"href": "http://localhost:3000/api/surveys/
|
33191
|
+
"href": "http://localhost:3000/api/surveys/198"
|
32611
33192
|
}
|
32612
33193
|
},
|
32613
|
-
"created_at": "2014-10-
|
33194
|
+
"created_at": "2014-10-25T18:09:05.977Z",
|
33195
|
+
"key": "had_sex"
|
32614
33196
|
}
|
32615
33197
|
]
|
32616
33198
|
}
|
32617
33199
|
http_version:
|
32618
|
-
recorded_at: Sat,
|
33200
|
+
recorded_at: Sat, 25 Oct 2014 18:09:06 GMT
|
32619
33201
|
recorded_with: VCR 2.6.0
|