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.
@@ -1,292 +1,5 @@
1
1
  ---
2
2
  http_interactions:
3
- - request:
4
- method: post
5
- uri: http://localhost:3000/api/users
6
- body:
7
- encoding: UTF-8
8
- string: '{"user":{"external_user_id":42}}'
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: 201
23
- message: 'Created '
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
- - '"edaca038ca02a2bd69b26328f8d48a5f"'
37
- Cache-Control:
38
- - max-age=0, private, must-revalidate
39
- X-Request-Id:
40
- - ede0ac8a-a812-43fc-8106-604b7eaf242b
41
- X-Runtime:
42
- - '0.008192'
43
- Server:
44
- - WEBrick/1.3.1 (Ruby/2.1.2/2014-05-08)
45
- Date:
46
- - Sat, 05 Jul 2014 21:24:17 GMT
47
- Content-Length:
48
- - '132'
49
- Connection:
50
- - Keep-Alive
51
- body:
52
- encoding: UTF-8
53
- string: |-
54
- {
55
- "id": 322,
56
- "external_user_id": 42,
57
- "_links": {
58
- "self": {
59
- "href": "http://localhost:3000/api/users/322"
60
- }
61
- }
62
- }
63
- http_version:
64
- recorded_at: Sat, 05 Jul 2014 21:24:17 GMT
65
- - request:
66
- method: post
67
- uri: http://localhost:3000/api/surveys?random=true
68
- body:
69
- encoding: UTF-8
70
- string: '{"survey":{"user_id":322}}'
71
- headers:
72
- User-Agent:
73
- - Faraday v0.9.0
74
- Content-Type:
75
- - application/json
76
- Api-Token:
77
- - testing
78
- Accept-Encoding:
79
- - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
80
- Accept:
81
- - "*/*"
82
- response:
83
- status:
84
- code: 201
85
- message: 'Created '
86
- headers:
87
- X-Frame-Options:
88
- - SAMEORIGIN
89
- X-Xss-Protection:
90
- - 1; mode=block
91
- X-Content-Type-Options:
92
- - nosniff
93
- X-Ua-Compatible:
94
- - chrome=1
95
- Content-Type:
96
- - application/json; charset=utf-8
97
- Etag:
98
- - '"de4330dd1669c690eeba5f385ad436e4"'
99
- Cache-Control:
100
- - max-age=0, private, must-revalidate
101
- X-Request-Id:
102
- - 9fb162ff-46ad-40f5-9cd9-d21a1091e501
103
- X-Runtime:
104
- - '0.051812'
105
- Server:
106
- - WEBrick/1.3.1 (Ruby/2.1.2/2014-05-08)
107
- Date:
108
- - Sat, 05 Jul 2014 21:24:17 GMT
109
- Content-Length:
110
- - '4506'
111
- Connection:
112
- - Keep-Alive
113
- body:
114
- encoding: UTF-8
115
- string: |-
116
- {
117
- "id": 272,
118
- "user_id": 322,
119
- "_links": {
120
- "self": {
121
- "href": "http://localhost:3000/api/surveys/272"
122
- },
123
- "submit": {
124
- "href": "http://localhost:3000/api/surveys/272/survey_questions"
125
- }
126
- },
127
- "survey_questions": [
128
- {
129
- "id": 988,
130
- "text": "How do you feel right now?",
131
- "type": "range",
132
- "responses": [
133
- "0",
134
- "10"
135
- ],
136
- "answer": null,
137
- "freeform": false,
138
- "_links": {
139
- "self": {
140
- "href": "http://localhost:3000/api/surveys/272/survey_questions/988"
141
- },
142
- "survey": {
143
- "href": "http://localhost:3000/api/surveys/272"
144
- },
145
- "create": {
146
- "href": "http://localhost:3000/api/surveys/272/survey_questions"
147
- },
148
- "submit": {
149
- "href": "http://localhost:3000/api/surveys/272/survey_questions/988"
150
- }
151
- }
152
- },
153
- {
154
- "id": 989,
155
- "text": "To what extent do you feel accepted by the person/people you are interacting with?",
156
- "type": "range",
157
- "responses": [
158
- "0",
159
- "10"
160
- ],
161
- "answer": null,
162
- "freeform": false,
163
- "_links": {
164
- "self": {
165
- "href": "http://localhost:3000/api/surveys/272/survey_questions/989"
166
- },
167
- "survey": {
168
- "href": "http://localhost:3000/api/surveys/272"
169
- },
170
- "create": {
171
- "href": "http://localhost:3000/api/surveys/272/survey_questions"
172
- },
173
- "submit": {
174
- "href": "http://localhost:3000/api/surveys/272/survey_questions/989"
175
- }
176
- }
177
- },
178
- {
179
- "id": 990,
180
- "text": "How hungry or full are you right now?",
181
- "type": "multiple",
182
- "responses": [
183
- "Very hungry",
184
- "Somewhat hungry",
185
- "Neither full nor hungry",
186
- "Somewhat full",
187
- "Very full"
188
- ],
189
- "answer": null,
190
- "freeform": false,
191
- "_links": {
192
- "self": {
193
- "href": "http://localhost:3000/api/surveys/272/survey_questions/990"
194
- },
195
- "survey": {
196
- "href": "http://localhost:3000/api/surveys/272"
197
- },
198
- "create": {
199
- "href": "http://localhost:3000/api/surveys/272/survey_questions"
200
- },
201
- "submit": {
202
- "href": "http://localhost:3000/api/surveys/272/survey_questions/990"
203
- }
204
- }
205
- },
206
- {
207
- "id": 991,
208
- "text": "How do you feel right now?",
209
- "type": "range",
210
- "responses": [
211
- "0",
212
- "10"
213
- ],
214
- "answer": null,
215
- "freeform": false,
216
- "_links": {
217
- "self": {
218
- "href": "http://localhost:3000/api/surveys/272/survey_questions/991"
219
- },
220
- "survey": {
221
- "href": "http://localhost:3000/api/surveys/272"
222
- },
223
- "create": {
224
- "href": "http://localhost:3000/api/surveys/272/survey_questions"
225
- },
226
- "submit": {
227
- "href": "http://localhost:3000/api/surveys/272/survey_questions/991"
228
- }
229
- }
230
- },
231
- {
232
- "id": 992,
233
- "text": "To what extent do you feel accepted by the person/people you are interacting with?",
234
- "type": "range",
235
- "responses": [
236
- "0",
237
- "10"
238
- ],
239
- "answer": null,
240
- "freeform": false,
241
- "_links": {
242
- "self": {
243
- "href": "http://localhost:3000/api/surveys/272/survey_questions/992"
244
- },
245
- "survey": {
246
- "href": "http://localhost:3000/api/surveys/272"
247
- },
248
- "create": {
249
- "href": "http://localhost:3000/api/surveys/272/survey_questions"
250
- },
251
- "submit": {
252
- "href": "http://localhost:3000/api/surveys/272/survey_questions/992"
253
- }
254
- }
255
- },
256
- {
257
- "id": 993,
258
- "text": "Beyond any work you've already done today, how many additional hours do you expect to work today?",
259
- "type": "multiple",
260
- "responses": [
261
- "0 (none)",
262
- "Less than 1 hour",
263
- "1-2 hours",
264
- "2-3 hours",
265
- "3-4 hours",
266
- "4-5 hours",
267
- "5-6 hours"
268
- ],
269
- "answer": null,
270
- "freeform": false,
271
- "_links": {
272
- "self": {
273
- "href": "http://localhost:3000/api/surveys/272/survey_questions/993"
274
- },
275
- "survey": {
276
- "href": "http://localhost:3000/api/surveys/272"
277
- },
278
- "create": {
279
- "href": "http://localhost:3000/api/surveys/272/survey_questions"
280
- },
281
- "submit": {
282
- "href": "http://localhost:3000/api/surveys/272/survey_questions/993"
283
- }
284
- }
285
- }
286
- ]
287
- }
288
- http_version:
289
- recorded_at: Sat, 05 Jul 2014 21:24:17 GMT
290
3
  - request:
