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
@@ -12413,75 +12413,6 @@ http_interactions:
|
|
12413
12413
|
}
|
12414
12414
|
http_version:
|
12415
12415
|
recorded_at: Sun, 14 Sep 2014 17:30:34 GMT
|
12416
|
-
- request:
|
12417
|
-
method: get
|
12418
|
-
uri: http://localhost:3000/
|
12419
|
-
body:
|
12420
|
-
encoding: US-ASCII
|
12421
|
-
string: ''
|
12422
|
-
headers:
|
12423
|
-
User-Agent:
|
12424
|
-
- Faraday v0.9.0
|
12425
|
-
Content-Type:
|
12426
|
-
- application/json
|
12427
|
-
Api-Token:
|
12428
|
-
- testing
|
12429
|
-
Accept-Encoding:
|
12430
|
-
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
12431
|
-
Accept:
|
12432
|
-
- "*/*"
|
12433
|
-
response:
|
12434
|
-
status:
|
12435
|
-
code: 200
|
12436
|
-
message: 'OK '
|
12437
|
-
headers:
|
12438
|
-
X-Frame-Options:
|
12439
|
-
- SAMEORIGIN
|
12440
|
-
X-Xss-Protection:
|
12441
|
-
- 1; mode=block
|
12442
|
-
X-Content-Type-Options:
|
12443
|
-
- nosniff
|
12444
|
-
X-Ua-Compatible:
|
12445
|
-
- chrome=1
|
12446
|
-
Content-Type:
|
12447
|
-
- application/json; charset=utf-8
|
12448
|
-
Etag:
|
12449
|
-
- '"c4942090acbc96722cba50e4cecfde73"'
|
12450
|
-
Cache-Control:
|
12451
|
-
- max-age=0, private, must-revalidate
|
12452
|
-
X-Request-Id:
|
12453
|
-
- 8bf8deee-ee3e-4bbe-b008-8bd0eb4baaa0
|
12454
|
-
X-Runtime:
|
12455
|
-
- '0.004796'
|
12456
|
-
Server:
|
12457
|
-
- WEBrick/1.3.1 (Ruby/2.1.2/2014-05-08)
|
12458
|
-
Date:
|
12459
|
-
- Sat, 20 Sep 2014 14:13:09 GMT
|
12460
|
-
Content-Length:
|
12461
|
-
- '236'
|
12462
|
-
Connection:
|
12463
|
-
- Keep-Alive
|
12464
|
-
body:
|
12465
|
-
encoding: UTF-8
|
12466
|
-
string: |-
|
12467
|
-
{
|
12468
|
-
"_links": {
|
12469
|
-
"self": {
|
12470
|
-
"href": "http://localhost:3000/"
|
12471
|
-
},
|
12472
|
-
"surveys": {
|
12473
|
-
"href": "api/surveys"
|
12474
|
-
},
|
12475
|
-
"users": {
|
12476
|
-
"href": "api/users"
|
12477
|
-
},
|
12478
|
-
"questions": {
|
12479
|
-
"href": "api/questions"
|
12480
|
-
}
|
12481
|
-
}
|
12482
|
-
}
|
12483
|
-
http_version:
|
12484
|
-
recorded_at: Sat, 20 Sep 2014 14:13:09 GMT
|
12485
12416
|
- request:
|
12486
12417
|
method: put
|
12487
12418
|
uri: http://localhost:3000//api/surveys/3/survey_questions/6/
|
@@ -12726,75 +12657,6 @@ http_interactions:
|
|
12726
12657
|
}
|
12727
12658
|
http_version:
|
12728
12659
|
recorded_at: Sat, 20 Sep 2014 14:13:49 GMT
|
12729
|
-
- request:
|
12730
|
-
method: get
|
12731
|
-
uri: http://localhost:3000/
|
12732
|
-
body:
|
12733
|
-
encoding: US-ASCII
|
12734
|
-
string: ''
|
12735
|
-
headers:
|
12736
|
-
User-Agent:
|
12737
|
-
- Faraday v0.9.0
|
12738
|
-
Content-Type:
|
12739
|
-
- application/json
|
12740
|
-
Api-Token:
|
12741
|
-
- testing
|
12742
|
-
Accept-Encoding:
|
12743
|
-
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
12744
|
-
Accept:
|
12745
|
-
- "*/*"
|
12746
|
-
response:
|
12747
|
-
status:
|
12748
|
-
code: 200
|
12749
|
-
message: 'OK '
|
12750
|
-
headers:
|
12751
|
-
X-Frame-Options:
|
12752
|
-
- SAMEORIGIN
|
12753
|
-
X-Xss-Protection:
|
12754
|
-
- 1; mode=block
|
12755
|
-
X-Content-Type-Options:
|
12756
|
-
- nosniff
|
12757
|
-
X-Ua-Compatible:
|
12758
|
-
- chrome=1
|
12759
|
-
Content-Type:
|
12760
|
-
- application/json; charset=utf-8
|
12761
|
-
Etag:
|
12762
|
-
- '"c4942090acbc96722cba50e4cecfde73"'
|
12763
|
-
Cache-Control:
|
12764
|
-
- max-age=0, private, must-revalidate
|
12765
|
-
X-Request-Id:
|
12766
|
-
- b169bfe6-be9d-4165-9f15-3e9677ef292e
|
12767
|
-
X-Runtime:
|
12768
|
-
- '0.004428'
|
12769
|
-
Server:
|
12770
|
-
- WEBrick/1.3.1 (Ruby/2.1.2/2014-05-08)
|
12771
|
-
Date:
|
12772
|
-
- Sat, 20 Sep 2014 14:13:50 GMT
|
12773
|
-
Content-Length:
|
12774
|
-
- '236'
|
12775
|
-
Connection:
|
12776
|
-
- Keep-Alive
|
12777
|
-
body:
|
12778
|
-
encoding: UTF-8
|
12779
|
-
string: |-
|
12780
|
-
{
|
12781
|
-
"_links": {
|
12782
|
-
"self": {
|
12783
|
-
"href": "http://localhost:3000/"
|
12784
|
-
},
|
12785
|
-
"surveys": {
|
12786
|
-
"href": "api/surveys"
|
12787
|
-
},
|
12788
|
-
"users": {
|
12789
|
-
"href": "api/users"
|
12790
|
-
},
|
12791
|
-
"questions": {
|
12792
|
-
"href": "api/questions"
|
12793
|
-
}
|
12794
|
-
}
|
12795
|
-
}
|
12796
|
-
http_version:
|
12797
|
-
recorded_at: Sat, 20 Sep 2014 14:13:50 GMT
|
12798
12660
|
- request:
|
12799
12661
|
method: post
|
12800
12662
|
uri: http://localhost:3000//api/surveys/4/survey_questions/
|
@@ -13101,11 +12963,11 @@ http_interactions:
|
|
13101
12963
|
http_version:
|
13102
12964
|
recorded_at: Sat, 20 Sep 2014 14:13:50 GMT
|
13103
12965
|
- request:
|
13104
|
-
method:
|
13105
|
-
uri: http://localhost:3000
|
12966
|
+
method: put
|
12967
|
+
uri: http://localhost:3000//api/surveys/9/survey_questions/23/
|
13106
12968
|
body:
|
13107
12969
|
encoding: UTF-8
|
13108
|
-
string: '{"
|
12970
|
+
string: '{"id":23,"survey_question":{"answer":"foo"}}'
|
13109
12971
|
headers:
|
13110
12972
|
User-Agent:
|
13111
12973
|
- Faraday v0.9.0
|
@@ -13119,8 +12981,55 @@ http_interactions:
|
|
13119
12981
|
- "*/*"
|
13120
12982
|
response:
|
13121
12983
|
status:
|
13122
|
-
code:
|
13123
|
-
message: '
|
12984
|
+
code: 204
|
12985
|
+
message: 'No Content '
|
12986
|
+
headers:
|
12987
|
+
X-Frame-Options:
|
12988
|
+
- SAMEORIGIN
|
12989
|
+
X-Xss-Protection:
|
12990
|
+
- 1; mode=block
|
12991
|
+
X-Content-Type-Options:
|
12992
|
+
- nosniff
|
12993
|
+
X-Ua-Compatible:
|
12994
|
+
- chrome=1
|
12995
|
+
Cache-Control:
|
12996
|
+
- no-cache
|
12997
|
+
X-Request-Id:
|
12998
|
+
- 61fbbb81-7eca-4da3-9cf1-1f6f841a5695
|
12999
|
+
X-Runtime:
|
13000
|
+
- '0.008487'
|
13001
|
+
Server:
|
13002
|
+
- WEBrick/1.3.1 (Ruby/2.1.2/2014-05-08)
|
13003
|
+
Date:
|
13004
|
+
- Sat, 20 Sep 2014 14:14:33 GMT
|
13005
|
+
Connection:
|
13006
|
+
- Keep-Alive
|
13007
|
+
body:
|
13008
|
+
encoding: UTF-8
|
13009
|
+
string: ''
|
13010
|
+
http_version:
|
13011
|
+
recorded_at: Sat, 20 Sep 2014 14:14:33 GMT
|
13012
|
+
- request:
|
13013
|
+
method: get
|
13014
|
+
uri: http://localhost:3000/api/surveys/9
|
13015
|
+
body:
|
13016
|
+
encoding: US-ASCII
|
13017
|
+
string: ''
|
13018
|
+
headers:
|
13019
|
+
User-Agent:
|
13020
|
+
- Faraday v0.9.0
|
13021
|
+
Content-Type:
|
13022
|
+
- application/json
|
13023
|
+
Api-Token:
|
13024
|
+
- testing
|
13025
|
+
Accept-Encoding:
|
13026
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
13027
|
+
Accept:
|
13028
|
+
- "*/*"
|
13029
|
+
response:
|
13030
|
+
status:
|
13031
|
+
code: 200
|
13032
|
+
message: 'OK '
|
13124
13033
|
headers:
|
13125
13034
|
X-Frame-Options:
|
13126
13035
|
- SAMEORIGIN
|
@@ -13133,19 +13042,19 @@ http_interactions:
|
|
13133
13042
|
Content-Type:
|
13134
13043
|
- application/json; charset=utf-8
|
13135
13044
|
Etag:
|
13136
|
-
- '"
|
13045
|
+
- '"02f31335f5c1fda07eb4d1cf770b3b6e"'
|
13137
13046
|
Cache-Control:
|
13138
13047
|
- max-age=0, private, must-revalidate
|
13139
13048
|
X-Request-Id:
|
13140
|
-
-
|
13049
|
+
- 0c757f15-0060-41f0-9c57-ac946614418a
|
13141
13050
|
X-Runtime:
|
13142
|
-
- '0.
|
13051
|
+
- '0.017964'
|
13143
13052
|
Server:
|
13144
13053
|
- WEBrick/1.3.1 (Ruby/2.1.2/2014-05-08)
|
13145
13054
|
Date:
|
13146
13055
|
- Sat, 20 Sep 2014 14:14:33 GMT
|
13147
13056
|
Content-Length:
|
13148
|
-
- '
|
13057
|
+
- '3657'
|
13149
13058
|
Connection:
|
13150
13059
|
- Keep-Alive
|
13151
13060
|
body:
|
@@ -13170,24 +13079,53 @@ http_interactions:
|
|
13170
13079
|
"completed": false,
|
13171
13080
|
"survey_questions": [
|
13172
13081
|
{
|
13173
|
-
"id":
|
13174
|
-
"text": "
|
13175
|
-
"type": "
|
13082
|
+
"id": 24,
|
13083
|
+
"text": "Where are you?",
|
13084
|
+
"type": "multiple",
|
13176
13085
|
"responses": [
|
13177
|
-
"
|
13178
|
-
"
|
13086
|
+
"At Home",
|
13087
|
+
"At Work",
|
13088
|
+
"In a car",
|
13089
|
+
"Other"
|
13090
|
+
],
|
13091
|
+
"answer": null,
|
13092
|
+
"freeform": true,
|
13093
|
+
"_links": {
|
13094
|
+
"self": {
|
13095
|
+
"href": "/api/surveys/9/survey_questions/24"
|
13096
|
+
},
|
13097
|
+
"post": {
|
13098
|
+
"href": "http://localhost:3000/api/surveys/9/survey_questions"
|
13099
|
+
},
|
13100
|
+
"put": {
|
13101
|
+
"href": "/api/surveys/9/survey_questions/24"
|
13102
|
+
},
|
13103
|
+
"survey": {
|
13104
|
+
"href": "/api/surveys/9"
|
13105
|
+
}
|
13106
|
+
}
|
13107
|
+
},
|
13108
|
+
{
|
13109
|
+
"id": 25,
|
13110
|
+
"text": "Are you judging or evaluating what you are doing right now (i.e. at the moment just before you were notified?)",
|
13111
|
+
"type": "multiple",
|
13112
|
+
"responses": [
|
13113
|
+
"f",
|
13114
|
+
"Yes - Negatively",
|
13115
|
+
"Yes - Neutrally",
|
13116
|
+
"Yes - Positively"
|
13179
13117
|
],
|
13180
13118
|
"answer": null,
|
13181
13119
|
"freeform": false,
|
13182
13120
|
"_links": {
|
13183
13121
|
"self": {
|
13184
|
-
"href": "/api/surveys/9/survey_questions/
|
13122
|
+
"href": "/api/surveys/9/survey_questions/25"
|
13185
13123
|
},
|
13186
13124
|
"post": {
|
13187
13125
|
"href": "http://localhost:3000/api/surveys/9/survey_questions"
|
13188
13126
|
},
|
13189
13127
|
"put": {
|
13190
|
-
"href": "/api/surveys/9/survey_questions/
|
13128
|
+
"href": "/api/surveys/9/survey_questions/25"
|
13191
13129
|
},
|
13192
13130
|
"survey": {
|
13193
13131
|
"href": "/api/surveys/9"
|
@@ -13195,127 +13133,1395 @@ http_interactions:
|
|
13195
13133
|
}
|
13196
13134
|
},
|
13197
13135
|
{
|
13198
|
-
"id":
|
13199
|
-
"text": "
|
13136
|
+
"id": 26,
|
13137
|
+
"text": "When did you last check Facebook?",
|
13200
13138
|
"type": "multiple",
|
13201
13139
|
"responses": [
|
13202
|
-
"
|
13203
|
-
"
|
13204
|
-
"In
|
13205
|
-
"
|
13140
|
+
"Right now",
|
13141
|
+
"In the last 5 minutes",
|
13142
|
+
"In the last 15 minutes",
|
13143
|
+
"In the last 30 minutes",
|
13144
|
+
"In the last hour",
|
13145
|
+
"1-2 hours ago",
|
13146
|
+
"3-5 hours ago",
|
13147
|
+
"6-12 hours ago",
|
13148
|
+
"24 hours ago",
|
13149
|
+
"Don't use facebook"
|
13150
|
+
],
|
13151
|
+
"answer": null,
|
13152
|
+
"freeform": false,
|
13153
|
+
"_links": {
|
13154
|
+
"self": {
|
13155
|
+
"href": "/api/surveys/9/survey_questions/26"
|
13156
|
+
},
|
13157
|
+
"post": {
|
13158
|
+
"href": "http://localhost:3000/api/surveys/9/survey_questions"
|
13159
|
+
},
|
13160
|
+
"put": {
|
13161
|
+
"href": "/api/surveys/9/survey_questions/26"
|
13162
|
+
},
|
13163
|
+
"survey": {
|
13164
|
+
"href": "/api/surveys/9"
|
13165
|
+
}
|
13166
|
+
}
|
13167
|
+
},
|
13168
|
+
{
|
13169
|
+
"id": 27,
|
13170
|
+
"text": "In the past 24 hours, have you engaged in sexual activity with another person?",
|
13171
|
+
"type": "boolean",
|
13172
|
+
"responses": [
|
13173
|
+
"t",
|
13174
|
+
"f"
|
13175
|
+
],
|
13176
|
+
"answer": null,
|
13177
|
+
"freeform": false,
|
13178
|
+
"_links": {
|
13179
|
+
"self": {
|
13180
|
+
"href": "/api/surveys/9/survey_questions/27"
|
13181
|
+
},
|
13182
|
+
"post": {
|
13183
|
+
"href": "http://localhost:3000/api/surveys/9/survey_questions"
|
13184
|
+
},
|
13185
|
+
"put": {
|
13186
|
+
"href": "/api/surveys/9/survey_questions/27"
|
13187
|
+
},
|
13188
|
+
"survey": {
|
13189
|
+
"href": "/api/surveys/9"
|
13190
|
+
}
|
13191
|
+
}
|
13192
|
+
},
|
13193
|
+
{
|
13194
|
+
"id": 23,
|
13195
|
+
"text": "How do you feel right now?",
|
13196
|
+
"type": "range",
|
13197
|
+
"responses": [
|
13198
|
+
"0",
|
13199
|
+
"10"
|
13200
|
+
],
|
13201
|
+
"answer": "foo",
|
13202
|
+
"freeform": false,
|
13203
|
+
"_links": {
|
13204
|
+
"self": {
|
13205
|
+
"href": "/api/surveys/9/survey_questions/23"
|
13206
|
+
},
|
13207
|
+
"post": {
|
13208
|
+
"href": "http://localhost:3000/api/surveys/9/survey_questions"
|
13209
|
+
},
|
13210
|
+
"put": {
|
13211
|
+
"href": "/api/surveys/9/survey_questions/23"
|
13212
|
+
},
|
13213
|
+
"survey": {
|
13214
|
+
"href": "/api/surveys/9"
|
13215
|
+
}
|
13216
|
+
}
|
13217
|
+
}
|
13218
|
+
]
|
13219
|
+
}
|
13220
|
+
http_version:
|
13221
|
+
recorded_at: Sat, 20 Sep 2014 14:14:33 GMT
|
13222
|
+
- request:
|
13223
|
+
method: post
|
13224
|
+
uri: http://localhost:3000//api/surveys/10/survey_questions/
|
13225
|
+
body:
|
13226
|
+
encoding: UTF-8
|
13227
|
+
string: '{"survey_question":{"question_id":8}}'
|
13228
|
+
headers:
|
13229
|
+
User-Agent:
|
13230
|
+
- Faraday v0.9.0
|
13231
|
+
Content-Type:
|
13232
|
+
- application/json
|
13233
|
+
Api-Token:
|
13234
|
+
- testing
|
13235
|
+
Accept-Encoding:
|
13236
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
13237
|
+
Accept:
|
13238
|
+
- "*/*"
|
13239
|
+
response:
|
13240
|
+
status:
|
13241
|
+
code: 201
|
13242
|
+
message: 'Created '
|
13243
|
+
headers:
|
13244
|
+
X-Frame-Options:
|
13245
|
+
- SAMEORIGIN
|
13246
|
+
X-Xss-Protection:
|
13247
|
+
- 1; mode=block
|
13248
|
+
X-Content-Type-Options:
|
13249
|
+
- nosniff
|
13250
|
+
X-Ua-Compatible:
|
13251
|
+
- chrome=1
|
13252
|
+
Content-Type:
|
13253
|
+
- application/json; charset=utf-8
|
13254
|
+
Etag:
|
13255
|
+
- '"3b410d52fdf330e9c0950cc298f43d62"'
|
13256
|
+
Cache-Control:
|
13257
|
+
- max-age=0, private, must-revalidate
|
13258
|
+
X-Request-Id:
|
13259
|
+
- eb650ef9-041c-41a6-a8be-449417df8cbe
|
13260
|
+
X-Runtime:
|
13261
|
+
- '0.008805'
|
13262
|
+
Server:
|
13263
|
+
- WEBrick/1.3.1 (Ruby/2.1.2/2014-05-08)
|
13264
|
+
Date:
|
13265
|
+
- Sat, 20 Sep 2014 14:14:34 GMT
|
13266
|
+
Content-Length:
|
13267
|
+
- '182'
|
13268
|
+
Connection:
|
13269
|
+
- Keep-Alive
|
13270
|
+
body:
|
13271
|
+
encoding: UTF-8
|
13272
|
+
string: |-
|
13273
|
+
{
|
13274
|
+
"id": 28,
|
13275
|
+
"survey_id": 10,
|
13276
|
+
"question_id": 8,
|
13277
|
+
"order_index": null,
|
13278
|
+
"answer": null,
|
13279
|
+
"created_at": "2014-09-20T14:14:34.143Z",
|
13280
|
+
"updated_at": "2014-09-20T14:14:34.143Z"
|
13281
|
+
}
|
13282
|
+
http_version:
|
13283
|
+
recorded_at: Sat, 20 Sep 2014 14:14:34 GMT
|
13284
|
+
- request:
|
13285
|
+
method: get
|
13286
|
+
uri: http://localhost:3000/api/surveys/10
|
13287
|
+
body:
|
13288
|
+
encoding: US-ASCII
|
13289
|
+
string: ''
|
13290
|
+
headers:
|
13291
|
+
User-Agent:
|
13292
|
+
- Faraday v0.9.0
|
13293
|
+
Content-Type:
|
13294
|
+
- application/json
|
13295
|
+
Api-Token:
|
13296
|
+
- testing
|
13297
|
+
Accept-Encoding:
|
13298
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
13299
|
+
Accept:
|
13300
|
+
- "*/*"
|
13301
|
+
response:
|
13302
|
+
status:
|
13303
|
+
code: 200
|
13304
|
+
message: 'OK '
|
13305
|
+
headers:
|
13306
|
+
X-Frame-Options:
|
13307
|
+
- SAMEORIGIN
|
13308
|
+
X-Xss-Protection:
|
13309
|
+
- 1; mode=block
|
13310
|
+
X-Content-Type-Options:
|
13311
|
+
- nosniff
|
13312
|
+
X-Ua-Compatible:
|
13313
|
+
- chrome=1
|
13314
|
+
Content-Type:
|
13315
|
+
- application/json; charset=utf-8
|
13316
|
+
Etag:
|
13317
|
+
- '"7995c822d668533c93f4b5b5fd891795"'
|
13318
|
+
Cache-Control:
|
13319
|
+
- max-age=0, private, must-revalidate
|
13320
|
+
X-Request-Id:
|
13321
|
+
- a229738d-d8c9-42bf-ae4c-2d807d44ea7d
|
13322
|
+
X-Runtime:
|
13323
|
+
- '0.011026'
|
13324
|
+
Server:
|
13325
|
+
- WEBrick/1.3.1 (Ruby/2.1.2/2014-05-08)
|
13326
|
+
Date:
|
13327
|
+
- Sat, 20 Sep 2014 14:14:34 GMT
|
13328
|
+
Content-Length:
|
13329
|
+
- '972'
|
13330
|
+
Connection:
|
13331
|
+
- Keep-Alive
|
13332
|
+
body:
|
13333
|
+
encoding: UTF-8
|
13334
|
+
string: |-
|
13335
|
+
{
|
13336
|
+
"id": 10,
|
13337
|
+
"user_id": 10,
|
13338
|
+
"_links": {
|
13339
|
+
"self": {
|
13340
|
+
"href": "http://localhost:3000/api/surveys/10"
|
13341
|
+
},
|
13342
|
+
"survey_questions": {
|
13343
|
+
"post": {
|
13344
|
+
"href": "/api/surveys/10/survey_questions"
|
13345
|
+
},
|
13346
|
+
"put": {
|
13347
|
+
"href": "/api/surveys/10/survey_questions"
|
13348
|
+
}
|
13349
|
+
}
|
13350
|
+
},
|
13351
|
+
"completed": false,
|
13352
|
+
"survey_questions": [
|
13353
|
+
{
|
13354
|
+
"id": 28,
|
13355
|
+
"text": "In the past 24 hours, have you engaged in sexual activity with another person?",
|
13356
|
+
"type": "boolean",
|
13357
|
+
"responses": [
|
13358
|
+
"t",
|
13359
|
+
"f"
|
13360
|
+
],
|
13361
|
+
"answer": null,
|
13362
|
+
"freeform": false,
|
13363
|
+
"_links": {
|
13364
|
+
"self": {
|
13365
|
+
"href": "/api/surveys/10/survey_questions/28"
|
13366
|
+
},
|
13367
|
+
"post": {
|
13368
|
+
"href": "http://localhost:3000/api/surveys/10/survey_questions"
|
13369
|
+
},
|
13370
|
+
"put": {
|
13371
|
+
"href": "/api/surveys/10/survey_questions/28"
|
13372
|
+
},
|
13373
|
+
"survey": {
|
13374
|
+
"href": "/api/surveys/10"
|
13375
|
+
}
|
13376
|
+
}
|
13377
|
+
}
|
13378
|
+
]
|
13379
|
+
}
|
13380
|
+
http_version:
|
13381
|
+
recorded_at: Sat, 20 Sep 2014 14:14:34 GMT
|
13382
|
+
- request:
|
13383
|
+
method: put
|
13384
|
+
uri: http://localhost:3000//api/surveys/10/survey_questions/28/
|
13385
|
+
body:
|
13386
|
+
encoding: UTF-8
|
13387
|
+
string: '{"id":28,"survey_question":{"answer":"true"}}'
|
13388
|
+
headers:
|
13389
|
+
User-Agent:
|
13390
|
+
- Faraday v0.9.0
|
13391
|
+
Content-Type:
|
13392
|
+
- application/json
|
13393
|
+
Api-Token:
|
13394
|
+
- testing
|
13395
|
+
Accept-Encoding:
|
13396
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
13397
|
+
Accept:
|
13398
|
+
- "*/*"
|
13399
|
+
response:
|
13400
|
+
status:
|
13401
|
+
code: 204
|
13402
|
+
message: 'No Content '
|
13403
|
+
headers:
|
13404
|
+
X-Frame-Options:
|
13405
|
+
- SAMEORIGIN
|
13406
|
+
X-Xss-Protection:
|
13407
|
+
- 1; mode=block
|
13408
|
+
X-Content-Type-Options:
|
13409
|
+
- nosniff
|
13410
|
+
X-Ua-Compatible:
|
13411
|
+
- chrome=1
|
13412
|
+
Cache-Control:
|
13413
|
+
- no-cache
|
13414
|
+
X-Request-Id:
|
13415
|
+
- 8bbd380a-adfd-401e-b5e3-16f6225a34d9
|
13416
|
+
X-Runtime:
|
13417
|
+
- '0.008538'
|
13418
|
+
Server:
|
13419
|
+
- WEBrick/1.3.1 (Ruby/2.1.2/2014-05-08)
|
13420
|
+
Date:
|
13421
|
+
- Sat, 20 Sep 2014 14:14:34 GMT
|
13422
|
+
Connection:
|
13423
|
+
- Keep-Alive
|
13424
|
+
body:
|
13425
|
+
encoding: UTF-8
|
13426
|
+
string: ''
|
13427
|
+
http_version:
|
13428
|
+
recorded_at: Sat, 20 Sep 2014 14:14:34 GMT
|
13429
|
+
- request:
|
13430
|
+
method: get
|
13431
|
+
uri: http://localhost:3000/api/surveys/10
|
13432
|
+
body:
|
13433
|
+
encoding: US-ASCII
|
13434
|
+
string: ''
|
13435
|
+
headers:
|
13436
|
+
User-Agent:
|
13437
|
+
- Faraday v0.9.0
|
13438
|
+
Content-Type:
|
13439
|
+
- application/json
|
13440
|
+
Api-Token:
|
13441
|
+
- testing
|
13442
|
+
Accept-Encoding:
|
13443
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
13444
|
+
Accept:
|
13445
|
+
- "*/*"
|
13446
|
+
response:
|
13447
|
+
status:
|
13448
|
+
code: 200
|
13449
|
+
message: 'OK '
|
13450
|
+
headers:
|
13451
|
+
X-Frame-Options:
|
13452
|
+
- SAMEORIGIN
|
13453
|
+
X-Xss-Protection:
|
13454
|
+
- 1; mode=block
|
13455
|
+
X-Content-Type-Options:
|
13456
|
+
- nosniff
|
13457
|
+
X-Ua-Compatible:
|
13458
|
+
- chrome=1
|
13459
|
+
Content-Type:
|
13460
|
+
- application/json; charset=utf-8
|
13461
|
+
Etag:
|
13462
|
+
- '"70e38d2513e511ef58d74d82247e58df"'
|
13463
|
+
Cache-Control:
|
13464
|
+
- max-age=0, private, must-revalidate
|
13465
|
+
X-Request-Id:
|
13466
|
+
- 175b7084-0b03-44a8-bf38-e97ed2a4c753
|
13467
|
+
X-Runtime:
|
13468
|
+
- '0.009314'
|
13469
|
+
Server:
|
13470
|
+
- WEBrick/1.3.1 (Ruby/2.1.2/2014-05-08)
|
13471
|
+
Date:
|
13472
|
+
- Sat, 20 Sep 2014 14:14:34 GMT
|
13473
|
+
Content-Length:
|
13474
|
+
- '974'
|
13475
|
+
Connection:
|
13476
|
+
- Keep-Alive
|
13477
|
+
body:
|
13478
|
+
encoding: UTF-8
|
13479
|
+
string: |-
|
13480
|
+
{
|
13481
|
+
"id": 10,
|
13482
|
+
"user_id": 10,
|
13483
|
+
"_links": {
|
13484
|
+
"self": {
|
13485
|
+
"href": "http://localhost:3000/api/surveys/10"
|
13486
|
+
},
|
13487
|
+
"survey_questions": {
|
13488
|
+
"post": {
|
13489
|
+
"href": "/api/surveys/10/survey_questions"
|
13490
|
+
},
|
13491
|
+
"put": {
|
13492
|
+
"href": "/api/surveys/10/survey_questions"
|
13493
|
+
}
|
13494
|
+
}
|
13495
|
+
},
|
13496
|
+
"completed": false,
|
13497
|
+
"survey_questions": [
|
13498
|
+
{
|
13499
|
+
"id": 28,
|
13500
|
+
"text": "In the past 24 hours, have you engaged in sexual activity with another person?",
|
13501
|
+
"type": "boolean",
|
13502
|
+
"responses": [
|
13503
|
+
"t",
|
13504
|
+
"f"
|
13505
|
+
],
|
13506
|
+
"answer": "true",
|
13507
|
+
"freeform": false,
|
13508
|
+
"_links": {
|
13509
|
+
"self": {
|
13510
|
+
"href": "/api/surveys/10/survey_questions/28"
|
13511
|
+
},
|
13512
|
+
"post": {
|
13513
|
+
"href": "http://localhost:3000/api/surveys/10/survey_questions"
|
13514
|
+
},
|
13515
|
+
"put": {
|
13516
|
+
"href": "/api/surveys/10/survey_questions/28"
|
13517
|
+
},
|
13518
|
+
"survey": {
|
13519
|
+
"href": "/api/surveys/10"
|
13520
|
+
}
|
13521
|
+
}
|
13522
|
+
}
|
13523
|
+
]
|
13524
|
+
}
|
13525
|
+
http_version:
|
13526
|
+
recorded_at: Sat, 20 Sep 2014 14:14:34 GMT
|
13527
|
+
- request:
|
13528
|
+
method: get
|
13529
|
+
uri: http://localhost:3000/
|
13530
|
+
body:
|
13531
|
+
encoding: US-ASCII
|
13532
|
+
string: ''
|
13533
|
+
headers:
|
13534
|
+
User-Agent:
|
13535
|
+
- Faraday v0.9.0
|
13536
|
+
Content-Type:
|
13537
|
+
- application/json
|
13538
|
+
Api-Token:
|
13539
|
+
- testing
|
13540
|
+
Accept-Encoding:
|
13541
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
13542
|
+
Accept:
|
13543
|
+
- "*/*"
|
13544
|
+
response:
|
13545
|
+
status:
|
13546
|
+
code: 200
|
13547
|
+
message: 'OK '
|
13548
|
+
headers:
|
13549
|
+
X-Frame-Options:
|
13550
|
+
- SAMEORIGIN
|
13551
|
+
X-Xss-Protection:
|
13552
|
+
- 1; mode=block
|
13553
|
+
X-Content-Type-Options:
|
13554
|
+
- nosniff
|
13555
|
+
X-Ua-Compatible:
|
13556
|
+
- chrome=1
|
13557
|
+
Content-Type:
|
13558
|
+
- application/json; charset=utf-8
|
13559
|
+
Etag:
|
13560
|
+
- '"c4942090acbc96722cba50e4cecfde73"'
|
13561
|
+
Cache-Control:
|
13562
|
+
- max-age=0, private, must-revalidate
|
13563
|
+
X-Request-Id:
|
13564
|
+
- 0cd2300a-51bd-470e-88ae-6680ecc2d4ca
|
13565
|
+
X-Runtime:
|
13566
|
+
- '0.004571'
|
13567
|
+
Server:
|
13568
|
+
- WEBrick/1.3.1 (Ruby/2.1.2/2014-05-08)
|
13569
|
+
Date:
|
13570
|
+
- Sun, 21 Sep 2014 20:23:34 GMT
|
13571
|
+
Content-Length:
|
13572
|
+
- '236'
|
13573
|
+
Connection:
|
13574
|
+
- Keep-Alive
|
13575
|
+
body:
|
13576
|
+
encoding: UTF-8
|
13577
|
+
string: |-
|
13578
|
+
{
|
13579
|
+
"_links": {
|
13580
|
+
"self": {
|
13581
|
+
"href": "http://localhost:3000/"
|
13582
|
+
},
|
13583
|
+
"surveys": {
|
13584
|
+
"href": "api/surveys"
|
13585
|
+
},
|
13586
|
+
"users": {
|
13587
|
+
"href": "api/users"
|
13588
|
+
},
|
13589
|
+
"questions": {
|
13590
|
+
"href": "api/questions"
|
13591
|
+
}
|
13592
|
+
}
|
13593
|
+
}
|
13594
|
+
http_version:
|
13595
|
+
recorded_at: Sun, 21 Sep 2014 20:23:34 GMT
|
13596
|
+
- request:
|
13597
|
+
method: post
|
13598
|
+
uri: http://localhost:3000//api/surveys/64/survey_questions/
|
13599
|
+
body:
|
13600
|
+
encoding: UTF-8
|
13601
|
+
string: '{"survey_question":{"question_id":8}}'
|
13602
|
+
headers:
|
13603
|
+
User-Agent:
|
13604
|
+
- Faraday v0.9.0
|
13605
|
+
Content-Type:
|
13606
|
+
- application/json
|
13607
|
+
Api-Token:
|
13608
|
+
- testing
|
13609
|
+
Accept-Encoding:
|
13610
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
13611
|
+
Accept:
|
13612
|
+
- "*/*"
|
13613
|
+
response:
|
13614
|
+
status:
|
13615
|
+
code: 201
|
13616
|
+
message: 'Created '
|
13617
|
+
headers:
|
13618
|
+
X-Frame-Options:
|
13619
|
+
- SAMEORIGIN
|
13620
|
+
X-Xss-Protection:
|
13621
|
+
- 1; mode=block
|
13622
|
+
X-Content-Type-Options:
|
13623
|
+
- nosniff
|
13624
|
+
X-Ua-Compatible:
|
13625
|
+
- chrome=1
|
13626
|
+
Content-Type:
|
13627
|
+
- application/json; charset=utf-8
|
13628
|
+
Etag:
|
13629
|
+
- '"b08ac2371ace95f63cf307d8f165a944"'
|
13630
|
+
Cache-Control:
|
13631
|
+
- max-age=0, private, must-revalidate
|
13632
|
+
X-Request-Id:
|
13633
|
+
- b1be0f20-f14f-4684-b3e1-85b6fffb1914
|
13634
|
+
X-Runtime:
|
13635
|
+
- '0.015524'
|
13636
|
+
Server:
|
13637
|
+
- WEBrick/1.3.1 (Ruby/2.1.2/2014-05-08)
|
13638
|
+
Date:
|
13639
|
+
- Sun, 21 Sep 2014 20:23:34 GMT
|
13640
|
+
Content-Length:
|
13641
|
+
- '183'
|
13642
|
+
Connection:
|
13643
|
+
- Keep-Alive
|
13644
|
+
body:
|
13645
|
+
encoding: UTF-8
|
13646
|
+
string: |-
|
13647
|
+
{
|
13648
|
+
"id": 223,
|
13649
|
+
"survey_id": 64,
|
13650
|
+
"question_id": 8,
|
13651
|
+
"order_index": null,
|
13652
|
+
"answer": null,
|
13653
|
+
"created_at": "2014-09-21T20:23:34.774Z",
|
13654
|
+
"updated_at": "2014-09-21T20:23:34.774Z"
|
13655
|
+
}
|
13656
|
+
http_version:
|
13657
|
+
recorded_at: Sun, 21 Sep 2014 20:23:34 GMT
|
13658
|
+
- request:
|
13659
|
+
method: get
|
13660
|
+
uri: http://localhost:3000/api/surveys/64
|
13661
|
+
body:
|
13662
|
+
encoding: US-ASCII
|
13663
|
+
string: ''
|
13664
|
+
headers:
|
13665
|
+
User-Agent:
|
13666
|
+
- Faraday v0.9.0
|
13667
|
+
Content-Type:
|
13668
|
+
- application/json
|
13669
|
+
Api-Token:
|
13670
|
+
- testing
|
13671
|
+
Accept-Encoding:
|
13672
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
13673
|
+
Accept:
|
13674
|
+
- "*/*"
|
13675
|
+
response:
|
13676
|
+
status:
|
13677
|
+
code: 200
|
13678
|
+
message: 'OK '
|
13679
|
+
headers:
|
13680
|
+
X-Frame-Options:
|
13681
|
+
- SAMEORIGIN
|
13682
|
+
X-Xss-Protection:
|
13683
|
+
- 1; mode=block
|
13684
|
+
X-Content-Type-Options:
|
13685
|
+
- nosniff
|
13686
|
+
X-Ua-Compatible:
|
13687
|
+
- chrome=1
|
13688
|
+
Content-Type:
|
13689
|
+
- application/json; charset=utf-8
|
13690
|
+
Etag:
|
13691
|
+
- '"2e5e928c7a437b854b43c80254d3f652"'
|
13692
|
+
Cache-Control:
|
13693
|
+
- max-age=0, private, must-revalidate
|
13694
|
+
X-Request-Id:
|
13695
|
+
- 7a9640ca-b7c8-4348-8f75-903af6bdd44b
|
13696
|
+
X-Runtime:
|
13697
|
+
- '0.015695'
|
13698
|
+
Server:
|
13699
|
+
- WEBrick/1.3.1 (Ruby/2.1.2/2014-05-08)
|
13700
|
+
Date:
|
13701
|
+
- Sun, 21 Sep 2014 20:23:34 GMT
|
13702
|
+
Content-Length:
|
13703
|
+
- '1047'
|
13704
|
+
Connection:
|
13705
|
+
- Keep-Alive
|
13706
|
+
body:
|
13707
|
+
encoding: UTF-8
|
13708
|
+
string: |-
|
13709
|
+
{
|
13710
|
+
"id": 64,
|
13711
|
+
"service_user_id": "b6debe23f5f68d8d5ae0453d1e405a57608adef3b5d515f1e3dec1b916345667",
|
13712
|
+
"_links": {
|
13713
|
+
"self": {
|
13714
|
+
"href": "http://localhost:3000/api/surveys/64"
|
13715
|
+
},
|
13716
|
+
"survey_questions": {
|
13717
|
+
"post": {
|
13718
|
+
"href": "/api/surveys/64/survey_questions"
|
13719
|
+
},
|
13720
|
+
"put": {
|
13721
|
+
"href": "/api/surveys/64/survey_questions"
|
13722
|
+
}
|
13723
|
+
}
|
13724
|
+
},
|
13725
|
+
"completed": false,
|
13726
|
+
"survey_questions": [
|
13727
|
+
{
|
13728
|
+
"id": 223,
|
13729
|
+
"text": "In the past 24 hours, have you engaged in sexual activity with another person?",
|
13730
|
+
"type": "boolean",
|
13731
|
+
"responses": [
|
13732
|
+
"t",
|
13733
|
+
"f"
|
13734
|
+
],
|
13735
|
+
"answer": null,
|
13736
|
+
"freeform": false,
|
13737
|
+
"_links": {
|
13738
|
+
"self": {
|
13739
|
+
"href": "/api/surveys/64/survey_questions/223"
|
13740
|
+
},
|
13741
|
+
"post": {
|
13742
|
+
"href": "http://localhost:3000/api/surveys/64/survey_questions"
|
13743
|
+
},
|
13744
|
+
"put": {
|
13745
|
+
"href": "/api/surveys/64/survey_questions/223"
|
13746
|
+
},
|
13747
|
+
"survey": {
|
13748
|
+
"href": "/api/surveys/64"
|
13749
|
+
}
|
13750
|
+
}
|
13751
|
+
}
|
13752
|
+
]
|
13753
|
+
}
|
13754
|
+
http_version:
|
13755
|
+
recorded_at: Sun, 21 Sep 2014 20:23:34 GMT
|
13756
|
+
- request:
|
13757
|
+
method: put
|
13758
|
+
uri: http://localhost:3000//api/surveys/64/survey_questions/223/
|
13759
|
+
body:
|
13760
|
+
encoding: UTF-8
|
13761
|
+
string: '{"id":223,"survey_question":{"answer":"true"}}'
|
13762
|
+
headers:
|
13763
|
+
User-Agent:
|
13764
|
+
- Faraday v0.9.0
|
13765
|
+
Content-Type:
|
13766
|
+
- application/json
|
13767
|
+
Api-Token:
|
13768
|
+
- testing
|
13769
|
+
Accept-Encoding:
|
13770
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
13771
|
+
Accept:
|
13772
|
+
- "*/*"
|
13773
|
+
response:
|
13774
|
+
status:
|
13775
|
+
code: 204
|
13776
|
+
message: 'No Content '
|
13777
|
+
headers:
|
13778
|
+
X-Frame-Options:
|
13779
|
+
- SAMEORIGIN
|
13780
|
+
X-Xss-Protection:
|
13781
|
+
- 1; mode=block
|
13782
|
+
X-Content-Type-Options:
|
13783
|
+
- nosniff
|
13784
|
+
X-Ua-Compatible:
|
13785
|
+
- chrome=1
|
13786
|
+
Cache-Control:
|
13787
|
+
- no-cache
|
13788
|
+
X-Request-Id:
|
13789
|
+
- 98900511-9b71-4a9d-8b32-fe541c41fc76
|
13790
|
+
X-Runtime:
|
13791
|
+
- '0.010964'
|
13792
|
+
Server:
|
13793
|
+
- WEBrick/1.3.1 (Ruby/2.1.2/2014-05-08)
|
13794
|
+
Date:
|
13795
|
+
- Sun, 21 Sep 2014 20:23:34 GMT
|
13796
|
+
Connection:
|
13797
|
+
- Keep-Alive
|
13798
|
+
body:
|
13799
|
+
encoding: UTF-8
|
13800
|
+
string: ''
|
13801
|
+
http_version:
|
13802
|
+
recorded_at: Sun, 21 Sep 2014 20:23:34 GMT
|
13803
|
+
- request:
|
13804
|
+
method: get
|
13805
|
+
uri: http://localhost:3000/api/surveys/64
|
13806
|
+
body:
|
13807
|
+
encoding: US-ASCII
|
13808
|
+
string: ''
|
13809
|
+
headers:
|
13810
|
+
User-Agent:
|
13811
|
+
- Faraday v0.9.0
|
13812
|
+
Content-Type:
|
13813
|
+
- application/json
|
13814
|
+
Api-Token:
|
13815
|
+
- testing
|
13816
|
+
Accept-Encoding:
|
13817
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
13818
|
+
Accept:
|
13819
|
+
- "*/*"
|
13820
|
+
response:
|
13821
|
+
status:
|
13822
|
+
code: 200
|
13823
|
+
message: 'OK '
|
13824
|
+
headers:
|
13825
|
+
X-Frame-Options:
|
13826
|
+
- SAMEORIGIN
|
13827
|
+
X-Xss-Protection:
|
13828
|
+
- 1; mode=block
|
13829
|
+
X-Content-Type-Options:
|
13830
|
+
- nosniff
|
13831
|
+
X-Ua-Compatible:
|
13832
|
+
- chrome=1
|
13833
|
+
Content-Type:
|
13834
|
+
- application/json; charset=utf-8
|
13835
|
+
Etag:
|
13836
|
+
- '"fb036688ff83bb8b39da9178d5131cc1"'
|
13837
|
+
Cache-Control:
|
13838
|
+
- max-age=0, private, must-revalidate
|
13839
|
+
X-Request-Id:
|
13840
|
+
- 41fcf33a-487d-4f7d-b357-1695aab142ac
|
13841
|
+
X-Runtime:
|
13842
|
+
- '0.011197'
|
13843
|
+
Server:
|
13844
|
+
- WEBrick/1.3.1 (Ruby/2.1.2/2014-05-08)
|
13845
|
+
Date:
|
13846
|
+
- Sun, 21 Sep 2014 20:23:34 GMT
|
13847
|
+
Content-Length:
|
13848
|
+
- '1049'
|
13849
|
+
Connection:
|
13850
|
+
- Keep-Alive
|
13851
|
+
body:
|
13852
|
+
encoding: UTF-8
|
13853
|
+
string: |-
|
13854
|
+
{
|
13855
|
+
"id": 64,
|
13856
|
+
"service_user_id": "b6debe23f5f68d8d5ae0453d1e405a57608adef3b5d515f1e3dec1b916345667",
|
13857
|
+
"_links": {
|
13858
|
+
"self": {
|
13859
|
+
"href": "http://localhost:3000/api/surveys/64"
|
13860
|
+
},
|
13861
|
+
"survey_questions": {
|
13862
|
+
"post": {
|
13863
|
+
"href": "/api/surveys/64/survey_questions"
|
13864
|
+
},
|
13865
|
+
"put": {
|
13866
|
+
"href": "/api/surveys/64/survey_questions"
|
13867
|
+
}
|
13868
|
+
}
|
13869
|
+
},
|
13870
|
+
"completed": false,
|
13871
|
+
"survey_questions": [
|
13872
|
+
{
|
13873
|
+
"id": 223,
|
13874
|
+
"text": "In the past 24 hours, have you engaged in sexual activity with another person?",
|
13875
|
+
"type": "boolean",
|
13876
|
+
"responses": [
|
13877
|
+
"t",
|
13878
|
+
"f"
|
13879
|
+
],
|
13880
|
+
"answer": "true",
|
13881
|
+
"freeform": false,
|
13882
|
+
"_links": {
|
13883
|
+
"self": {
|
13884
|
+
"href": "/api/surveys/64/survey_questions/223"
|
13885
|
+
},
|
13886
|
+
"post": {
|
13887
|
+
"href": "http://localhost:3000/api/surveys/64/survey_questions"
|
13888
|
+
},
|
13889
|
+
"put": {
|
13890
|
+
"href": "/api/surveys/64/survey_questions/223"
|
13891
|
+
},
|
13892
|
+
"survey": {
|
13893
|
+
"href": "/api/surveys/64"
|
13894
|
+
}
|
13895
|
+
}
|
13896
|
+
}
|
13897
|
+
]
|
13898
|
+
}
|
13899
|
+
http_version:
|
13900
|
+
recorded_at: Sun, 21 Sep 2014 20:23:34 GMT
|
13901
|
+
- request:
|
13902
|
+
method: get
|
13903
|
+
uri: http://localhost:3000/
|
13904
|
+
body:
|
13905
|
+
encoding: US-ASCII
|
13906
|
+
string: ''
|
13907
|
+
headers:
|
13908
|
+
User-Agent:
|
13909
|
+
- Faraday v0.9.0
|
13910
|
+
Content-Type:
|
13911
|
+
- application/json
|
13912
|
+
Api-Token:
|
13913
|
+
- testing
|
13914
|
+
Accept-Encoding:
|
13915
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
13916
|
+
Accept:
|
13917
|
+
- "*/*"
|
13918
|
+
response:
|
13919
|
+
status:
|
13920
|
+
code: 200
|
13921
|
+
message: 'OK '
|
13922
|
+
headers:
|
13923
|
+
X-Frame-Options:
|
13924
|
+
- SAMEORIGIN
|
13925
|
+
X-Xss-Protection:
|
13926
|
+
- 1; mode=block
|
13927
|
+
X-Content-Type-Options:
|
13928
|
+
- nosniff
|
13929
|
+
X-Ua-Compatible:
|
13930
|
+
- chrome=1
|
13931
|
+
Content-Type:
|
13932
|
+
- application/json; charset=utf-8
|
13933
|
+
Etag:
|
13934
|
+
- '"c4942090acbc96722cba50e4cecfde73"'
|
13935
|
+
Cache-Control:
|
13936
|
+
- max-age=0, private, must-revalidate
|
13937
|
+
X-Request-Id:
|
13938
|
+
- c110055c-8dd9-4723-9527-4dfbc264f984
|
13939
|
+
X-Runtime:
|
13940
|
+
- '0.004458'
|
13941
|
+
Server:
|
13942
|
+
- WEBrick/1.3.1 (Ruby/2.1.2/2014-05-08)
|
13943
|
+
Date:
|
13944
|
+
- Sun, 21 Sep 2014 20:27:14 GMT
|
13945
|
+
Content-Length:
|
13946
|
+
- '236'
|
13947
|
+
Connection:
|
13948
|
+
- Keep-Alive
|
13949
|
+
body:
|
13950
|
+
encoding: UTF-8
|
13951
|
+
string: |-
|
13952
|
+
{
|
13953
|
+
"_links": {
|
13954
|
+
"self": {
|
13955
|
+
"href": "http://localhost:3000/"
|
13956
|
+
},
|
13957
|
+
"surveys": {
|
13958
|
+
"href": "api/surveys"
|
13959
|
+
},
|
13960
|
+
"users": {
|
13961
|
+
"href": "api/users"
|
13962
|
+
},
|
13963
|
+
"questions": {
|
13964
|
+
"href": "api/questions"
|
13965
|
+
}
|
13966
|
+
}
|
13967
|
+
}
|
13968
|
+
http_version:
|
13969
|
+
recorded_at: Sun, 21 Sep 2014 20:27:14 GMT
|
13970
|
+
- request:
|
13971
|
+
method: post
|
13972
|
+
uri: http://localhost:3000//api/surveys/76/survey_questions/
|
13973
|
+
body:
|
13974
|
+
encoding: UTF-8
|
13975
|
+
string: '{"survey_question":{"question_id":8}}'
|
13976
|
+
headers:
|
13977
|
+
User-Agent:
|
13978
|
+
- Faraday v0.9.0
|
13979
|
+
Content-Type:
|
13980
|
+
- application/json
|
13981
|
+
Api-Token:
|
13982
|
+
- testing
|
13983
|
+
Accept-Encoding:
|
13984
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
13985
|
+
Accept:
|
13986
|
+
- "*/*"
|
13987
|
+
response:
|
13988
|
+
status:
|
13989
|
+
code: 201
|
13990
|
+
message: 'Created '
|
13991
|
+
headers:
|
13992
|
+
X-Frame-Options:
|
13993
|
+
- SAMEORIGIN
|
13994
|
+
X-Xss-Protection:
|
13995
|
+
- 1; mode=block
|
13996
|
+
X-Content-Type-Options:
|
13997
|
+
- nosniff
|
13998
|
+
X-Ua-Compatible:
|
13999
|
+
- chrome=1
|
14000
|
+
Content-Type:
|
14001
|
+
- application/json; charset=utf-8
|
14002
|
+
Etag:
|
14003
|
+
- '"be06bbd14362a758c5d888a5145bb7fd"'
|
14004
|
+
Cache-Control:
|
14005
|
+
- max-age=0, private, must-revalidate
|
14006
|
+
X-Request-Id:
|
14007
|
+
- 2c60d875-9a31-4840-9d67-d1e91ccb8440
|
14008
|
+
X-Runtime:
|
14009
|
+
- '0.010289'
|
14010
|
+
Server:
|
14011
|
+
- WEBrick/1.3.1 (Ruby/2.1.2/2014-05-08)
|
14012
|
+
Date:
|
14013
|
+
- Sun, 21 Sep 2014 20:27:14 GMT
|
14014
|
+
Content-Length:
|
14015
|
+
- '183'
|
14016
|
+
Connection:
|
14017
|
+
- Keep-Alive
|
14018
|
+
body:
|
14019
|
+
encoding: UTF-8
|
14020
|
+
string: |-
|
14021
|
+
{
|
14022
|
+
"id": 240,
|
14023
|
+
"survey_id": 76,
|
14024
|
+
"question_id": 8,
|
14025
|
+
"order_index": null,
|
14026
|
+
"answer": null,
|
14027
|
+
"created_at": "2014-09-21T20:27:14.711Z",
|
14028
|
+
"updated_at": "2014-09-21T20:27:14.711Z"
|
14029
|
+
}
|
14030
|
+
http_version:
|
14031
|
+
recorded_at: Sun, 21 Sep 2014 20:27:14 GMT
|
14032
|
+
- request:
|
14033
|
+
method: get
|
14034
|
+
uri: http://localhost:3000/api/surveys/76
|
14035
|
+
body:
|
14036
|
+
encoding: US-ASCII
|
14037
|
+
string: ''
|
14038
|
+
headers:
|
14039
|
+
User-Agent:
|
14040
|
+
- Faraday v0.9.0
|
14041
|
+
Content-Type:
|
14042
|
+
- application/json
|
14043
|
+
Api-Token:
|
14044
|
+
- testing
|
14045
|
+
Accept-Encoding:
|
14046
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
14047
|
+
Accept:
|
14048
|
+
- "*/*"
|
14049
|
+
response:
|
14050
|
+
status:
|
14051
|
+
code: 200
|
14052
|
+
message: 'OK '
|
14053
|
+
headers:
|
14054
|
+
X-Frame-Options:
|
14055
|
+
- SAMEORIGIN
|
14056
|
+
X-Xss-Protection:
|
14057
|
+
- 1; mode=block
|
14058
|
+
X-Content-Type-Options:
|
14059
|
+
- nosniff
|
14060
|
+
X-Ua-Compatible:
|
14061
|
+
- chrome=1
|
14062
|
+
Content-Type:
|
14063
|
+
- application/json; charset=utf-8
|
14064
|
+
Etag:
|
14065
|
+
- '"7da33e0060ce396b8199d493f353cf09"'
|
14066
|
+
Cache-Control:
|
14067
|
+
- max-age=0, private, must-revalidate
|
14068
|
+
X-Request-Id:
|
14069
|
+
- 0b4b82a7-12fe-4946-9461-e58a2808ce02
|
14070
|
+
X-Runtime:
|
14071
|
+
- '0.012812'
|
14072
|
+
Server:
|
14073
|
+
- WEBrick/1.3.1 (Ruby/2.1.2/2014-05-08)
|
14074
|
+
Date:
|
14075
|
+
- Sun, 21 Sep 2014 20:27:14 GMT
|
14076
|
+
Content-Length:
|
14077
|
+
- '1047'
|
14078
|
+
Connection:
|
14079
|
+
- Keep-Alive
|
14080
|
+
body:
|
14081
|
+
encoding: UTF-8
|
14082
|
+
string: |-
|
14083
|
+
{
|
14084
|
+
"id": 76,
|
14085
|
+
"service_user_id": "3ea5e9e138ada22d917358e13914369d32e9ae4e3e8c03b8298e0f677ffb1c0a",
|
14086
|
+
"_links": {
|
14087
|
+
"self": {
|
14088
|
+
"href": "http://localhost:3000/api/surveys/76"
|
14089
|
+
},
|
14090
|
+
"survey_questions": {
|
14091
|
+
"post": {
|
14092
|
+
"href": "/api/surveys/76/survey_questions"
|
14093
|
+
},
|
14094
|
+
"put": {
|
14095
|
+
"href": "/api/surveys/76/survey_questions"
|
14096
|
+
}
|
14097
|
+
}
|
14098
|
+
},
|
14099
|
+
"completed": false,
|
14100
|
+
"survey_questions": [
|
14101
|
+
{
|
14102
|
+
"id": 240,
|
14103
|
+
"text": "In the past 24 hours, have you engaged in sexual activity with another person?",
|
14104
|
+
"type": "boolean",
|
14105
|
+
"responses": [
|
14106
|
+
"t",
|
14107
|
+
"f"
|
14108
|
+
],
|
14109
|
+
"answer": null,
|
14110
|
+
"freeform": false,
|
14111
|
+
"_links": {
|
14112
|
+
"self": {
|
14113
|
+
"href": "/api/surveys/76/survey_questions/240"
|
14114
|
+
},
|
14115
|
+
"post": {
|
14116
|
+
"href": "http://localhost:3000/api/surveys/76/survey_questions"
|
14117
|
+
},
|
14118
|
+
"put": {
|
14119
|
+
"href": "/api/surveys/76/survey_questions/240"
|
14120
|
+
},
|
14121
|
+
"survey": {
|
14122
|
+
"href": "/api/surveys/76"
|
14123
|
+
}
|
14124
|
+
}
|
14125
|
+
}
|
14126
|
+
]
|
14127
|
+
}
|
14128
|
+
http_version:
|
14129
|
+
recorded_at: Sun, 21 Sep 2014 20:27:14 GMT
|
14130
|
+
- request:
|
14131
|
+
method: put
|
14132
|
+
uri: http://localhost:3000//api/surveys/76/survey_questions/240/
|
14133
|
+
body:
|
14134
|
+
encoding: UTF-8
|
14135
|
+
string: '{"id":240,"survey_question":{"answer":"true"}}'
|
14136
|
+
headers:
|
14137
|
+
User-Agent:
|
14138
|
+
- Faraday v0.9.0
|
14139
|
+
Content-Type:
|
14140
|
+
- application/json
|
14141
|
+
Api-Token:
|
14142
|
+
- testing
|
14143
|
+
Accept-Encoding:
|
14144
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
14145
|
+
Accept:
|
14146
|
+
- "*/*"
|
14147
|
+
response:
|
14148
|
+
status:
|
14149
|
+
code: 204
|
14150
|
+
message: 'No Content '
|
14151
|
+
headers:
|
14152
|
+
X-Frame-Options:
|
14153
|
+
- SAMEORIGIN
|
14154
|
+
X-Xss-Protection:
|
14155
|
+
- 1; mode=block
|
14156
|
+
X-Content-Type-Options:
|
14157
|
+
- nosniff
|
14158
|
+
X-Ua-Compatible:
|
14159
|
+
- chrome=1
|
14160
|
+
Cache-Control:
|
14161
|
+
- no-cache
|
14162
|
+
X-Request-Id:
|
14163
|
+
- 01ea6186-c299-4f6d-a924-4d845c9383c5
|
14164
|
+
X-Runtime:
|
14165
|
+
- '0.009541'
|
14166
|
+
Server:
|
14167
|
+
- WEBrick/1.3.1 (Ruby/2.1.2/2014-05-08)
|
14168
|
+
Date:
|
14169
|
+
- Sun, 21 Sep 2014 20:27:14 GMT
|
14170
|
+
Connection:
|
14171
|
+
- Keep-Alive
|
14172
|
+
body:
|
14173
|
+
encoding: UTF-8
|
14174
|
+
string: ''
|
14175
|
+
http_version:
|
14176
|
+
recorded_at: Sun, 21 Sep 2014 20:27:14 GMT
|
14177
|
+
- request:
|
14178
|
+
method: get
|
14179
|
+
uri: http://localhost:3000/api/surveys/76
|
14180
|
+
body:
|
14181
|
+
encoding: US-ASCII
|
14182
|
+
string: ''
|
14183
|
+
headers:
|
14184
|
+
User-Agent:
|
14185
|
+
- Faraday v0.9.0
|
14186
|
+
Content-Type:
|
14187
|
+
- application/json
|
14188
|
+
Api-Token:
|
14189
|
+
- testing
|
14190
|
+
Accept-Encoding:
|
14191
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
14192
|
+
Accept:
|
14193
|
+
- "*/*"
|
14194
|
+
response:
|
14195
|
+
status:
|
14196
|
+
code: 200
|
14197
|
+
message: 'OK '
|
14198
|
+
headers:
|
14199
|
+
X-Frame-Options:
|
14200
|
+
- SAMEORIGIN
|
14201
|
+
X-Xss-Protection:
|
14202
|
+
- 1; mode=block
|
14203
|
+
X-Content-Type-Options:
|
14204
|
+
- nosniff
|
14205
|
+
X-Ua-Compatible:
|
14206
|
+
- chrome=1
|
14207
|
+
Content-Type:
|
14208
|
+
- application/json; charset=utf-8
|
14209
|
+
Etag:
|
14210
|
+
- '"450ca0400d87d4e0c1e49d7b5457b650"'
|
14211
|
+
Cache-Control:
|
14212
|
+
- max-age=0, private, must-revalidate
|
14213
|
+
X-Request-Id:
|
14214
|
+
- 37bfed10-5b31-455a-8cc1-09ed82b48ece
|
14215
|
+
X-Runtime:
|
14216
|
+
- '0.014999'
|
14217
|
+
Server:
|
14218
|
+
- WEBrick/1.3.1 (Ruby/2.1.2/2014-05-08)
|
14219
|
+
Date:
|
14220
|
+
- Sun, 21 Sep 2014 20:27:14 GMT
|
14221
|
+
Content-Length:
|
14222
|
+
- '1049'
|
14223
|
+
Connection:
|
14224
|
+
- Keep-Alive
|
14225
|
+
body:
|
14226
|
+
encoding: UTF-8
|
14227
|
+
string: |-
|
14228
|
+
{
|
14229
|
+
"id": 76,
|
14230
|
+
"service_user_id": "3ea5e9e138ada22d917358e13914369d32e9ae4e3e8c03b8298e0f677ffb1c0a",
|
14231
|
+
"_links": {
|
14232
|
+
"self": {
|
14233
|
+
"href": "http://localhost:3000/api/surveys/76"
|
14234
|
+
},
|
14235
|
+
"survey_questions": {
|
14236
|
+
"post": {
|
14237
|
+
"href": "/api/surveys/76/survey_questions"
|
14238
|
+
},
|
14239
|
+
"put": {
|
14240
|
+
"href": "/api/surveys/76/survey_questions"
|
14241
|
+
}
|
14242
|
+
}
|
14243
|
+
},
|
14244
|
+
"completed": false,
|
14245
|
+
"survey_questions": [
|
14246
|
+
{
|
14247
|
+
"id": 240,
|
14248
|
+
"text": "In the past 24 hours, have you engaged in sexual activity with another person?",
|
14249
|
+
"type": "boolean",
|
14250
|
+
"responses": [
|
14251
|
+
"t",
|
14252
|
+
"f"
|
14253
|
+
],
|
14254
|
+
"answer": "true",
|
14255
|
+
"freeform": false,
|
14256
|
+
"_links": {
|
14257
|
+
"self": {
|
14258
|
+
"href": "/api/surveys/76/survey_questions/240"
|
14259
|
+
},
|
14260
|
+
"post": {
|
14261
|
+
"href": "http://localhost:3000/api/surveys/76/survey_questions"
|
14262
|
+
},
|
14263
|
+
"put": {
|
14264
|
+
"href": "/api/surveys/76/survey_questions/240"
|
14265
|
+
},
|
14266
|
+
"survey": {
|
14267
|
+
"href": "/api/surveys/76"
|
14268
|
+
}
|
14269
|
+
}
|
14270
|
+
}
|
14271
|
+
]
|
14272
|
+
}
|
14273
|
+
http_version:
|
14274
|
+
recorded_at: Sun, 21 Sep 2014 20:27:14 GMT
|
14275
|
+
- request:
|
14276
|
+
method: post
|
14277
|
+
uri: http://localhost:3000/api/surveys/?random=true
|
14278
|
+
body:
|
14279
|
+
encoding: UTF-8
|
14280
|
+
string: '{"survey":{"service_user_id":"e81f9df2f19ac3d0e4634061bff685bbb732abb269049eafdd4fa9ae7c836c6b"}}'
|
14281
|
+
headers:
|
14282
|
+
User-Agent:
|
14283
|
+
- Faraday v0.9.0
|
14284
|
+
Content-Type:
|
14285
|
+
- application/json
|
14286
|
+
Api-Token:
|
14287
|
+
- testing
|
14288
|
+
Accept-Encoding:
|
14289
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
14290
|
+
Accept:
|
14291
|
+
- "*/*"
|
14292
|
+
response:
|
14293
|
+
status:
|
14294
|
+
code: 201
|
14295
|
+
message: 'Created '
|
14296
|
+
headers:
|
14297
|
+
X-Frame-Options:
|
14298
|
+
- SAMEORIGIN
|
14299
|
+
X-Xss-Protection:
|
14300
|
+
- 1; mode=block
|
14301
|
+
X-Content-Type-Options:
|
14302
|
+
- nosniff
|
14303
|
+
X-Ua-Compatible:
|
14304
|
+
- chrome=1
|
14305
|
+
Content-Type:
|
14306
|
+
- application/json; charset=utf-8
|
14307
|
+
Etag:
|
14308
|
+
- '"2be5aee9e444c308f24554ed91bc17b1"'
|
14309
|
+
Cache-Control:
|
14310
|
+
- max-age=0, private, must-revalidate
|
14311
|
+
X-Request-Id:
|
14312
|
+
- 36de5d27-fc34-467a-81c3-95879ea68efd
|
14313
|
+
X-Runtime:
|
14314
|
+
- '0.036238'
|
14315
|
+
Server:
|
14316
|
+
- WEBrick/1.3.1 (Ruby/2.1.2/2014-05-08)
|
14317
|
+
Date:
|
14318
|
+
- Sun, 21 Sep 2014 20:28:01 GMT
|
14319
|
+
Content-Length:
|
14320
|
+
- '4577'
|
14321
|
+
Connection:
|
14322
|
+
- Keep-Alive
|
14323
|
+
body:
|
14324
|
+
encoding: UTF-8
|
14325
|
+
string: |-
|
14326
|
+
{
|
14327
|
+
"id": 84,
|
14328
|
+
"service_user_id": "e81f9df2f19ac3d0e4634061bff685bbb732abb269049eafdd4fa9ae7c836c6b",
|
14329
|
+
"_links": {
|
14330
|
+
"self": {
|
14331
|
+
"href": "http://localhost:3000/api/surveys/84"
|
14332
|
+
},
|
14333
|
+
"survey_questions": {
|
14334
|
+
"post": {
|
14335
|
+
"href": "/api/surveys/84/survey_questions"
|
14336
|
+
},
|
14337
|
+
"put": {
|
14338
|
+
"href": "/api/surveys/84/survey_questions"
|
14339
|
+
}
|
14340
|
+
}
|
14341
|
+
},
|
14342
|
+
"completed": false,
|
14343
|
+
"survey_questions": [
|
14344
|
+
{
|
14345
|
+
"id": 267,
|
14346
|
+
"text": "How do you feel right now?",
|
14347
|
+
"type": "range",
|
14348
|
+
"responses": [
|
14349
|
+
"0",
|
14350
|
+
"10"
|
14351
|
+
],
|
14352
|
+
"answer": null,
|
14353
|
+
"freeform": false,
|
14354
|
+
"_links": {
|
14355
|
+
"self": {
|
14356
|
+
"href": "/api/surveys/84/survey_questions/267"
|
14357
|
+
},
|
14358
|
+
"post": {
|
14359
|
+
"href": "http://localhost:3000/api/surveys/84/survey_questions"
|
14360
|
+
},
|
14361
|
+
"put": {
|
14362
|
+
"href": "/api/surveys/84/survey_questions/267"
|
14363
|
+
},
|
14364
|
+
"survey": {
|
14365
|
+
"href": "/api/surveys/84"
|
14366
|
+
}
|
14367
|
+
}
|
14368
|
+
},
|
14369
|
+
{
|
14370
|
+
"id": 268,
|
14371
|
+
"text": "Where are you?",
|
14372
|
+
"type": "multiple",
|
14373
|
+
"responses": [
|
14374
|
+
"At Home",
|
14375
|
+
"At Work",
|
14376
|
+
"In a car",
|
14377
|
+
"Other"
|
14378
|
+
],
|
14379
|
+
"answer": null,
|
14380
|
+
"freeform": true,
|
14381
|
+
"_links": {
|
14382
|
+
"self": {
|
14383
|
+
"href": "/api/surveys/84/survey_questions/268"
|
14384
|
+
},
|
14385
|
+
"post": {
|
14386
|
+
"href": "http://localhost:3000/api/surveys/84/survey_questions"
|
14387
|
+
},
|
14388
|
+
"put": {
|
14389
|
+
"href": "/api/surveys/84/survey_questions/268"
|
14390
|
+
},
|
14391
|
+
"survey": {
|
14392
|
+
"href": "/api/surveys/84"
|
14393
|
+
}
|
14394
|
+
}
|
14395
|
+
},
|
14396
|
+
{
|
14397
|
+
"id": 269,
|
14398
|
+
"text": "When did you last check Facebook?",
|
14399
|
+
"type": "multiple",
|
14400
|
+
"responses": [
|
14401
|
+
"Right now",
|
14402
|
+
"In the last 5 minutes",
|
14403
|
+
"In the last 15 minutes",
|
14404
|
+
"In the last 30 minutes",
|
14405
|
+
"In the last hour",
|
14406
|
+
"1-2 hours ago",
|
14407
|
+
"3-5 hours ago",
|
14408
|
+
"6-12 hours ago",
|
14409
|
+
"24 hours ago",
|
14410
|
+
"Don't use facebook"
|
13206
14411
|
],
|
13207
14412
|
"answer": null,
|
13208
|
-
"freeform":
|
14413
|
+
"freeform": false,
|
13209
14414
|
"_links": {
|
13210
14415
|
"self": {
|
13211
|
-
"href": "/api/surveys/
|
14416
|
+
"href": "/api/surveys/84/survey_questions/269"
|
13212
14417
|
},
|
13213
14418
|
"post": {
|
13214
|
-
"href": "http://localhost:3000/api/surveys/
|
14419
|
+
"href": "http://localhost:3000/api/surveys/84/survey_questions"
|
13215
14420
|
},
|
13216
14421
|
"put": {
|
13217
|
-
"href": "/api/surveys/
|
14422
|
+
"href": "/api/surveys/84/survey_questions/269"
|
13218
14423
|
},
|
13219
14424
|
"survey": {
|
13220
|
-
"href": "/api/surveys/
|
14425
|
+
"href": "/api/surveys/84"
|
13221
14426
|
}
|
13222
14427
|
}
|
13223
14428
|
},
|
13224
14429
|
{
|
13225
|
-
"id":
|
13226
|
-
"text": "
|
14430
|
+
"id": 270,
|
14431
|
+
"text": "Who are you talking or interacting with?",
|
13227
14432
|
"type": "multiple",
|
13228
14433
|
"responses": [
|
13229
|
-
"
|
13230
|
-
"
|
13231
|
-
"
|
13232
|
-
"
|
14434
|
+
"Spouse/partner/significant other",
|
14435
|
+
"Children",
|
14436
|
+
"Parents",
|
14437
|
+
"Other relatives",
|
14438
|
+
"Friends",
|
14439
|
+
"Acquaintances",
|
14440
|
+
"Strangers",
|
14441
|
+
"Co-workers",
|
14442
|
+
"Customers/students",
|
14443
|
+
"Boss",
|
14444
|
+
"No one"
|
13233
14445
|
],
|
13234
14446
|
"answer": null,
|
13235
|
-
"freeform":
|
14447
|
+
"freeform": true,
|
13236
14448
|
"_links": {
|
13237
14449
|
"self": {
|
13238
|
-
"href": "/api/surveys/
|
14450
|
+
"href": "/api/surveys/84/survey_questions/270"
|
13239
14451
|
},
|
13240
14452
|
"post": {
|
13241
|
-
"href": "http://localhost:3000/api/surveys/
|
14453
|
+
"href": "http://localhost:3000/api/surveys/84/survey_questions"
|
13242
14454
|
},
|
13243
14455
|
"put": {
|
13244
|
-
"href": "/api/surveys/
|
14456
|
+
"href": "/api/surveys/84/survey_questions/270"
|
13245
14457
|
},
|
13246
14458
|
"survey": {
|
13247
|
-
"href": "/api/surveys/
|
14459
|
+
"href": "/api/surveys/84"
|
13248
14460
|
}
|
13249
14461
|
}
|
13250
14462
|
},
|
13251
14463
|
{
|
13252
|
-
"id":
|
13253
|
-
"text": "
|
14464
|
+
"id": 271,
|
14465
|
+
"text": "Are you judging or evaluating yourself right now (i.e. at the moment just before you were notified)?",
|
13254
14466
|
"type": "multiple",
|
13255
14467
|
"responses": [
|
13256
|
-
"
|
13257
|
-
"
|
13258
|
-
"
|
13259
|
-
"
|
13260
|
-
"In the last hour",
|
13261
|
-
"1-2 hours ago",
|
13262
|
-
"3-5 hours ago",
|
13263
|
-
"6-12 hours ago",
|
13264
|
-
"24 hours ago",
|
13265
|
-
"Don't use facebook"
|
14468
|
+
"f",
|
14469
|
+
"Yes - Negatively",
|
14470
|
+
"Yes - Neutrally",
|
14471
|
+
"Yes - Positively"
|
13266
14472
|
],
|
13267
14473
|
"answer": null,
|
13268
14474
|
"freeform": false,
|
13269
14475
|
"_links": {
|
13270
14476
|
"self": {
|
13271
|
-
"href": "/api/surveys/
|
14477
|
+
"href": "/api/surveys/84/survey_questions/271"
|
13272
14478
|
},
|
13273
14479
|
"post": {
|
13274
|
-
"href": "http://localhost:3000/api/surveys/
|
14480
|
+
"href": "http://localhost:3000/api/surveys/84/survey_questions"
|
13275
14481
|
},
|
13276
14482
|
"put": {
|
13277
|
-
"href": "/api/surveys/
|
14483
|
+
"href": "/api/surveys/84/survey_questions/271"
|
13278
14484
|
},
|
13279
14485
|
"survey": {
|
13280
|
-
"href": "/api/surveys/
|
14486
|
+
"href": "/api/surveys/84"
|
13281
14487
|
}
|
13282
14488
|
}
|
13283
14489
|
},
|
13284
14490
|
{
|
13285
|
-
"id":
|
13286
|
-
"text": "
|
13287
|
-
"type": "
|
14491
|
+
"id": 272,
|
14492
|
+
"text": "To what extent do you feel accepted by the person/people you are interacting with?",
|
14493
|
+
"type": "range",
|
13288
14494
|
"responses": [
|
13289
|
-
"
|
13290
|
-
"
|
14495
|
+
"0",
|
14496
|
+
"10"
|
13291
14497
|
],
|
13292
14498
|
"answer": null,
|
13293
14499
|
"freeform": false,
|
13294
14500
|
"_links": {
|
13295
14501
|
"self": {
|
13296
|
-
"href": "/api/surveys/
|
14502
|
+
"href": "/api/surveys/84/survey_questions/272"
|
13297
14503
|
},
|
13298
14504
|
"post": {
|
13299
|
-
"href": "http://localhost:3000/api/surveys/
|
14505
|
+
"href": "http://localhost:3000/api/surveys/84/survey_questions"
|
13300
14506
|
},
|
13301
14507
|
"put": {
|
13302
|
-
"href": "/api/surveys/
|
14508
|
+
"href": "/api/surveys/84/survey_questions/272"
|
13303
14509
|
},
|
13304
14510
|
"survey": {
|
13305
|
-
"href": "/api/surveys/
|
14511
|
+
"href": "/api/surveys/84"
|
13306
14512
|
}
|
13307
14513
|
}
|
13308
14514
|
}
|
13309
14515
|
]
|
13310
14516
|
}
|
13311
14517
|
http_version:
|
13312
|
-
recorded_at:
|
14518
|
+
recorded_at: Sun, 21 Sep 2014 20:28:01 GMT
|
13313
14519
|
- request:
|
13314
14520
|
method: put
|
13315
|
-
uri: http://localhost:3000//api/surveys/
|
14521
|
+
uri: http://localhost:3000//api/surveys/84/survey_questions/267/
|
13316
14522
|
body:
|
13317
14523
|
encoding: UTF-8
|
13318
|
-
string: '{"id":
|
14524
|
+
string: '{"id":267,"survey_question":{"answer":"foo"}}'
|
13319
14525
|
headers:
|
13320
14526
|
User-Agent:
|
13321
14527
|
- Faraday v0.9.0
|
@@ -13343,23 +14549,23 @@ http_interactions:
|
|
13343
14549
|
Cache-Control:
|
13344
14550
|
- no-cache
|
13345
14551
|
X-Request-Id:
|
13346
|
-
-
|
14552
|
+
- 016d53ab-56d8-4330-9cfe-1c30712a4fed
|
13347
14553
|
X-Runtime:
|
13348
|
-
- '0.
|
14554
|
+
- '0.007770'
|
13349
14555
|
Server:
|
13350
14556
|
- WEBrick/1.3.1 (Ruby/2.1.2/2014-05-08)
|
13351
14557
|
Date:
|
13352
|
-
-
|
14558
|
+
- Sun, 21 Sep 2014 20:28:01 GMT
|
13353
14559
|
Connection:
|
13354
14560
|
- Keep-Alive
|
13355
14561
|
body:
|
13356
14562
|
encoding: UTF-8
|
13357
14563
|
string: ''
|
13358
14564
|
http_version:
|
13359
|
-
recorded_at:
|
14565
|
+
recorded_at: Sun, 21 Sep 2014 20:28:01 GMT
|
13360
14566
|
- request:
|
13361
14567
|
method: get
|
13362
|
-
uri: http://localhost:3000/api/surveys/
|
14568
|
+
uri: http://localhost:3000/api/surveys/84
|
13363
14569
|
body:
|
13364
14570
|
encoding: US-ASCII
|
13365
14571
|
string: ''
|
@@ -13390,44 +14596,44 @@ http_interactions:
|
|
13390
14596
|
Content-Type:
|
13391
14597
|
- application/json; charset=utf-8
|
13392
14598
|
Etag:
|
13393
|
-
- '"
|
14599
|
+
- '"c7602b46dc969d9e6c097cd839520c1f"'
|
13394
14600
|
Cache-Control:
|
13395
14601
|
- max-age=0, private, must-revalidate
|
13396
14602
|
X-Request-Id:
|
13397
|
-
-
|
14603
|
+
- 4e0edeac-4b43-47e5-96c1-eb7e9f8410fd
|
13398
14604
|
X-Runtime:
|
13399
|
-
- '0.
|
14605
|
+
- '0.020379'
|
13400
14606
|
Server:
|
13401
14607
|
- WEBrick/1.3.1 (Ruby/2.1.2/2014-05-08)
|
13402
14608
|
Date:
|
13403
|
-
-
|
14609
|
+
- Sun, 21 Sep 2014 20:28:01 GMT
|
13404
14610
|
Content-Length:
|
13405
|
-
- '
|
14611
|
+
- '4578'
|
13406
14612
|
Connection:
|
13407
14613
|
- Keep-Alive
|
13408
14614
|
body:
|
13409
14615
|
encoding: UTF-8
|
13410
14616
|
string: |-
|
13411
14617
|
{
|
13412
|
-
"id":
|
13413
|
-
"
|
14618
|
+
"id": 84,
|
14619
|
+
"service_user_id": "e81f9df2f19ac3d0e4634061bff685bbb732abb269049eafdd4fa9ae7c836c6b",
|
13414
14620
|
"_links": {
|
13415
14621
|
"self": {
|
13416
|
-
"href": "http://localhost:3000/api/surveys/
|
14622
|
+
"href": "http://localhost:3000/api/surveys/84"
|
13417
14623
|
},
|
13418
14624
|
"survey_questions": {
|
13419
14625
|
"post": {
|
13420
|
-
"href": "/api/surveys/
|
14626
|
+
"href": "/api/surveys/84/survey_questions"
|
13421
14627
|
},
|
13422
14628
|
"put": {
|
13423
|
-
"href": "/api/surveys/
|
14629
|
+
"href": "/api/surveys/84/survey_questions"
|
13424
14630
|
}
|
13425
14631
|
}
|
13426
14632
|
},
|
13427
14633
|
"completed": false,
|
13428
14634
|
"survey_questions": [
|
13429
14635
|
{
|
13430
|
-
"id":
|
14636
|
+
"id": 268,
|
13431
14637
|
"text": "Where are you?",
|
13432
14638
|
"type": "multiple",
|
13433
14639
|
"responses": [
|
@@ -13440,106 +14646,140 @@ http_interactions:
|
|
13440
14646
|
"freeform": true,
|
13441
14647
|
"_links": {
|
13442
14648
|
"self": {
|
13443
|
-
"href": "/api/surveys/
|
14649
|
+
"href": "/api/surveys/84/survey_questions/268"
|
13444
14650
|
},
|
13445
14651
|
"post": {
|
13446
|
-
"href": "http://localhost:3000/api/surveys/
|
14652
|
+
"href": "http://localhost:3000/api/surveys/84/survey_questions"
|
13447
14653
|
},
|
13448
14654
|
"put": {
|
13449
|
-
"href": "/api/surveys/
|
14655
|
+
"href": "/api/surveys/84/survey_questions/268"
|
13450
14656
|
},
|
13451
14657
|
"survey": {
|
13452
|
-
"href": "/api/surveys/
|
14658
|
+
"href": "/api/surveys/84"
|
13453
14659
|
}
|
13454
14660
|
}
|
13455
14661
|
},
|
13456
14662
|
{
|
13457
|
-
"id":
|
13458
|
-
"text": "
|
14663
|
+
"id": 269,
|
14664
|
+
"text": "When did you last check Facebook?",
|
13459
14665
|
"type": "multiple",
|
13460
14666
|
"responses": [
|
13461
|
-
"
|
13462
|
-
"
|
13463
|
-
"
|
13464
|
-
"
|
14667
|
+
"Right now",
|
14668
|
+
"In the last 5 minutes",
|
14669
|
+
"In the last 15 minutes",
|
14670
|
+
"In the last 30 minutes",
|
14671
|
+
"In the last hour",
|
14672
|
+
"1-2 hours ago",
|
14673
|
+
"3-5 hours ago",
|
14674
|
+
"6-12 hours ago",
|
14675
|
+
"24 hours ago",
|
14676
|
+
"Don't use facebook"
|
13465
14677
|
],
|
13466
14678
|
"answer": null,
|
13467
14679
|
"freeform": false,
|
13468
14680
|
"_links": {
|
13469
14681
|
"self": {
|
13470
|
-
"href": "/api/surveys/
|
14682
|
+
"href": "/api/surveys/84/survey_questions/269"
|
13471
14683
|
},
|
13472
14684
|
"post": {
|
13473
|
-
"href": "http://localhost:3000/api/surveys/
|
14685
|
+
"href": "http://localhost:3000/api/surveys/84/survey_questions"
|
13474
14686
|
},
|
13475
14687
|
"put": {
|
13476
|
-
"href": "/api/surveys/
|
14688
|
+
"href": "/api/surveys/84/survey_questions/269"
|
13477
14689
|
},
|
13478
14690
|
"survey": {
|
13479
|
-
"href": "/api/surveys/
|
14691
|
+
"href": "/api/surveys/84"
|
13480
14692
|
}
|
13481
14693
|
}
|
13482
14694
|
},
|
13483
14695
|
{
|
13484
|
-
"id":
|
13485
|
-
"text": "
|
14696
|
+
"id": 270,
|
14697
|
+
"text": "Who are you talking or interacting with?",
|
13486
14698
|
"type": "multiple",
|
13487
14699
|
"responses": [
|
13488
|
-
"
|
13489
|
-
"
|
13490
|
-
"
|
13491
|
-
"
|
13492
|
-
"
|
13493
|
-
"
|
13494
|
-
"
|
13495
|
-
"
|
13496
|
-
"
|
13497
|
-
"
|
14700
|
+
"Spouse/partner/significant other",
|
14701
|
+
"Children",
|
14702
|
+
"Parents",
|
14703
|
+
"Other relatives",
|
14704
|
+
"Friends",
|
14705
|
+
"Acquaintances",
|
14706
|
+
"Strangers",
|
14707
|
+
"Co-workers",
|
14708
|
+
"Customers/students",
|
14709
|
+
"Boss",
|
14710
|
+
"No one"
|
14711
|
+
],
|
14712
|
+
"answer": null,
|
14713
|
+
"freeform": true,
|
14714
|
+
"_links": {
|
14715
|
+
"self": {
|
14716
|
+
"href": "/api/surveys/84/survey_questions/270"
|
14717
|
+
},
|
14718
|
+
"post": {
|
14719
|
+
"href": "http://localhost:3000/api/surveys/84/survey_questions"
|
14720
|
+
},
|
14721
|
+
"put": {
|
14722
|
+
"href": "/api/surveys/84/survey_questions/270"
|
14723
|
+
},
|
14724
|
+
"survey": {
|
14725
|
+
"href": "/api/surveys/84"
|
14726
|
+
}
|
14727
|
+
}
|
14728
|
+
},
|
14729
|
+
{
|
14730
|
+
"id": 271,
|
14731
|
+
"text": "Are you judging or evaluating yourself right now (i.e. at the moment just before you were notified)?",
|
14732
|
+
"type": "multiple",
|
14733
|
+
"responses": [
|
14734
|
+
"f",
|
14735
|
+
"Yes - Negatively",
|
14736
|
+
"Yes - Neutrally",
|
14737
|
+
"Yes - Positively"
|
13498
14738
|
],
|
13499
14739
|
"answer": null,
|
13500
14740
|
"freeform": false,
|
13501
14741
|
"_links": {
|
13502
14742
|
"self": {
|
13503
|
-
"href": "/api/surveys/
|
14743
|
+
"href": "/api/surveys/84/survey_questions/271"
|
13504
14744
|
},
|
13505
14745
|
"post": {
|
13506
|
-
"href": "http://localhost:3000/api/surveys/
|
14746
|
+
"href": "http://localhost:3000/api/surveys/84/survey_questions"
|
13507
14747
|
},
|
13508
14748
|
"put": {
|
13509
|
-
"href": "/api/surveys/
|
14749
|
+
"href": "/api/surveys/84/survey_questions/271"
|
13510
14750
|
},
|
13511
14751
|
"survey": {
|
13512
|
-
"href": "/api/surveys/
|
14752
|
+
"href": "/api/surveys/84"
|
13513
14753
|
}
|
13514
14754
|
}
|
13515
14755
|
},
|
13516
14756
|
{
|
13517
|
-
"id":
|
13518
|
-
"text": "
|
13519
|
-
"type": "
|
14757
|
+
"id": 272,
|
14758
|
+
"text": "To what extent do you feel accepted by the person/people you are interacting with?",
|
14759
|
+
"type": "range",
|
13520
14760
|
"responses": [
|
13521
|
-
"
|
13522
|
-
"
|
14761
|
+
"0",
|
14762
|
+
"10"
|
13523
14763
|
],
|
13524
14764
|
"answer": null,
|
13525
14765
|
"freeform": false,
|
13526
14766
|
"_links": {
|
13527
14767
|
"self": {
|
13528
|
-
"href": "/api/surveys/
|
14768
|
+
"href": "/api/surveys/84/survey_questions/272"
|
13529
14769
|
},
|
13530
14770
|
"post": {
|
13531
|
-
"href": "http://localhost:3000/api/surveys/
|
14771
|
+
"href": "http://localhost:3000/api/surveys/84/survey_questions"
|
13532
14772
|
},
|
13533
14773
|
"put": {
|
13534
|
-
"href": "/api/surveys/
|
14774
|
+
"href": "/api/surveys/84/survey_questions/272"
|
13535
14775
|
},
|
13536
14776
|
"survey": {
|
13537
|
-
"href": "/api/surveys/
|
14777
|
+
"href": "/api/surveys/84"
|
13538
14778
|
}
|
13539
14779
|
}
|
13540
14780
|
},
|
13541
14781
|
{
|
13542
|
-
"id":
|
14782
|
+
"id": 267,
|
13543
14783
|
"text": "How do you feel right now?",
|
13544
14784
|
"type": "range",
|
13545
14785
|
"responses": [
|
@@ -13550,23 +14790,23 @@ http_interactions:
|
|
13550
14790
|
"freeform": false,
|
13551
14791
|
"_links": {
|
13552
14792
|
"self": {
|
13553
|
-
"href": "/api/surveys/
|
14793
|
+
"href": "/api/surveys/84/survey_questions/267"
|
13554
14794
|
},
|
13555
14795
|
"post": {
|
13556
|
-
"href": "http://localhost:3000/api/surveys/
|
14796
|
+
"href": "http://localhost:3000/api/surveys/84/survey_questions"
|
13557
14797
|
},
|
13558
14798
|
"put": {
|
13559
|
-
"href": "/api/surveys/
|
14799
|
+
"href": "/api/surveys/84/survey_questions/267"
|
13560
14800
|
},
|
13561
14801
|
"survey": {
|
13562
|
-
"href": "/api/surveys/
|
14802
|
+
"href": "/api/surveys/84"
|
13563
14803
|
}
|
13564
14804
|
}
|
13565
14805
|
}
|
13566
14806
|
]
|
13567
14807
|
}
|
13568
14808
|
http_version:
|
13569
|
-
recorded_at:
|
14809
|
+
recorded_at: Sun, 21 Sep 2014 20:28:01 GMT
|
13570
14810
|
- request:
|
13571
14811
|
method: get
|
13572
14812
|
uri: http://localhost:3000/
|
@@ -13604,13 +14844,13 @@ http_interactions:
|
|
13604
14844
|
Cache-Control:
|
13605
14845
|
- max-age=0, private, must-revalidate
|
13606
14846
|
X-Request-Id:
|
13607
|
-
-
|
14847
|
+
- 3c131040-c159-41c8-b7af-f747396e21b5
|
13608
14848
|
X-Runtime:
|
13609
|
-
- '0.
|
14849
|
+
- '0.004958'
|
13610
14850
|
Server:
|
13611
14851
|
- WEBrick/1.3.1 (Ruby/2.1.2/2014-05-08)
|
13612
14852
|
Date:
|
13613
|
-
-
|
14853
|
+
- Sun, 21 Sep 2014 20:28:01 GMT
|
13614
14854
|
Content-Length:
|
13615
14855
|
- '236'
|
13616
14856
|
Connection:
|
@@ -13635,7 +14875,7 @@ http_interactions:
|
|
13635
14875
|
}
|
13636
14876
|
}
|
13637
14877
|
http_version:
|
13638
|
-
recorded_at:
|
14878
|
+
recorded_at: Sun, 21 Sep 2014 20:28:01 GMT
|
13639
14879
|
- request:
|
13640
14880
|
method: get
|
13641
14881
|
uri: http://localhost:3000/api/questions/
|
@@ -13673,13 +14913,13 @@ http_interactions:
|
|
13673
14913
|
Cache-Control:
|
13674
14914
|
- max-age=0, private, must-revalidate
|
13675
14915
|
X-Request-Id:
|
13676
|
-
-
|
14916
|
+
- 810fdf94-a142-427e-b880-c68422d54afd
|
13677
14917
|
X-Runtime:
|
13678
|
-
- '0.
|
14918
|
+
- '0.007515'
|
13679
14919
|
Server:
|
13680
14920
|
- WEBrick/1.3.1 (Ruby/2.1.2/2014-05-08)
|
13681
14921
|
Date:
|
13682
|
-
-
|
14922
|
+
- Sun, 21 Sep 2014 20:28:01 GMT
|
13683
14923
|
Content-Length:
|
13684
14924
|
- '7773'
|
13685
14925
|
Connection:
|
@@ -14054,7 +15294,7 @@ http_interactions:
|
|
14054
15294
|
}
|
14055
15295
|
]
|
14056
15296
|
http_version:
|
14057
|
-
recorded_at:
|
15297
|
+
recorded_at: Sun, 21 Sep 2014 20:28:01 GMT
|
14058
15298
|
- request:
|
14059
15299
|
method: post
|
14060
15300
|
uri: http://localhost:3000/api/users/
|
@@ -14088,42 +15328,41 @@ http_interactions:
|
|
14088
15328
|
Content-Type:
|
14089
15329
|
- application/json; charset=utf-8
|
14090
15330
|
Etag:
|
14091
|
-
- '"
|
15331
|
+
- '"3c4f499314539ae2fef530fafbdf789b"'
|
14092
15332
|
Cache-Control:
|
14093
15333
|
- max-age=0, private, must-revalidate
|
14094
15334
|
X-Request-Id:
|
14095
|
-
-
|
15335
|
+
- ac8ecf5c-4719-437c-a146-35f3c3887487
|
14096
15336
|
X-Runtime:
|
14097
|
-
- '0.
|
15337
|
+
- '0.006820'
|
14098
15338
|
Server:
|
14099
15339
|
- WEBrick/1.3.1 (Ruby/2.1.2/2014-05-08)
|
14100
15340
|
Date:
|
14101
|
-
-
|
15341
|
+
- Sun, 21 Sep 2014 20:28:01 GMT
|
14102
15342
|
Content-Length:
|
14103
|
-
- '
|
15343
|
+
- '260'
|
14104
15344
|
Connection:
|
14105
15345
|
- Keep-Alive
|
14106
15346
|
body:
|
14107
15347
|
encoding: UTF-8
|
14108
15348
|
string: |-
|
14109
15349
|
{
|
14110
|
-
"
|
14111
|
-
"service_user_id": "3aa49be2db36a85fe4c6b19e6345c8379836716ee035c972e748c7c71195864c",
|
15350
|
+
"service_user_id": "e81f9df2f19ac3d0e4634061bff685bbb732abb269049eafdd4fa9ae7c836c6b",
|
14112
15351
|
"_links": {
|
14113
15352
|
"self": {
|
14114
|
-
"href": "http://localhost:3000/api/users/
|
15353
|
+
"href": "http://localhost:3000/api/users/85"
|
14115
15354
|
}
|
14116
15355
|
},
|
14117
|
-
"token": "
|
15356
|
+
"token": "c2ffdad2f8fb5aa69b36f5ea0468938657cf4a56a20fd6fda99e9f279b8f8b89"
|
14118
15357
|
}
|
14119
15358
|
http_version:
|
14120
|
-
recorded_at:
|
15359
|
+
recorded_at: Sun, 21 Sep 2014 20:28:01 GMT
|
14121
15360
|
- request:
|
14122
15361
|
method: post
|
14123
15362
|
uri: http://localhost:3000/api/surveys/
|
14124
15363
|
body:
|
14125
15364
|
encoding: UTF-8
|
14126
|
-
string: '{"survey":{"
|
15365
|
+
string: '{"survey":{"service_user_id":"e81f9df2f19ac3d0e4634061bff685bbb732abb269049eafdd4fa9ae7c836c6b"}}'
|
14127
15366
|
headers:
|
14128
15367
|
User-Agent:
|
14129
15368
|
- Faraday v0.9.0
|
@@ -14151,37 +15390,37 @@ http_interactions:
|
|
14151
15390
|
Content-Type:
|
14152
15391
|
- application/json; charset=utf-8
|
14153
15392
|
Etag:
|
14154
|
-
- '"
|
15393
|
+
- '"4376523c879b5593f892ac9b1c368d67"'
|
14155
15394
|
Cache-Control:
|
14156
15395
|
- max-age=0, private, must-revalidate
|
14157
15396
|
X-Request-Id:
|
14158
|
-
-
|
15397
|
+
- 35f50bee-928a-4f39-9217-4b8857d7569c
|
14159
15398
|
X-Runtime:
|
14160
|
-
- '0.
|
15399
|
+
- '0.009673'
|
14161
15400
|
Server:
|
14162
15401
|
- WEBrick/1.3.1 (Ruby/2.1.2/2014-05-08)
|
14163
15402
|
Date:
|
14164
|
-
-
|
15403
|
+
- Sun, 21 Sep 2014 20:28:01 GMT
|
14165
15404
|
Content-Length:
|
14166
|
-
- '
|
15405
|
+
- '430'
|
14167
15406
|
Connection:
|
14168
15407
|
- Keep-Alive
|
14169
15408
|
body:
|
14170
15409
|
encoding: UTF-8
|
14171
15410
|
string: |-
|
14172
15411
|
{
|
14173
|
-
"id":
|
14174
|
-
"
|
15412
|
+
"id": 85,
|
15413
|
+
"service_user_id": "e81f9df2f19ac3d0e4634061bff685bbb732abb269049eafdd4fa9ae7c836c6b",
|
14175
15414
|
"_links": {
|
14176
15415
|
"self": {
|
14177
|
-
"href": "http://localhost:3000/api/surveys/
|
15416
|
+
"href": "http://localhost:3000/api/surveys/85"
|
14178
15417
|
},
|
14179
15418
|
"survey_questions": {
|
14180
15419
|
"post": {
|
14181
|
-
"href": "/api/surveys/
|
15420
|
+
"href": "/api/surveys/85/survey_questions"
|
14182
15421
|
},
|
14183
15422
|
"put": {
|
14184
|
-
"href": "/api/surveys/
|
15423
|
+
"href": "/api/surveys/85/survey_questions"
|
14185
15424
|
}
|
14186
15425
|
}
|
14187
15426
|
},
|
@@ -14191,10 +15430,10 @@ http_interactions:
|
|
14191
15430
|
]
|
14192
15431
|
}
|
14193
15432
|
http_version:
|
14194
|
-
recorded_at:
|
15433
|
+
recorded_at: Sun, 21 Sep 2014 20:28:01 GMT
|
14195
15434
|
- request:
|
14196
15435
|
method: post
|
14197
|
-
uri: http://localhost:3000//api/surveys/
|
15436
|
+
uri: http://localhost:3000//api/surveys/85/survey_questions/
|
14198
15437
|
body:
|
14199
15438
|
encoding: UTF-8
|
14200
15439
|
string: '{"survey_question":{"question_id":8}}'
|
@@ -14225,38 +15464,38 @@ http_interactions:
|
|
14225
15464
|
Content-Type:
|
14226
15465
|
- application/json; charset=utf-8
|
14227
15466
|
Etag:
|
14228
|
-
- '"
|
15467
|
+
- '"0921cf9ad8198f4107b506e34daa617c"'
|
14229
15468
|
Cache-Control:
|
14230
15469
|
- max-age=0, private, must-revalidate
|
14231
15470
|
X-Request-Id:
|
14232
|
-
-
|
15471
|
+
- 377ac222-dcd1-4eeb-98cd-2526517dea6f
|
14233
15472
|
X-Runtime:
|
14234
|
-
- '0.
|
15473
|
+
- '0.009732'
|
14235
15474
|
Server:
|
14236
15475
|
- WEBrick/1.3.1 (Ruby/2.1.2/2014-05-08)
|
14237
15476
|
Date:
|
14238
|
-
-
|
15477
|
+
- Sun, 21 Sep 2014 20:28:01 GMT
|
14239
15478
|
Content-Length:
|
14240
|
-
- '
|
15479
|
+
- '183'
|
14241
15480
|
Connection:
|
14242
15481
|
- Keep-Alive
|
14243
15482
|
body:
|
14244
15483
|
encoding: UTF-8
|
14245
15484
|
string: |-
|
14246
15485
|
{
|
14247
|
-
"id":
|
14248
|
-
"survey_id":
|
15486
|
+
"id": 273,
|
15487
|
+
"survey_id": 85,
|
14249
15488
|
"question_id": 8,
|
14250
15489
|
"order_index": null,
|
14251
15490
|
"answer": null,
|
14252
|
-
"created_at": "2014-09-
|
14253
|
-
"updated_at": "2014-09-
|
15491
|
+
"created_at": "2014-09-21T20:28:01.550Z",
|
15492
|
+
"updated_at": "2014-09-21T20:28:01.550Z"
|
14254
15493
|
}
|
14255
15494
|
http_version:
|
14256
|
-
recorded_at:
|
15495
|
+
recorded_at: Sun, 21 Sep 2014 20:28:01 GMT
|
14257
15496
|
- request:
|
14258
15497
|
method: get
|
14259
|
-
uri: http://localhost:3000/api/surveys/
|
15498
|
+
uri: http://localhost:3000/api/surveys/85
|
14260
15499
|
body:
|
14261
15500
|
encoding: US-ASCII
|
14262
15501
|
string: ''
|
@@ -14287,44 +15526,44 @@ http_interactions:
|
|
14287
15526
|
Content-Type:
|
14288
15527
|
- application/json; charset=utf-8
|
14289
15528
|
Etag:
|
14290
|
-
- '"
|
15529
|
+
- '"674e5f94e54a5b9ee8cb570743e72455"'
|
14291
15530
|
Cache-Control:
|
14292
15531
|
- max-age=0, private, must-revalidate
|
14293
15532
|
X-Request-Id:
|
14294
|
-
-
|
15533
|
+
- 9d4420c4-1f7c-40fd-af10-85418136bdeb
|
14295
15534
|
X-Runtime:
|
14296
|
-
- '0.
|
15535
|
+
- '0.012373'
|
14297
15536
|
Server:
|
14298
15537
|
- WEBrick/1.3.1 (Ruby/2.1.2/2014-05-08)
|
14299
15538
|
Date:
|
14300
|
-
-
|
15539
|
+
- Sun, 21 Sep 2014 20:28:01 GMT
|
14301
15540
|
Content-Length:
|
14302
|
-
- '
|
15541
|
+
- '1047'
|
14303
15542
|
Connection:
|
14304
15543
|
- Keep-Alive
|
14305
15544
|
body:
|
14306
15545
|
encoding: UTF-8
|
14307
15546
|
string: |-
|
14308
15547
|
{
|
14309
|
-
"id":
|
14310
|
-
"
|
15548
|
+
"id": 85,
|
15549
|
+
"service_user_id": "e81f9df2f19ac3d0e4634061bff685bbb732abb269049eafdd4fa9ae7c836c6b",
|
14311
15550
|
"_links": {
|
14312
15551
|
"self": {
|
14313
|
-
"href": "http://localhost:3000/api/surveys/
|
15552
|
+
"href": "http://localhost:3000/api/surveys/85"
|
14314
15553
|
},
|
14315
15554
|
"survey_questions": {
|
14316
15555
|
"post": {
|
14317
|
-
"href": "/api/surveys/
|
15556
|
+
"href": "/api/surveys/85/survey_questions"
|
14318
15557
|
},
|
14319
15558
|
"put": {
|
14320
|
-
"href": "/api/surveys/
|
15559
|
+
"href": "/api/surveys/85/survey_questions"
|
14321
15560
|
}
|
14322
15561
|
}
|
14323
15562
|
},
|
14324
15563
|
"completed": false,
|
14325
15564
|
"survey_questions": [
|
14326
15565
|
{
|
14327
|
-
"id":
|
15566
|
+
"id": 273,
|
14328
15567
|
"text": "In the past 24 hours, have you engaged in sexual activity with another person?",
|
14329
15568
|
"type": "boolean",
|
14330
15569
|
"responses": [
|
@@ -14335,29 +15574,29 @@ http_interactions:
|
|
14335
15574
|
"freeform": false,
|
14336
15575
|
"_links": {
|
14337
15576
|
"self": {
|
14338
|
-
"href": "/api/surveys/
|
15577
|
+
"href": "/api/surveys/85/survey_questions/273"
|
14339
15578
|
},
|
14340
15579
|
"post": {
|
14341
|
-
"href": "http://localhost:3000/api/surveys/
|
15580
|
+
"href": "http://localhost:3000/api/surveys/85/survey_questions"
|
14342
15581
|
},
|
14343
15582
|
"put": {
|
14344
|
-
"href": "/api/surveys/
|
15583
|
+
"href": "/api/surveys/85/survey_questions/273"
|
14345
15584
|
},
|
14346
15585
|
"survey": {
|
14347
|
-
"href": "/api/surveys/
|
15586
|
+
"href": "/api/surveys/85"
|
14348
15587
|
}
|
14349
15588
|
}
|
14350
15589
|
}
|
14351
15590
|
]
|
14352
15591
|
}
|
14353
15592
|
http_version:
|
14354
|
-
recorded_at:
|
15593
|
+
recorded_at: Sun, 21 Sep 2014 20:28:01 GMT
|
14355
15594
|
- request:
|
14356
15595
|
method: put
|
14357
|
-
uri: http://localhost:3000//api/surveys/
|
15596
|
+
uri: http://localhost:3000//api/surveys/85/survey_questions/273/
|
14358
15597
|
body:
|
14359
15598
|
encoding: UTF-8
|
14360
|
-
string: '{"id":
|
15599
|
+
string: '{"id":273,"survey_question":{"answer":"true"}}'
|
14361
15600
|
headers:
|
14362
15601
|
User-Agent:
|
14363
15602
|
- Faraday v0.9.0
|
@@ -14385,23 +15624,23 @@ http_interactions:
|
|
14385
15624
|
Cache-Control:
|
14386
15625
|
- no-cache
|
14387
15626
|
X-Request-Id:
|
14388
|
-
-
|
15627
|
+
- 71d0e4dd-d2ee-4cd7-a568-440900a986e2
|
14389
15628
|
X-Runtime:
|
14390
|
-
- '0.
|
15629
|
+
- '0.008926'
|
14391
15630
|
Server:
|
14392
15631
|
- WEBrick/1.3.1 (Ruby/2.1.2/2014-05-08)
|
14393
15632
|
Date:
|
14394
|
-
-
|
15633
|
+
- Sun, 21 Sep 2014 20:28:01 GMT
|
14395
15634
|
Connection:
|
14396
15635
|
- Keep-Alive
|
14397
15636
|
body:
|
14398
15637
|
encoding: UTF-8
|
14399
15638
|
string: ''
|
14400
15639
|
http_version:
|
14401
|
-
recorded_at:
|
15640
|
+
recorded_at: Sun, 21 Sep 2014 20:28:01 GMT
|
14402
15641
|
- request:
|
14403
15642
|
method: get
|
14404
|
-
uri: http://localhost:3000/api/surveys/
|
15643
|
+
uri: http://localhost:3000/api/surveys/85
|
14405
15644
|
body:
|
14406
15645
|
encoding: US-ASCII
|
14407
15646
|
string: ''
|
@@ -14432,44 +15671,44 @@ http_interactions:
|
|
14432
15671
|
Content-Type:
|
14433
15672
|
- application/json; charset=utf-8
|
14434
15673
|
Etag:
|
14435
|
-
- '"
|
15674
|
+
- '"a2660eba320809d7ce2e0d2dab4a1284"'
|
14436
15675
|
Cache-Control:
|
14437
15676
|
- max-age=0, private, must-revalidate
|
14438
15677
|
X-Request-Id:
|
14439
|
-
-
|
15678
|
+
- 4202f5c0-8f24-444c-9255-5f3495448bc1
|
14440
15679
|
X-Runtime:
|
14441
|
-
- '0.
|
15680
|
+
- '0.009863'
|
14442
15681
|
Server:
|
14443
15682
|
- WEBrick/1.3.1 (Ruby/2.1.2/2014-05-08)
|
14444
15683
|
Date:
|
14445
|
-
-
|
15684
|
+
- Sun, 21 Sep 2014 20:28:01 GMT
|
14446
15685
|
Content-Length:
|
14447
|
-
- '
|
15686
|
+
- '1049'
|
14448
15687
|
Connection:
|
14449
15688
|
- Keep-Alive
|
14450
15689
|
body:
|
14451
15690
|
encoding: UTF-8
|
14452
15691
|
string: |-
|
14453
15692
|
{
|
14454
|
-
"id":
|
14455
|
-
"
|
15693
|
+
"id": 85,
|
15694
|
+
"service_user_id": "e81f9df2f19ac3d0e4634061bff685bbb732abb269049eafdd4fa9ae7c836c6b",
|
14456
15695
|
"_links": {
|
14457
15696
|
"self": {
|
14458
|
-
"href": "http://localhost:3000/api/surveys/
|
15697
|
+
"href": "http://localhost:3000/api/surveys/85"
|
14459
15698
|
},
|
14460
15699
|
"survey_questions": {
|
14461
15700
|
"post": {
|
14462
|
-
"href": "/api/surveys/
|
15701
|
+
"href": "/api/surveys/85/survey_questions"
|
14463
15702
|
},
|
14464
15703
|
"put": {
|
14465
|
-
"href": "/api/surveys/
|
15704
|
+
"href": "/api/surveys/85/survey_questions"
|
14466
15705
|
}
|
14467
15706
|
}
|
14468
15707
|
},
|
14469
15708
|
"completed": false,
|
14470
15709
|
"survey_questions": [
|
14471
15710
|
{
|
14472
|
-
"id":
|
15711
|
+
"id": 273,
|
14473
15712
|
"text": "In the past 24 hours, have you engaged in sexual activity with another person?",
|
14474
15713
|
"type": "boolean",
|
14475
15714
|
"responses": [
|
@@ -14480,21 +15719,21 @@ http_interactions:
|
|
14480
15719
|
"freeform": false,
|
14481
15720
|
"_links": {
|
14482
15721
|
"self": {
|
14483
|
-
"href": "/api/surveys/
|
15722
|
+
"href": "/api/surveys/85/survey_questions/273"
|
14484
15723
|
},
|
14485
15724
|
"post": {
|
14486
|
-
"href": "http://localhost:3000/api/surveys/
|
15725
|
+
"href": "http://localhost:3000/api/surveys/85/survey_questions"
|
14487
15726
|
},
|
14488
15727
|
"put": {
|
14489
|
-
"href": "/api/surveys/
|
15728
|
+
"href": "/api/surveys/85/survey_questions/273"
|
14490
15729
|
},
|
14491
15730
|
"survey": {
|
14492
|
-
"href": "/api/surveys/
|
15731
|
+
"href": "/api/surveys/85"
|
14493
15732
|
}
|
14494
15733
|
}
|
14495
15734
|
}
|
14496
15735
|
]
|
14497
15736
|
}
|
14498
15737
|
http_version:
|
14499
|
-
recorded_at:
|
15738
|
+
recorded_at: Sun, 21 Sep 2014 20:28:01 GMT
|
14500
15739
|
recorded_with: VCR 2.6.0
|