poptart 0.0.7 → 0.0.8
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 +28 -4
- data/lib/poptart/boolean_question.rb +14 -0
- data/lib/poptart/multiple_response_question.rb +9 -0
- data/lib/poptart/question.rb +14 -1
- data/lib/poptart/range_question.rb +9 -0
- data/lib/poptart/survey.rb +3 -1
- data/lib/poptart/user.rb +0 -5
- data/lib/poptart.rb +3 -0
- data/lib/version.rb +1 -1
- data/spec/requests/answering_survey_questions_spec.rb +2 -6
- data/spec/requests/answers_spec.rb +24 -0
- data/spec/requests/creating_questions_spec.rb +29 -0
- data/spec/vcr/answering/survey_questions_answers_a_multiple_choice_question.yml +381 -154
- data/spec/vcr/answering/survey_questions_answers_a_survey_question.yml +528 -329
- data/spec/vcr/creating/quesitons_returns_boolean_question.yml +207 -0
- data/spec/vcr/creating/quesitons_returns_multiple_question.yml +207 -0
- data/spec/vcr/creating/quesitons_returns_range_question.yml +206 -0
- data/spec/vcr/retrieving/answers_returns_answers.yml +1073 -0
- data/spec/vcr/retrieving/responses_returns_responses.yml +1198 -0
- metadata +19 -2
@@ -0,0 +1,207 @@
|
|
1
|
+
---
|
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
|
+
- '"c4942090acbc96722cba50e4cecfde73"'
|
37
|
+
Cache-Control:
|
38
|
+
- max-age=0, private, must-revalidate
|
39
|
+
X-Request-Id:
|
40
|
+
- 113c8f43-e501-443b-b60b-675bf5686eea
|
41
|
+
X-Runtime:
|
42
|
+
- '0.004541'
|
43
|
+
Server:
|
44
|
+
- WEBrick/1.3.1 (Ruby/2.1.2/2014-05-08)
|
45
|
+
Date:
|
46
|
+
- Sun, 28 Sep 2014 14:43:00 GMT
|
47
|
+
Content-Length:
|
48
|
+
- '236'
|
49
|
+
Connection:
|
50
|
+
- Keep-Alive
|
51
|
+
body:
|
52
|
+
encoding: UTF-8
|
53
|
+
string: |-
|
54
|
+
{
|
55
|
+
"_links": {
|
56
|
+
"self": {
|
57
|
+
"href": "http://localhost:3000/"
|
58
|
+
},
|
59
|
+
"surveys": {
|
60
|
+
"href": "api/surveys"
|
61
|
+
},
|
62
|
+
"users": {
|
63
|
+
"href": "api/users"
|
64
|
+
},
|
65
|
+
"questions": {
|
66
|
+
"href": "api/questions"
|
67
|
+
}
|
68
|
+
}
|
69
|
+
}
|
70
|
+
http_version:
|
71
|
+
recorded_at: Sun, 28 Sep 2014 14:43:00 GMT
|
72
|
+
- request:
|
73
|
+
method: get
|
74
|
+
uri: http://localhost:3000/
|
75
|
+
body:
|
76
|
+
encoding: US-ASCII
|
77
|
+
string: ''
|
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: 200
|
92
|
+
message: 'OK '
|
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
|
+
- '"c4942090acbc96722cba50e4cecfde73"'
|
106
|
+
Cache-Control:
|
107
|
+
- max-age=0, private, must-revalidate
|
108
|
+
X-Request-Id:
|
109
|
+
- ab5f8312-c1d4-4382-bdd6-8520bab6e9e8
|
110
|
+
X-Runtime:
|
111
|
+
- '0.003987'
|
112
|
+
Server:
|
113
|
+
- WEBrick/1.3.1 (Ruby/2.1.2/2014-05-08)
|
114
|
+
Date:
|
115
|
+
- Sun, 28 Sep 2014 14:43:00 GMT
|
116
|
+
Content-Length:
|
117
|
+
- '236'
|
118
|
+
Connection:
|
119
|
+
- Keep-Alive
|
120
|
+
body:
|
121
|
+
encoding: UTF-8
|
122
|
+
string: |-
|
123
|
+
{
|
124
|
+
"_links": {
|
125
|
+
"self": {
|
126
|
+
"href": "http://localhost:3000/"
|
127
|
+
},
|
128
|
+
"surveys": {
|
129
|
+
"href": "api/surveys"
|
130
|
+
},
|
131
|
+
"users": {
|
132
|
+
"href": "api/users"
|
133
|
+
},
|
134
|
+
"questions": {
|
135
|
+
"href": "api/questions"
|
136
|
+
}
|
137
|
+
}
|
138
|
+
}
|
139
|
+
http_version:
|
140
|
+
recorded_at: Sun, 28 Sep 2014 14:43:00 GMT
|
141
|
+
- request:
|
142
|
+
method: post
|
143
|
+
uri: http://localhost:3000/api/questions/
|
144
|
+
body:
|
145
|
+
encoding: UTF-8
|
146
|
+
string: '{"question":{"question_type":"boolean","responses":[true,false],"text":"Do
|
147
|
+
you like poptarts?","freeform":true,"absolute_index":10,"parent_question_id":42}}'
|
148
|
+
headers:
|
149
|
+
User-Agent:
|
150
|
+
- Faraday v0.9.0
|
151
|
+
Content-Type:
|
152
|
+
- application/json
|
153
|
+
Api-Token:
|
154
|
+
- testing
|
155
|
+
Accept-Encoding:
|
156
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
157
|
+
Accept:
|
158
|
+
- "*/*"
|
159
|
+
response:
|
160
|
+
status:
|
161
|
+
code: 201
|
162
|
+
message: 'Created '
|
163
|
+
headers:
|
164
|
+
X-Frame-Options:
|
165
|
+
- SAMEORIGIN
|
166
|
+
X-Xss-Protection:
|
167
|
+
- 1; mode=block
|
168
|
+
X-Content-Type-Options:
|
169
|
+
- nosniff
|
170
|
+
X-Ua-Compatible:
|
171
|
+
- chrome=1
|
172
|
+
Content-Type:
|
173
|
+
- application/json; charset=utf-8
|
174
|
+
Etag:
|
175
|
+
- '"9bb1824fd410009f8953d82200a3a249"'
|
176
|
+
Cache-Control:
|
177
|
+
- max-age=0, private, must-revalidate
|
178
|
+
X-Request-Id:
|
179
|
+
- 3678c0eb-c31c-436b-af09-c4d82f0bddda
|
180
|
+
X-Runtime:
|
181
|
+
- '0.007781'
|
182
|
+
Server:
|
183
|
+
- WEBrick/1.3.1 (Ruby/2.1.2/2014-05-08)
|
184
|
+
Date:
|
185
|
+
- Sun, 28 Sep 2014 14:43:00 GMT
|
186
|
+
Content-Length:
|
187
|
+
- '193'
|
188
|
+
Connection:
|
189
|
+
- Keep-Alive
|
190
|
+
body:
|
191
|
+
encoding: UTF-8
|
192
|
+
string: |-
|
193
|
+
{
|
194
|
+
"id": 82,
|
195
|
+
"question_type": "boolean",
|
196
|
+
"text": "Do you like poptarts?",
|
197
|
+
"responses": [
|
198
|
+
true,
|
199
|
+
false
|
200
|
+
],
|
201
|
+
"freeform": true,
|
202
|
+
"absolute_index": 10,
|
203
|
+
"parent_question_id": 42
|
204
|
+
}
|
205
|
+
http_version:
|
206
|
+
recorded_at: Sun, 28 Sep 2014 14:43:00 GMT
|
207
|
+
recorded_with: VCR 2.6.0
|
@@ -0,0 +1,207 @@
|
|
1
|
+
---
|
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
|
+
- '"c4942090acbc96722cba50e4cecfde73"'
|
37
|
+
Cache-Control:
|
38
|
+
- max-age=0, private, must-revalidate
|
39
|
+
X-Request-Id:
|
40
|
+
- 539da7fd-4545-4bd9-bb94-00306ef709c0
|
41
|
+
X-Runtime:
|
42
|
+
- '0.004558'
|
43
|
+
Server:
|
44
|
+
- WEBrick/1.3.1 (Ruby/2.1.2/2014-05-08)
|
45
|
+
Date:
|
46
|
+
- Sun, 28 Sep 2014 14:42:42 GMT
|
47
|
+
Content-Length:
|
48
|
+
- '236'
|
49
|
+
Connection:
|
50
|
+
- Keep-Alive
|
51
|
+
body:
|
52
|
+
encoding: UTF-8
|
53
|
+
string: |-
|
54
|
+
{
|
55
|
+
"_links": {
|
56
|
+
"self": {
|
57
|
+
"href": "http://localhost:3000/"
|
58
|
+
},
|
59
|
+
"surveys": {
|
60
|
+
"href": "api/surveys"
|
61
|
+
},
|
62
|
+
"users": {
|
63
|
+
"href": "api/users"
|
64
|
+
},
|
65
|
+
"questions": {
|
66
|
+
"href": "api/questions"
|
67
|
+
}
|
68
|
+
}
|
69
|
+
}
|
70
|
+
http_version:
|
71
|
+
recorded_at: Sun, 28 Sep 2014 14:42:42 GMT
|
72
|
+
- request:
|
73
|
+
method: get
|
74
|
+
uri: http://localhost:3000/
|
75
|
+
body:
|
76
|
+
encoding: US-ASCII
|
77
|
+
string: ''
|
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: 200
|
92
|
+
message: 'OK '
|
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
|
+
- '"c4942090acbc96722cba50e4cecfde73"'
|
106
|
+
Cache-Control:
|
107
|
+
- max-age=0, private, must-revalidate
|
108
|
+
X-Request-Id:
|
109
|
+
- b2e0b3de-668e-4651-9171-f789217b0f5a
|
110
|
+
X-Runtime:
|
111
|
+
- '0.003826'
|
112
|
+
Server:
|
113
|
+
- WEBrick/1.3.1 (Ruby/2.1.2/2014-05-08)
|
114
|
+
Date:
|
115
|
+
- Sun, 28 Sep 2014 14:43:00 GMT
|
116
|
+
Content-Length:
|
117
|
+
- '236'
|
118
|
+
Connection:
|
119
|
+
- Keep-Alive
|
120
|
+
body:
|
121
|
+
encoding: UTF-8
|
122
|
+
string: |-
|
123
|
+
{
|
124
|
+
"_links": {
|
125
|
+
"self": {
|
126
|
+
"href": "http://localhost:3000/"
|
127
|
+
},
|
128
|
+
"surveys": {
|
129
|
+
"href": "api/surveys"
|
130
|
+
},
|
131
|
+
"users": {
|
132
|
+
"href": "api/users"
|
133
|
+
},
|
134
|
+
"questions": {
|
135
|
+
"href": "api/questions"
|
136
|
+
}
|
137
|
+
}
|
138
|
+
}
|
139
|
+
http_version:
|
140
|
+
recorded_at: Sun, 28 Sep 2014 14:43:00 GMT
|
141
|
+
- request:
|
142
|
+
method: post
|
143
|
+
uri: http://localhost:3000/api/questions/
|
144
|
+
body:
|
145
|
+
encoding: UTF-8
|
146
|
+
string: '{"question":{"question_type":"multiple","responses":["Yes","No"],"text":"Do
|
147
|
+
you like poptarts?","freeform":false,"absolute_index":null,"parent_question_id":null}}'
|
148
|
+
headers:
|
149
|
+
User-Agent:
|
150
|
+
- Faraday v0.9.0
|
151
|
+
Content-Type:
|
152
|
+
- application/json
|
153
|
+
Api-Token:
|
154
|
+
- testing
|
155
|
+
Accept-Encoding:
|
156
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
157
|
+
Accept:
|
158
|
+
- "*/*"
|
159
|
+
response:
|
160
|
+
status:
|
161
|
+
code: 201
|
162
|
+
message: 'Created '
|
163
|
+
headers:
|
164
|
+
X-Frame-Options:
|
165
|
+
- SAMEORIGIN
|
166
|
+
X-Xss-Protection:
|
167
|
+
- 1; mode=block
|
168
|
+
X-Content-Type-Options:
|
169
|
+
- nosniff
|
170
|
+
X-Ua-Compatible:
|
171
|
+
- chrome=1
|
172
|
+
Content-Type:
|
173
|
+
- application/json; charset=utf-8
|
174
|
+
Etag:
|
175
|
+
- '"f6e5852ba4f14e962fb6195400ec85d2"'
|
176
|
+
Cache-Control:
|
177
|
+
- max-age=0, private, must-revalidate
|
178
|
+
X-Request-Id:
|
179
|
+
- 5a358303-e7ac-4e00-88b7-6bbcab11a400
|
180
|
+
X-Runtime:
|
181
|
+
- '0.008645'
|
182
|
+
Server:
|
183
|
+
- WEBrick/1.3.1 (Ruby/2.1.2/2014-05-08)
|
184
|
+
Date:
|
185
|
+
- Sun, 28 Sep 2014 14:43:00 GMT
|
186
|
+
Content-Length:
|
187
|
+
- '199'
|
188
|
+
Connection:
|
189
|
+
- Keep-Alive
|
190
|
+
body:
|
191
|
+
encoding: UTF-8
|
192
|
+
string: |-
|
193
|
+
{
|
194
|
+
"id": 83,
|
195
|
+
"question_type": "multiple",
|
196
|
+
"text": "Do you like poptarts?",
|
197
|
+
"responses": [
|
198
|
+
"Yes",
|
199
|
+
"No"
|
200
|
+
],
|
201
|
+
"freeform": false,
|
202
|
+
"absolute_index": null,
|
203
|
+
"parent_question_id": null
|
204
|
+
}
|
205
|
+
http_version:
|
206
|
+
recorded_at: Sun, 28 Sep 2014 14:43:00 GMT
|
207
|
+
recorded_with: VCR 2.6.0
|
@@ -0,0 +1,206 @@
|
|
1
|
+
---
|
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
|
+
- '"c4942090acbc96722cba50e4cecfde73"'
|
37
|
+
Cache-Control:
|
38
|
+
- max-age=0, private, must-revalidate
|
39
|
+
X-Request-Id:
|
40
|
+
- b81911fb-b01b-49b4-bfd7-241edfd7bb9e
|
41
|
+
X-Runtime:
|
42
|
+
- '0.004026'
|
43
|
+
Server:
|
44
|
+
- WEBrick/1.3.1 (Ruby/2.1.2/2014-05-08)
|
45
|
+
Date:
|
46
|
+
- Sun, 28 Sep 2014 14:28:29 GMT
|
47
|
+
Content-Length:
|
48
|
+
- '236'
|
49
|
+
Connection:
|
50
|
+
- Keep-Alive
|
51
|
+
body:
|
52
|
+
encoding: UTF-8
|
53
|
+
string: |-
|
54
|
+
{
|
55
|
+
"_links": {
|
56
|
+
"self": {
|
57
|
+
"href": "http://localhost:3000/"
|
58
|
+
},
|
59
|
+
"surveys": {
|
60
|
+
"href": "api/surveys"
|
61
|
+
},
|
62
|
+
"users": {
|
63
|
+
"href": "api/users"
|
64
|
+
},
|
65
|
+
"questions": {
|
66
|
+
"href": "api/questions"
|
67
|
+
}
|
68
|
+
}
|
69
|
+
}
|
70
|
+
http_version:
|
71
|
+
recorded_at: Sun, 28 Sep 2014 14:28:29 GMT
|
72
|
+
- request:
|
73
|
+
method: get
|
74
|
+
uri: http://localhost:3000/
|
75
|
+
body:
|
76
|
+
encoding: US-ASCII
|
77
|
+
string: ''
|
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: 200
|
92
|
+
message: 'OK '
|
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
|
+
- '"c4942090acbc96722cba50e4cecfde73"'
|
106
|
+
Cache-Control:
|
107
|
+
- max-age=0, private, must-revalidate
|
108
|
+
X-Request-Id:
|
109
|
+
- ed064e0b-e136-4ce6-95c8-8e10c88412af
|
110
|
+
X-Runtime:
|
111
|
+
- '0.004066'
|
112
|
+
Server:
|
113
|
+
- WEBrick/1.3.1 (Ruby/2.1.2/2014-05-08)
|
114
|
+
Date:
|
115
|
+
- Sun, 28 Sep 2014 14:33:16 GMT
|
116
|
+
Content-Length:
|
117
|
+
- '236'
|
118
|
+
Connection:
|
119
|
+
- Keep-Alive
|
120
|
+
body:
|
121
|
+
encoding: UTF-8
|
122
|
+
string: |-
|
123
|
+
{
|
124
|
+
"_links": {
|
125
|
+
"self": {
|
126
|
+
"href": "http://localhost:3000/"
|
127
|
+
},
|
128
|
+
"surveys": {
|
129
|
+
"href": "api/surveys"
|
130
|
+
},
|
131
|
+
"users": {
|
132
|
+
"href": "api/users"
|
133
|
+
},
|
134
|
+
"questions": {
|
135
|
+
"href": "api/questions"
|
136
|
+
}
|
137
|
+
}
|
138
|
+
}
|
139
|
+
http_version:
|
140
|
+
recorded_at: Sun, 28 Sep 2014 14:33:16 GMT
|
141
|
+
- request:
|
142
|
+
method: post
|
143
|
+
uri: http://localhost:3000/api/questions/
|
144
|
+
body:
|
145
|
+
encoding: UTF-8
|
146
|
+
string: '{"question":{"question_type":"range","responses":[0,10],"text":"Do
|
147
|
+
you like poptarts?","freeform":false,"absolute_index":null}}'
|
148
|
+
headers:
|
149
|
+
User-Agent:
|
150
|
+
- Faraday v0.9.0
|
151
|
+
Content-Type:
|
152
|
+
- application/json
|
153
|
+
Api-Token:
|
154
|
+
- testing
|
155
|
+
Accept-Encoding:
|
156
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
157
|
+
Accept:
|
158
|
+
- "*/*"
|
159
|
+
response:
|
160
|
+
status:
|
161
|
+
code: 201
|
162
|
+
message: 'Created '
|
163
|
+
headers:
|
164
|
+
X-Frame-Options:
|
165
|
+
- SAMEORIGIN
|
166
|
+
X-Xss-Protection:
|
167
|
+
- 1; mode=block
|
168
|
+
X-Content-Type-Options:
|
169
|
+
- nosniff
|
170
|
+
X-Ua-Compatible:
|
171
|
+
- chrome=1
|
172
|
+
Content-Type:
|
173
|
+
- application/json; charset=utf-8
|
174
|
+
Etag:
|
175
|
+
- '"9eef25b486b78af9f95e57c05769d723"'
|
176
|
+
Cache-Control:
|
177
|
+
- max-age=0, private, must-revalidate
|
178
|
+
X-Request-Id:
|
179
|
+
- 066da954-7460-437f-9364-e9b732b438d5
|
180
|
+
X-Runtime:
|
181
|
+
- '0.006798'
|
182
|
+
Server:
|
183
|
+
- WEBrick/1.3.1 (Ruby/2.1.2/2014-05-08)
|
184
|
+
Date:
|
185
|
+
- Sun, 28 Sep 2014 14:33:16 GMT
|
186
|
+
Content-Length:
|
187
|
+
- '160'
|
188
|
+
Connection:
|
189
|
+
- Keep-Alive
|
190
|
+
body:
|
191
|
+
encoding: UTF-8
|
192
|
+
string: |-
|
193
|
+
{
|
194
|
+
"id": 74,
|
195
|
+
"question_type": "range",
|
196
|
+
"text": "Do you like poptarts?",
|
197
|
+
"responses": [
|
198
|
+
0,
|
199
|
+
10
|
200
|
+
],
|
201
|
+
"freeform": false,
|
202
|
+
"absolute_index": null
|
203
|
+
}
|
204
|
+
http_version:
|
205
|
+
recorded_at: Sun, 28 Sep 2014 14:33:16 GMT
|
206
|
+
recorded_with: VCR 2.6.0
|