291
4
  method: post
292
5
  uri: http://localhost:3000/api/http:%2F%2Flocalhost:3000%2Fapi%2F%252Fusers%2F/
@@ -760,11 +473,11 @@ http_interactions:
760
473
  http_version:
761
474
  recorded_at: Sat, 13 Sep 2014 15:30:49 GMT
762
475
  - request:
763
- method: get
764
- uri: http://localhost:3000/
476
+ method: post
477
+ uri: http://localhost:3000/api/surveys/?query=random,true
765
478
  body:
766
- encoding: US-ASCII
767
- string: ''
479
+ encoding: UTF-8
480
+ string: '{"survey":{"service_user_id":"4947173e2c69445437fe29d0bb7b16228d005329d7954d18f2c780c4cd2da101"}}'
768
481
  headers:
769
482
  User-Agent:
770
483
  - Faraday v0.9.0
@@ -778,8 +491,8 @@ http_interactions:
778
491
  - "*/*"
779
492
  response:
780
493
  status:
781
- code: 200
782
- message: 'OK '
494
+ code: 201
495
+ message: 'Created '
783
496
  headers:
784
497
  X-Frame-Options:
785
498
  - SAMEORIGIN
@@ -792,42 +505,47 @@ http_interactions:
792
505
  Content-Type:
793
506
  - application/json; charset=utf-8
794
507
  Etag:
795
- - '"c4942090acbc96722cba50e4cecfde73"'
508
+ - '"89cbc2f576259dbbb807ca5c35503f18"'
796
509
  Cache-Control:
797
510
  - max-age=0, private, must-revalidate
798
511
  X-Request-Id:
799
- - 7a8448a3-8776-45c6-9da4-26503f624c35
512
+ - b4a4f7d2-73a0-478b-9754-376a249ee284
800
513
  X-Runtime:
801
- - '0.004675'
514
+ - '0.010886'
802
515
  Server:
803
516
  - WEBrick/1.3.1 (Ruby/2.1.2/2014-05-08)
804
517
  Date:
805
- - Sun, 21 Sep 2014 20:27:58 GMT
518
+ - Sat, 04 Oct 2014 15:30:08 GMT
806
519
  Content-Length:
807
- - '236'
520
+ - '434'
808
521
  Connection:
809
522
  - Keep-Alive
810
523
  body:
811
524
  encoding: UTF-8
812
525
  string: |-
813
526
  {
527
+ "id": 104,
528
+ "service_user_id": "4947173e2c69445437fe29d0bb7b16228d005329d7954d18f2c780c4cd2da101",
814
529
  "_links": {
815
530
  "self": {
816
- "href": "http://localhost:3000/"
817
- },
818
- "surveys": {
819
- "href": "api/surveys"
820
- },
821
- "users": {
822
- "href": "api/users"
531
+ "href": "http://localhost:3000/api/surveys/104"
823
532
  },
824
- "questions": {
825
- "href": "api/questions"
533
+ "survey_questions": {
534
+ "post": {
535
+ "href": "/api/surveys/104/survey_questions"
536
+ },
537
+ "put": {
538
+ "href": "/api/surveys/104/survey_questions"
539
+ }
826
540
  }
827
- }
541
+ },
542
+ "completed": false,
543
+ "survey_questions": [
544
+
545
+ ]
828
546
  }
829
547
  http_version:
830
- recorded_at: Sun, 21 Sep 2014 20:27:58 GMT
548
+ recorded_at: Sat, 04 Oct 2014 15:30:08 GMT
831
549
  - request:
832
550
  method: get
833
551
  uri: http://localhost:3000/
@@ -861,19 +579,19 @@ http_interactions:
861
579
  Content-Type:
862
580
  - application/json; charset=utf-8
863
581
  Etag:
864
- - '"c4942090acbc96722cba50e4cecfde73"'
582
+ - '"224d26690c7c9c963202a6eb22d0a7d1"'
865
583
  Cache-Control:
866
584
  - max-age=0, private, must-revalidate
867
585
  X-Request-Id:
868
- - c0b488c3-fa05-4478-8007-0d99843d126b
586
+ - 18462046-fc0c-48c1-b90a-26372c917ad2
869
587
  X-Runtime:
870
- - '0.004353'
588
+ - '0.032400'
871
589
  Server:
872
590
  - WEBrick/1.3.1 (Ruby/2.1.2/2014-05-08)
873
591
  Date:
874
- - Sun, 21 Sep 2014 20:27:58 GMT
592
+ - Sat, 04 Oct 2014 17:52:39 GMT
875
593
  Content-Length:
876
- - '236'
594
+ - '347'
877
595
  Connection:
878
596
  - Keep-Alive
879
597
  body:
@@ -885,24 +603,24 @@ http_interactions:
885
603
  "href": "http://localhost:3000/"
886
604
  },
887
605
  "surveys": {
888
- "href": "api/surveys"
606
+ "href": "http://localhost:3000/api/surveys{+id}/{?query*}"
889
607
  },
890
608
  "users": {
891
- "href": "api/users"
609
+ "href": "http://localhost:3000/api/users{+id}/{?query*}"
892
610
  },
893
611
  "questions": {
894
- "href": "api/questions"
612
+ "href": "http://localhost:3000/api/questions{+id}/{?query*}"
895
613
  }
896
614
  }
897
615
  }
898
616
  http_version:
899
- recorded_at: Sun, 21 Sep 2014 20:27:58 GMT
617
+ recorded_at: Sat, 04 Oct 2014 17:52:39 GMT
900
618
  - request:
901
- method: post
902
- uri: http://localhost:3000/api/users/
619
+ method: get
620
+ uri: http://localhost:3000/
903
621
  body:
904
- encoding: UTF-8
905
- string: "{}"
622
+ encoding: US-ASCII
623
+ string: ''
906
624
  headers:
907
625
  User-Agent:
908
626
  - Faraday v0.9.0
@@ -916,8 +634,8 @@ http_interactions:
916
634
  - "*/*"
917
635
  response:
918
636
  status:
919
- code: 201
920
- message: 'Created '
637
+ code: 200
638
+ message: 'OK '
921
639
  headers:
922
640
  X-Frame-Options:
923
641
  - SAMEORIGIN
@@ -930,41 +648,984 @@ http_interactions:
930
648
  Content-Type:
931
649
  - application/json; charset=utf-8
932
650
  Etag:
933
- - '"5c7cd5eee925d606fbf02d5e2247fc21"'
651
+ - '"224d26690c7c9c963202a6eb22d0a7d1"'
934
652
  Cache-Control:
935
653
  - max-age=0, private, must-revalidate
936
654
  X-Request-Id:
937
- - 0d6b260c-9959-42e3-8f15-a0ac1fd7c376
655
+ - 92e2f3d4-4e0a-4ce4-9de4-374792f19950
938
656
  X-Runtime:
939
- - '0.006931'
657
+ - '0.005007'
940
658
  Server:
941
659
  - WEBrick/1.3.1 (Ruby/2.1.2/2014-05-08)
942
660
  Date:
943
- - Sun, 21 Sep 2014 20:28:01 GMT
661
+ - Sat, 04 Oct 2014 17:52:39 GMT
944
662
  Content-Length:
945
- - '260'
663
+ - '347'
946
664
  Connection:
947
665
  - Keep-Alive
948
666
  body:
949
667
  encoding: UTF-8
950
668
  string: |-
951
669
  {
952
- "service_user_id": "e81f9df2f19ac3d0e4634061bff685bbb732abb269049eafdd4fa9ae7c836c6b",
953
670
  "_links": {
954
671
  "self": {
955
- "href": "http://localhost:3000/api/users/83"
672
+ "href": "http://localhost:3000/"
673
+ },
674
+ "surveys": {
675
+ "href": "http://localhost:3000/api/surveys{+id}/{?query*}"
676
+ },
677
+ "users": {
678
+ "href": "http://localhost:3000/api/users{+id}/{?query*}"
679
+ },
680
+ "questions": {
681
+ "href": "http://localhost:3000/api/questions{+id}/{?query*}"
956
682
  }
957
- },
958
- "token": "c2ffdad2f8fb5aa69b36f5ea0468938657cf4a56a20fd6fda99e9f279b8f8b89"
683
+ }
959
684
  }
