poptart 0.0.8 → 0.0.9
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/lib/poptart/model.rb +11 -13
- data/lib/poptart/range_question.rb +1 -1
- data/lib/poptart/survey.rb +1 -2
- data/lib/poptart/survey_question.rb +8 -3
- data/lib/poptart/time_question.rb +9 -0
- data/lib/poptart/user.rb +3 -1
- data/lib/poptart.rb +1 -0
- data/lib/version.rb +1 -1
- data/spec/requests/answering_survey_questions_spec.rb +3 -27
- data/spec/requests/answers_spec.rb +11 -13
- data/spec/requests/user_management_spec.rb +0 -2
- data/spec/vcr/answering/survey_questions_answers_a_multiple_choice_question.yml +6606 -3251
- data/spec/vcr/answering/survey_questions_answers_a_survey_question.yml +18354 -6356
- data/spec/vcr/answering/survey_questions_creates_and_returns_a_random_question_survey.yml +1223 -387
- data/spec/vcr/answering/survey_questions_creates_and_returns_an_empty_survey.yml +331 -183
- data/spec/vcr/answering/survey_questions_finds_survey_question_for_id.yml +1475 -403
- data/spec/vcr/creating/quesitons_returns_boolean_question.yml +66 -0
- data/spec/vcr/creating/quesitons_returns_multiple_question.yml +90 -21
- data/spec/vcr/creating/quesitons_returns_range_question.yml +92 -23
- data/spec/vcr/retrieving/answers_returns_all_answered_survey_questions_for_a_question.yml +7543 -0
- data/spec/vcr/retrieving/answers_returns_answers.yml +1956 -84
- data/spec/vcr/user/management_creates_a_user.yml +26 -27
- data/spec/vcr/user/management_returns_a_user.yml +186 -63
- metadata +5 -4
- data/spec/requests/root_spec.rb +0 -11
@@ -1,332 +1,5 @@
|
|
1
1
|
---
|
2
2
|
http_interactions:
|
3
|
-
- request:
|
4
|
-
method: get
|
5
|
-
uri: http://localhost:3000/
|
6
|
-
body:
|
7
|
-
encoding: US-ASCII
|
8
|
-
string: ''
|
9
|
-
headers:
|
10
|
-
User-Agent:
|
11
|
-
- Faraday v0.9.0
|
12
|
-
Content-Type:
|
13
|
-
- application/json
|
14
|
-
Api-Token:
|
15
|
-
- testing
|
16
|
-
Accept-Encoding:
|
17
|
-
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
18
|
-
Accept:
|
19
|
-
- "*/*"
|
20
|
-
response:
|
21
|
-
status:
|
22
|
-
code: 200
|
23
|
-
message: 'OK '
|
24
|
-
headers:
|
25
|
-
X-Frame-Options:
|
26
|
-
- SAMEORIGIN
|
27
|
-
X-Xss-Protection:
|
28
|
-
- 1; mode=block
|
29
|
-
X-Content-Type-Options:
|
30
|
-
- nosniff
|
31
|
-
X-Ua-Compatible:
|
32
|
-
- chrome=1
|
33
|
-
Content-Type:
|
34
|
-
- application/json; charset=utf-8
|
35
|
-
Etag:
|
36
|
-
- '"a723ac88b99a06c255a3384c2d01f4fb"'
|
37
|
-
Cache-Control:
|
38
|
-
- max-age=0, private, must-revalidate
|
39
|
-
X-Request-Id:
|
40
|
-
- c5a25952-0d62-4615-bc58-ca916bc21d27
|
41
|
-
X-Runtime:
|
42
|
-
- '0.004535'
|
43
|
-
Server:
|
44
|
-
- WEBrick/1.3.1 (Ruby/2.1.2/2014-05-08)
|
45
|
-
Date:
|
46
|
-
- Tue, 09 Sep 2014 23:20:54 GMT
|
47
|
-
Content-Length:
|
48
|
-
- '305'
|
49
|
-
Connection:
|
50
|
-
- Keep-Alive
|
51
|
-
body:
|
52
|
-
encoding: UTF-8
|
53
|
-
string: |-
|
54
|
-
{
|
55
|
-
"_links": {
|
56
|
-
"self": {
|
57
|
-
"href": "http://localhost:3000/api"
|
58
|
-
},
|
59
|
-
"surveys": {
|
60
|
-
"href": "http://localhost:3000/api/surveys"
|
61
|
-
},
|
62
|
-
"users": {
|
63
|
-
"href": "http://localhost:3000/api/users"
|
64
|
-
},
|
65
|
-
"questions": {
|
66
|
-
"href": "http://localhost:3000/api/questions"
|
67
|
-
}
|
68
|
-
}
|
69
|
-
}
|
70
|
-
http_version:
|
71
|
-
recorded_at: Tue, 09 Sep 2014 23:20:54 GMT
|
72
|
-
- request:
|
73
|
-
method: post
|
74
|
-
uri: http://localhost:3000/api/users
|
75
|
-
body:
|
76
|
-
encoding: UTF-8
|
77
|
-
string: '{"user":{"external_user_id":42}}'
|
78
|
-
headers:
|
79
|
-
User-Agent:
|
80
|
-
- Faraday v0.9.0
|
81
|
-
Content-Type:
|
82
|
-
- application/json
|
83
|
-
Api-Token:
|
84
|
-
- testing
|
85
|
-
Accept-Encoding:
|
86
|
-
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
87
|
-
Accept:
|
88
|
-
- "*/*"
|
89
|
-
response:
|
90
|
-
status:
|
91
|
-
code: 201
|
92
|
-
message: 'Created '
|
93
|
-
headers:
|
94
|
-
X-Frame-Options:
|
95
|
-
- SAMEORIGIN
|
96
|
-
X-Xss-Protection:
|
97
|
-
- 1; mode=block
|
98
|
-
X-Content-Type-Options:
|
99
|
-
- nosniff
|
100
|
-
X-Ua-Compatible:
|
101
|
-
- chrome=1
|
102
|
-
Content-Type:
|
103
|
-
- application/json; charset=utf-8
|
104
|
-
Etag:
|
105
|
-
- '"1984ca647e67bee3954a60eb3713a70e"'
|
106
|
-
Cache-Control:
|
107
|
-
- max-age=0, private, must-revalidate
|
108
|
-
X-Request-Id:
|
109
|
-
- da1652ba-34df-49c4-bdcd-b4dd8d6c80db
|
110
|
-
X-Runtime:
|
111
|
-
- '0.006685'
|
112
|
-
Server:
|
113
|
-
- WEBrick/1.3.1 (Ruby/2.1.2/2014-05-08)
|
114
|
-
Date:
|
115
|
-
- Tue, 09 Sep 2014 23:20:54 GMT
|
116
|
-
Content-Length:
|
117
|
-
- '130'
|
118
|
-
Connection:
|
119
|
-
- Keep-Alive
|
120
|
-
body:
|
121
|
-
encoding: UTF-8
|
122
|
-
string: |-
|
123
|
-
{
|
124
|
-
"id": 55,
|
125
|
-
"external_user_id": 42,
|
126
|
-
"_links": {
|
127
|
-
"self": {
|
128
|
-
"href": "http://localhost:3000/api/users/55"
|
129
|
-
}
|
130
|
-
}
|
131
|
-
}
|
132
|
-
http_version:
|
133
|
-
recorded_at: Tue, 09 Sep 2014 23:20:54 GMT
|
134
|
-
- request:
|
135
|
-
method: post
|
136
|
-
uri: http://localhost:3000/api/surveys?random=true
|
137
|
-
body:
|
138
|
-
encoding: UTF-8
|
139
|
-
string: '{"survey":{"user_id":55}}'
|
140
|
-
headers:
|
141
|
-
User-Agent:
|
142
|
-
- Faraday v0.9.0
|
143
|
-
Content-Type:
|
144
|
-
- application/json
|
145
|
-
Api-Token:
|
146
|
-
- testing
|
147
|
-
Accept-Encoding:
|
148
|
-
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
149
|
-
Accept:
|
150
|
-
- "*/*"
|
151
|
-
response:
|
152
|
-
status:
|
153
|
-
code: 201
|
154
|
-
message: 'Created '
|
155
|
-
headers:
|
156
|
-
X-Frame-Options:
|
157
|
-
- SAMEORIGIN
|
158
|
-
X-Xss-Protection:
|
159
|
-
- 1; mode=block
|
160
|
-
X-Content-Type-Options:
|
161
|
-
- nosniff
|
162
|
-
X-Ua-Compatible:
|
163
|
-
- chrome=1
|
164
|
-
Content-Type:
|
165
|
-
- application/json; charset=utf-8
|
166
|
-
Etag:
|
167
|
-
- '"1c41ed0fcd5af60ec158ee9028502ae8"'
|
168
|
-
Cache-Control:
|
169
|
-
- max-age=0, private, must-revalidate
|
170
|
-
X-Request-Id:
|
171
|
-
- 0c15d971-0db0-4f01-896c-0c37a6b62acc
|
172
|
-
X-Runtime:
|
173
|
-
- '0.035550'
|
174
|
-
Server:
|
175
|
-
- WEBrick/1.3.1 (Ruby/2.1.2/2014-05-08)
|
176
|
-
Date:
|
177
|
-
- Tue, 09 Sep 2014 23:20:54 GMT
|
178
|
-
Content-Length:
|
179
|
-
- '4118'
|
180
|
-
Connection:
|
181
|
-
- Keep-Alive
|
182
|
-
body:
|
183
|
-
encoding: UTF-8
|
184
|
-
string: |-
|
185
|
-
{
|
186
|
-
"id": 46,
|
187
|
-
"user_id": 55,
|
188
|
-
"_links": {
|
189
|
-
"self": {
|
190
|
-
"href": "http://localhost:3000/api/surveys/46"
|
191
|
-
},
|
192
|
-
"submit": {
|
193
|
-
"href": "http://localhost:3000/api/surveys/46/survey_questions"
|
194
|
-
}
|
195
|
-
},
|
196
|
-
"survey_questions": [
|
197
|
-
{
|
198
|
-
"id": 126,
|
199
|
-
"text": "How do you feel right now?",
|
200
|
-
"type": "range",
|
201
|
-
"responses": [
|
202
|
-
"0",
|
203
|
-
"10"
|
204
|
-
],
|
205
|
-
"answer": null,
|
206
|
-
"freeform": false,
|
207
|
-
"_links": {
|
208
|
-
"self": {
|
209
|
-
"href": "http://localhost:3000/api/surveys/46/survey_questions/126"
|
210
|
-
},
|
211
|
-
"survey": {
|
212
|
-
"href": "http://localhost:3000/api/surveys/46"
|
213
|
-
},
|
214
|
-
"create": {
|
215
|
-
"href": "http://localhost:3000/api/surveys/46/survey_questions"
|
216
|
-
},
|
217
|
-
"submit": {
|
218
|
-
"href": "http://localhost:3000/api/surveys/46/survey_questions/126"
|
219
|
-
}
|
220
|
-
}
|
221
|
-
},
|
222
|
-
{
|
223
|
-
"id": 127,
|
224
|
-
"text": "Where are you?",
|
225
|
-
"type": "multiple",
|
226
|
-
"responses": [
|
227
|
-
"At Home",
|
228
|
-
"At Work",
|
229
|
-
"In a car",
|
230
|
-
"Other"
|
231
|
-
],
|
232
|
-
"answer": null,
|
233
|
-
"freeform": true,
|
234
|
-
"_links": {
|
235
|
-
"self": {
|
236
|
-
"href": "http://localhost:3000/api/surveys/46/survey_questions/127"
|
237
|
-
},
|
238
|
-
"survey": {
|
239
|
-
"href": "http://localhost:3000/api/surveys/46"
|
240
|
-
},
|
241
|
-
"create": {
|
242
|
-
"href": "http://localhost:3000/api/surveys/46/survey_questions"
|
243
|
-
},
|
244
|
-
"submit": {
|
245
|
-
"href": "http://localhost:3000/api/surveys/46/survey_questions/127"
|
246
|
-
}
|
247
|
-
}
|
248
|
-
},
|
249
|
-
{
|
250
|
-
"id": 128,
|
251
|
-
"text": "Are you judging or evaluating what you are doing right now (i.e. at the moment just before you were notified?)",
|
252
|
-
"type": "multiple",
|
253
|
-
"responses": [
|
254
|
-
"f",
|
255
|
-
"Yes - Negatively",
|
256
|
-
"Yes - Neutrally",
|
257
|
-
"Yes - Positively"
|
258
|
-
],
|
259
|
-
"answer": null,
|
260
|
-
"freeform": false,
|
261
|
-
"_links": {
|
262
|
-
"self": {
|
263
|
-
"href": "http://localhost:3000/api/surveys/46/survey_questions/128"
|
264
|
-
},
|
265
|
-
"survey": {
|
266
|
-
"href": "http://localhost:3000/api/surveys/46"
|
267
|
-
},
|
268
|
-
"create": {
|
269
|
-
"href": "http://localhost:3000/api/surveys/46/survey_questions"
|
270
|
-
},
|
271
|
-
"submit": {
|
272
|
-
"href": "http://localhost:3000/api/surveys/46/survey_questions/128"
|
273
|
-
}
|
274
|
-
}
|
275
|
-
},
|
276
|
-
{
|
277
|
-
"id": 129,
|
278
|
-
"text": "Where would you place yourself on this ladder?\nThink of a ladder representing where people stand in your country.\nAt the top of the ladder are the people who are the best off - those who have the most money, the most education and the most respected jobs. At the bottom are the people who are the worst off - who have the least money, least education, and the least respected jobs or no job. The higher up you are on the ladder, the closer you are to the people at the very top; the lower you are the closer you are to people at the very bottom.",
|
279
|
-
"type": "range",
|
280
|
-
"responses": [
|
281
|
-
"0",
|
282
|
-
"10"
|
283
|
-
],
|
284
|
-
"answer": null,
|
285
|
-
"freeform": false,
|
286
|
-
"_links": {
|
287
|
-
"self": {
|
288
|
-
"href": "http://localhost:3000/api/surveys/46/survey_questions/129"
|
289
|
-
},
|
290
|
-
"survey": {
|
291
|
-
"href": "http://localhost:3000/api/surveys/46"
|
292
|
-
},
|
293
|
-
"create": {
|
294
|
-
"href": "http://localhost:3000/api/surveys/46/survey_questions"
|
295
|
-
},
|
296
|
-
"submit": {
|
297
|
-
"href": "http://localhost:3000/api/surveys/46/survey_questions/129"
|
298
|
-
}
|
299
|
-
}
|
300
|
-
},
|
301
|
-
{
|
302
|
-
"id": 130,
|
303
|
-
"text": "Are you alone?",
|
304
|
-
"type": "boolean",
|
305
|
-
"responses": [
|
306
|
-
"t",
|
307
|
-
"f"
|
308
|
-
],
|
309
|
-
"answer": null,
|
310
|
-
"freeform": false,
|
311
|
-
"_links": {
|
312
|
-
"self": {
|
313
|
-
"href": "http://localhost:3000/api/surveys/46/survey_questions/130"
|
314
|
-
},
|
315
|
-
"survey": {
|
316
|
-
"href": "http://localhost:3000/api/surveys/46"
|
317
|
-
},
|
318
|
-
"create": {
|
319
|
-
"href": "http://localhost:3000/api/surveys/46/survey_questions"
|
320
|
-
},
|
321
|
-
"submit": {
|
322
|
-
"href": "http://localhost:3000/api/surveys/46/survey_questions/130"
|
323
|
-
}
|
324
|
-
}
|
325
|
-
}
|
326
|
-
]
|
327
|
-
}
|
328
|
-
http_version:
|
329
|
-
recorded_at: Tue, 09 Sep 2014 23:20:54 GMT
|
330
3
|
- request:
|
331
4
|
method: post
|
332
5
|
uri: http://localhost:3000/api/http:%2F%2Flocalhost:3000%2Fapi%2F%252Fusers%2F/
|
@@ -1036,11 +709,11 @@ http_interactions:
|
|
1036
709
|
http_version:
|
1037
710
|
recorded_at: Sun, 14 Sep 2014 16:59:38 GMT
|
1038
711
|
- request:
|
1039
|
-
method:
|
1040
|
-
uri: http://localhost:3000/
|
712
|
+
method: get
|
713
|
+
uri: http://localhost:3000/
|
1041
714
|
body:
|
1042
|
-
encoding:
|
1043
|
-
string:
|
715
|
+
encoding: US-ASCII
|
716
|
+
string: ''
|
1044
717
|
headers:
|
1045
718
|
User-Agent:
|
1046
719
|
- Faraday v0.9.0
|
@@ -1054,11 +727,370 @@ http_interactions:
|
|
1054
727
|
- "*/*"
|
1055
728
|
response:
|
1056
729
|
status:
|
1057
|
-
code:
|
1058
|
-
message: '
|
730
|
+
code: 500
|
731
|
+
message: 'Internal Server Error '
|
1059
732
|
headers:
|
1060
|
-
|
1061
|
-
-
|
733
|
+
Content-Type:
|
734
|
+
- text/html; charset=utf-8
|
735
|
+
Content-Length:
|
736
|
+
- '21264'
|
737
|
+
X-Request-Id:
|
738
|
+
- 894934d0-06cf-402a-b696-f05c663e36a1
|
739
|
+
X-Runtime:
|
740
|
+
- '0.027140'
|
741
|
+
Server:
|
742
|
+
- WEBrick/1.3.1 (Ruby/2.1.2/2014-05-08)
|
743
|
+
Date:
|
744
|
+
- Sat, 04 Oct 2014 15:25:47 GMT
|
745
|
+
Connection:
|
746
|
+
- Keep-Alive
|
747
|
+
body:
|
748
|
+
encoding: UTF-8
|
749
|
+
string: "<!DOCTYPE html>\n<html lang=\"en\">\n<head>\n <meta charset=\"utf-8\"
|
750
|
+
/>\n <title>Action Controller: Exception caught</title>\n <style>\n body
|
751
|
+
{\n background-color: #FAFAFA;\n color: #333;\n margin: 0px;\n
|
752
|
+
\ }\n\n body, p, ol, ul, td {\n font-family: helvetica, verdana,
|
753
|
+
arial, sans-serif;\n font-size: 13px;\n line-height: 18px;\n }\n\n
|
754
|
+
\ pre {\n font-size: 11px;\n white-space: pre-wrap;\n }\n\n
|
755
|
+
\ pre.box {\n border: 1px solid #EEE;\n padding: 10px;\n margin:
|
756
|
+
0px;\n width: 958px;\n }\n\n header {\n color: #F0F0F0;\n
|
757
|
+
\ background: #C52F24;\n padding: 0.5em 1.5em;\n }\n\n h1 {\n
|
758
|
+
\ margin: 0.2em 0;\n line-height: 1.1em;\n font-size: 2em;\n
|
759
|
+
\ }\n\n h2 {\n color: #C52F24;\n line-height: 25px;\n }\n\n
|
760
|
+
\ .details {\n border: 1px solid #D0D0D0;\n border-radius: 4px;\n
|
761
|
+
\ margin: 1em 0px;\n display: block;\n width: 978px;\n }\n\n
|
762
|
+
\ .summary {\n padding: 8px 15px;\n border-bottom: 1px solid #D0D0D0;\n
|
763
|
+
\ display: block;\n }\n\n .details pre {\n margin: 5px;\n border:
|
764
|
+
none;\n }\n\n #container {\n box-sizing: border-box;\n width:
|
765
|
+
100%;\n padding: 0 1.5em;\n }\n\n .source * {\n margin: 0px;\n
|
766
|
+
\ padding: 0px;\n }\n\n .source {\n border: 1px solid #D9D9D9;\n
|
767
|
+
\ background: #ECECEC;\n width: 978px;\n }\n\n .source pre
|
768
|
+
{\n padding: 10px 0px;\n border: none;\n }\n\n .source .data
|
769
|
+
{\n font-size: 80%;\n overflow: auto;\n background-color: #FFF;\n
|
770
|
+
\ }\n\n .info {\n padding: 0.5em;\n }\n\n .source .data .line_numbers
|
771
|
+
{\n background-color: #ECECEC;\n color: #AAA;\n padding: 1em
|
772
|
+
.5em;\n border-right: 1px solid #DDD;\n text-align: right;\n }\n\n
|
773
|
+
\ .line {\n padding-left: 10px;\n }\n\n .line:hover {\n background-color:
|
774
|
+
#F6F6F6;\n }\n\n .line.active {\n background-color: #FFCCCC;\n
|
775
|
+
\ }\n\n a { color: #980905; }\n a:visited { color: #666; }\n a:hover
|
776
|
+
{ color: #C52F24; }\n\n \n </style>\n\n <script>\n var toggle = function(id)
|
777
|
+
{\n var s = document.getElementById(id).style;\n s.display = s.display
|
778
|
+
== 'none' ? 'block' : 'none';\n return false;\n }\n var show =
|
779
|
+
function(id) {\n document.getElementById(id).style.display = 'block';\n
|
780
|
+
\ }\n var hide = function(id) {\n document.getElementById(id).style.display
|
781
|
+
= 'none';\n }\n var toggleTrace = function() {\n return toggle('blame_trace');\n
|
782
|
+
\ }\n var toggleSessionDump = function() {\n return toggle('session_dump');\n
|
783
|
+
\ }\n var toggleEnvDump = function() {\n return toggle('env_dump');\n
|
784
|
+
\ }\n </script>\n</head>\n<body>\n\n<header>\n <h1>\n NameError\n in
|
785
|
+
Api::V1::RootController#index\n </h1>\n</header>\n\n<div id=\"container\">\n
|
786
|
+
\ <h2>undefined local variable or method `api_questions_answers_url' for
|
787
|
+
#<Api::V1::RootSerializer:0x007fe583f4c228></h2>\n\n <div class=\"source\">\n<div
|
788
|
+
class=\"info\">\n Extracted source (around line <strong>#21</strong>):\n</div>\n<div
|
789
|
+
class=\"data\">\n <table cellpadding=\"0\" cellspacing=\"0\" class=\"lines\">\n
|
790
|
+
\ <tr>\n <td>\n <pre class=\"line_numbers\">\n<span>19</span>\n<span>20</span>\n<span>21</span>\n<span>22</span>\n<span>23</span>\n<span>24</span>\n
|
791
|
+
\ </pre>\n </td>\n<td width=\"100%\">\n<pre>\n<div class=\"line\">
|
792
|
+
\ },\n</div><div class=\"line\"> answers: {\n</div><div class=\"line
|
793
|
+
active\"> href: api_questions_answers_url\n</div><div class=\"line\">
|
794
|
+
\ }\n</div><div class=\"line\"> }\n</div><div class=\"line\"> end\n</div>\n</pre>\n</td>\n
|
795
|
+
\ </tr>\n </table>\n</div>\n</div>\n\n \n<p><code>Rails.root: /Users/austenito/repos/happiness/happiness_service</code></p>\n\n<div
|
796
|
+
id=\"traces\">\n <a href=\"#\" onclick=\"hide('Framework-Trace');hide('Full-Trace');show('Application-Trace');;
|
797
|
+
return false;\">Application Trace</a> |\n <a href=\"#\" onclick=\"hide('Application-Trace');hide('Full-Trace');show('Framework-Trace');;
|
798
|
+
return false;\">Framework Trace</a> |\n <a href=\"#\" onclick=\"hide('Application-Trace');hide('Framework-Trace');show('Full-Trace');;
|
799
|
+
return false;\">Full Trace</a> \n\n <div id=\"Application-Trace\" style=\"display:
|
800
|
+
block;\">\n <pre><code>app/serializers/api/v1/root_serializer.rb:21:in
|
801
|
+
`_links'\napp/controllers/api/v1/root_controller.rb:5:in `index'</code></pre>\n
|
802
|
+
\ </div>\n <div id=\"Framework-Trace\" style=\"display: none;\">\n <pre><code>(eval):3:in
|
803
|
+
`_fast_attributes'\nactive_model_serializers (0.8.1) lib/active_model/serializer.rb:466:in
|
804
|
+
`rescue in attributes'\nactive_model_serializers (0.8.1) lib/active_model/serializer.rb:454:in
|
805
|
+
`attributes'\nactive_model_serializers (0.8.1) lib/active_model/serializer.rb:478:in
|
806
|
+
`_serializable_hash'\nactive_model_serializers (0.8.1) lib/active_model/serializer.rb:360:in
|
807
|
+
`serializable_hash'\nactive_model_serializers (0.8.1) lib/active_model/serializer.rb:348:in
|
808
|
+
`as_json'\nactivesupport (4.0.4) lib/active_support/json/encoding.rb:50:in
|
809
|
+
`block in encode'\nactivesupport (4.0.4) lib/active_support/json/encoding.rb:81:in
|
810
|
+
`check_for_circular_references'\nactivesupport (4.0.4) lib/active_support/json/encoding.rb:49:in
|
811
|
+
`encode'\nactivesupport (4.0.4) lib/active_support/json/encoding.rb:34:in
|
812
|
+
`encode'\nactivesupport (4.0.4) lib/active_support/core_ext/object/to_json.rb:16:in
|
813
|
+
`to_json'\nactive_model_serializers (0.8.1) lib/active_model/serializer.rb:333:in
|
814
|
+
`to_json'\nactionpack (4.0.4) lib/action_controller/metal/renderers.rb:90:in
|
815
|
+
`block in <module:Renderers>'\nactive_model_serializers (0.8.1)
|
816
|
+
lib/action_controller/serialization.rb:46:in `_render_option_json'\nactionpack
|
817
|
+
(4.0.4) lib/action_controller/metal/renderers.rb:33:in `block in _handle_render_options'\n/Users/austenito/.rubies/ruby-2.1.2/lib/ruby/2.1.0/set.rb:263:in
|
818
|
+
`each_key'\n/Users/austenito/.rubies/ruby-2.1.2/lib/ruby/2.1.0/set.rb:263:in
|
819
|
+
`each'\nactionpack (4.0.4) lib/action_controller/metal/renderers.rb:30:in
|
820
|
+
`_handle_render_options'\nactionpack (4.0.4) lib/action_controller/metal/renderers.rb:26:in
|
821
|
+
`render_to_body'\nactionpack (4.0.4) lib/abstract_controller/rendering.rb:97:in
|
822
|
+
`render'\nactionpack (4.0.4) lib/action_controller/metal/rendering.rb:16:in
|
823
|
+
`render'\nactionpack (4.0.4) lib/action_controller/metal/instrumentation.rb:41:in
|
824
|
+
`block (2 levels) in render'\nactivesupport (4.0.4) lib/active_support/core_ext/benchmark.rb:12:in
|
825
|
+
`block in ms'\n/Users/austenito/.rubies/ruby-2.1.2/lib/ruby/2.1.0/benchmark.rb:294:in
|
826
|
+
`realtime'\nactivesupport (4.0.4) lib/active_support/core_ext/benchmark.rb:12:in
|
827
|
+
`ms'\nactionpack (4.0.4) lib/action_controller/metal/instrumentation.rb:41:in
|
828
|
+
`block in render'\nactionpack (4.0.4) lib/action_controller/metal/instrumentation.rb:84:in
|
829
|
+
`cleanup_view_runtime'\nactiverecord (4.0.4) lib/active_record/railties/controller_runtime.rb:25:in
|
830
|
+
`cleanup_view_runtime'\nactionpack (4.0.4) lib/action_controller/metal/instrumentation.rb:40:in
|
831
|
+
`render'\nactionpack (4.0.4) lib/action_controller/metal/responder.rb:255:in
|
832
|
+
`display'\nactionpack (4.0.4) lib/action_controller/metal/responder.rb:203:in
|
833
|
+
`api_behavior'\nactionpack (4.0.4) lib/action_controller/metal/responder.rb:182:in
|
834
|
+
`rescue in to_format'\nactionpack (4.0.4) lib/action_controller/metal/responder.rb:176:in
|
835
|
+
`to_format'\nactionpack (4.0.4) lib/action_controller/metal/responder.rb:154:in
|
836
|
+
`respond'\nactionpack (4.0.4) lib/action_controller/metal/responder.rb:147:in
|
837
|
+
`call'\nactionpack (4.0.4) lib/action_controller/metal/mime_responds.rb:330:in
|
838
|
+
`respond_with'\nactionpack (4.0.4) lib/action_controller/metal/implicit_render.rb:4:in
|
839
|
+
`send_action'\nactionpack (4.0.4) lib/abstract_controller/base.rb:189:in
|
840
|
+
`process_action'\nactionpack (4.0.4) lib/action_controller/metal/rendering.rb:10:in
|
841
|
+
`process_action'\nactionpack (4.0.4) lib/abstract_controller/callbacks.rb:18:in
|
842
|
+
`block in process_action'\nactivesupport (4.0.4) lib/active_support/callbacks.rb:383:in
|
843
|
+
`_run__552417660275114359__process_action__callbacks'\nactivesupport (4.0.4)
|
844
|
+
lib/active_support/callbacks.rb:80:in `run_callbacks'\nactionpack (4.0.4)
|
845
|
+
lib/abstract_controller/callbacks.rb:17:in `process_action'\nactionpack
|
846
|
+
(4.0.4) lib/action_controller/metal/rescue.rb:29:in `process_action'\nactionpack
|
847
|
+
(4.0.4) lib/action_controller/metal/instrumentation.rb:31:in `block in process_action'\nactivesupport
|
848
|
+
(4.0.4) lib/active_support/notifications.rb:159:in `block in instrument'\nactivesupport
|
849
|
+
(4.0.4) lib/active_support/notifications/instrumenter.rb:20:in `instrument'\nactivesupport
|
850
|
+
(4.0.4) lib/active_support/notifications.rb:159:in `instrument'\nactionpack
|
851
|
+
(4.0.4) lib/action_controller/metal/instrumentation.rb:30:in `process_action'\nactiverecord
|
852
|
+
(4.0.4) lib/active_record/railties/controller_runtime.rb:18:in `process_action'\nactionpack
|
853
|
+
(4.0.4) lib/abstract_controller/base.rb:136:in `process'\nactionpack (4.0.4)
|
854
|
+
lib/abstract_controller/rendering.rb:44:in `process'\nactionpack (4.0.4)
|
855
|
+
lib/action_controller/metal.rb:195:in `dispatch'\nactionpack (4.0.4) lib/action_controller/metal/rack_delegation.rb:13:in
|
856
|
+
`dispatch'\nactionpack (4.0.4) lib/action_controller/metal.rb:231:in `block
|
857
|
+
in action'\nactionpack (4.0.4) lib/action_dispatch/routing/route_set.rb:80:in
|
858
|
+
`call'\nactionpack (4.0.4) lib/action_dispatch/routing/route_set.rb:80:in
|
859
|
+
`dispatch'\nactionpack (4.0.4) lib/action_dispatch/routing/route_set.rb:48:in
|
860
|
+
`call'\nactionpack (4.0.4) lib/action_dispatch/journey/router.rb:71:in
|
861
|
+
`block in call'\nactionpack (4.0.4) lib/action_dispatch/journey/router.rb:59:in
|
862
|
+
`each'\nactionpack (4.0.4) lib/action_dispatch/journey/router.rb:59:in
|
863
|
+
`call'\nactionpack (4.0.4) lib/action_dispatch/routing/route_set.rb:674:in
|
864
|
+
`call'\nrack (1.5.2) lib/rack/etag.rb:23:in `call'\nrack (1.5.2) lib/rack/conditionalget.rb:25:in
|
865
|
+
`call'\nrack (1.5.2) lib/rack/head.rb:11:in `call'\nactionpack (4.0.4)
|
866
|
+
lib/action_dispatch/middleware/params_parser.rb:27:in `call'\nactiverecord
|
867
|
+
(4.0.4) lib/active_record/query_cache.rb:36:in `call'\nactiverecord (4.0.4)
|
868
|
+
lib/active_record/connection_adapters/abstract/connection_pool.rb:626:in `call'\nactiverecord
|
869
|
+
(4.0.4) lib/active_record/migration.rb:373:in `call'\nactionpack (4.0.4)
|
870
|
+
lib/action_dispatch/middleware/callbacks.rb:29:in `block in call'\nactivesupport
|
871
|
+
(4.0.4) lib/active_support/callbacks.rb:373:in `_run__2270658051568218024__call__callbacks'\nactivesupport
|
872
|
+
(4.0.4) lib/active_support/callbacks.rb:80:in `run_callbacks'\nactionpack
|
873
|
+
(4.0.4) lib/action_dispatch/middleware/callbacks.rb:27:in `call'\nactionpack
|
874
|
+
(4.0.4) lib/action_dispatch/middleware/reloader.rb:64:in `call'\nactionpack
|
875
|
+
(4.0.4) lib/action_dispatch/middleware/remote_ip.rb:76:in `call'\nactionpack
|
876
|
+
(4.0.4) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call'\nactionpack
|
877
|
+
(4.0.4) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call'\nrailties
|
878
|
+
(4.0.4) lib/rails/rack/logger.rb:38:in `call_app'\nrailties (4.0.4) lib/rails/rack/logger.rb:20:in
|
879
|
+
`block in call'\nactivesupport (4.0.4) lib/active_support/tagged_logging.rb:68:in
|
880
|
+
`block in tagged'\nactivesupport (4.0.4) lib/active_support/tagged_logging.rb:26:in
|
881
|
+
`tagged'\nactivesupport (4.0.4) lib/active_support/tagged_logging.rb:68:in
|
882
|
+
`tagged'\nrailties (4.0.4) lib/rails/rack/logger.rb:20:in `call'\nactionpack
|
883
|
+
(4.0.4) lib/action_dispatch/middleware/request_id.rb:21:in `call'\nrack
|
884
|
+
(1.5.2) lib/rack/runtime.rb:17:in `call'\nactivesupport (4.0.4) lib/active_support/cache/strategy/local_cache.rb:83:in
|
885
|
+
`call'\nrack (1.5.2) lib/rack/lock.rb:17:in `call'\nactionpack (4.0.4)
|
886
|
+
lib/action_dispatch/middleware/static.rb:64:in `call'\nrailties (4.0.4)
|
887
|
+
lib/rails/engine.rb:511:in `call'\nrailties (4.0.4) lib/rails/application.rb:97:in
|
888
|
+
`call'\nrack (1.5.2) lib/rack/lock.rb:17:in `call'\nrack (1.5.2) lib/rack/content_length.rb:14:in
|
889
|
+
`call'\nrack (1.5.2) lib/rack/handler/webrick.rb:60:in `service'\n/Users/austenito/.rubies/ruby-2.1.2/lib/ruby/2.1.0/webrick/httpserver.rb:138:in
|
890
|
+
`service'\n/Users/austenito/.rubies/ruby-2.1.2/lib/ruby/2.1.0/webrick/httpserver.rb:94:in
|
891
|
+
`run'\n/Users/austenito/.rubies/ruby-2.1.2/lib/ruby/2.1.0/webrick/server.rb:295:in
|
892
|
+
`block in start_thread'</code></pre>\n </div>\n <div id=\"Full-Trace\"
|
893
|
+
style=\"display: none;\">\n <pre><code>app/serializers/api/v1/root_serializer.rb:21:in
|
894
|
+
`_links'\n(eval):3:in `_fast_attributes'\nactive_model_serializers
|
895
|
+
(0.8.1) lib/active_model/serializer.rb:466:in `rescue in attributes'\nactive_model_serializers
|
896
|
+
(0.8.1) lib/active_model/serializer.rb:454:in `attributes'\nactive_model_serializers
|
897
|
+
(0.8.1) lib/active_model/serializer.rb:478:in `_serializable_hash'\nactive_model_serializers
|
898
|
+
(0.8.1) lib/active_model/serializer.rb:360:in `serializable_hash'\nactive_model_serializers
|
899
|
+
(0.8.1) lib/active_model/serializer.rb:348:in `as_json'\nactivesupport
|
900
|
+
(4.0.4) lib/active_support/json/encoding.rb:50:in `block in encode'\nactivesupport
|
901
|
+
(4.0.4) lib/active_support/json/encoding.rb:81:in `check_for_circular_references'\nactivesupport
|
902
|
+
(4.0.4) lib/active_support/json/encoding.rb:49:in `encode'\nactivesupport
|
903
|
+
(4.0.4) lib/active_support/json/encoding.rb:34:in `encode'\nactivesupport
|
904
|
+
(4.0.4) lib/active_support/core_ext/object/to_json.rb:16:in `to_json'\nactive_model_serializers
|
905
|
+
(0.8.1) lib/active_model/serializer.rb:333:in `to_json'\nactionpack (4.0.4)
|
906
|
+
lib/action_controller/metal/renderers.rb:90:in `block in <module:Renderers>'\nactive_model_serializers
|
907
|
+
(0.8.1) lib/action_controller/serialization.rb:46:in `_render_option_json'\nactionpack
|
908
|
+
(4.0.4) lib/action_controller/metal/renderers.rb:33:in `block in _handle_render_options'\n/Users/austenito/.rubies/ruby-2.1.2/lib/ruby/2.1.0/set.rb:263:in
|
909
|
+
`each_key'\n/Users/austenito/.rubies/ruby-2.1.2/lib/ruby/2.1.0/set.rb:263:in
|
910
|
+
`each'\nactionpack (4.0.4) lib/action_controller/metal/renderers.rb:30:in
|
911
|
+
`_handle_render_options'\nactionpack (4.0.4) lib/action_controller/metal/renderers.rb:26:in
|
912
|
+
`render_to_body'\nactionpack (4.0.4) lib/abstract_controller/rendering.rb:97:in
|
913
|
+
`render'\nactionpack (4.0.4) lib/action_controller/metal/rendering.rb:16:in
|
914
|
+
`render'\nactionpack (4.0.4) lib/action_controller/metal/instrumentation.rb:41:in
|
915
|
+
`block (2 levels) in render'\nactivesupport (4.0.4) lib/active_support/core_ext/benchmark.rb:12:in
|
916
|
+
`block in ms'\n/Users/austenito/.rubies/ruby-2.1.2/lib/ruby/2.1.0/benchmark.rb:294:in
|
917
|
+
`realtime'\nactivesupport (4.0.4) lib/active_support/core_ext/benchmark.rb:12:in
|
918
|
+
`ms'\nactionpack (4.0.4) lib/action_controller/metal/instrumentation.rb:41:in
|
919
|
+
`block in render'\nactionpack (4.0.4) lib/action_controller/metal/instrumentation.rb:84:in
|
920
|
+
`cleanup_view_runtime'\nactiverecord (4.0.4) lib/active_record/railties/controller_runtime.rb:25:in
|
921
|
+
`cleanup_view_runtime'\nactionpack (4.0.4) lib/action_controller/metal/instrumentation.rb:40:in
|
922
|
+
`render'\nactionpack (4.0.4) lib/action_controller/metal/responder.rb:255:in
|
923
|
+
`display'\nactionpack (4.0.4) lib/action_controller/metal/responder.rb:203:in
|
924
|
+
`api_behavior'\nactionpack (4.0.4) lib/action_controller/metal/responder.rb:182:in
|
925
|
+
`rescue in to_format'\nactionpack (4.0.4) lib/action_controller/metal/responder.rb:176:in
|
926
|
+
`to_format'\nactionpack (4.0.4) lib/action_controller/metal/responder.rb:154:in
|
927
|
+
`respond'\nactionpack (4.0.4) lib/action_controller/metal/responder.rb:147:in
|
928
|
+
`call'\nactionpack (4.0.4) lib/action_controller/metal/mime_responds.rb:330:in
|
929
|
+
`respond_with'\napp/controllers/api/v1/root_controller.rb:5:in `index'\nactionpack
|
930
|
+
(4.0.4) lib/action_controller/metal/implicit_render.rb:4:in `send_action'\nactionpack
|
931
|
+
(4.0.4) lib/abstract_controller/base.rb:189:in `process_action'\nactionpack
|
932
|
+
(4.0.4) lib/action_controller/metal/rendering.rb:10:in `process_action'\nactionpack
|
933
|
+
(4.0.4) lib/abstract_controller/callbacks.rb:18:in `block in process_action'\nactivesupport
|
934
|
+
(4.0.4) lib/active_support/callbacks.rb:383:in `_run__552417660275114359__process_action__callbacks'\nactivesupport
|
935
|
+
(4.0.4) lib/active_support/callbacks.rb:80:in `run_callbacks'\nactionpack
|
936
|
+
(4.0.4) lib/abstract_controller/callbacks.rb:17:in `process_action'\nactionpack
|
937
|
+
(4.0.4) lib/action_controller/metal/rescue.rb:29:in `process_action'\nactionpack
|
938
|
+
(4.0.4) lib/action_controller/metal/instrumentation.rb:31:in `block in process_action'\nactivesupport
|
939
|
+
(4.0.4) lib/active_support/notifications.rb:159:in `block in instrument'\nactivesupport
|
940
|
+
(4.0.4) lib/active_support/notifications/instrumenter.rb:20:in `instrument'\nactivesupport
|
941
|
+
(4.0.4) lib/active_support/notifications.rb:159:in `instrument'\nactionpack
|
942
|
+
(4.0.4) lib/action_controller/metal/instrumentation.rb:30:in `process_action'\nactiverecord
|
943
|
+
(4.0.4) lib/active_record/railties/controller_runtime.rb:18:in `process_action'\nactionpack
|
944
|
+
(4.0.4) lib/abstract_controller/base.rb:136:in `process'\nactionpack (4.0.4)
|
945
|
+
lib/abstract_controller/rendering.rb:44:in `process'\nactionpack (4.0.4)
|
946
|
+
lib/action_controller/metal.rb:195:in `dispatch'\nactionpack (4.0.4) lib/action_controller/metal/rack_delegation.rb:13:in
|
947
|
+
`dispatch'\nactionpack (4.0.4) lib/action_controller/metal.rb:231:in `block
|
948
|
+
in action'\nactionpack (4.0.4) lib/action_dispatch/routing/route_set.rb:80:in
|
949
|
+
`call'\nactionpack (4.0.4) lib/action_dispatch/routing/route_set.rb:80:in
|
950
|
+
`dispatch'\nactionpack (4.0.4) lib/action_dispatch/routing/route_set.rb:48:in
|
951
|
+
`call'\nactionpack (4.0.4) lib/action_dispatch/journey/router.rb:71:in
|
952
|
+
`block in call'\nactionpack (4.0.4) lib/action_dispatch/journey/router.rb:59:in
|
953
|
+
`each'\nactionpack (4.0.4) lib/action_dispatch/journey/router.rb:59:in
|
954
|
+
`call'\nactionpack (4.0.4) lib/action_dispatch/routing/route_set.rb:674:in
|
955
|
+
`call'\nrack (1.5.2) lib/rack/etag.rb:23:in `call'\nrack (1.5.2) lib/rack/conditionalget.rb:25:in
|
956
|
+
`call'\nrack (1.5.2) lib/rack/head.rb:11:in `call'\nactionpack (4.0.4)
|
957
|
+
lib/action_dispatch/middleware/params_parser.rb:27:in `call'\nactiverecord
|
958
|
+
(4.0.4) lib/active_record/query_cache.rb:36:in `call'\nactiverecord (4.0.4)
|
959
|
+
lib/active_record/connection_adapters/abstract/connection_pool.rb:626:in `call'\nactiverecord
|
960
|
+
(4.0.4) lib/active_record/migration.rb:373:in `call'\nactionpack (4.0.4)
|
961
|
+
lib/action_dispatch/middleware/callbacks.rb:29:in `block in call'\nactivesupport
|
962
|
+
(4.0.4) lib/active_support/callbacks.rb:373:in `_run__2270658051568218024__call__callbacks'\nactivesupport
|
963
|
+
(4.0.4) lib/active_support/callbacks.rb:80:in `run_callbacks'\nactionpack
|
964
|
+
(4.0.4) lib/action_dispatch/middleware/callbacks.rb:27:in `call'\nactionpack
|
965
|
+
(4.0.4) lib/action_dispatch/middleware/reloader.rb:64:in `call'\nactionpack
|
966
|
+
(4.0.4) lib/action_dispatch/middleware/remote_ip.rb:76:in `call'\nactionpack
|
967
|
+
(4.0.4) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call'\nactionpack
|
968
|
+
(4.0.4) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call'\nrailties
|
969
|
+
(4.0.4) lib/rails/rack/logger.rb:38:in `call_app'\nrailties (4.0.4) lib/rails/rack/logger.rb:20:in
|
970
|
+
`block in call'\nactivesupport (4.0.4) lib/active_support/tagged_logging.rb:68:in
|
971
|
+
`block in tagged'\nactivesupport (4.0.4) lib/active_support/tagged_logging.rb:26:in
|
972
|
+
`tagged'\nactivesupport (4.0.4) lib/active_support/tagged_logging.rb:68:in
|
973
|
+
`tagged'\nrailties (4.0.4) lib/rails/rack/logger.rb:20:in `call'\nactionpack
|
974
|
+
(4.0.4) lib/action_dispatch/middleware/request_id.rb:21:in `call'\nrack
|
975
|
+
(1.5.2) lib/rack/runtime.rb:17:in `call'\nactivesupport (4.0.4) lib/active_support/cache/strategy/local_cache.rb:83:in
|
976
|
+
`call'\nrack (1.5.2) lib/rack/lock.rb:17:in `call'\nactionpack (4.0.4)
|
977
|
+
lib/action_dispatch/middleware/static.rb:64:in `call'\nrailties (4.0.4)
|
978
|
+
lib/rails/engine.rb:511:in `call'\nrailties (4.0.4) lib/rails/application.rb:97:in
|
979
|
+
`call'\nrack (1.5.2) lib/rack/lock.rb:17:in `call'\nrack (1.5.2) lib/rack/content_length.rb:14:in
|
980
|
+
`call'\nrack (1.5.2) lib/rack/handler/webrick.rb:60:in `service'\n/Users/austenito/.rubies/ruby-2.1.2/lib/ruby/2.1.0/webrick/httpserver.rb:138:in
|
981
|
+
`service'\n/Users/austenito/.rubies/ruby-2.1.2/lib/ruby/2.1.0/webrick/httpserver.rb:94:in
|
982
|
+
`run'\n/Users/austenito/.rubies/ruby-2.1.2/lib/ruby/2.1.0/webrick/server.rb:295:in
|
983
|
+
`block in start_thread'</code></pre>\n </div>\n</div>\n\n \n\n<h2
|
984
|
+
style=\"margin-top: 30px\">Request</h2>\n<p><b>Parameters</b>:</p> <pre>None</pre>\n\n<div
|
985
|
+
class=\"details\">\n <div class=\"summary\"><a href=\"#\" onclick=\"return
|
986
|
+
toggleSessionDump()\">Toggle session dump</a></div>\n <div id=\"session_dump\"
|
987
|
+
style=\"display:none\"><pre></pre></div>\n</div>\n\n<div class=\"details\">\n
|
988
|
+
\ <div class=\"summary\"><a href=\"#\" onclick=\"return toggleEnvDump()\">Toggle
|
989
|
+
env dump</a></div>\n <div id=\"env_dump\" style=\"display:none\"><pre>GATEWAY_INTERFACE:
|
990
|
+
"CGI/1.1"\nHTTP_ACCEPT: "*/*"\nHTTP_ACCEPT_ENCODING: "gzip;q=1.0,deflate;q=0.6,identity;q=0.3"\nREMOTE_ADDR:
|
991
|
+
"127.0.0.1"\nREMOTE_HOST: "127.0.0.1"\nSERVER_NAME: "localhost"\nSERVER_PROTOCOL:
|
992
|
+
"HTTP/1.1"</pre></div>\n</div>\n\n<h2 style=\"margin-top: 30px\">Response</h2>\n<p><b>Headers</b>:</p>
|
993
|
+
<pre>None</pre>\n\n</div>\n\n\n</body>\n</html>\n"
|
994
|
+
http_version:
|
995
|
+
recorded_at: Sat, 04 Oct 2014 15:25:47 GMT
|
996
|
+
- request:
|
997
|
+
method: post
|
998
|
+
uri: http://localhost:3000/api/surveys/?query=random,true
|
999
|
+
body:
|
1000
|
+
encoding: UTF-8
|
1001
|
+
string: '{"survey":{"service_user_id":"640cc842fbe5eddf3e12bca56b4fdd15817edfd3447e3b07d50d35ae2a934d9e"}}'
|
1002
|
+
headers:
|
1003
|
+
User-Agent:
|
1004
|
+
- Faraday v0.9.0
|
1005
|
+
Content-Type:
|
1006
|
+
- application/json
|
1007
|
+
Api-Token:
|
1008
|
+
- testing
|
1009
|
+
Accept-Encoding:
|
1010
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
1011
|
+
Accept:
|
1012
|
+
- "*/*"
|
1013
|
+
response:
|
1014
|
+
status:
|
1015
|
+
code: 201
|
1016
|
+
message: 'Created '
|
1017
|
+
headers:
|
1018
|
+
X-Frame-Options:
|
1019
|
+
- SAMEORIGIN
|
1020
|
+
X-Xss-Protection:
|
1021
|
+
- 1; mode=block
|
1022
|
+
X-Content-Type-Options:
|
1023
|
+
- nosniff
|
1024
|
+
X-Ua-Compatible:
|
1025
|
+
- chrome=1
|
1026
|
+
Content-Type:
|
1027
|
+
- application/json; charset=utf-8
|
1028
|
+
Etag:
|
1029
|
+
- '"0b7e04ded5a4de37f5910f63a829de7a"'
|
1030
|
+
Cache-Control:
|
1031
|
+
- max-age=0, private, must-revalidate
|
1032
|
+
X-Request-Id:
|
1033
|
+
- 7c90484d-b1cd-49d8-a499-809cf2ba6071
|
1034
|
+
X-Runtime:
|
1035
|
+
- '0.009468'
|
1036
|
+
Server:
|
1037
|
+
- WEBrick/1.3.1 (Ruby/2.1.2/2014-05-08)
|
1038
|
+
Date:
|
1039
|
+
- Sat, 04 Oct 2014 15:28:53 GMT
|
1040
|
+
Content-Length:
|
1041
|
+
- '434'
|
1042
|
+
Connection:
|
1043
|
+
- Keep-Alive
|
1044
|
+
body:
|
1045
|
+
encoding: UTF-8
|
1046
|
+
string: |-
|
1047
|
+
{
|
1048
|
+
"id": 102,
|
1049
|
+
"service_user_id": "640cc842fbe5eddf3e12bca56b4fdd15817edfd3447e3b07d50d35ae2a934d9e",
|
1050
|
+
"_links": {
|
1051
|
+
"self": {
|
1052
|
+
"href": "http://localhost:3000/api/surveys/102"
|
1053
|
+
},
|
1054
|
+
"survey_questions": {
|
1055
|
+
"post": {
|
1056
|
+
"href": "/api/surveys/102/survey_questions"
|
1057
|
+
},
|
1058
|
+
"put": {
|
1059
|
+
"href": "/api/surveys/102/survey_questions"
|
1060
|
+
}
|
1061
|
+
}
|
1062
|
+
},
|
1063
|
+
"completed": false,
|
1064
|
+
"survey_questions": [
|
1065
|
+
|
1066
|
+
]
|
1067
|
+
}
|
1068
|
+
http_version:
|
1069
|
+
recorded_at: Sat, 04 Oct 2014 15:28:53 GMT
|
1070
|
+
- request:
|
1071
|
+
method: post
|
1072
|
+
uri: http://localhost:3000/api/users/
|
1073
|
+
body:
|
1074
|
+
encoding: UTF-8
|
1075
|
+
string: "{}"
|
1076
|
+
headers:
|
1077
|
+
User-Agent:
|
1078
|
+
- Faraday v0.9.0
|
1079
|
+
Content-Type:
|
1080
|
+
- application/json
|
1081
|
+
Api-Token:
|
1082
|
+
- testing
|
1083
|
+
Accept-Encoding:
|
1084
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
1085
|
+
Accept:
|
1086
|
+
- "*/*"
|
1087
|
+
response:
|
1088
|
+
status:
|
1089
|
+
code: 201
|
1090
|
+
message: 'Created '
|
1091
|
+
headers:
|
1092
|
+
X-Frame-Options:
|
1093
|
+
- SAMEORIGIN
|
1062
1094
|
X-Xss-Protection:
|
1063
1095
|
- 1; mode=block
|
1064
1096
|
X-Content-Type-Options:
|
@@ -1068,41 +1100,41 @@ http_interactions:
|
|
1068
1100
|
Content-Type:
|
1069
1101
|
- application/json; charset=utf-8
|
1070
1102
|
Etag:
|
1071
|
-
- '"
|
1103
|
+
- '"02bb926525b9f984bb302157f0f974bc"'
|
1072
1104
|
Cache-Control:
|
1073
1105
|
- max-age=0, private, must-revalidate
|
1074
1106
|
X-Request-Id:
|
1075
|
-
-
|
1107
|
+
- ef423d17-9d9c-45a5-9ab0-7c3039fe4b6e
|
1076
1108
|
X-Runtime:
|
1077
|
-
- '0.
|
1109
|
+
- '0.006316'
|
1078
1110
|
Server:
|
1079
1111
|
- WEBrick/1.3.1 (Ruby/2.1.2/2014-05-08)
|
1080
1112
|
Date:
|
1081
|
-
-
|
1113
|
+
- Sat, 04 Oct 2014 17:52:44 GMT
|
1082
1114
|
Content-Length:
|
1083
|
-
- '
|
1115
|
+
- '261'
|
1084
1116
|
Connection:
|
1085
1117
|
- Keep-Alive
|
1086
1118
|
body:
|
1087
1119
|
encoding: UTF-8
|
1088
1120
|
string: |-
|
1089
1121
|
{
|
1090
|
-
"service_user_id": "
|
1122
|
+
"service_user_id": "3ed74be14a79b760b2a02069e4f2650c706b4c869e9bebe2588c6c58cfe12efb",
|
1091
1123
|
"_links": {
|
1092
1124
|
"self": {
|
1093
|
-
"href": "http://localhost:3000/api/users/
|
1125
|
+
"href": "http://localhost:3000/api/users/119"
|
1094
1126
|
}
|
1095
1127
|
},
|
1096
|
-
"token": "
|
1128
|
+
"token": "49b8cf8cae167b6e60bbd205f77ce7ea64755eb35e246e8c964479c5971993db"
|
1097
1129
|
}
|
1098
1130
|
http_version:
|
1099
|
-
recorded_at:
|
1131
|
+
recorded_at: Sat, 04 Oct 2014 17:52:44 GMT
|
1100
1132
|
- request:
|
1101
1133
|
method: post
|
1102
1134
|
uri: http://localhost:3000/api/surveys/?random=true
|
1103
1135
|
body:
|
1104
1136
|
encoding: UTF-8
|
1105
|
-
string: '{"survey":{"service_user_id":"
|
1137
|
+
string: '{"survey":{"service_user_id":"3ed74be14a79b760b2a02069e4f2650c706b4c869e9bebe2588c6c58cfe12efb"}}'
|
1106
1138
|
headers:
|
1107
1139
|
User-Agent:
|
1108
1140
|
- Faraday v0.9.0
|
@@ -1130,44 +1162,44 @@ http_interactions:
|
|
1130
1162
|
Content-Type:
|
1131
1163
|
- application/json; charset=utf-8
|
1132
1164
|
Etag:
|
1133
|
-
- '"
|
1165
|
+
- '"f36637b8d5f4798c4776608f29a8a486"'
|
1134
1166
|
Cache-Control:
|
1135
1167
|
- max-age=0, private, must-revalidate
|
1136
1168
|
X-Request-Id:
|
1137
|
-
-
|
1169
|
+
- 4273af50-549b-49ed-b6b6-7880a49d0177
|
1138
1170
|
X-Runtime:
|
1139
|
-
- '0.
|
1171
|
+
- '0.085233'
|
1140
1172
|
Server:
|
1141
1173
|
- WEBrick/1.3.1 (Ruby/2.1.2/2014-05-08)
|
1142
1174
|
Date:
|
1143
|
-
-
|
1175
|
+
- Sat, 04 Oct 2014 17:52:44 GMT
|
1144
1176
|
Content-Length:
|
1145
|
-
- '
|
1177
|
+
- '7300'
|
1146
1178
|
Connection:
|
1147
1179
|
- Keep-Alive
|
1148
1180
|
body:
|
1149
1181
|
encoding: UTF-8
|
1150
1182
|
string: |-
|
1151
1183
|
{
|
1152
|
-
"id":
|
1153
|
-
"service_user_id": "
|
1184
|
+
"id": 123,
|
1185
|
+
"service_user_id": "3ed74be14a79b760b2a02069e4f2650c706b4c869e9bebe2588c6c58cfe12efb",
|
1154
1186
|
"_links": {
|
1155
1187
|
"self": {
|
1156
|
-
"href": "http://localhost:3000/api/surveys/
|
1188
|
+
"href": "http://localhost:3000/api/surveys/123"
|
1157
1189
|
},
|
1158
1190
|
"survey_questions": {
|
1159
1191
|
"post": {
|
1160
|
-
"href": "/api/surveys/
|
1192
|
+
"href": "/api/surveys/123/survey_questions"
|
1161
1193
|
},
|
1162
1194
|
"put": {
|
1163
|
-
"href": "/api/surveys/
|
1195
|
+
"href": "/api/surveys/123/survey_questions"
|
1164
1196
|
}
|
1165
1197
|
}
|
1166
1198
|
},
|
1167
1199
|
"completed": false,
|
1168
1200
|
"survey_questions": [
|
1169
1201
|
{
|
1170
|
-
"id":
|
1202
|
+
"id": 486,
|
1171
1203
|
"text": "How do you feel right now?",
|
1172
1204
|
"type": "range",
|
1173
1205
|
"responses": [
|
@@ -1178,21 +1210,21 @@ http_interactions:
|
|
1178
1210
|
"freeform": false,
|
1179
1211
|
"_links": {
|
1180
1212
|
"self": {
|
1181
|
-
"href": "/api/surveys/
|
1213
|
+
"href": "/api/surveys/123/survey_questions/486"
|
1182
1214
|
},
|
1183
1215
|
"post": {
|
1184
|
-
"href": "http://localhost:3000/api/surveys/
|
1216
|
+
"href": "http://localhost:3000/api/surveys/123/survey_questions"
|
1185
1217
|
},
|
1186
1218
|
"put": {
|
1187
|
-
"href": "/api/surveys/
|
1219
|
+
"href": "/api/surveys/123/survey_questions/486"
|
1188
1220
|
},
|
1189
1221
|
"survey": {
|
1190
|
-
"href": "/api/surveys/
|
1222
|
+
"href": "/api/surveys/123"
|
1191
1223
|
}
|
1192
1224
|
}
|
1193
1225
|
},
|
1194
1226
|
{
|
1195
|
-
"id":
|
1227
|
+
"id": 487,
|
1196
1228
|
"text": "Where are you?",
|
1197
1229
|
"type": "multiple",
|
1198
1230
|
"responses": [
|
@@ -1205,105 +1237,1145 @@ http_interactions:
|
|
1205
1237
|
"freeform": true,
|
1206
1238
|
"_links": {
|
1207
1239
|
"self": {
|
1208
|
-
"href": "/api/surveys/
|
1240
|
+
"href": "/api/surveys/123/survey_questions/487"
|
1209
1241
|
},
|
1210
1242
|
"post": {
|
1211
|
-
"href": "http://localhost:3000/api/surveys/
|
1243
|
+
"href": "http://localhost:3000/api/surveys/123/survey_questions"
|
1212
1244
|
},
|
1213
1245
|
"put": {
|
1214
|
-
"href": "/api/surveys/
|
1246
|
+
"href": "/api/surveys/123/survey_questions/487"
|
1215
1247
|
},
|
1216
1248
|
"survey": {
|
1217
|
-
"href": "/api/surveys/
|
1249
|
+
"href": "/api/surveys/123"
|
1218
1250
|
}
|
1219
1251
|
}
|
1220
1252
|
},
|
1221
1253
|
{
|
1222
|
-
"id":
|
1223
|
-
"text": "
|
1254
|
+
"id": 488,
|
1255
|
+
"text": "Do you like poptarts?",
|
1224
1256
|
"type": "multiple",
|
1225
1257
|
"responses": [
|
1226
|
-
"
|
1227
|
-
"
|
1228
|
-
"10-20",
|
1229
|
-
"20-30",
|
1230
|
-
"30-40",
|
1231
|
-
"40-50",
|
1232
|
-
"50-60",
|
1233
|
-
"60-70",
|
1234
|
-
"More than 70"
|
1258
|
+
"Yes",
|
1259
|
+
"No"
|
1235
1260
|
],
|
1236
1261
|
"answer": null,
|
1237
|
-
"freeform":
|
1262
|
+
"freeform": true,
|
1238
1263
|
"_links": {
|
1239
1264
|
"self": {
|
1240
|
-
"href": "/api/surveys/
|
1265
|
+
"href": "/api/surveys/123/survey_questions/488"
|
1241
1266
|
},
|
1242
1267
|
"post": {
|
1243
|
-
"href": "http://localhost:3000/api/surveys/
|
1268
|
+
"href": "http://localhost:3000/api/surveys/123/survey_questions"
|
1244
1269
|
},
|
1245
1270
|
"put": {
|
1246
|
-
"href": "/api/surveys/
|
1271
|
+
"href": "/api/surveys/123/survey_questions/488"
|
1247
1272
|
},
|
1248
1273
|
"survey": {
|
1249
|
-
"href": "/api/surveys/
|
1274
|
+
"href": "/api/surveys/123"
|
1250
1275
|
}
|
1251
1276
|
}
|
1252
1277
|
},
|
1253
1278
|
{
|
1254
|
-
"id":
|
1255
|
-
"text": "
|
1279
|
+
"id": 489,
|
1280
|
+
"text": "Do you like poptarts?",
|
1256
1281
|
"type": "multiple",
|
1257
1282
|
"responses": [
|
1258
|
-
"
|
1259
|
-
"
|
1260
|
-
"Yes - Neutrally",
|
1261
|
-
"Yes - Positively"
|
1283
|
+
"Yes",
|
1284
|
+
"No"
|
1262
1285
|
],
|
1263
1286
|
"answer": null,
|
1264
|
-
"freeform":
|
1287
|
+
"freeform": true,
|
1265
1288
|
"_links": {
|
1266
1289
|
"self": {
|
1267
|
-
"href": "/api/surveys/
|
1290
|
+
"href": "/api/surveys/123/survey_questions/489"
|
1268
1291
|
},
|
1269
1292
|
"post": {
|
1270
|
-
"href": "http://localhost:3000/api/surveys/
|
1293
|
+
"href": "http://localhost:3000/api/surveys/123/survey_questions"
|
1271
1294
|
},
|
1272
1295
|
"put": {
|
1273
|
-
"href": "/api/surveys/
|
1296
|
+
"href": "/api/surveys/123/survey_questions/489"
|
1274
1297
|
},
|
1275
1298
|
"survey": {
|
1276
|
-
"href": "/api/surveys/
|
1299
|
+
"href": "/api/surveys/123"
|
1277
1300
|
}
|
1278
1301
|
}
|
1279
1302
|
},
|
1280
1303
|
{
|
1281
|
-
"id":
|
1282
|
-
"text": "
|
1283
|
-
"type": "
|
1304
|
+
"id": 490,
|
1305
|
+
"text": "Do you love poptarts?",
|
1306
|
+
"type": "multiple",
|
1284
1307
|
"responses": [
|
1285
|
-
"
|
1286
|
-
"
|
1308
|
+
"Yes",
|
1309
|
+
"No"
|
1287
1310
|
],
|
1288
1311
|
"answer": null,
|
1289
|
-
"freeform":
|
1312
|
+
"freeform": true,
|
1313
|
+
"_links": {
|
1314
|
+
"self": {
|
1315
|
+
"href": "/api/surveys/123/survey_questions/490"
|
1316
|
+
},
|
1317
|
+
"post": {
|
1318
|
+
"href": "http://localhost:3000/api/surveys/123/survey_questions"
|
1319
|
+
},
|
1320
|
+
"put": {
|
1321
|
+
"href": "/api/surveys/123/survey_questions/490"
|
1322
|
+
},
|
1323
|
+
"survey": {
|
1324
|
+
"href": "/api/surveys/123"
|
1325
|
+
}
|
1326
|
+
}
|
1327
|
+
},
|
1328
|
+
{
|
1329
|
+
"id": 491,
|
1330
|
+
"text": "Do you love poptarts?",
|
1331
|
+
"type": "multiple",
|
1332
|
+
"responses": [
|
1333
|
+
"Yes",
|
1334
|
+
"No"
|
1335
|
+
],
|
1336
|
+
"answer": null,
|
1337
|
+
"freeform": true,
|
1338
|
+
"_links": {
|
1339
|
+
"self": {
|
1340
|
+
"href": "/api/surveys/123/survey_questions/491"
|
1341
|
+
},
|
1342
|
+
"post": {
|
1343
|
+
"href": "http://localhost:3000/api/surveys/123/survey_questions"
|
1344
|
+
},
|
1345
|
+
"put": {
|
1346
|
+
"href": "/api/surveys/123/survey_questions/491"
|
1347
|
+
},
|
1348
|
+
"survey": {
|
1349
|
+
"href": "/api/surveys/123"
|
1350
|
+
}
|
1351
|
+
}
|
1352
|
+
},
|
1353
|
+
{
|
1354
|
+
"id": 492,
|
1355
|
+
"text": "Do you like poptarts?",
|
1356
|
+
"type": "multiple",
|
1357
|
+
"responses": [
|
1358
|
+
"Yes",
|
1359
|
+
"No"
|
1360
|
+
],
|
1361
|
+
"answer": null,
|
1362
|
+
"freeform": true,
|
1363
|
+
"_links": {
|
1364
|
+
"self": {
|
1365
|
+
"href": "/api/surveys/123/survey_questions/492"
|
1366
|
+
},
|
1367
|
+
"post": {
|
1368
|
+
"href": "http://localhost:3000/api/surveys/123/survey_questions"
|
1369
|
+
},
|
1370
|
+
"put": {
|
1371
|
+
"href": "/api/surveys/123/survey_questions/492"
|
1372
|
+
},
|
1373
|
+
"survey": {
|
1374
|
+
"href": "/api/surveys/123"
|
1375
|
+
}
|
1376
|
+
}
|
1377
|
+
},
|
1378
|
+
{
|
1379
|
+
"id": 493,
|
1380
|
+
"text": "Do you like poptarts?",
|
1381
|
+
"type": "multiple",
|
1382
|
+
"responses": [
|
1383
|
+
"Yes",
|
1384
|
+
"No"
|
1385
|
+
],
|
1386
|
+
"answer": null,
|
1387
|
+
"freeform": true,
|
1388
|
+
"_links": {
|
1389
|
+
"self": {
|
1390
|
+
"href": "/api/surveys/123/survey_questions/493"
|
1391
|
+
},
|
1392
|
+
"post": {
|
1393
|
+
"href": "http://localhost:3000/api/surveys/123/survey_questions"
|
1394
|
+
},
|
1395
|
+
"put": {
|
1396
|
+
"href": "/api/surveys/123/survey_questions/493"
|
1397
|
+
},
|
1398
|
+
"survey": {
|
1399
|
+
"href": "/api/surveys/123"
|
1400
|
+
}
|
1401
|
+
}
|
1402
|
+
},
|
1403
|
+
{
|
1404
|
+
"id": 494,
|
1405
|
+
"text": "Do you like poptarts?",
|
1406
|
+
"type": "multiple",
|
1407
|
+
"responses": [
|
1408
|
+
"Yes",
|
1409
|
+
"No"
|
1410
|
+
],
|
1411
|
+
"answer": null,
|
1412
|
+
"freeform": true,
|
1413
|
+
"_links": {
|
1414
|
+
"self": {
|
1415
|
+
"href": "/api/surveys/123/survey_questions/494"
|
1416
|
+
},
|
1417
|
+
"post": {
|
1418
|
+
"href": "http://localhost:3000/api/surveys/123/survey_questions"
|
1419
|
+
},
|
1420
|
+
"put": {
|
1421
|
+
"href": "/api/surveys/123/survey_questions/494"
|
1422
|
+
},
|
1423
|
+
"survey": {
|
1424
|
+
"href": "/api/surveys/123"
|
1425
|
+
}
|
1426
|
+
}
|
1427
|
+
},
|
1428
|
+
{
|
1429
|
+
"id": 495,
|
1430
|
+
"text": "Do you like poptarts?",
|
1431
|
+
"type": "multiple",
|
1432
|
+
"responses": [
|
1433
|
+
"Yes",
|
1434
|
+
"No"
|
1435
|
+
],
|
1436
|
+
"answer": null,
|
1437
|
+
"freeform": true,
|
1438
|
+
"_links": {
|
1439
|
+
"self": {
|
1440
|
+
"href": "/api/surveys/123/survey_questions/495"
|
1441
|
+
},
|
1442
|
+
"post": {
|
1443
|
+
"href": "http://localhost:3000/api/surveys/123/survey_questions"
|
1444
|
+
},
|
1445
|
+
"put": {
|
1446
|
+
"href": "/api/surveys/123/survey_questions/495"
|
1447
|
+
},
|
1448
|
+
"survey": {
|
1449
|
+
"href": "/api/surveys/123"
|
1450
|
+
}
|
1451
|
+
}
|
1452
|
+
},
|
1453
|
+
{
|
1454
|
+
"id": 496,
|
1455
|
+
"text": "Do you like poptarts?",
|
1456
|
+
"type": "multiple",
|
1457
|
+
"responses": [
|
1458
|
+
"Yes",
|
1459
|
+
"No"
|
1460
|
+
],
|
1461
|
+
"answer": null,
|
1462
|
+
"freeform": true,
|
1463
|
+
"_links": {
|
1464
|
+
"self": {
|
1465
|
+
"href": "/api/surveys/123/survey_questions/496"
|
1466
|
+
},
|
1467
|
+
"post": {
|
1468
|
+
"href": "http://localhost:3000/api/surveys/123/survey_questions"
|
1469
|
+
},
|
1470
|
+
"put": {
|
1471
|
+
"href": "/api/surveys/123/survey_questions/496"
|
1472
|
+
},
|
1473
|
+
"survey": {
|
1474
|
+
"href": "/api/surveys/123"
|
1475
|
+
}
|
1476
|
+
}
|
1477
|
+
},
|
1478
|
+
{
|
1479
|
+
"id": 497,
|
1480
|
+
"text": "Do you love poptarts?",
|
1481
|
+
"type": "multiple",
|
1482
|
+
"responses": [
|
1483
|
+
"Yes",
|
1484
|
+
"No"
|
1485
|
+
],
|
1486
|
+
"answer": null,
|
1487
|
+
"freeform": true,
|
1488
|
+
"_links": {
|
1489
|
+
"self": {
|
1490
|
+
"href": "/api/surveys/123/survey_questions/497"
|
1491
|
+
},
|
1492
|
+
"post": {
|
1493
|
+
"href": "http://localhost:3000/api/surveys/123/survey_questions"
|
1494
|
+
},
|
1495
|
+
"put": {
|
1496
|
+
"href": "/api/surveys/123/survey_questions/497"
|
1497
|
+
},
|
1498
|
+
"survey": {
|
1499
|
+
"href": "/api/surveys/123"
|
1500
|
+
}
|
1501
|
+
}
|
1502
|
+
}
|
1503
|
+
]
|
1504
|
+
}
|
1505
|
+
http_version:
|
1506
|
+
recorded_at: Sat, 04 Oct 2014 17:52:44 GMT
|
1507
|
+
- request:
|
1508
|
+
method: post
|
1509
|
+
uri: http://localhost:3000/api/users//
|
1510
|
+
body:
|
1511
|
+
encoding: UTF-8
|
1512
|
+
string: "{}"
|
1513
|
+
headers:
|
1514
|
+
User-Agent:
|
1515
|
+
- Faraday v0.9.0
|
1516
|
+
Content-Type:
|
1517
|
+
- application/json
|
1518
|
+
Api-Token:
|
1519
|
+
- testing
|
1520
|
+
Accept-Encoding:
|
1521
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
1522
|
+
Accept:
|
1523
|
+
- "*/*"
|
1524
|
+
response:
|
1525
|
+
status:
|
1526
|
+
code: 201
|
1527
|
+
message: 'Created '
|
1528
|
+
headers:
|
1529
|
+
X-Frame-Options:
|
1530
|
+
- SAMEORIGIN
|
1531
|
+
X-Xss-Protection:
|
1532
|
+
- 1; mode=block
|
1533
|
+
X-Content-Type-Options:
|
1534
|
+
- nosniff
|
1535
|
+
X-Ua-Compatible:
|
1536
|
+
- chrome=1
|
1537
|
+
Content-Type:
|
1538
|
+
- application/json; charset=utf-8
|
1539
|
+
Etag:
|
1540
|
+
- '"fc692c7ccaf589476cb91a6c580491ab"'
|
1541
|
+
Cache-Control:
|
1542
|
+
- max-age=0, private, must-revalidate
|
1543
|
+
X-Request-Id:
|
1544
|
+
- c1cae796-fc34-4b89-b2e3-205e1f1413c1
|
1545
|
+
X-Runtime:
|
1546
|
+
- '0.007073'
|
1547
|
+
Server:
|
1548
|
+
- WEBrick/1.3.1 (Ruby/2.1.2/2014-05-08)
|
1549
|
+
Date:
|
1550
|
+
- Sat, 04 Oct 2014 18:11:12 GMT
|
1551
|
+
Content-Length:
|
1552
|
+
- '261'
|
1553
|
+
Connection:
|
1554
|
+
- Keep-Alive
|
1555
|
+
body:
|
1556
|
+
encoding: UTF-8
|
1557
|
+
string: |-
|
1558
|
+
{
|
1559
|
+
"service_user_id": "1137bb0988d40212135e81ed462fee2730643c60e3c17156717408152a9d9e63",
|
1560
|
+
"_links": {
|
1561
|
+
"self": {
|
1562
|
+
"href": "http://localhost:3000/api/users/134"
|
1563
|
+
}
|
1564
|
+
},
|
1565
|
+
"token": "8c51f9bc79862f7e51e6b8e5c33b087f56f6be2288b8eb049612206ca9d046d2"
|
1566
|
+
}
|
1567
|
+
http_version:
|
1568
|
+
recorded_at: Sat, 04 Oct 2014 18:11:12 GMT
|
1569
|
+
- request:
|
1570
|
+
method: post
|
1571
|
+
uri: http://localhost:3000/api/surveys//?random=true
|
1572
|
+
body:
|
1573
|
+
encoding: UTF-8
|
1574
|
+
string: '{"survey":{"service_user_id":"1137bb0988d40212135e81ed462fee2730643c60e3c17156717408152a9d9e63"}}'
|
1575
|
+
headers:
|
1576
|
+
User-Agent:
|
1577
|
+
- Faraday v0.9.0
|
1578
|
+
Content-Type:
|
1579
|
+
- application/json
|
1580
|
+
Api-Token:
|
1581
|
+
- testing
|
1582
|
+
Accept-Encoding:
|
1583
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
1584
|
+
Accept:
|
1585
|
+
- "*/*"
|
1586
|
+
response:
|
1587
|
+
status:
|
1588
|
+
code: 201
|
1589
|
+
message: 'Created '
|
1590
|
+
headers:
|
1591
|
+
X-Frame-Options:
|
1592
|
+
- SAMEORIGIN
|
1593
|
+
X-Xss-Protection:
|
1594
|
+
- 1; mode=block
|
1595
|
+
X-Content-Type-Options:
|
1596
|
+
- nosniff
|
1597
|
+
X-Ua-Compatible:
|
1598
|
+
- chrome=1
|
1599
|
+
Content-Type:
|
1600
|
+
- application/json; charset=utf-8
|
1601
|
+
Etag:
|
1602
|
+
- '"b8f6ddf2ea2a8d9c26367434a0cdd937"'
|
1603
|
+
Cache-Control:
|
1604
|
+
- max-age=0, private, must-revalidate
|
1605
|
+
X-Request-Id:
|
1606
|
+
- 8ecb82e2-cd9e-46f5-a1df-ac98e2043823
|
1607
|
+
X-Runtime:
|
1608
|
+
- '0.070170'
|
1609
|
+
Server:
|
1610
|
+
- WEBrick/1.3.1 (Ruby/2.1.2/2014-05-08)
|
1611
|
+
Date:
|
1612
|
+
- Sat, 04 Oct 2014 18:11:12 GMT
|
1613
|
+
Content-Length:
|
1614
|
+
- '8056'
|
1615
|
+
Connection:
|
1616
|
+
- Keep-Alive
|
1617
|
+
body:
|
1618
|
+
encoding: UTF-8
|
1619
|
+
string: |-
|
1620
|
+
{
|
1621
|
+
"id": 138,
|
1622
|
+
"service_user_id": "1137bb0988d40212135e81ed462fee2730643c60e3c17156717408152a9d9e63",
|
1623
|
+
"_links": {
|
1624
|
+
"self": {
|
1625
|
+
"href": "http://localhost:3000/api/surveys/138"
|
1626
|
+
},
|
1627
|
+
"survey_questions": {
|
1628
|
+
"post": {
|
1629
|
+
"href": "/api/surveys/138/survey_questions"
|
1630
|
+
},
|
1631
|
+
"put": {
|
1632
|
+
"href": "/api/surveys/138/survey_questions"
|
1633
|
+
}
|
1634
|
+
}
|
1635
|
+
},
|
1636
|
+
"completed": false,
|
1637
|
+
"survey_questions": [
|
1638
|
+
{
|
1639
|
+
"id": 642,
|
1640
|
+
"text": "How do you feel right now?",
|
1641
|
+
"type": "range",
|
1642
|
+
"responses": [
|
1643
|
+
"0",
|
1644
|
+
"10"
|
1645
|
+
],
|
1646
|
+
"answer": null,
|
1647
|
+
"freeform": false,
|
1648
|
+
"_links": {
|
1649
|
+
"self": {
|
1650
|
+
"href": "http://localhost:3000/api/surveys/138/survey_questions/642"
|
1651
|
+
},
|
1652
|
+
"post": {
|
1653
|
+
"href": "http://localhost:3000/api/surveys/138/survey_questions"
|
1654
|
+
},
|
1655
|
+
"put": {
|
1656
|
+
"href": "http://localhost:3000/api/surveys/138/survey_questions/642"
|
1657
|
+
},
|
1658
|
+
"survey": {
|
1659
|
+
"href": "http://localhost:3000/api/surveys/138"
|
1660
|
+
}
|
1661
|
+
}
|
1662
|
+
},
|
1663
|
+
{
|
1664
|
+
"id": 643,
|
1665
|
+
"text": "Where are you?",
|
1666
|
+
"type": "multiple",
|
1667
|
+
"responses": [
|
1668
|
+
"At Home",
|
1669
|
+
"At Work",
|
1670
|
+
"In a car",
|
1671
|
+
"Other"
|
1672
|
+
],
|
1673
|
+
"answer": null,
|
1674
|
+
"freeform": true,
|
1675
|
+
"_links": {
|
1676
|
+
"self": {
|
1677
|
+
"href": "http://localhost:3000/api/surveys/138/survey_questions/643"
|
1678
|
+
},
|
1679
|
+
"post": {
|
1680
|
+
"href": "http://localhost:3000/api/surveys/138/survey_questions"
|
1681
|
+
},
|
1682
|
+
"put": {
|
1683
|
+
"href": "http://localhost:3000/api/surveys/138/survey_questions/643"
|
1684
|
+
},
|
1685
|
+
"survey": {
|
1686
|
+
"href": "http://localhost:3000/api/surveys/138"
|
1687
|
+
}
|
1688
|
+
}
|
1689
|
+
},
|
1690
|
+
{
|
1691
|
+
"id": 644,
|
1692
|
+
"text": "Do you like poptarts?",
|
1693
|
+
"type": "multiple",
|
1694
|
+
"responses": [
|
1695
|
+
"Yes",
|
1696
|
+
"No"
|
1697
|
+
],
|
1698
|
+
"answer": null,
|
1699
|
+
"freeform": true,
|
1700
|
+
"_links": {
|
1701
|
+
"self": {
|
1702
|
+
"href": "http://localhost:3000/api/surveys/138/survey_questions/644"
|
1703
|
+
},
|
1704
|
+
"post": {
|
1705
|
+
"href": "http://localhost:3000/api/surveys/138/survey_questions"
|
1706
|
+
},
|
1707
|
+
"put": {
|
1708
|
+
"href": "http://localhost:3000/api/surveys/138/survey_questions/644"
|
1709
|
+
},
|
1710
|
+
"survey": {
|
1711
|
+
"href": "http://localhost:3000/api/surveys/138"
|
1712
|
+
}
|
1713
|
+
}
|
1714
|
+
},
|
1715
|
+
{
|
1716
|
+
"id": 645,
|
1717
|
+
"text": "Do you like poptarts?",
|
1718
|
+
"type": "multiple",
|
1719
|
+
"responses": [
|
1720
|
+
"Yes",
|
1721
|
+
"No"
|
1722
|
+
],
|
1723
|
+
"answer": null,
|
1724
|
+
"freeform": true,
|
1725
|
+
"_links": {
|
1726
|
+
"self": {
|
1727
|
+
"href": "http://localhost:3000/api/surveys/138/survey_questions/645"
|
1728
|
+
},
|
1729
|
+
"post": {
|
1730
|
+
"href": "http://localhost:3000/api/surveys/138/survey_questions"
|
1731
|
+
},
|
1732
|
+
"put": {
|
1733
|
+
"href": "http://localhost:3000/api/surveys/138/survey_questions/645"
|
1734
|
+
},
|
1735
|
+
"survey": {
|
1736
|
+
"href": "http://localhost:3000/api/surveys/138"
|
1737
|
+
}
|
1738
|
+
}
|
1739
|
+
},
|
1740
|
+
{
|
1741
|
+
"id": 646,
|
1742
|
+
"text": "Do you love poptarts?",
|
1743
|
+
"type": "multiple",
|
1744
|
+
"responses": [
|
1745
|
+
"Yes",
|
1746
|
+
"No"
|
1747
|
+
],
|
1748
|
+
"answer": null,
|
1749
|
+
"freeform": true,
|
1750
|
+
"_links": {
|
1751
|
+
"self": {
|
1752
|
+
"href": "http://localhost:3000/api/surveys/138/survey_questions/646"
|
1753
|
+
},
|
1754
|
+
"post": {
|
1755
|
+
"href": "http://localhost:3000/api/surveys/138/survey_questions"
|
1756
|
+
},
|
1757
|
+
"put": {
|
1758
|
+
"href": "http://localhost:3000/api/surveys/138/survey_questions/646"
|
1759
|
+
},
|
1760
|
+
"survey": {
|
1761
|
+
"href": "http://localhost:3000/api/surveys/138"
|
1762
|
+
}
|
1763
|
+
}
|
1764
|
+
},
|
1765
|
+
{
|
1766
|
+
"id": 647,
|
1767
|
+
"text": "Do you love poptarts?",
|
1768
|
+
"type": "multiple",
|
1769
|
+
"responses": [
|
1770
|
+
"Yes",
|
1771
|
+
"No"
|
1772
|
+
],
|
1773
|
+
"answer": null,
|
1774
|
+
"freeform": true,
|
1775
|
+
"_links": {
|
1776
|
+
"self": {
|
1777
|
+
"href": "http://localhost:3000/api/surveys/138/survey_questions/647"
|
1778
|
+
},
|
1779
|
+
"post": {
|
1780
|
+
"href": "http://localhost:3000/api/surveys/138/survey_questions"
|
1781
|
+
},
|
1782
|
+
"put": {
|
1783
|
+
"href": "http://localhost:3000/api/surveys/138/survey_questions/647"
|
1784
|
+
},
|
1785
|
+
"survey": {
|
1786
|
+
"href": "http://localhost:3000/api/surveys/138"
|
1787
|
+
}
|
1788
|
+
}
|
1789
|
+
},
|
1790
|
+
{
|
1791
|
+
"id": 648,
|
1792
|
+
"text": "Do you like poptarts?",
|
1793
|
+
"type": "multiple",
|
1794
|
+
"responses": [
|
1795
|
+
"Yes",
|
1796
|
+
"No"
|
1797
|
+
],
|
1798
|
+
"answer": null,
|
1799
|
+
"freeform": true,
|
1800
|
+
"_links": {
|
1801
|
+
"self": {
|
1802
|
+
"href": "http://localhost:3000/api/surveys/138/survey_questions/648"
|
1803
|
+
},
|
1804
|
+
"post": {
|
1805
|
+
"href": "http://localhost:3000/api/surveys/138/survey_questions"
|
1806
|
+
},
|
1807
|
+
"put": {
|
1808
|
+
"href": "http://localhost:3000/api/surveys/138/survey_questions/648"
|
1809
|
+
},
|
1810
|
+
"survey": {
|
1811
|
+
"href": "http://localhost:3000/api/surveys/138"
|
1812
|
+
}
|
1813
|
+
}
|
1814
|
+
},
|
1815
|
+
{
|
1816
|
+
"id": 649,
|
1817
|
+
"text": "Do you like poptarts?",
|
1818
|
+
"type": "multiple",
|
1819
|
+
"responses": [
|
1820
|
+
"Yes",
|
1821
|
+
"No"
|
1822
|
+
],
|
1823
|
+
"answer": null,
|
1824
|
+
"freeform": true,
|
1825
|
+
"_links": {
|
1826
|
+
"self": {
|
1827
|
+
"href": "http://localhost:3000/api/surveys/138/survey_questions/649"
|
1828
|
+
},
|
1829
|
+
"post": {
|
1830
|
+
"href": "http://localhost:3000/api/surveys/138/survey_questions"
|
1831
|
+
},
|
1832
|
+
"put": {
|
1833
|
+
"href": "http://localhost:3000/api/surveys/138/survey_questions/649"
|
1834
|
+
},
|
1835
|
+
"survey": {
|
1836
|
+
"href": "http://localhost:3000/api/surveys/138"
|
1837
|
+
}
|
1838
|
+
}
|
1839
|
+
},
|
1840
|
+
{
|
1841
|
+
"id": 650,
|
1842
|
+
"text": "Do you like poptarts?",
|
1843
|
+
"type": "multiple",
|
1844
|
+
"responses": [
|
1845
|
+
"Yes",
|
1846
|
+
"No"
|
1847
|
+
],
|
1848
|
+
"answer": null,
|
1849
|
+
"freeform": true,
|
1850
|
+
"_links": {
|
1851
|
+
"self": {
|
1852
|
+
"href": "http://localhost:3000/api/surveys/138/survey_questions/650"
|
1853
|
+
},
|
1854
|
+
"post": {
|
1855
|
+
"href": "http://localhost:3000/api/surveys/138/survey_questions"
|
1856
|
+
},
|
1857
|
+
"put": {
|
1858
|
+
"href": "http://localhost:3000/api/surveys/138/survey_questions/650"
|
1859
|
+
},
|
1860
|
+
"survey": {
|
1861
|
+
"href": "http://localhost:3000/api/surveys/138"
|
1862
|
+
}
|
1863
|
+
}
|
1864
|
+
},
|
1865
|
+
{
|
1866
|
+
"id": 651,
|
1867
|
+
"text": "Do you like poptarts?",
|
1868
|
+
"type": "multiple",
|
1869
|
+
"responses": [
|
1870
|
+
"Yes",
|
1871
|
+
"No"
|
1872
|
+
],
|
1873
|
+
"answer": null,
|
1874
|
+
"freeform": true,
|
1875
|
+
"_links": {
|
1876
|
+
"self": {
|
1877
|
+
"href": "http://localhost:3000/api/surveys/138/survey_questions/651"
|
1878
|
+
},
|
1879
|
+
"post": {
|
1880
|
+
"href": "http://localhost:3000/api/surveys/138/survey_questions"
|
1881
|
+
},
|
1882
|
+
"put": {
|
1883
|
+
"href": "http://localhost:3000/api/surveys/138/survey_questions/651"
|
1884
|
+
},
|
1885
|
+
"survey": {
|
1886
|
+
"href": "http://localhost:3000/api/surveys/138"
|
1887
|
+
}
|
1888
|
+
}
|
1889
|
+
},
|
1890
|
+
{
|
1891
|
+
"id": 652,
|
1892
|
+
"text": "Do you like poptarts?",
|
1893
|
+
"type": "multiple",
|
1894
|
+
"responses": [
|
1895
|
+
"Yes",
|
1896
|
+
"No"
|
1897
|
+
],
|
1898
|
+
"answer": null,
|
1899
|
+
"freeform": true,
|
1900
|
+
"_links": {
|
1901
|
+
"self": {
|
1902
|
+
"href": "http://localhost:3000/api/surveys/138/survey_questions/652"
|
1903
|
+
},
|
1904
|
+
"post": {
|
1905
|
+
"href": "http://localhost:3000/api/surveys/138/survey_questions"
|
1906
|
+
},
|
1907
|
+
"put": {
|
1908
|
+
"href": "http://localhost:3000/api/surveys/138/survey_questions/652"
|
1909
|
+
},
|
1910
|
+
"survey": {
|
1911
|
+
"href": "http://localhost:3000/api/surveys/138"
|
1912
|
+
}
|
1913
|
+
}
|
1914
|
+
},
|
1915
|
+
{
|
1916
|
+
"id": 653,
|
1917
|
+
"text": "Do you love poptarts?",
|
1918
|
+
"type": "multiple",
|
1919
|
+
"responses": [
|
1920
|
+
"Yes",
|
1921
|
+
"No"
|
1922
|
+
],
|
1923
|
+
"answer": null,
|
1924
|
+
"freeform": true,
|
1925
|
+
"_links": {
|
1926
|
+
"self": {
|
1927
|
+
"href": "http://localhost:3000/api/surveys/138/survey_questions/653"
|
1928
|
+
},
|
1929
|
+
"post": {
|
1930
|
+
"href": "http://localhost:3000/api/surveys/138/survey_questions"
|
1931
|
+
},
|
1932
|
+
"put": {
|
1933
|
+
"href": "http://localhost:3000/api/surveys/138/survey_questions/653"
|
1934
|
+
},
|
1935
|
+
"survey": {
|
1936
|
+
"href": "http://localhost:3000/api/surveys/138"
|
1937
|
+
}
|
1938
|
+
}
|
1939
|
+
}
|
1940
|
+
]
|
1941
|
+
}
|
1942
|
+
http_version:
|
1943
|
+
recorded_at: Sat, 04 Oct 2014 18:11:12 GMT
|
1944
|
+
- request:
|
1945
|
+
method: post
|
1946
|
+
uri: http://localhost:3000/api/users
|
1947
|
+
body:
|
1948
|
+
encoding: UTF-8
|
1949
|
+
string: "{}"
|
1950
|
+
headers:
|
1951
|
+
User-Agent:
|
1952
|
+
- Faraday v0.9.0
|
1953
|
+
Content-Type:
|
1954
|
+
- application/json
|
1955
|
+
Api-Token:
|
1956
|
+
- testing
|
1957
|
+
Accept-Encoding:
|
1958
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
1959
|
+
Accept:
|
1960
|
+
- "*/*"
|
1961
|
+
response:
|
1962
|
+
status:
|
1963
|
+
code: 201
|
1964
|
+
message: 'Created '
|
1965
|
+
headers:
|
1966
|
+
X-Frame-Options:
|
1967
|
+
- SAMEORIGIN
|
1968
|
+
X-Xss-Protection:
|
1969
|
+
- 1; mode=block
|
1970
|
+
X-Content-Type-Options:
|
1971
|
+
- nosniff
|
1972
|
+
X-Ua-Compatible:
|
1973
|
+
- chrome=1
|
1974
|
+
Content-Type:
|
1975
|
+
- application/json; charset=utf-8
|
1976
|
+
Etag:
|
1977
|
+
- '"627191e4146cdc30e988ff0a96e0753a"'
|
1978
|
+
Cache-Control:
|
1979
|
+
- max-age=0, private, must-revalidate
|
1980
|
+
X-Request-Id:
|
1981
|
+
- 41b3878c-6281-456d-90fc-aff17addc771
|
1982
|
+
X-Runtime:
|
1983
|
+
- '0.006398'
|
1984
|
+
Server:
|
1985
|
+
- WEBrick/1.3.1 (Ruby/2.1.2/2014-05-08)
|
1986
|
+
Date:
|
1987
|
+
- Sun, 05 Oct 2014 12:53:40 GMT
|
1988
|
+
Content-Length:
|
1989
|
+
- '261'
|
1990
|
+
Connection:
|
1991
|
+
- Keep-Alive
|
1992
|
+
body:
|
1993
|
+
encoding: UTF-8
|
1994
|
+
string: |-
|
1995
|
+
{
|
1996
|
+
"service_user_id": "1f3b3de9bb7fb10d149ac41d384e3fa54bc63b009175539d256ba9c57ba396f9",
|
1997
|
+
"_links": {
|
1998
|
+
"self": {
|
1999
|
+
"href": "http://localhost:3000/api/users/208"
|
2000
|
+
}
|
2001
|
+
},
|
2002
|
+
"token": "f78b819f60159337ea556e00e08d677a0746dc3a5afc3eb21fca7d7ee9290e6c"
|
2003
|
+
}
|
2004
|
+
http_version:
|
2005
|
+
recorded_at: Sun, 05 Oct 2014 12:53:40 GMT
|
2006
|
+
- request:
|
2007
|
+
method: post
|
2008
|
+
uri: http://localhost:3000/api/surveys?random=true
|
2009
|
+
body:
|
2010
|
+
encoding: UTF-8
|
2011
|
+
string: '{"survey":{"service_user_id":"1f3b3de9bb7fb10d149ac41d384e3fa54bc63b009175539d256ba9c57ba396f9"}}'
|
2012
|
+
headers:
|
2013
|
+
User-Agent:
|
2014
|
+
- Faraday v0.9.0
|
2015
|
+
Content-Type:
|
2016
|
+
- application/json
|
2017
|
+
Api-Token:
|
2018
|
+
- testing
|
2019
|
+
Accept-Encoding:
|
2020
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
2021
|
+
Accept:
|
2022
|
+
- "*/*"
|
2023
|
+
response:
|
2024
|
+
status:
|
2025
|
+
code: 201
|
2026
|
+
message: 'Created '
|
2027
|
+
headers:
|
2028
|
+
X-Frame-Options:
|
2029
|
+
- SAMEORIGIN
|
2030
|
+
X-Xss-Protection:
|
2031
|
+
- 1; mode=block
|
2032
|
+
X-Content-Type-Options:
|
2033
|
+
- nosniff
|
2034
|
+
X-Ua-Compatible:
|
2035
|
+
- chrome=1
|
2036
|
+
Content-Type:
|
2037
|
+
- application/json; charset=utf-8
|
2038
|
+
Etag:
|
2039
|
+
- '"8884eb7a1ab4a82882034ac7eb3c4eee"'
|
2040
|
+
Cache-Control:
|
2041
|
+
- max-age=0, private, must-revalidate
|
2042
|
+
X-Request-Id:
|
2043
|
+
- 36a0d35e-82e9-4b00-809e-6d80939a46de
|
2044
|
+
X-Runtime:
|
2045
|
+
- '0.081621'
|
2046
|
+
Server:
|
2047
|
+
- WEBrick/1.3.1 (Ruby/2.1.2/2014-05-08)
|
2048
|
+
Date:
|
2049
|
+
- Sun, 05 Oct 2014 12:53:40 GMT
|
2050
|
+
Content-Length:
|
2051
|
+
- '8098'
|
2052
|
+
Connection:
|
2053
|
+
- Keep-Alive
|
2054
|
+
body:
|
2055
|
+
encoding: UTF-8
|
2056
|
+
string: |-
|
2057
|
+
{
|
2058
|
+
"id": 234,
|
2059
|
+
"service_user_id": "1f3b3de9bb7fb10d149ac41d384e3fa54bc63b009175539d256ba9c57ba396f9",
|
2060
|
+
"_links": {
|
2061
|
+
"self": {
|
2062
|
+
"href": "http://localhost:3000/api/surveys/234"
|
2063
|
+
},
|
2064
|
+
"survey_questions": {
|
2065
|
+
"post": {
|
2066
|
+
"href": "http://localhost:3000/api/surveys/234/survey_questions"
|
2067
|
+
},
|
2068
|
+
"put": {
|
2069
|
+
"href": "http://localhost:3000/api/surveys/234/survey_questions"
|
2070
|
+
}
|
2071
|
+
}
|
2072
|
+
},
|
2073
|
+
"completed": false,
|
2074
|
+
"survey_questions": [
|
2075
|
+
{
|
2076
|
+
"id": 983,
|
2077
|
+
"text": "How do you feel right now?",
|
2078
|
+
"type": "range",
|
2079
|
+
"responses": [
|
2080
|
+
"0",
|
2081
|
+
"10"
|
2082
|
+
],
|
2083
|
+
"answer": null,
|
2084
|
+
"freeform": false,
|
2085
|
+
"_links": {
|
2086
|
+
"self": {
|
2087
|
+
"href": "http://localhost:3000/api/surveys/234/survey_questions/983"
|
2088
|
+
},
|
2089
|
+
"post": {
|
2090
|
+
"href": "http://localhost:3000/api/surveys/234/survey_questions"
|
2091
|
+
},
|
2092
|
+
"put": {
|
2093
|
+
"href": "http://localhost:3000/api/surveys/234/survey_questions/983"
|
2094
|
+
},
|
2095
|
+
"survey": {
|
2096
|
+
"href": "http://localhost:3000/api/surveys/234"
|
2097
|
+
}
|
2098
|
+
}
|
2099
|
+
},
|
2100
|
+
{
|
2101
|
+
"id": 984,
|
2102
|
+
"text": "Where are you?",
|
2103
|
+
"type": "multiple",
|
2104
|
+
"responses": [
|
2105
|
+
"At Home",
|
2106
|
+
"At Work",
|
2107
|
+
"In a car",
|
2108
|
+
"Other"
|
2109
|
+
],
|
2110
|
+
"answer": null,
|
2111
|
+
"freeform": true,
|
2112
|
+
"_links": {
|
2113
|
+
"self": {
|
2114
|
+
"href": "http://localhost:3000/api/surveys/234/survey_questions/984"
|
2115
|
+
},
|
2116
|
+
"post": {
|
2117
|
+
"href": "http://localhost:3000/api/surveys/234/survey_questions"
|
2118
|
+
},
|
2119
|
+
"put": {
|
2120
|
+
"href": "http://localhost:3000/api/surveys/234/survey_questions/984"
|
2121
|
+
},
|
2122
|
+
"survey": {
|
2123
|
+
"href": "http://localhost:3000/api/surveys/234"
|
2124
|
+
}
|
2125
|
+
}
|
2126
|
+
},
|
2127
|
+
{
|
2128
|
+
"id": 985,
|
2129
|
+
"text": "Do you like poptarts?",
|
2130
|
+
"type": "multiple",
|
2131
|
+
"responses": [
|
2132
|
+
"Yes",
|
2133
|
+
"No"
|
2134
|
+
],
|
2135
|
+
"answer": null,
|
2136
|
+
"freeform": true,
|
2137
|
+
"_links": {
|
2138
|
+
"self": {
|
2139
|
+
"href": "http://localhost:3000/api/surveys/234/survey_questions/985"
|
2140
|
+
},
|
2141
|
+
"post": {
|
2142
|
+
"href": "http://localhost:3000/api/surveys/234/survey_questions"
|
2143
|
+
},
|
2144
|
+
"put": {
|
2145
|
+
"href": "http://localhost:3000/api/surveys/234/survey_questions/985"
|
2146
|
+
},
|
2147
|
+
"survey": {
|
2148
|
+
"href": "http://localhost:3000/api/surveys/234"
|
2149
|
+
}
|
2150
|
+
}
|
2151
|
+
},
|
2152
|
+
{
|
2153
|
+
"id": 986,
|
2154
|
+
"text": "Do you like poptarts?",
|
2155
|
+
"type": "multiple",
|
2156
|
+
"responses": [
|
2157
|
+
"Yes",
|
2158
|
+
"No"
|
2159
|
+
],
|
2160
|
+
"answer": null,
|
2161
|
+
"freeform": true,
|
2162
|
+
"_links": {
|
2163
|
+
"self": {
|
2164
|
+
"href": "http://localhost:3000/api/surveys/234/survey_questions/986"
|
2165
|
+
},
|
2166
|
+
"post": {
|
2167
|
+
"href": "http://localhost:3000/api/surveys/234/survey_questions"
|
2168
|
+
},
|
2169
|
+
"put": {
|
2170
|
+
"href": "http://localhost:3000/api/surveys/234/survey_questions/986"
|
2171
|
+
},
|
2172
|
+
"survey": {
|
2173
|
+
"href": "http://localhost:3000/api/surveys/234"
|
2174
|
+
}
|
2175
|
+
}
|
2176
|
+
},
|
2177
|
+
{
|
2178
|
+
"id": 987,
|
2179
|
+
"text": "Do you love poptarts?",
|
2180
|
+
"type": "multiple",
|
2181
|
+
"responses": [
|
2182
|
+
"Yes",
|
2183
|
+
"No"
|
2184
|
+
],
|
2185
|
+
"answer": null,
|
2186
|
+
"freeform": true,
|
2187
|
+
"_links": {
|
2188
|
+
"self": {
|
2189
|
+
"href": "http://localhost:3000/api/surveys/234/survey_questions/987"
|
2190
|
+
},
|
2191
|
+
"post": {
|
2192
|
+
"href": "http://localhost:3000/api/surveys/234/survey_questions"
|
2193
|
+
},
|
2194
|
+
"put": {
|
2195
|
+
"href": "http://localhost:3000/api/surveys/234/survey_questions/987"
|
2196
|
+
},
|
2197
|
+
"survey": {
|
2198
|
+
"href": "http://localhost:3000/api/surveys/234"
|
2199
|
+
}
|
2200
|
+
}
|
2201
|
+
},
|
2202
|
+
{
|
2203
|
+
"id": 988,
|
2204
|
+
"text": "Do you love poptarts?",
|
2205
|
+
"type": "multiple",
|
2206
|
+
"responses": [
|
2207
|
+
"Yes",
|
2208
|
+
"No"
|
2209
|
+
],
|
2210
|
+
"answer": null,
|
2211
|
+
"freeform": true,
|
2212
|
+
"_links": {
|
2213
|
+
"self": {
|
2214
|
+
"href": "http://localhost:3000/api/surveys/234/survey_questions/988"
|
2215
|
+
},
|
2216
|
+
"post": {
|
2217
|
+
"href": "http://localhost:3000/api/surveys/234/survey_questions"
|
2218
|
+
},
|
2219
|
+
"put": {
|
2220
|
+
"href": "http://localhost:3000/api/surveys/234/survey_questions/988"
|
2221
|
+
},
|
2222
|
+
"survey": {
|
2223
|
+
"href": "http://localhost:3000/api/surveys/234"
|
2224
|
+
}
|
2225
|
+
}
|
2226
|
+
},
|
2227
|
+
{
|
2228
|
+
"id": 989,
|
2229
|
+
"text": "Do you like poptarts?",
|
2230
|
+
"type": "multiple",
|
2231
|
+
"responses": [
|
2232
|
+
"Yes",
|
2233
|
+
"No"
|
2234
|
+
],
|
2235
|
+
"answer": null,
|
2236
|
+
"freeform": true,
|
2237
|
+
"_links": {
|
2238
|
+
"self": {
|
2239
|
+
"href": "http://localhost:3000/api/surveys/234/survey_questions/989"
|
2240
|
+
},
|
2241
|
+
"post": {
|
2242
|
+
"href": "http://localhost:3000/api/surveys/234/survey_questions"
|
2243
|
+
},
|
2244
|
+
"put": {
|
2245
|
+
"href": "http://localhost:3000/api/surveys/234/survey_questions/989"
|
2246
|
+
},
|
2247
|
+
"survey": {
|
2248
|
+
"href": "http://localhost:3000/api/surveys/234"
|
2249
|
+
}
|
2250
|
+
}
|
2251
|
+
},
|
2252
|
+
{
|
2253
|
+
"id": 990,
|
2254
|
+
"text": "Do you like poptarts?",
|
2255
|
+
"type": "multiple",
|
2256
|
+
"responses": [
|
2257
|
+
"Yes",
|
2258
|
+
"No"
|
2259
|
+
],
|
2260
|
+
"answer": null,
|
2261
|
+
"freeform": true,
|
2262
|
+
"_links": {
|
2263
|
+
"self": {
|
2264
|
+
"href": "http://localhost:3000/api/surveys/234/survey_questions/990"
|
2265
|
+
},
|
2266
|
+
"post": {
|
2267
|
+
"href": "http://localhost:3000/api/surveys/234/survey_questions"
|
2268
|
+
},
|
2269
|
+
"put": {
|
2270
|
+
"href": "http://localhost:3000/api/surveys/234/survey_questions/990"
|
2271
|
+
},
|
2272
|
+
"survey": {
|
2273
|
+
"href": "http://localhost:3000/api/surveys/234"
|
2274
|
+
}
|
2275
|
+
}
|
2276
|
+
},
|
2277
|
+
{
|
2278
|
+
"id": 991,
|
2279
|
+
"text": "Do you like poptarts?",
|
2280
|
+
"type": "multiple",
|
2281
|
+
"responses": [
|
2282
|
+
"Yes",
|
2283
|
+
"No"
|
2284
|
+
],
|
2285
|
+
"answer": null,
|
2286
|
+
"freeform": true,
|
2287
|
+
"_links": {
|
2288
|
+
"self": {
|
2289
|
+
"href": "http://localhost:3000/api/surveys/234/survey_questions/991"
|
2290
|
+
},
|
2291
|
+
"post": {
|
2292
|
+
"href": "http://localhost:3000/api/surveys/234/survey_questions"
|
2293
|
+
},
|
2294
|
+
"put": {
|
2295
|
+
"href": "http://localhost:3000/api/surveys/234/survey_questions/991"
|
2296
|
+
},
|
2297
|
+
"survey": {
|
2298
|
+
"href": "http://localhost:3000/api/surveys/234"
|
2299
|
+
}
|
2300
|
+
}
|
2301
|
+
},
|
2302
|
+
{
|
2303
|
+
"id": 992,
|
2304
|
+
"text": "Do you like poptarts?",
|
2305
|
+
"type": "multiple",
|
2306
|
+
"responses": [
|
2307
|
+
"Yes",
|
2308
|
+
"No"
|
2309
|
+
],
|
2310
|
+
"answer": null,
|
2311
|
+
"freeform": true,
|
2312
|
+
"_links": {
|
2313
|
+
"self": {
|
2314
|
+
"href": "http://localhost:3000/api/surveys/234/survey_questions/992"
|
2315
|
+
},
|
2316
|
+
"post": {
|
2317
|
+
"href": "http://localhost:3000/api/surveys/234/survey_questions"
|
2318
|
+
},
|
2319
|
+
"put": {
|
2320
|
+
"href": "http://localhost:3000/api/surveys/234/survey_questions/992"
|
2321
|
+
},
|
2322
|
+
"survey": {
|
2323
|
+
"href": "http://localhost:3000/api/surveys/234"
|
2324
|
+
}
|
2325
|
+
}
|
2326
|
+
},
|
2327
|
+
{
|
2328
|
+
"id": 993,
|
2329
|
+
"text": "Do you like poptarts?",
|
2330
|
+
"type": "multiple",
|
2331
|
+
"responses": [
|
2332
|
+
"Yes",
|
2333
|
+
"No"
|
2334
|
+
],
|
2335
|
+
"answer": null,
|
2336
|
+
"freeform": true,
|
2337
|
+
"_links": {
|
2338
|
+
"self": {
|
2339
|
+
"href": "http://localhost:3000/api/surveys/234/survey_questions/993"
|
2340
|
+
},
|
2341
|
+
"post": {
|
2342
|
+
"href": "http://localhost:3000/api/surveys/234/survey_questions"
|
2343
|
+
},
|
2344
|
+
"put": {
|
2345
|
+
"href": "http://localhost:3000/api/surveys/234/survey_questions/993"
|
2346
|
+
},
|
2347
|
+
"survey": {
|
2348
|
+
"href": "http://localhost:3000/api/surveys/234"
|
2349
|
+
}
|
2350
|
+
}
|
2351
|
+
},
|
2352
|
+
{
|
2353
|
+
"id": 994,
|
2354
|
+
"text": "Do you love poptarts?",
|
2355
|
+
"type": "multiple",
|
2356
|
+
"responses": [
|
2357
|
+
"Yes",
|
2358
|
+
"No"
|
2359
|
+
],
|
2360
|
+
"answer": null,
|
2361
|
+
"freeform": true,
|
1290
2362
|
"_links": {
|
1291
2363
|
"self": {
|
1292
|
-
"href": "/api/surveys/
|
2364
|
+
"href": "http://localhost:3000/api/surveys/234/survey_questions/994"
|
1293
2365
|
},
|
1294
2366
|
"post": {
|
1295
|
-
"href": "http://localhost:3000/api/surveys/
|
2367
|
+
"href": "http://localhost:3000/api/surveys/234/survey_questions"
|
1296
2368
|
},
|
1297
2369
|
"put": {
|
1298
|
-
"href": "/api/surveys/
|
2370
|
+
"href": "http://localhost:3000/api/surveys/234/survey_questions/994"
|
1299
2371
|
},
|
1300
2372
|
"survey": {
|
1301
|
-
"href": "/api/surveys/
|
2373
|
+
"href": "http://localhost:3000/api/surveys/234"
|
1302
2374
|
}
|
1303
2375
|
}
|
1304
2376
|
}
|
1305
2377
|
]
|
1306
2378
|
}
|
1307
2379
|
http_version:
|
1308
|
-
recorded_at: Sun,
|
2380
|
+
recorded_at: Sun, 05 Oct 2014 12:53:40 GMT
|
1309
2381
|
recorded_with: VCR 2.6.0
|