960
685
  http_version:
961
- recorded_at: Sun, 21 Sep 2014 20:28:01 GMT
686
+ recorded_at: Sat, 04 Oct 2014 17:52:39 GMT
962
687
  - request:
963
688
  method: post
964
- uri: http://localhost:3000/api/surveys/?random=true
689
+ uri: http://localhost:3000/api/users/
690
+ body:
691
+ encoding: UTF-8
692
+ string: "{}"
693
+ headers:
694
+ User-Agent:
695
+ - Faraday v0.9.0
696
+ Content-Type:
697
+ - application/json
698
+ Api-Token:
699
+ - testing
700
+ Accept-Encoding:
701
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
702
+ Accept:
703
+ - "*/*"
704
+ response:
705
+ status:
706
+ code: 201
707
+ message: 'Created '
708
+ headers:
709
+ X-Frame-Options:
710
+ - SAMEORIGIN
711
+ X-Xss-Protection:
712
+ - 1; mode=block
713
+ X-Content-Type-Options:
714
+ - nosniff
715
+ X-Ua-Compatible:
716
+ - chrome=1
717
+ Content-Type:
718
+ - application/json; charset=utf-8
719
+ Etag:
720
+ - '"a51db8f56b983638435353f628ddf17e"'
721
+ Cache-Control:
722
+ - max-age=0, private, must-revalidate
723
+ X-Request-Id:
724
+ - 7cee1c3b-bc18-41e5-954e-d3f3c6658459
725
+ X-Runtime:
726
+ - '0.008398'
727
+ Server:
728
+ - WEBrick/1.3.1 (Ruby/2.1.2/2014-05-08)
729
+ Date:
730
+ - Sat, 04 Oct 2014 17:52:43 GMT
731
+ Content-Length:
732
+ - '261'
733
+ Connection:
734
+ - Keep-Alive
735
+ body:
736
+ encoding: UTF-8
737
+ string: |-
738
+ {
739
+ "service_user_id": "ddb58084a0a40c81dc199a6e07ecedb3e5c0e11b31b8c379a7ea59f831b42b70",
740
+ "_links": {
741
+ "self": {
742
+ "href": "http://localhost:3000/api/users/117"
743
+ }
744
+ },
745
+ "token": "c002fc44875a964c37d4d45f9bb5cbdee8bbf0c1d4a055062d778921ea0c6f3b"
746
+ }
747
+ http_version:
748
+ recorded_at: Sat, 04 Oct 2014 17:52:43 GMT
749
+ - request:
750
+ method: post
751
+ uri: http://localhost:3000/api/surveys/?random=true
752
+ body:
753
+ encoding: UTF-8
754
+ string: '{"survey":{"service_user_id":"ddb58084a0a40c81dc199a6e07ecedb3e5c0e11b31b8c379a7ea59f831b42b70"}}'
755
+ headers:
756
+ User-Agent:
757
+ - Faraday v0.9.0
758
+ Content-Type:
759
+ - application/json
760
+ Api-Token:
761
+ - testing
762
+ Accept-Encoding:
763
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
764
+ Accept:
765
+ - "*/*"
766
+ response:
767
+ status:
768
+ code: 201
769
+ message: 'Created '
770
+ headers:
771
+ X-Frame-Options:
772
+ - SAMEORIGIN
773
+ X-Xss-Protection:
774
+ - 1; mode=block
775
+ X-Content-Type-Options:
776
+ - nosniff
777
+ X-Ua-Compatible:
778
+ - chrome=1
779
+ Content-Type:
780
+ - application/json; charset=utf-8
781
+ Etag:
782
+ - '"da2233feb5ef43b6abc02e1622dc0287"'
783
+ Cache-Control:
784
+ - max-age=0, private, must-revalidate
785
+ X-Request-Id:
786
+ - daae7e40-ab08-4e7d-af0e-2dc4ae114f40
787
+ X-Runtime:
788
+ - '0.068746'
789
+ Server:
790
+ - WEBrick/1.3.1 (Ruby/2.1.2/2014-05-08)
791
+ Date:
792
+ - Sat, 04 Oct 2014 17:52:43 GMT
793
+ Content-Length:
794
+ - '7300'
795
+ Connection:
796
+ - Keep-Alive
797
+ body:
798
+ encoding: UTF-8
799
+ string: |-
800
+ {
801
+ "id": 121,
802
+ "service_user_id": "ddb58084a0a40c81dc199a6e07ecedb3e5c0e11b31b8c379a7ea59f831b42b70",
803
+ "_links": {
804
+ "self": {
805
+ "href": "http://localhost:3000/api/surveys/121"
806
+ },
807
+ "survey_questions": {
808
+ "post": {
809
+ "href": "/api/surveys/121/survey_questions"
810
+ },
811
+ "put": {
812
+ "href": "/api/surveys/121/survey_questions"
813
+ }
814
+ }
815
+ },
816
+ "completed": false,
817
+ "survey_questions": [
818
+ {
819
+ "id": 462,
820
+ "text": "How do you feel right now?",
821
+ "type": "range",
822
+ "responses": [
823
+ "0",
824
+ "10"
825
+ ],
826
+ "answer": null,
827
+ "freeform": false,
828
+ "_links": {
829
+ "self": {
830
+ "href": "/api/surveys/121/survey_questions/462"
831
+ },
832
+ "post": {
833
+ "href": "http://localhost:3000/api/surveys/121/survey_questions"
834
+ },
835
+ "put": {
836
+ "href": "/api/surveys/121/survey_questions/462"
837
+ },
838
+ "survey": {
839
+ "href": "/api/surveys/121"
840
+ }
841
+ }
842
+ },
843
+ {
844
+ "id": 463,
845
+ "text": "Where are you?",
846
+ "type": "multiple",
847
+ "responses": [
848
+ "At Home",
849
+ "At Work",
850
+ "In a car",
851
+ "Other"
852
+ ],
853
+ "answer": null,
854
+ "freeform": true,
855
+ "_links": {
856
+ "self": {
857
+ "href": "/api/surveys/121/survey_questions/463"
858
+ },
859
+ "post": {
860
+ "href": "http://localhost:3000/api/surveys/121/survey_questions"
861
+ },
862
+ "put": {
863
+ "href": "/api/surveys/121/survey_questions/463"
864
+ },
865
+ "survey": {
866
+ "href": "/api/surveys/121"
867
+ }
868
+ }
869
+ },
870
+ {
871
+ "id": 464,
872
+ "text": "Do you like poptarts?",
873
+ "type": "multiple",
874
+ "responses": [
875
+ "Yes",
876
+ "No"
877
+ ],
878
+ "answer": null,
879
+ "freeform": true,
880
+ "_links": {
881
+ "self": {
882
+ "href": "/api/surveys/121/survey_questions/464"
883
+ },
884
+ "post": {
885
+ "href": "http://localhost:3000/api/surveys/121/survey_questions"
886
+ },
887
+ "put": {
888
+ "href": "/api/surveys/121/survey_questions/464"
889
+ },
890
+ "survey": {
891
+ "href": "/api/surveys/121"
892
+ }
893
+ }
894
+ },
895
+ {
896
+ "id": 465,
897
+ "text": "Do you like poptarts?",
898
+ "type": "multiple",
899
+ "responses": [
900
+ "Yes",
901
+ "No"
902
+ ],
903
+ "answer": null,
904
+ "freeform": true,
905
+ "_links": {
906
+ "self": {
907
+ "href": "/api/surveys/121/survey_questions/465"
908
+ },
909
+ "post": {
910
+ "href": "http://localhost:3000/api/surveys/121/survey_questions"
911
+ },
912
+ "put": {
913
+ "href": "/api/surveys/121/survey_questions/465"
914
+ },
915
+ "survey": {
916
+ "href": "/api/surveys/121"
917
+ }
918
+ }
919
+ },
920
+ {
921
+ "id": 466,
922
+ "text": "Do you love poptarts?",
923
+ "type": "multiple",
924
+ "responses": [
925
+ "Yes",
926
+ "No"
927
+ ],
928
+ "answer": null,
929
+ "freeform": true,
930
+ "_links": {
931
+ "self": {
932
+ "href": "/api/surveys/121/survey_questions/466"
933
+ },
934
+ "post": {
935
+ "href": "http://localhost:3000/api/surveys/121/survey_questions"
936
+ },
937
+ "put": {
938
+ "href": "/api/surveys/121/survey_questions/466"
939
+ },
940
+ "survey": {
941
+ "href": "/api/surveys/121"
942
+ }
943
+ }
944
+ },
945
+ {
946
+ "id": 467,
947
+ "text": "Do you love poptarts?",
948
+ "type": "multiple",
949
+ "responses": [
950
+ "Yes",
951
+ "No"
952
+ ],
953
+ "answer": null,
954
+ "freeform": true,
955
+ "_links": {
956
+ "self": {
957
+ "href": "/api/surveys/121/survey_questions/467"
958
+ },
959
+ "post": {
960
+ "href": "http://localhost:3000/api/surveys/121/survey_questions"
961
+ },
962
+ "put": {
963
+ "href": "/api/surveys/121/survey_questions/467"
964
+ },
965
+ "survey": {
966
+ "href": "/api/surveys/121"
967
+ }
968
+ }
969
+ },
970
+ {
971
+ "id": 468,
972
+ "text": "Do you like poptarts?",
973
+ "type": "multiple",
974
+ "responses": [
975
+ "Yes",
976
+ "No"
977
+ ],
978
+ "answer": null,
979
+ "freeform": true,
980
+ "_links": {
981
+ "self": {
982
+ "href": "/api/surveys/121/survey_questions/468"
983
+ },
984
+ "post": {
985
+ "href": "http://localhost:3000/api/surveys/121/survey_questions"
986
+ },
987
+ "put": {
988
+ "href": "/api/surveys/121/survey_questions/468"
989
+ },
990
+ "survey": {
991
+ "href": "/api/surveys/121"
992
+ }
993
+ }
994
+ },
995
+ {
996
+ "id": 469,
997
+ "text": "Do you like poptarts?",
998
+ "type": "multiple",
999
+ "responses": [
1000
+ "Yes",
1001
+ "No"
1002
+ ],
1003
+ "answer": null,
1004
+ "freeform": true,
1005
+ "_links": {
1006
+ "self": {
1007
+ "href": "/api/surveys/121/survey_questions/469"
1008
+ },
1009
+ "post": {
1010
+ "href": "http://localhost:3000/api/surveys/121/survey_questions"
1011
+ },
1012
+ "put": {
1013
+ "href": "/api/surveys/121/survey_questions/469"
1014
+ },
1015
+ "survey": {
1016
+ "href": "/api/surveys/121"
1017
+ }
1018
+ }
1019
+ },
1020
+ {
1021
+ "id": 470,
1022
+ "text": "Do you like poptarts?",
1023
+ "type": "multiple",
1024
+ "responses": [
1025
+ "Yes",
1026
+ "No"
1027
+ ],
1028
+ "answer": null,
1029
+ "freeform": true,
1030
+ "_links": {
1031
+ "self": {
1032
+ "href": "/api/surveys/121/survey_questions/470"
1033
+ },
1034
+ "post": {
1035
+ "href": "http://localhost:3000/api/surveys/121/survey_questions"
1036
+ },
1037
+ "put": {
1038
+ "href": "/api/surveys/121/survey_questions/470"
1039
+ },
1040
+ "survey": {
1041
+ "href": "/api/surveys/121"
1042
+ }
1043
+ }
1044
+ },
1045
+ {
1046
+ "id": 471,
1047
+ "text": "Do you like poptarts?",
1048
+ "type": "multiple",
1049
+ "responses": [
1050
+ "Yes",
1051
+ "No"
1052
+ ],
1053
+ "answer": null,
1054
+ "freeform": true,
1055
+ "_links": {
1056
+ "self": {
1057
+ "href": "/api/surveys/121/survey_questions/471"
1058
+ },
1059
+ "post": {
1060
+ "href": "http://localhost:3000/api/surveys/121/survey_questions"
1061
+ },
1062
+ "put": {
1063
+ "href": "/api/surveys/121/survey_questions/471"
1064
+ },
1065
+ "survey": {
1066
+ "href": "/api/surveys/121"
1067
+ }
1068
+ }
1069
+ },
1070
+ {
1071
+ "id": 472,
1072
+ "text": "Do you like poptarts?",
1073
+ "type": "multiple",
1074
+ "responses": [
1075
+ "Yes",
1076
+ "No"
1077
+ ],
1078
+ "answer": null,
1079
+ "freeform": true,
1080
+ "_links": {
1081
+ "self": {
1082
+ "href": "/api/surveys/121/survey_questions/472"
1083
+ },
1084
+ "post": {
1085
+ "href": "http://localhost:3000/api/surveys/121/survey_questions"
1086
+ },
1087
+ "put": {
1088
+ "href": "/api/surveys/121/survey_questions/472"
1089
+ },
1090
+ "survey": {
1091
+ "href": "/api/surveys/121"
1092
+ }
1093
+ }
1094
+ },
1095
+ {
1096
+ "id": 473,
1097
+ "text": "Do you love poptarts?",
1098
+ "type": "multiple",
1099
+ "responses": [
1100
+ "Yes",
1101
+ "No"
1102
+ ],
1103
+ "answer": null,
1104
+ "freeform": true,
1105
+ "_links": {
1106
+ "self": {
1107
+ "href": "/api/surveys/121/survey_questions/473"
1108
+ },
1109
+ "post": {
1110
+ "href": "http://localhost:3000/api/surveys/121/survey_questions"
1111
+ },
1112
+ "put": {
1113
+ "href": "/api/surveys/121/survey_questions/473"
1114
+ },
1115
+ "survey": {
1116
+ "href": "/api/surveys/121"
1117
+ }
1118
+ }
1119
+ }
1120
+ ]
1121
+ }
1122
+ http_version:
1123
+ recorded_at: Sat, 04 Oct 2014 17:52:43 GMT
1124
+ - request:
1125
+ method: post
1126
+ uri: http://localhost:3000/api/users//
1127
+ body:
1128
+ encoding: UTF-8
1129
+ string: "{}"
1130
+ headers:
1131
+ User-Agent:
1132
+ - Faraday v0.9.0
1133
+ Content-Type:
1134
+ - application/json
1135
+ Api-Token:
1136
+ - testing
1137
+ Accept-Encoding:
1138
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
1139
+ Accept:
1140
+ - "*/*"
1141
+ response:
1142
+ status:
1143
+ code: 201
1144
+ message: 'Created '
1145
+ headers:
1146
+ X-Frame-Options:
1147
+ - SAMEORIGIN
1148
+ X-Xss-Protection:
1149
+ - 1; mode=block
1150
+ X-Content-Type-Options:
1151
+ - nosniff
1152
+ X-Ua-Compatible:
1153
+ - chrome=1
1154
+ Content-Type:
1155
+ - application/json; charset=utf-8
1156
+ Etag:
1157
+ - '"4fb146c03b38db03e585ae9b28e1f0c3"'
1158
+ Cache-Control:
1159
+ - max-age=0, private, must-revalidate
1160
+ X-Request-Id:
1161
+ - 8c656b41-c126-4036-82c8-0037d276e166
1162
+ X-Runtime:
1163
+ - '0.008941'
1164
+ Server:
1165
+ - WEBrick/1.3.1 (Ruby/2.1.2/2014-05-08)
1166
+ Date:
1167
+ - Sat, 04 Oct 2014 18:11:10 GMT
1168
+ Content-Length:
1169
+ - '261'
1170
+ Connection:
1171
+ - Keep-Alive
1172
+ body:
1173
+ encoding: UTF-8
1174
+ string: |-
1175
+ {
1176
+ "service_user_id": "785856c54e3f20175d24f1471649039ef08dae0f87393323903a536d31cf8aaa",
1177
+ "_links": {
1178
+ "self": {
1179
+ "href": "http://localhost:3000/api/users/132"
1180
+ }
1181
+ },
1182
+ "token": "a901d5c1a2b6291dbd931562af93fcaa7fdcc194cf89086dbe8c0d53a590705d"
1183
+ }
1184
+ http_version:
1185
+ recorded_at: Sat, 04 Oct 2014 18:11:10 GMT
1186
+ - request:
1187
+ method: post
1188
+ uri: http://localhost:3000/api/surveys//?random=true
1189
+ body:
1190
+ encoding: UTF-8
1191
+ string: '{"survey":{"service_user_id":"785856c54e3f20175d24f1471649039ef08dae0f87393323903a536d31cf8aaa"}}'
1192
+ headers:
1193
+ User-Agent:
1194
+ - Faraday v0.9.0
1195
+ Content-Type:
1196
+ - application/json
1197
+ Api-Token:
1198
+ - testing
1199
+ Accept-Encoding:
1200
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
1201
+ Accept:
1202
+ - "*/*"
1203
+ response:
1204
+ status:
1205
+ code: 201
1206
+ message: 'Created '
1207
+ headers:
1208
+ X-Frame-Options:
1209
+ - SAMEORIGIN
1210
+ X-Xss-Protection:
1211
+ - 1; mode=block
1212
+ X-Content-Type-Options:
1213
+ - nosniff
1214
+ X-Ua-Compatible:
1215
+ - chrome=1
1216
+ Content-Type:
1217
+ - application/json; charset=utf-8
1218
+ Etag:
1219
+ - '"b1489bbfe35876cd0d3da9126eb8cdc6"'
1220
+ Cache-Control:
1221
+ - max-age=0, private, must-revalidate
1222
+ X-Request-Id:
1223
+ - 230a1fb1-d9af-493e-80ec-e985ec758d4e
1224
+ X-Runtime:
1225
+ - '0.068320'
1226
+ Server:
1227
+ - WEBrick/1.3.1 (Ruby/2.1.2/2014-05-08)
1228
+ Date:
1229
+ - Sat, 04 Oct 2014 18:11:10 GMT
1230
+ Content-Length:
1231
+ - '8056'
1232
+ Connection:
1233
+ - Keep-Alive
1234
+ body:
1235
+ encoding: UTF-8
1236
+ string: |-
1237
+ {
1238
+ "id": 136,
1239
+ "service_user_id": "785856c54e3f20175d24f1471649039ef08dae0f87393323903a536d31cf8aaa",
1240
+ "_links": {
1241
+ "self": {
1242
+ "href": "http://localhost:3000/api/surveys/136"
1243
+ },
1244
+ "survey_questions": {
1245
+ "post": {
1246
+ "href": "/api/surveys/136/survey_questions"
1247
+ },
1248
+ "put": {
1249
+ "href": "/api/surveys/136/survey_questions"
1250
+ }
1251
+ }
1252
+ },
1253
+ "completed": false,
1254
+ "survey_questions": [
1255
+ {
1256
+ "id": 618,
1257
+ "text": "How do you feel right now?",
1258
+ "type": "range",
1259
+ "responses": [
1260
+ "0",
1261
+ "10"
1262
+ ],
1263
+ "answer": null,
1264
+ "freeform": false,
1265
+ "_links": {
1266
+ "self": {
1267
+ "href": "http://localhost:3000/api/surveys/136/survey_questions/618"
1268
+ },
1269
+ "post": {
1270
+ "href": "http://localhost:3000/api/surveys/136/survey_questions"
1271
+ },
1272
+ "put": {
1273
+ "href": "http://localhost:3000/api/surveys/136/survey_questions/618"
1274
+ },
1275
+ "survey": {
1276
+ "href": "http://localhost:3000/api/surveys/136"
1277
+ }
1278
+ }
1279
+ },
1280
+ {
1281
+ "id": 619,
1282
+ "text": "Where are you?",
1283
+ "type": "multiple",
1284
+ "responses": [
1285
+ "At Home",
1286
+ "At Work",
1287
+ "In a car",
1288
+ "Other"
1289
+ ],
1290
+ "answer": null,
1291
+ "freeform": true,
1292
+ "_links": {
1293
+ "self": {
1294
+ "href": "http://localhost:3000/api/surveys/136/survey_questions/619"
1295
+ },
1296
+ "post": {
1297
+ "href": "http://localhost:3000/api/surveys/136/survey_questions"
1298
+ },
1299
+ "put": {
1300
+ "href": "http://localhost:3000/api/surveys/136/survey_questions/619"
1301
+ },
1302
+ "survey": {
1303
+ "href": "http://localhost:3000/api/surveys/136"
1304
+ }
1305
+ }
1306
+ },
1307
+ {
1308
+ "id": 620,
1309
+ "text": "Do you like poptarts?",
1310
+ "type": "multiple",
1311
+ "responses": [
1312
+ "Yes",
1313
+ "No"
1314
+ ],
1315
+ "answer": null,
1316
+ "freeform": true,
1317
+ "_links": {
1318
+ "self": {
1319
+ "href": "http://localhost:3000/api/surveys/136/survey_questions/620"
1320
+ },
1321
+ "post": {
1322
+ "href": "http://localhost:3000/api/surveys/136/survey_questions"
1323
+ },
1324
+ "put": {
1325
+ "href": "http://localhost:3000/api/surveys/136/survey_questions/620"
1326
+ },
1327
+ "survey": {
1328
+ "href": "http://localhost:3000/api/surveys/136"
1329
+ }
1330
+ }
1331
+ },
1332
+ {
1333
+ "id": 621,
1334
+ "text": "Do you like poptarts?",
1335
+ "type": "multiple",
1336
+ "responses": [
1337
+ "Yes",
1338
+ "No"
1339
+ ],
1340
+ "answer": null,
1341
+ "freeform": true,
1342
+ "_links": {
1343
+ "self": {
1344
+ "href": "http://localhost:3000/api/surveys/136/survey_questions/621"
1345
+ },
1346
+ "post": {
1347
+ "href": "http://localhost:3000/api/surveys/136/survey_questions"
1348
+ },
1349
+ "put": {
1350
+ "href": "http://localhost:3000/api/surveys/136/survey_questions/621"
1351
+ },
1352
+ "survey": {
1353
+ "href": "http://localhost:3000/api/surveys/136"
1354
+ }
1355
+ }
1356
+ },
1357
+ {
1358
+ "id": 622,
1359
+ "text": "Do you love poptarts?",
1360
+ "type": "multiple",
1361
+ "responses": [
1362
+ "Yes",
1363
+ "No"
1364
+ ],
1365
+ "answer": null,
1366
+ "freeform": true,
1367
+ "_links": {
1368
+ "self": {
1369
+ "href": "http://localhost:3000/api/surveys/136/survey_questions/622"
1370
+ },
1371
+ "post": {
1372
+ "href": "http://localhost:3000/api/surveys/136/survey_questions"
1373
+ },
1374
+ "put": {
1375
+ "href": "http://localhost:3000/api/surveys/136/survey_questions/622"
1376
+ },
1377
+ "survey": {
1378
+ "href": "http://localhost:3000/api/surveys/136"
1379
+ }
1380
+ }
1381
+ },
1382
+ {
1383
+ "id": 623,
1384
+ "text": "Do you love poptarts?",
1385
+ "type": "multiple",
1386
+ "responses": [
1387
+ "Yes",
1388
+ "No"
1389
+ ],
1390
+ "answer": null,
1391
+ "freeform": true,
1392
+ "_links": {
1393
+ "self": {
1394
+ "href": "http://localhost:3000/api/surveys/136/survey_questions/623"
1395
+ },
1396
+ "post": {
1397
+ "href": "http://localhost:3000/api/surveys/136/survey_questions"
1398
+ },
1399
+ "put": {
1400
+ "href": "http://localhost:3000/api/surveys/136/survey_questions/623"
1401
+ },
1402
+ "survey": {
1403
+ "href": "http://localhost:3000/api/surveys/136"
1404
+ }
1405
+ }
1406
+ },
1407
+ {
1408
+ "id": 624,
1409
+ "text": "Do you like poptarts?",
1410
+ "type": "multiple",
1411
+ "responses": [
1412
+ "Yes",
1413
+ "No"
1414
+ ],
1415
+ "answer": null,
1416
+ "freeform": true,
1417
+ "_links": {
1418
+ "self": {
1419
+ "href": "http://localhost:3000/api/surveys/136/survey_questions/624"
1420
+ },
1421
+ "post": {
1422
+ "href": "http://localhost:3000/api/surveys/136/survey_questions"
1423
+ },
1424
+ "put": {
1425
+ "href": "http://localhost:3000/api/surveys/136/survey_questions/624"
1426
+ },
1427
+ "survey": {
1428
+ "href": "http://localhost:3000/api/surveys/136"
1429
+ }
1430
+ }
1431
+ },
1432
+ {
1433
+ "id": 625,
1434
+ "text": "Do you like poptarts?",
1435
+ "type": "multiple",
1436
+ "responses": [
1437
+ "Yes",
1438
+ "No"
1439
+ ],
1440
+ "answer": null,
1441
+ "freeform": true,
1442
+ "_links": {
1443
+ "self": {
1444
+ "href": "http://localhost:3000/api/surveys/136/survey_questions/625"
1445
+ },
1446
+ "post": {
1447
+ "href": "http://localhost:3000/api/surveys/136/survey_questions"
1448
+ },
1449
+ "put": {
1450
+ "href": "http://localhost:3000/api/surveys/136/survey_questions/625"
1451
+ },
1452
+ "survey": {
1453
+ "href": "http://localhost:3000/api/surveys/136"
1454
+ }
1455
+ }
1456
+ },
1457
+ {
1458
+ "id": 626,
1459
+ "text": "Do you like poptarts?",
1460
+ "type": "multiple",
1461
+ "responses": [
1462
+ "Yes",
1463
+ "No"
1464
+ ],
1465
+ "answer": null,
1466
+ "freeform": true,
1467
+ "_links": {
1468
+ "self": {
1469
+ "href": "http://localhost:3000/api/surveys/136/survey_questions/626"
1470
+ },
1471
+ "post": {
1472
+ "href": "http://localhost:3000/api/surveys/136/survey_questions"
1473
+ },
1474
+ "put": {
1475
+ "href": "http://localhost:3000/api/surveys/136/survey_questions/626"
1476
+ },
1477
+ "survey": {
1478
+ "href": "http://localhost:3000/api/surveys/136"
1479
+ }
1480
+ }
1481
+ },
1482
+ {
1483
+ "id": 627,
1484
+ "text": "Do you like poptarts?",
1485
+ "type": "multiple",
1486
+ "responses": [
1487
+ "Yes",
1488
+ "No"
1489
+ ],
1490
+ "answer": null,
1491
+ "freeform": true,
1492
+ "_links": {
1493
+ "self": {
1494
+ "href": "http://localhost:3000/api/surveys/136/survey_questions/627"
1495
+ },
1496
+ "post": {
1497
+ "href": "http://localhost:3000/api/surveys/136/survey_questions"
1498
+ },
1499
+ "put": {
1500
+ "href": "http://localhost:3000/api/surveys/136/survey_questions/627"
1501
+ },
1502
+ "survey": {
1503
+ "href": "http://localhost:3000/api/surveys/136"
1504
+ }
1505
+ }
1506
+ },
1507
+ {
1508
+ "id": 628,
1509
+ "text": "Do you like poptarts?",
1510
+ "type": "multiple",
1511
+ "responses": [
1512
+ "Yes",
1513
+ "No"
1514
+ ],
1515
+ "answer": null,
1516
+ "freeform": true,
1517
+ "_links": {
1518
+ "self": {
1519
+ "href": "http://localhost:3000/api/surveys/136/survey_questions/628"
1520
+ },
1521
+ "post": {
1522
+ "href": "http://localhost:3000/api/surveys/136/survey_questions"
1523
+ },
1524
+ "put": {
1525
+ "href": "http://localhost:3000/api/surveys/136/survey_questions/628"
1526
+ },
1527
+ "survey": {
1528
+ "href": "http://localhost:3000/api/surveys/136"
1529
+ }
1530
+ }
1531
+ },
1532
+ {
1533
+ "id": 629,
1534
+ "text": "Do you love poptarts?",
1535
+ "type": "multiple",
1536
+ "responses": [
1537
+ "Yes",
1538
+ "No"
1539
+ ],
1540
+ "answer": null,
1541
+ "freeform": true,
1542
+ "_links": {
1543
+ "self": {
1544
+ "href": "http://localhost:3000/api/surveys/136/survey_questions/629"
1545
+ },
1546
+ "post": {
1547
+ "href": "http://localhost:3000/api/surveys/136/survey_questions"
1548
+ },
1549
+ "put": {
1550
+ "href": "http://localhost:3000/api/surveys/136/survey_questions/629"
1551
+ },
1552
+ "survey": {
1553
+ "href": "http://localhost:3000/api/surveys/136"
1554
+ }
1555
+ }
1556
+ }
1557
+ ]
1558
+ }
1559
+ http_version:
1560
+ recorded_at: Sat, 04 Oct 2014 18:11:10 GMT
1561
+ - request:
1562
+ method: post
1563
+ uri: http://localhost:3000/api/users
1564
+ body:
1565
+ encoding: UTF-8
1566
+ string: "{}"
1567
+ headers:
1568
+ User-Agent:
1569
+ - Faraday v0.9.0
1570
+ Content-Type:
1571
+ - application/json
1572
+ Api-Token:
1573
+ - testing
1574
+ Accept-Encoding:
1575
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
1576
+ Accept:
1577
+ - "*/*"
1578
+ response:
1579
+ status:
1580
+ code: 201
1581
+ message: 'Created '
1582
+ headers:
1583
+ X-Frame-Options:
1584
+ - SAMEORIGIN
1585
+ X-Xss-Protection:
1586
+ - 1; mode=block
1587
+ X-Content-Type-Options:
1588
+ - nosniff
1589
+ X-Ua-Compatible:
1590
+ - chrome=1
1591
+ Content-Type:
1592
+ - application/json; charset=utf-8
1593
+ Etag:
1594
+ - '"85ed589ad712a5bf03392acaae227b5e"'
1595
+ Cache-Control:
1596
+ - max-age=0, private, must-revalidate
1597
+ X-Request-Id:
1598
+ - a5743c99-4a41-4f7e-80e5-ba7cee4c8ba3
1599
+ X-Runtime:
1600
+ - '0.005904'
1601
+ Server:
1602
+ - WEBrick/1.3.1 (Ruby/2.1.2/2014-05-08)
1603
+ Date:
1604
+ - Sun, 05 Oct 2014 12:53:39 GMT
1605
+ Content-Length:
1606
+ - '261'
1607
+ Connection:
1608
+ - Keep-Alive
1609
+ body:
1610
+ encoding: UTF-8
1611
+ string: |-
1612
+ {
1613
+ "service_user_id": "68c0979c917ca4065705eaa133bea6ef3345e50f2729fe0f1a5d84e113ed9a05",
1614
+ "_links": {
1615
+ "self": {
1616
+ "href": "http://localhost:3000/api/users/204"
1617
+ }
1618
+ },
1619
+ "token": "35f31a9744c8de6608c42ed0014133732eb48df39890c0a7bd60e67ffb71bc4a"
1620
+ }
1621
+ http_version:
1622
+ recorded_at: Sun, 05 Oct 2014 12:53:39 GMT
1623
+ - request:
1624
+ method: post
1625
+ uri: http://localhost:3000/api/surveys?random=true
965
1626
  body:
966
1627
  encoding: UTF-8
967
- string: '{"survey":{"service_user_id":"e81f9df2f19ac3d0e4634061bff685bbb732abb269049eafdd4fa9ae7c836c6b"}}'
1628
+ string: '{"survey":{"service_user_id":"68c0979c917ca4065705eaa133bea6ef3345e50f2729fe0f1a5d84e113ed9a05"}}'
968
1629
  headers:
969
1630
  User-Agent:
970
1631
  - Faraday v0.9.0
@@ -992,44 +1653,44 @@ http_interactions:
992
1653
  Content-Type:
993
1654
  - application/json; charset=utf-8
994
1655
  Etag:
995
- - '"5a752cce440e83f19c183e067f96cb30"'
1656
+ - '"2d6dbd767f8e4cc6c27121e044881b15"'
996
1657
  Cache-Control:
997
1658
  - max-age=0, private, must-revalidate
998
1659
  X-Request-Id:
999
- - e52bfe39-dcf1-4b4b-aeb9-7a087ff3faaa
1660
+ - 2ad2594f-47e5-4937-ac4d-560f2b6942ec
1000
1661
  X-Runtime:
1001
- - '0.047594'
1662
+ - '0.064061'
1002
1663
  Server:
1003
1664
  - WEBrick/1.3.1 (Ruby/2.1.2/2014-05-08)
1004
1665
  Date:
1005
- - Sun, 21 Sep 2014 20:28:01 GMT
1666
+ - Sun, 05 Oct 2014 12:53:39 GMT
1006
1667
  Content-Length:
1007
- - '3393'
1668
+ - '8098'
1008
1669
  Connection:
1009
1670
  - Keep-Alive
1010
1671
  body:
1011
1672
  encoding: UTF-8
1012
1673
  string: |-
1013
1674
  {
1014
- "id": 83,
1015
- "service_user_id": "e81f9df2f19ac3d0e4634061bff685bbb732abb269049eafdd4fa9ae7c836c6b",
1675
+ "id": 230,
1676
+ "service_user_id": "68c0979c917ca4065705eaa133bea6ef3345e50f2729fe0f1a5d84e113ed9a05",
1016
1677
  "_links": {
1017
1678
  "self": {
1018
- "href": "http://localhost:3000/api/surveys/83"
1679
+ "href": "http://localhost:3000/api/surveys/230"
1019
1680
  },
1020
1681
  "survey_questions": {
1021
1682
  "post": {
1022
- "href": "/api/surveys/83/survey_questions"
1683
+ "href": "http://localhost:3000/api/surveys/230/survey_questions"
1023
1684
  },
1024
1685
  "put": {
1025
- "href": "/api/surveys/83/survey_questions"
1686
+ "href": "http://localhost:3000/api/surveys/230/survey_questions"
1026
1687
  }
1027
1688
  }
1028
1689
  },
1029
1690
  "completed": false,
1030
1691
  "survey_questions": [
1031
1692
  {
1032
- "id": 262,
1693
+ "id": 957,
1033
1694
  "text": "How do you feel right now?",
1034
1695
  "type": "range",
1035
1696
  "responses": [
@@ -1040,21 +1701,21 @@ http_interactions:
1040
1701
  "freeform": false,
1041
1702
  "_links": {
1042
1703
  "self": {
1043
- "href": "/api/surveys/83/survey_questions/262"
1704
+ "href": "http://localhost:3000/api/surveys/230/survey_questions/957"
1044
1705
  },
1045
1706
  "post": {
1046
- "href": "http://localhost:3000/api/surveys/83/survey_questions"
1707
+ "href": "http://localhost:3000/api/surveys/230/survey_questions"
1047
1708
  },
1048
1709
  "put": {
1049
- "href": "/api/surveys/83/survey_questions/262"
1710
+ "href": "http://localhost:3000/api/surveys/230/survey_questions/957"
1050
1711
  },
1051
1712
  "survey": {
1052
- "href": "/api/surveys/83"
1713
+ "href": "http://localhost:3000/api/surveys/230"
1053
1714
  }
1054
1715
  }
1055
1716
  },
1056
1717
  {
1057
- "id": 263,
1718
+ "id": 958,
1058
1719
  "text": "Where are you?",
1059
1720
  "type": "multiple",
1060
1721
  "responses": [
@@ -1067,96 +1728,271 @@ http_interactions:
1067
1728
  "freeform": true,
1068
1729
  "_links": {
1069
1730
  "self": {
1070
- "href": "/api/surveys/83/survey_questions/263"
1731
+ "href": "http://localhost:3000/api/surveys/230/survey_questions/958"
1071
1732
  },
1072
1733
  "post": {
1073
- "href": "http://localhost:3000/api/surveys/83/survey_questions"
1734
+ "href": "http://localhost:3000/api/surveys/230/survey_questions"
1074
1735
  },
1075
1736
  "put": {
1076
- "href": "/api/surveys/83/survey_questions/263"
1737
+ "href": "http://localhost:3000/api/surveys/230/survey_questions/958"
1077
1738
  },
1078
1739
  "survey": {
1079
- "href": "/api/surveys/83"
1740
+ "href": "http://localhost:3000/api/surveys/230"
1080
1741
  }
1081
1742
  }
1082
1743
  },
1083
1744
  {
1084
- "id": 264,
1085
- "text": "Have you surprised someone with a gift (including small gifts) in the last week?",
1086
- "type": "boolean",
1745
+ "id": 959,
1746
+ "text": "Do you like poptarts?",
1747
+ "type": "multiple",
1087
1748
  "responses": [
1088
- "t",
1089
- "f"
1749
+ "Yes",
1750
+ "No"
1090
1751
  ],
1091
1752
  "answer": null,
1092
- "freeform": false,
1753
+ "freeform": true,
1093
1754
  "_links": {
1094
1755
  "self": {
1095
- "href": "/api/surveys/83/survey_questions/264"
1756
+ "href": "http://localhost:3000/api/surveys/230/survey_questions/959"
1096
1757
  },
1097
1758
  "post": {
1098
- "href": "http://localhost:3000/api/surveys/83/survey_questions"
1759
+ "href": "http://localhost:3000/api/surveys/230/survey_questions"
1099
1760
  },
1100
1761
  "put": {
1101
- "href": "/api/surveys/83/survey_questions/264"
1762
+ "href": "http://localhost:3000/api/surveys/230/survey_questions/959"
1102
1763
  },
1103
1764
  "survey": {
1104
- "href": "/api/surveys/83"
1765
+ "href": "http://localhost:3000/api/surveys/230"
1105
1766
  }
1106
1767
  }
1107
1768
  },
1108
1769
  {
1109
- "id": 265,
1110
- "text": "Are you alone?",
1111
- "type": "boolean",
1770
+ "id": 960,
1771
+ "text": "Do you like poptarts?",
1772
+ "type": "multiple",
1112
1773
  "responses": [
1113
- "t",
1114
- "f"
1774
+ "Yes",
1775
+ "No"
1115
1776
  ],
1116
1777
  "answer": null,
1117
- "freeform": false,
1778
+ "freeform": true,
1118
1779
  "_links": {
1119
1780
  "self": {
1120
- "href": "/api/surveys/83/survey_questions/265"
1781
+ "href": "http://localhost:3000/api/surveys/230/survey_questions/960"
1121
1782
  },
1122
1783
  "post": {
1123
- "href": "http://localhost:3000/api/surveys/83/survey_questions"
1784
+ "href": "http://localhost:3000/api/surveys/230/survey_questions"
1124
1785
  },
1125
1786
  "put": {
1126
- "href": "/api/surveys/83/survey_questions/265"
1787
+ "href": "http://localhost:3000/api/surveys/230/survey_questions/960"
1127
1788
  },
1128
1789
  "survey": {
1129
- "href": "/api/surveys/83"
1790
+ "href": "http://localhost:3000/api/surveys/230"
1130
1791
  }
1131
1792
  }
1132
1793
  },
1133
1794
  {
1134
- "id": 266,
1135
- "text": "In the past 24 hours, have you engaged in sexual activity with another person?",
1136
- "type": "boolean",
1795
+ "id": 961,
1796
+ "text": "Do you love poptarts?",
1797
+ "type": "multiple",
1137
1798
  "responses": [
1138
- "t",
1139
- "f"
1799
+ "Yes",
1800
+ "No"
1140
1801
  ],
1141
1802
  "answer": null,
1142
- "freeform": false,
1803
+ "freeform": true,
1804
+ "_links": {
1805
+ "self": {
1806
+ "href": "http://localhost:3000/api/surveys/230/survey_questions/961"
1807
+ },
1808
+ "post": {
1809
+ "href": "http://localhost:3000/api/surveys/230/survey_questions"
1810
+ },
1811
+ "put": {
1812
+ "href": "http://localhost:3000/api/surveys/230/survey_questions/961"
1813
+ },
1814
+ "survey": {
1815
+ "href": "http://localhost:3000/api/surveys/230"
1816
+ }
1817
+ }
1818
+ },
1819
+ {
1820
+ "id": 962,
1821
+ "text": "Do you love poptarts?",
1822
+ "type": "multiple",
1823
+ "responses": [
1824
+ "Yes",
1825
+ "No"
1826
+ ],
1827
+ "answer": null,
1828
+ "freeform": true,
1829
+ "_links": {
1830
+ "self": {
1831
+ "href": "http://localhost:3000/api/surveys/230/survey_questions/962"
1832
+ },
1833
+ "post": {
1834
+ "href": "http://localhost:3000/api/surveys/230/survey_questions"
1835
+ },
1836
+ "put": {
1837
+ "href": "http://localhost:3000/api/surveys/230/survey_questions/962"
1838
+ },
1839
+ "survey": {
1840
+ "href": "http://localhost:3000/api/surveys/230"
1841
+ }
1842
+ }
1843
+ },
1844
+ {
1845
+ "id": 963,
1846
+ "text": "Do you like poptarts?",
1847
+ "type": "multiple",
1848
+ "responses": [
1849
+ "Yes",
1850
+ "No"
1851
+ ],
1852
+ "answer": null,
1853
+ "freeform": true,
1854
+ "_links": {
1855
+ "self": {
1856
+ "href": "http://localhost:3000/api/surveys/230/survey_questions/963"
1857
+ },
1858
+ "post": {
1859
+ "href": "http://localhost:3000/api/surveys/230/survey_questions"
1860
+ },
1861
+ "put": {
1862
+ "href": "http://localhost:3000/api/surveys/230/survey_questions/963"
1863
+ },
1864
+ "survey": {
1865
+ "href": "http://localhost:3000/api/surveys/230"
1866
+ }
1867
+ }
1868
+ },
1869
+ {
1870
+ "id": 964,
1871
+ "text": "Do you like poptarts?",
1872
+ "type": "multiple",
1873
+ "responses": [
1874
+ "Yes",
1875
+ "No"
1876
+ ],
1877
+ "answer": null,
1878
+ "freeform": true,
1879
+ "_links": {
1880
+ "self": {
1881
+ "href": "http://localhost:3000/api/surveys/230/survey_questions/964"
1882
+ },
1883
+ "post": {
1884
+ "href": "http://localhost:3000/api/surveys/230/survey_questions"
1885
+ },
1886
+ "put": {
1887
+ "href": "http://localhost:3000/api/surveys/230/survey_questions/964"
1888
+ },
1889
+ "survey": {
1890
+ "href": "http://localhost:3000/api/surveys/230"
1891
+ }
1892
+ }
1893
+ },
1894
+ {
1895
+ "id": 965,
1896
+ "text": "Do you like poptarts?",
1897
+ "type": "multiple",
1898
+ "responses": [
1899
+ "Yes",
1900
+ "No"
1901
+ ],
1902
+ "answer": null,
1903
+ "freeform": true,
1904
+ "_links": {
1905
+ "self": {
1906
+ "href": "http://localhost:3000/api/surveys/230/survey_questions/965"
1907
+ },
1908
+ "post": {
1909
+ "href": "http://localhost:3000/api/surveys/230/survey_questions"
1910
+ },
1911
+ "put": {
1912
+ "href": "http://localhost:3000/api/surveys/230/survey_questions/965"
1913
+ },
1914
+ "survey": {
1915
+ "href": "http://localhost:3000/api/surveys/230"
1916
+ }
1917
+ }
1918
+ },
1919
+ {
1920
+ "id": 966,
1921
+ "text": "Do you like poptarts?",
1922
+ "type": "multiple",
1923
+ "responses": [
1924
+ "Yes",
1925
+ "No"
1926
+ ],
1927
+ "answer": null,
1928
+ "freeform": true,
1929
+ "_links": {
1930
+ "self": {
1931
+ "href": "http://localhost:3000/api/surveys/230/survey_questions/966"
1932
+ },
1933
+ "post": {
1934
+ "href": "http://localhost:3000/api/surveys/230/survey_questions"
1935
+ },
1936
+ "put": {
1937
+ "href": "http://localhost:3000/api/surveys/230/survey_questions/966"
1938
+ },
1939
+ "survey": {
1940
+ "href": "http://localhost:3000/api/surveys/230"
1941
+ }
1942
+ }
1943
+ },
1944
+ {
1945
+ "id": 967,
1946
+ "text": "Do you like poptarts?",
1947
+ "type": "multiple",
1948
+ "responses": [
1949
+ "Yes",
1950
+ "No"
1951
+ ],
1952
+ "answer": null,
1953
+ "freeform": true,
1954
+ "_links": {
1955
+ "self": {
1956
+ "href": "http://localhost:3000/api/surveys/230/survey_questions/967"
1957
+ },
1958
+ "post": {
1959
+ "href": "http://localhost:3000/api/surveys/230/survey_questions"
1960
+ },
1961
+ "put": {
1962
+ "href": "http://localhost:3000/api/surveys/230/survey_questions/967"
1963
+ },
1964
+ "survey": {
1965
+ "href": "http://localhost:3000/api/surveys/230"
1966
+ }
1967
+ }
1968
+ },
1969
+ {
1970
+ "id": 968,
1971
+ "text": "Do you love poptarts?",
1972
+ "type": "multiple",
1973
+ "responses": [
1974
+ "Yes",
1975
+ "No"
1976
+ ],
1977
+ "answer": null,
1978
+ "freeform": true,
1143
1979
  "_links": {
1144
1980
  "self": {
1145
- "href": "/api/surveys/83/survey_questions/266"
1981
+ "href": "http://localhost:3000/api/surveys/230/survey_questions/968"
1146
1982
  },
1147
1983
  "post": {
1148
- "href": "http://localhost:3000/api/surveys/83/survey_questions"
1984
+ "href": "http://localhost:3000/api/surveys/230/survey_questions"
1149
1985
  },
1150
1986
  "put": {
1151
- "href": "/api/surveys/83/survey_questions/266"
1987
+ "href": "http://localhost:3000/api/surveys/230/survey_questions/968"
1152
1988
  },
1153
1989
  "survey": {
1154
- "href": "/api/surveys/83"
1990
+ "href": "http://localhost:3000/api/surveys/230"
1155
1991
  }
1156
1992
  }
1157
1993
  }
1158
1994
  ]
1159
1995
  }
1160
1996
  http_version:
1161
- recorded_at: Sun, 21 Sep 2014 20:28:01 GMT
1997
+ recorded_at: Sun, 05 Oct 2014 12:53:39 GMT
1162
1998
  recorded_with: VCR 2.6.0