poptart 0.0.10 → 0.0.11

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.
@@ -6361,222 +6361,6 @@ http_interactions:
6361
6361
  }
6362
6362
  http_version:
6363
6363
  recorded_at: Thu, 09 Oct 2014 02:15:06 GMT
6364
- - request:
6365
- method: get
6366
- uri: http://localhost:3000/
6367
- body:
6368
- encoding: US-ASCII
6369
- string: ''
6370
- headers:
6371
- User-Agent:
6372
- - Faraday v0.9.0
6373
- Content-Type:
6374
- - application/json
6375
- Api-Token:
6376
- - testing
6377
- Accept-Encoding:
6378
- - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
6379
- Accept:
6380
- - "*/*"
6381
- response:
6382
- status:
6383
- code: 200
6384
- message: 'OK '
6385
- headers:
6386
- X-Frame-Options:
6387
- - SAMEORIGIN
6388
- X-Xss-Protection:
6389
- - 1; mode=block
6390
- X-Content-Type-Options:
6391
- - nosniff
6392
- X-Ua-Compatible:
6393
- - chrome=1
6394
- Content-Type:
6395
- - application/json; charset=utf-8
6396
- Etag:
6397
- - '"2aa11a1ab77b139e58f765299f923a01"'
6398
- Cache-Control:
6399
- - max-age=0, private, must-revalidate
6400
- X-Request-Id:
6401
- - 41144d8c-c595-4da9-ac01-f012ff264662
6402
- X-Runtime:
6403
- - '0.004580'
6404
- Server:
6405
- - WEBrick/1.3.1 (Ruby/2.1.2/2014-05-08)
6406
- Date:
6407
- - Thu, 09 Oct 2014 02:15:34 GMT
6408
- Content-Length:
6409
- - '469'
6410
- Connection:
6411
- - Keep-Alive
6412
- body:
6413
- encoding: UTF-8
6414
- string: |-
6415
- {
6416
- "_links": {
6417
- "self": {
6418
- "href": "http://localhost:3000/"
6419
- },
6420
- "surveys": {
6421
- "href": "http://localhost:3000/api/surveys{/id}{?query*}"
6422
- },
6423
- "users": {
6424
- "href": "http://localhost:3000/api/users{/id}{?query*}"
6425
- },
6426
- "questions": {
6427
- "href": "http://localhost:3000/api/questions{/id}{?query*}"
6428
- },
6429
- "survey_questions": {
6430
- "href": "http://localhost:3000/api/questions{/question_id}/survey_questions{?query*}"
6431
- }
6432
- }
6433
- }
6434
- http_version:
6435
- recorded_at: Thu, 09 Oct 2014 02:15:34 GMT
6436
- - request:
6437
- method: get
6438
- uri: http://localhost:3000/
6439
- body:
6440
- encoding: US-ASCII
6441
- string: ''
6442
- headers:
6443
- User-Agent:
6444
- - Faraday v0.9.0
6445
- Content-Type:
6446
- - application/json
6447
- Api-Token:
6448
- - testing
6449
- Accept-Encoding:
6450
- - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
6451
- Accept:
6452
- - "*/*"
6453
- response:
6454
- status:
6455
- code: 200
6456
- message: 'OK '
6457
- headers:
6458
- X-Frame-Options:
6459
- - SAMEORIGIN
6460
- X-Xss-Protection:
6461
- - 1; mode=block
6462
- X-Content-Type-Options:
6463
- - nosniff
6464
- X-Ua-Compatible:
6465
- - chrome=1
6466
- Content-Type:
6467
- - application/json; charset=utf-8
6468
- Etag:
6469
- - '"2aa11a1ab77b139e58f765299f923a01"'
6470
- Cache-Control:
6471
- - max-age=0, private, must-revalidate
6472
- X-Request-Id:
6473
- - d5e8d8dc-0a81-4992-b133-977e64058cc0
6474
- X-Runtime:
6475
- - '0.004482'
6476
- Server:
6477
- - WEBrick/1.3.1 (Ruby/2.1.2/2014-05-08)
6478
- Date:
6479
- - Thu, 09 Oct 2014 02:15:34 GMT
6480
- Content-Length:
6481
- - '469'
6482
- Connection:
6483
- - Keep-Alive
6484
- body:
6485
- encoding: UTF-8
6486
- string: |-
6487
- {
6488
- "_links": {
6489
- "self": {
6490
- "href": "http://localhost:3000/"
6491
- },
6492
- "surveys": {
6493
- "href": "http://localhost:3000/api/surveys{/id}{?query*}"
6494
- },
6495
- "users": {
6496
- "href": "http://localhost:3000/api/users{/id}{?query*}"
6497
- },
6498
- "questions": {
6499
- "href": "http://localhost:3000/api/questions{/id}{?query*}"
6500
- },
6501
- "survey_questions": {
6502
- "href": "http://localhost:3000/api/questions{/question_id}/survey_questions{?query*}"
6503
- }
6504
- }
6505
- }
6506
- http_version:
6507
- recorded_at: Thu, 09 Oct 2014 02:15:34 GMT
6508
- - request:
6509
- method: get
6510
- uri: http://localhost:3000/
6511
- body:
6512
- encoding: US-ASCII
6513
- string: ''
6514
- headers:
6515
- User-Agent:
6516
- - Faraday v0.9.0
6517
- Content-Type:
6518
- - application/json
6519
- Api-Token:
6520
- - testing
6521
- Accept-Encoding:
6522
- - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
6523
- Accept:
6524
- - "*/*"
6525
- response:
6526
- status:
6527
- code: 200
6528
- message: 'OK '
6529
- headers:
6530
- X-Frame-Options:
6531
- - SAMEORIGIN
6532
- X-Xss-Protection:
6533
- - 1; mode=block
6534
- X-Content-Type-Options:
6535
- - nosniff
6536
- X-Ua-Compatible:
6537
- - chrome=1
6538
- Content-Type:
6539
- - application/json; charset=utf-8
6540
- Etag:
6541
- - '"2aa11a1ab77b139e58f765299f923a01"'
6542
- Cache-Control:
6543
- - max-age=0, private, must-revalidate
6544
- X-Request-Id:
6545
- - 3ced3e48-573c-4c13-869b-3c521c346e3d
6546
- X-Runtime:
6547
- - '0.004403'
6548
- Server:
6549
- - WEBrick/1.3.1 (Ruby/2.1.2/2014-05-08)
6550
- Date:
6551
- - Thu, 09 Oct 2014 02:15:34 GMT
6552
- Content-Length:
6553
- - '469'
6554
- Connection:
6555
- - Keep-Alive
6556
- body:
6557
- encoding: UTF-8
6558
- string: |-
6559
- {
6560
- "_links": {
6561
- "self": {
6562
- "href": "http://localhost:3000/"
6563
- },
6564
- "surveys": {
6565
- "href": "http://localhost:3000/api/surveys{/id}{?query*}"
6566
- },
6567
- "users": {
6568
- "href": "http://localhost:3000/api/users{/id}{?query*}"
6569
- },
6570
- "questions": {
6571
- "href": "http://localhost:3000/api/questions{/id}{?query*}"
6572
- },
6573
- "survey_questions": {
6574
- "href": "http://localhost:3000/api/questions{/question_id}/survey_questions{?query*}"
6575
- }
6576
- }
6577
- }
6578
- http_version:
6579
- recorded_at: Thu, 09 Oct 2014 02:15:34 GMT
6580
6364
  - request:
6581
6365
  method: post
6582
6366
  uri: http://localhost:3000/api/surveys/43/survey_questions
@@ -7293,11 +7077,10 @@ http_interactions:
7293
7077
  recorded_at: Thu, 09 Oct 2014 02:15:54 GMT
7294
7078
  - request:
7295
7079
  method: post
7296
- uri: http://localhost:3000/api/questions
7080
+ uri: http://localhost:3000/api/surveys/47/survey_questions
7297
7081
  body:
7298
7082
  encoding: UTF-8
7299
- string: '{"question":{"question_type":"boolean","responses":[true,false],"text":"Do
7300
- you like poptarts?","freeform":false,"absolute_index":null,"parent_question_id":null,"key":"testingooptarts"}}'
7083
+ string: '{"survey_question":{"question_id":64}}'
7301
7084
  headers:
7302
7085
  User-Agent:
7303
7086
  - Faraday v0.9.0
@@ -7325,45 +7108,57 @@ http_interactions:
7325
7108
  Content-Type:
7326
7109
  - application/json; charset=utf-8
7327
7110
  Etag:
7328
- - '"b336ddbcc0775ab8e8eb282a0d82d573"'
7111
+ - '"04912e7db898f91a0ea7029abdd9e1b7"'
7329
7112
  Cache-Control:
7330
7113
  - max-age=0, private, must-revalidate
7331
7114
  X-Request-Id:
7332
- - 8d303764-cbef-4f51-884b-e2c76b5283b9
7115
+ - 8dc862a6-0511-4f0d-b2e6-cda1fb3f0bd8
7333
7116
  X-Runtime:
7334
- - '0.007867'
7117
+ - '0.013472'
7335
7118
  Server:
7336
7119
  - WEBrick/1.3.1 (Ruby/2.1.2/2014-05-08)
7337
7120
  Date:
7338
- - Thu, 09 Oct 2014 02:16:29 GMT
7121
+ - Thu, 09 Oct 2014 02:16:30 GMT
7339
7122
  Content-Length:
7340
- - '226'
7123
+ - '520'
7341
7124
  Connection:
7342
7125
  - Keep-Alive
7343
7126
  body:
7344
7127
  encoding: UTF-8
7345
7128
  string: |-
7346
7129
  {
7347
- "id": 64,
7348
- "question_type": "boolean",
7130
+ "id": 47,
7349
7131
  "text": "Do you like poptarts?",
7132
+ "type": "boolean",
7350
7133
  "responses": [
7351
- true,
7352
- false
7134
+ "t",
7135
+ "f"
7353
7136
  ],
7137
+ "answer": null,
7354
7138
  "freeform": false,
7355
- "absolute_index": null,
7356
- "parent_question_id": null,
7357
- "key": "testingooptarts"
7139
+ "_links": {
7140
+ "self": {
7141
+ "href": "http://localhost:3000/api/surveys/47/survey_questions/47"
7142
+ },
7143
+ "post": {
7144
+ "href": "http://localhost:3000/api/surveys/47/survey_questions"
7145
+ },
7146
+ "put": {
7147
+ "href": "http://localhost:3000/api/surveys/47/survey_questions/47"
7148
+ },
7149
+ "survey": {
7150
+ "href": "http://localhost:3000/api/surveys/47"
7151
+ }
7152
+ }
7358
7153
  }
7359
7154
  http_version:
7360
- recorded_at: Thu, 09 Oct 2014 02:16:29 GMT
7155
+ recorded_at: Thu, 09 Oct 2014 02:16:30 GMT
7361
7156
  - request:
7362
7157
  method: post
7363
- uri: http://localhost:3000/api/users
7158
+ uri: http://localhost:3000/api/surveys/48/survey_questions
7364
7159
  body:
7365
7160
  encoding: UTF-8
7366
- string: "{}"
7161
+ string: '{"survey_question":{"question_id":64}}'
7367
7162
  headers:
7368
7163
  User-Agent:
7369
7164
  - Faraday v0.9.0
@@ -7391,41 +7186,1940 @@ http_interactions:
7391
7186
  Content-Type:
7392
7187
  - application/json; charset=utf-8
7393
7188
  Etag:
7394
- - '"77d2979288d31efdc8176788108fa9d8"'
7189
+ - '"4c18cc71eb2855b648624dccb231c49c"'
7395
7190
  Cache-Control:
7396
7191
  - max-age=0, private, must-revalidate
7397
7192
  X-Request-Id:
7398
- - 73d7db0c-8c75-45a9-822e-77dad4fd76cd
7193
+ - 09ac597a-f6c0-4d0d-86bf-ed580cfaac63
7399
7194
  X-Runtime:
7400
- - '0.006151'
7195
+ - '0.009457'
7401
7196
  Server:
7402
7197
  - WEBrick/1.3.1 (Ruby/2.1.2/2014-05-08)
7403
7198
  Date:
7404
- - Thu, 09 Oct 2014 02:16:29 GMT
7199
+ - Thu, 09 Oct 2014 02:16:30 GMT
7405
7200
  Content-Length:
7406
- - '260'
7201
+ - '520'
7407
7202
  Connection:
7408
7203
  - Keep-Alive
7409
7204
  body:
7410
7205
  encoding: UTF-8
7411
7206
  string: |-
7412
7207
  {
7413
- "service_user_id": "75523999537a5df6384ce5604d1bccf9507ceb980780032f8d2854cfbae10464",
7414
- "_links": {
7415
- "self": {
7416
- "href": "http://localhost:3000/api/users/24"
7417
- }
7418
- },
7419
- "token": "a4b86650c545c0a114ff2eb9e52817131b2bc4966ac0ada52e28f474f817546d"
7208
+ "id": 48,
7209
+ "text": "Do you like poptarts?",
7210
+ "type": "boolean",
7211
+ "responses": [
7212
+ "t",
7213
+ "f"
7214
+ ],
7215
+ "answer": null,
7216
+ "freeform": false,
7217
+ "_links": {
7218
+ "self": {
7219
+ "href": "http://localhost:3000/api/surveys/48/survey_questions/48"
7220
+ },
7221
+ "post": {
7222
+ "href": "http://localhost:3000/api/surveys/48/survey_questions"
7223
+ },
7224
+ "put": {
7225
+ "href": "http://localhost:3000/api/surveys/48/survey_questions/48"
7226
+ },
7227
+ "survey": {
7228
+ "href": "http://localhost:3000/api/surveys/48"
7229
+ }
7230
+ }
7231
+ }
7232
+ http_version:
7233
+ recorded_at: Thu, 09 Oct 2014 02:16:30 GMT
7234
+ - request:
7235
+ method: put
7236
+ uri: http://localhost:3000/api/surveys/47/survey_questions/47
7237
+ body:
7238
+ encoding: UTF-8
7239
+ string: '{"id":47,"survey_question":{"answer":true}}'
7240
+ headers:
7241
+ User-Agent:
7242
+ - Faraday v0.9.0
7243
+ Content-Type:
7244
+ - application/json
7245
+ Api-Token:
7246
+ - testing
7247
+ Accept-Encoding:
7248
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
7249
+ Accept:
7250
+ - "*/*"
7251
+ response:
7252
+ status:
7253
+ code: 204
7254
+ message: 'No Content '
7255
+ headers:
7256
+ X-Frame-Options:
7257
+ - SAMEORIGIN
7258
+ X-Xss-Protection:
7259
+ - 1; mode=block
7260
+ X-Content-Type-Options:
7261
+ - nosniff
7262
+ X-Ua-Compatible:
7263
+ - chrome=1
7264
+ Cache-Control:
7265
+ - no-cache
7266
+ X-Request-Id:
7267
+ - 196bc025-db16-4bcb-88cc-af22047e30da
7268
+ X-Runtime:
7269
+ - '0.010819'
7270
+ Server:
7271
+ - WEBrick/1.3.1 (Ruby/2.1.2/2014-05-08)
7272
+ Date:
7273
+ - Thu, 09 Oct 2014 02:16:30 GMT
7274
+ Connection:
7275
+ - Keep-Alive
7276
+ body:
7277
+ encoding: UTF-8
7278
+ string: ''
7279
+ http_version:
7280
+ recorded_at: Thu, 09 Oct 2014 02:16:30 GMT
7281
+ - request:
7282
+ method: put
7283
+ uri: http://localhost:3000/api/surveys/48/survey_questions/48
7284
+ body:
7285
+ encoding: UTF-8
7286
+ string: '{"id":48,"survey_question":{"answer":false}}'
7287
+ headers:
7288
+ User-Agent:
7289
+ - Faraday v0.9.0
7290
+ Content-Type:
7291
+ - application/json
7292
+ Api-Token:
7293
+ - testing
7294
+ Accept-Encoding:
7295
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
7296
+ Accept:
7297
+ - "*/*"
7298
+ response:
7299
+ status:
7300
+ code: 204
7301
+ message: 'No Content '
7302
+ headers:
7303
+ X-Frame-Options:
7304
+ - SAMEORIGIN
7305
+ X-Xss-Protection:
7306
+ - 1; mode=block
7307
+ X-Content-Type-Options:
7308
+ - nosniff
7309
+ X-Ua-Compatible:
7310
+ - chrome=1
7311
+ Cache-Control:
7312
+ - no-cache
7313
+ X-Request-Id:
7314
+ - f0a0fd4e-0b5c-4033-9f7c-14579a89d0fc
7315
+ X-Runtime:
7316
+ - '0.010456'
7317
+ Server:
7318
+ - WEBrick/1.3.1 (Ruby/2.1.2/2014-05-08)
7319
+ Date:
7320
+ - Thu, 09 Oct 2014 02:16:30 GMT
7321
+ Connection:
7322
+ - Keep-Alive
7323
+ body:
7324
+ encoding: UTF-8
7325
+ string: ''
7326
+ http_version:
7327
+ recorded_at: Thu, 09 Oct 2014 02:16:30 GMT
7328
+ - request:
7329
+ method: get
7330
+ uri: http://localhost:3000/
7331
+ body:
7332
+ encoding: US-ASCII
7333
+ string: ''
7334
+ headers:
7335
+ User-Agent:
7336
+ - Faraday v0.9.0
7337
+ Content-Type:
7338
+ - application/json
7339
+ Api-Token:
7340
+ - testing
7341
+ Accept-Encoding:
7342
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
7343
+ Accept:
7344
+ - "*/*"
7345
+ response:
7346
+ status:
7347
+ code: 401
7348
+ message: 'Unauthorized '
7349
+ headers:
7350
+ X-Frame-Options:
7351
+ - SAMEORIGIN
7352
+ X-Xss-Protection:
7353
+ - 1; mode=block
7354
+ X-Content-Type-Options:
7355
+ - nosniff
7356
+ X-Ua-Compatible:
7357
+ - chrome=1
7358
+ Content-Type:
7359
+ - application/json
7360
+ Cache-Control:
7361
+ - no-cache
7362
+ X-Request-Id:
7363
+ - 895bd0e4-4acf-48a5-9a7d-599df6eb9ab7
7364
+ X-Runtime:
7365
+ - '0.009218'
7366
+ Server:
7367
+ - WEBrick/1.3.1 (Ruby/2.1.2/2014-05-08)
7368
+ Date:
7369
+ - Mon, 13 Oct 2014 18:26:30 GMT
7370
+ Content-Length:
7371
+ - '469'
7372
+ Connection:
7373
+ - Keep-Alive
7374
+ body:
7375
+ encoding: UTF-8
7376
+ string: |-
7377
+ {
7378
+ "_links": {
7379
+ "self": {
7380
+ "href": "http://localhost:3000/"
7381
+ },
7382
+ "surveys": {
7383
+ "href": "http://localhost:3000/api/surveys{/id}{?query*}"
7384
+ },
7385
+ "users": {
7386
+ "href": "http://localhost:3000/api/users{/id}{?query*}"
7387
+ },
7388
+ "questions": {
7389
+ "href": "http://localhost:3000/api/questions{/id}{?query*}"
7390
+ },
7391
+ "survey_questions": {
7392
+ "href": "http://localhost:3000/api/questions{/question_id}/survey_questions{?query*}"
7393
+ }
7394
+ }
7395
+ }
7396
+ http_version:
7397
+ recorded_at: Mon, 13 Oct 2014 18:26:30 GMT
7398
+ - request:
7399
+ method: get
7400
+ uri: http://localhost:3000/
7401
+ body:
7402
+ encoding: US-ASCII
7403
+ string: ''
7404
+ headers:
7405
+ User-Agent:
7406
+ - Faraday v0.9.0
7407
+ Content-Type:
7408
+ - application/json
7409
+ Api-Token:
7410
+ - testing
7411
+ Accept-Encoding:
7412
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
7413
+ Accept:
7414
+ - "*/*"
7415
+ response:
7416
+ status:
7417
+ code: 401
7418
+ message: 'Unauthorized '
7419
+ headers:
7420
+ X-Frame-Options:
7421
+ - SAMEORIGIN
7422
+ X-Xss-Protection:
7423
+ - 1; mode=block
7424
+ X-Content-Type-Options:
7425
+ - nosniff
7426
+ X-Ua-Compatible:
7427
+ - chrome=1
7428
+ Content-Type:
7429
+ - application/json
7430
+ Cache-Control:
7431
+ - no-cache
7432
+ X-Request-Id:
7433
+ - f55ac7c7-8080-4cd9-9169-8fabe69e89a1
7434
+ X-Runtime:
7435
+ - '0.005092'
7436
+ Server:
7437
+ - WEBrick/1.3.1 (Ruby/2.1.2/2014-05-08)
7438
+ Date:
7439
+ - Mon, 13 Oct 2014 18:32:08 GMT
7440
+ Content-Length:
7441
+ - '469'
7442
+ Connection:
7443
+ - Keep-Alive
7444
+ body:
7445
+ encoding: UTF-8
7446
+ string: |-
7447
+ {
7448
+ "_links": {
7449
+ "self": {
7450
+ "href": "http://localhost:3000/"
7451
+ },
7452
+ "surveys": {
7453
+ "href": "http://localhost:3000/api/surveys{/id}{?query*}"
7454
+ },
7455
+ "users": {
7456
+ "href": "http://localhost:3000/api/users{/id}{?query*}"
7457
+ },
7458
+ "questions": {
7459
+ "href": "http://localhost:3000/api/questions{/id}{?query*}"
7460
+ },
7461
+ "survey_questions": {
7462
+ "href": "http://localhost:3000/api/questions{/question_id}/survey_questions{?query*}"
7463
+ }
7464
+ }
7465
+ }
7466
+ http_version:
7467
+ recorded_at: Mon, 13 Oct 2014 18:32:08 GMT
7468
+ - request:
7469
+ method: get
7470
+ uri: http://localhost:3000/
7471
+ body:
7472
+ encoding: US-ASCII
7473
+ string: ''
7474
+ headers:
7475
+ User-Agent:
7476
+ - Faraday v0.9.0
7477
+ Content-Type:
7478
+ - application/json
7479
+ Api-Token:
7480
+ - testing
7481
+ Accept-Encoding:
7482
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
7483
+ Accept:
7484
+ - "*/*"
7485
+ response:
7486
+ status:
7487
+ code: 401
7488
+ message: 'Unauthorized '
7489
+ headers:
7490
+ X-Frame-Options:
7491
+ - SAMEORIGIN
7492
+ X-Xss-Protection:
7493
+ - 1; mode=block
7494
+ X-Content-Type-Options:
7495
+ - nosniff
7496
+ X-Ua-Compatible:
7497
+ - chrome=1
7498
+ Content-Type:
7499
+ - application/json
7500
+ Cache-Control:
7501
+ - no-cache
7502
+ X-Request-Id:
7503
+ - e9210256-79c8-4e37-92cf-1456a87aa836
7504
+ X-Runtime:
7505
+ - '0.029645'
7506
+ Server:
7507
+ - WEBrick/1.3.1 (Ruby/2.1.2/2014-05-08)
7508
+ Date:
7509
+ - Mon, 13 Oct 2014 18:33:57 GMT
7510
+ Content-Length:
7511
+ - '469'
7512
+ Connection:
7513
+ - Keep-Alive
7514
+ body:
7515
+ encoding: UTF-8
7516
+ string: |-
7517
+ {
7518
+ "_links": {
7519
+ "self": {
7520
+ "href": "http://localhost:3000/"
7521
+ },
7522
+ "surveys": {
7523
+ "href": "http://localhost:3000/api/surveys{/id}{?query*}"
7524
+ },
7525
+ "users": {
7526
+ "href": "http://localhost:3000/api/users{/id}{?query*}"
7527
+ },
7528
+ "questions": {
7529
+ "href": "http://localhost:3000/api/questions{/id}{?query*}"
7530
+ },
7531
+ "survey_questions": {
7532
+ "href": "http://localhost:3000/api/questions{/question_id}/survey_questions{?query*}"
7533
+ }
7534
+ }
7535
+ }
7536
+ http_version:
7537
+ recorded_at: Mon, 13 Oct 2014 18:33:57 GMT
7538
+ - request:
7539
+ method: post
7540
+ uri: http://localhost:3000/api/surveys/98/survey_questions
7541
+ body:
7542
+ encoding: UTF-8
7543
+ string: '{"survey_question":{"question_id":99}}'
7544
+ headers:
7545
+ User-Agent:
7546
+ - Faraday v0.9.0
7547
+ Content-Type:
7548
+ - application/json
7549
+ Api-Token:
7550
+ - testing
7551
+ Accept-Encoding:
7552
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
7553
+ Accept:
7554
+ - "*/*"
7555
+ response:
7556
+ status:
7557
+ code: 401
7558
+ message: 'Unauthorized '
7559
+ headers:
7560
+ X-Frame-Options:
7561
+ - SAMEORIGIN
7562
+ X-Xss-Protection:
7563
+ - 1; mode=block
7564
+ X-Content-Type-Options:
7565
+ - nosniff
7566
+ X-Ua-Compatible:
7567
+ - chrome=1
7568
+ Content-Type:
7569
+ - text/html
7570
+ Cache-Control:
7571
+ - no-cache
7572
+ X-Request-Id:
7573
+ - 43c7cbc6-fb09-4210-b9b0-d7536fcddcbd
7574
+ X-Runtime:
7575
+ - '0.004343'
7576
+ Server:
7577
+ - WEBrick/1.3.1 (Ruby/2.1.2/2014-05-08)
7578
+ Date:
7579
+ - Sat, 18 Oct 2014 17:04:19 GMT
7580
+ Content-Length:
7581
+ - '1'
7582
+ Connection:
7583
+ - Keep-Alive
7584
+ body:
7585
+ encoding: UTF-8
7586
+ string: " "
7587
+ http_version:
7588
+ recorded_at: Sat, 18 Oct 2014 17:04:19 GMT
7589
+ - request:
7590
+ method: post
7591
+ uri: http://localhost:3000/api/surveys/99/survey_questions
7592
+ body:
7593
+ encoding: UTF-8
7594
+ string: '{"survey_question":{"question_id":99}}'
7595
+ headers:
7596
+ User-Agent:
7597
+ - Faraday v0.9.0
7598
+ Content-Type:
7599
+ - application/json
7600
+ Api-Token:
7601
+ - testing
7602
+ Accept-Encoding:
7603
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
7604
+ Accept:
7605
+ - "*/*"
7606
+ response:
7607
+ status:
7608
+ code: 401
7609
+ message: 'Unauthorized '
7610
+ headers:
7611
+ X-Frame-Options:
7612
+ - SAMEORIGIN
7613
+ X-Xss-Protection:
7614
+ - 1; mode=block
7615
+ X-Content-Type-Options:
7616
+ - nosniff
7617
+ X-Ua-Compatible:
7618
+ - chrome=1
7619
+ Content-Type:
7620
+ - text/html
7621
+ Cache-Control:
7622
+ - no-cache
7623
+ X-Request-Id:
7624
+ - 12778937-c125-44ff-8ad0-77c83f3a9036
7625
+ X-Runtime:
7626
+ - '0.004700'
7627
+ Server:
7628
+ - WEBrick/1.3.1 (Ruby/2.1.2/2014-05-08)
7629
+ Date:
7630
+ - Sat, 18 Oct 2014 17:04:19 GMT
7631
+ Content-Length:
7632
+ - '1'
7633
+ Connection:
7634
+ - Keep-Alive
7635
+ body:
7636
+ encoding: UTF-8
7637
+ string: " "
7638
+ http_version:
7639
+ recorded_at: Sat, 18 Oct 2014 17:04:19 GMT
7640
+ - request:
7641
+ method: post
7642
+ uri: http://localhost:3000/api/surveys/102/survey_questions
7643
+ body:
7644
+ encoding: UTF-8
7645
+ string: '{"survey_question":{"question_id":107}}'
7646
+ headers:
7647
+ User-Agent:
7648
+ - Faraday v0.9.0
7649
+ Content-Type:
7650
+ - application/json
7651
+ Api-Token:
7652
+ - testing
7653
+ User-Token:
7654
+ - 0a0ff35a09fbac18d2a34743abe82753e6036ed1f1dd11049c2c0bbfc513b703
7655
+ Service-User-Id:
7656
+ - 454d1f373ed6710338daaf601b3a818993b8b86f5b3d068fbe8681c19b8d3db1
7657
+ Accept-Encoding:
7658
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
7659
+ Accept:
7660
+ - "*/*"
7661
+ response:
7662
+ status:
7663
+ code: 201
7664
+ message: 'Created '
7665
+ headers:
7666
+ X-Frame-Options:
7667
+ - SAMEORIGIN
7668
+ X-Xss-Protection:
7669
+ - 1; mode=block
7670
+ X-Content-Type-Options:
7671
+ - nosniff
7672
+ X-Ua-Compatible:
7673
+ - chrome=1
7674
+ Content-Type:
7675
+ - application/json; charset=utf-8
7676
+ Etag:
7677
+ - '"92b27450ec924e15323d774087ab6ddb"'
7678
+ Cache-Control:
7679
+ - max-age=0, private, must-revalidate
7680
+ X-Request-Id:
7681
+ - 4b5bc9f4-ed79-43da-a969-4d6137195d17
7682
+ X-Runtime:
7683
+ - '0.013288'
7684
+ Server:
7685
+ - WEBrick/1.3.1 (Ruby/2.1.2/2014-05-08)
7686
+ Date:
7687
+ - Sat, 18 Oct 2014 17:17:59 GMT
7688
+ Content-Length:
7689
+ - '568'
7690
+ Connection:
7691
+ - Keep-Alive
7692
+ body:
7693
+ encoding: UTF-8
7694
+ string: |-
7695
+ {
7696
+ "id": 95,
7697
+ "text": "Do you like poptarts?",
7698
+ "type": "boolean",
7699
+ "responses": [
7700
+ "t",
7701
+ "f"
7702
+ ],
7703
+ "answer": null,
7704
+ "freeform": false,
7705
+ "_links": {
7706
+ "self": {
7707
+ "href": "http://localhost:3000/api/surveys/102/survey_questions/95"
7708
+ },
7709
+ "post": {
7710
+ "href": "http://localhost:3000/api/surveys/102/survey_questions"
7711
+ },
7712
+ "put": {
7713
+ "href": "http://localhost:3000/api/surveys/102/survey_questions/95"
7714
+ },
7715
+ "survey": {
7716
+ "href": "http://localhost:3000/api/surveys/102"
7717
+ }
7718
+ },
7719
+ "created_at": "2014-10-18T17:17:59.950Z"
7720
+ }
7721
+ http_version:
7722
+ recorded_at: Sat, 18 Oct 2014 17:17:59 GMT
7723
+ - request:
7724
+ method: post
7725
+ uri: http://localhost:3000/api/surveys/103/survey_questions
7726
+ body:
7727
+ encoding: UTF-8
7728
+ string: '{"survey_question":{"question_id":107}}'
7729
+ headers:
7730
+ User-Agent:
7731
+ - Faraday v0.9.0
7732
+ Content-Type:
7733
+ - application/json
7734
+ Api-Token:
7735
+ - testing
7736
+ User-Token:
7737
+ - 0a0ff35a09fbac18d2a34743abe82753e6036ed1f1dd11049c2c0bbfc513b703
7738
+ Service-User-Id:
7739
+ - 454d1f373ed6710338daaf601b3a818993b8b86f5b3d068fbe8681c19b8d3db1
7740
+ Accept-Encoding:
7741
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
7742
+ Accept:
7743
+ - "*/*"
7744
+ response:
7745
+ status:
7746
+ code: 201
7747
+ message: 'Created '
7748
+ headers:
7749
+ X-Frame-Options:
7750
+ - SAMEORIGIN
7751
+ X-Xss-Protection:
7752
+ - 1; mode=block
7753
+ X-Content-Type-Options:
7754
+ - nosniff
7755
+ X-Ua-Compatible:
7756
+ - chrome=1
7757
+ Content-Type:
7758
+ - application/json; charset=utf-8
7759
+ Etag:
7760
+ - '"a88b24b0fca74c15608c818472145ff3"'
7761
+ Cache-Control:
7762
+ - max-age=0, private, must-revalidate
7763
+ X-Request-Id:
7764
+ - ff3306db-e864-4c15-b484-b3ea63bfa9ad
7765
+ X-Runtime:
7766
+ - '0.018174'
7767
+ Server:
7768
+ - WEBrick/1.3.1 (Ruby/2.1.2/2014-05-08)
7769
+ Date:
7770
+ - Sat, 18 Oct 2014 17:18:00 GMT
7771
+ Content-Length:
7772
+ - '568'
7773
+ Connection:
7774
+ - Keep-Alive
7775
+ body:
7776
+ encoding: UTF-8
7777
+ string: |-
7778
+ {
7779
+ "id": 96,
7780
+ "text": "Do you like poptarts?",
7781
+ "type": "boolean",
7782
+ "responses": [
7783
+ "t",
7784
+ "f"
7785
+ ],
7786
+ "answer": null,
7787
+ "freeform": false,
7788
+ "_links": {
7789
+ "self": {
7790
+ "href": "http://localhost:3000/api/surveys/103/survey_questions/96"
7791
+ },
7792
+ "post": {
7793
+ "href": "http://localhost:3000/api/surveys/103/survey_questions"
7794
+ },
7795
+ "put": {
7796
+ "href": "http://localhost:3000/api/surveys/103/survey_questions/96"
7797
+ },
7798
+ "survey": {
7799
+ "href": "http://localhost:3000/api/surveys/103"
7800
+ }
7801
+ },
7802
+ "created_at": "2014-10-18T17:18:00.043Z"
7803
+ }
7804
+ http_version:
7805
+ recorded_at: Sat, 18 Oct 2014 17:18:00 GMT
7806
+ - request:
7807
+ method: put
7808
+ uri: http://localhost:3000/api/surveys/102/survey_questions/95
7809
+ body:
7810
+ encoding: UTF-8
7811
+ string: '{"id":95,"survey_question":{"answer":true}}'
7812
+ headers:
7813
+ User-Agent:
7814
+ - Faraday v0.9.0
7815
+ Content-Type:
7816
+ - application/json
7817
+ Api-Token:
7818
+ - testing
7819
+ User-Token:
7820
+ - 0a0ff35a09fbac18d2a34743abe82753e6036ed1f1dd11049c2c0bbfc513b703
7821
+ Service-User-Id:
7822
+ - 454d1f373ed6710338daaf601b3a818993b8b86f5b3d068fbe8681c19b8d3db1
7823
+ Accept-Encoding:
7824
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
7825
+ Accept:
7826
+ - "*/*"
7827
+ response:
7828
+ status:
7829
+ code: 204
7830
+ message: 'No Content '
7831
+ headers:
7832
+ X-Frame-Options:
7833
+ - SAMEORIGIN
7834
+ X-Xss-Protection:
7835
+ - 1; mode=block
7836
+ X-Content-Type-Options:
7837
+ - nosniff
7838
+ X-Ua-Compatible:
7839
+ - chrome=1
7840
+ Cache-Control:
7841
+ - no-cache
7842
+ X-Request-Id:
7843
+ - 67efc2eb-871e-4571-ac3a-0af889f1a860
7844
+ X-Runtime:
7845
+ - '0.009937'
7846
+ Server:
7847
+ - WEBrick/1.3.1 (Ruby/2.1.2/2014-05-08)
7848
+ Date:
7849
+ - Sat, 18 Oct 2014 17:18:00 GMT
7850
+ Connection:
7851
+ - Keep-Alive
7852
+ body:
7853
+ encoding: UTF-8
7854
+ string: ''
7855
+ http_version:
7856
+ recorded_at: Sat, 18 Oct 2014 17:18:00 GMT
7857
+ - request:
7858
+ method: put
7859
+ uri: http://localhost:3000/api/surveys/103/survey_questions/96
7860
+ body:
7861
+ encoding: UTF-8
7862
+ string: '{"id":96,"survey_question":{"answer":false}}'
7863
+ headers:
7864
+ User-Agent:
7865
+ - Faraday v0.9.0
7866
+ Content-Type:
7867
+ - application/json
7868
+ Api-Token:
7869
+ - testing
7870
+ User-Token:
7871
+ - 0a0ff35a09fbac18d2a34743abe82753e6036ed1f1dd11049c2c0bbfc513b703
7872
+ Service-User-Id:
7873
+ - 454d1f373ed6710338daaf601b3a818993b8b86f5b3d068fbe8681c19b8d3db1
7874
+ Accept-Encoding:
7875
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
7876
+ Accept:
7877
+ - "*/*"
7878
+ response:
7879
+ status:
7880
+ code: 204
7881
+ message: 'No Content '
7882
+ headers:
7883
+ X-Frame-Options:
7884
+ - SAMEORIGIN
7885
+ X-Xss-Protection:
7886
+ - 1; mode=block
7887
+ X-Content-Type-Options:
7888
+ - nosniff
7889
+ X-Ua-Compatible:
7890
+ - chrome=1
7891
+ Cache-Control:
7892
+ - no-cache
7893
+ X-Request-Id:
7894
+ - f9eaae69-aa92-49cb-908f-978a56e09890
7895
+ X-Runtime:
7896
+ - '0.031837'
7897
+ Server:
7898
+ - WEBrick/1.3.1 (Ruby/2.1.2/2014-05-08)
7899
+ Date:
7900
+ - Sat, 18 Oct 2014 17:18:00 GMT
7901
+ Connection:
7902
+ - Keep-Alive
7903
+ body:
7904
+ encoding: UTF-8
7905
+ string: ''
7906
+ http_version:
7907
+ recorded_at: Sat, 18 Oct 2014 17:18:00 GMT
7908
+ - request:
7909
+ method: post
7910
+ uri: http://localhost:3000/api/surveys/106/survey_questions
7911
+ body:
7912
+ encoding: UTF-8
7913
+ string: '{"survey_question":{"question_id":109}}'
7914
+ headers:
7915
+ User-Agent:
7916
+ - Faraday v0.9.0
7917
+ Content-Type:
7918
+ - application/json
7919
+ Api-Token:
7920
+ - testing
7921
+ User-Token:
7922
+ - d85991beca124151ae3cb30461497d7855695a9470228aa9cd4a0c128dad9304
7923
+ Service-User-Id:
7924
+ - 3d5243ba42ad86c72693fc4b73d9a1d758bb17a65c59a6c374aee33fc409ed95
7925
+ Accept-Encoding:
7926
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
7927
+ Accept:
7928
+ - "*/*"
7929
+ response:
7930
+ status:
7931
+ code: 201
7932
+ message: 'Created '
7933
+ headers:
7934
+ X-Frame-Options:
7935
+ - SAMEORIGIN
7936
+ X-Xss-Protection:
7937
+ - 1; mode=block
7938
+ X-Content-Type-Options:
7939
+ - nosniff
7940
+ X-Ua-Compatible:
7941
+ - chrome=1
7942
+ Content-Type:
7943
+ - application/json; charset=utf-8
7944
+ Etag:
7945
+ - '"4c5f9706ef32e6901a59bc2b1593b21d"'
7946
+ Cache-Control:
7947
+ - max-age=0, private, must-revalidate
7948
+ X-Request-Id:
7949
+ - 0e82bacb-d51d-4a9c-973d-b2562c24f48a
7950
+ X-Runtime:
7951
+ - '0.014255'
7952
+ Server:
7953
+ - WEBrick/1.3.1 (Ruby/2.1.2/2014-05-08)
7954
+ Date:
7955
+ - Sat, 18 Oct 2014 17:18:45 GMT
7956
+ Content-Length:
7957
+ - '568'
7958
+ Connection:
7959
+ - Keep-Alive
7960
+ body:
7961
+ encoding: UTF-8
7962
+ string: |-
7963
+ {
7964
+ "id": 99,
7965
+ "text": "Do you like poptarts?",
7966
+ "type": "boolean",
7967
+ "responses": [
7968
+ "t",
7969
+ "f"
7970
+ ],
7971
+ "answer": null,
7972
+ "freeform": false,
7973
+ "_links": {
7974
+ "self": {
7975
+ "href": "http://localhost:3000/api/surveys/106/survey_questions/99"
7976
+ },
7977
+ "post": {
7978
+ "href": "http://localhost:3000/api/surveys/106/survey_questions"
7979
+ },
7980
+ "put": {
7981
+ "href": "http://localhost:3000/api/surveys/106/survey_questions/99"
7982
+ },
7983
+ "survey": {
7984
+ "href": "http://localhost:3000/api/surveys/106"
7985
+ }
7986
+ },
7987
+ "created_at": "2014-10-18T17:18:45.809Z"
7988
+ }
7989
+ http_version:
7990
+ recorded_at: Sat, 18 Oct 2014 17:18:45 GMT
7991
+ - request:
7992
+ method: post
7993
+ uri: http://localhost:3000/api/surveys/107/survey_questions
7994
+ body:
7995
+ encoding: UTF-8
7996
+ string: '{"survey_question":{"question_id":109}}'
7997
+ headers:
7998
+ User-Agent:
7999
+ - Faraday v0.9.0
8000
+ Content-Type:
8001
+ - application/json
8002
+ Api-Token:
8003
+ - testing
8004
+ User-Token:
8005
+ - d85991beca124151ae3cb30461497d7855695a9470228aa9cd4a0c128dad9304
8006
+ Service-User-Id:
8007
+ - 3d5243ba42ad86c72693fc4b73d9a1d758bb17a65c59a6c374aee33fc409ed95
8008
+ Accept-Encoding:
8009
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
8010
+ Accept:
8011
+ - "*/*"
8012
+ response:
8013
+ status:
8014
+ code: 201
8015
+ message: 'Created '
8016
+ headers:
8017
+ X-Frame-Options:
8018
+ - SAMEORIGIN
8019
+ X-Xss-Protection:
8020
+ - 1; mode=block
8021
+ X-Content-Type-Options:
8022
+ - nosniff
8023
+ X-Ua-Compatible:
8024
+ - chrome=1
8025
+ Content-Type:
8026
+ - application/json; charset=utf-8
8027
+ Etag:
8028
+ - '"e436b3f5eb07c14a246f219f0376915a"'
8029
+ Cache-Control:
8030
+ - max-age=0, private, must-revalidate
8031
+ X-Request-Id:
8032
+ - cf6df57d-459f-4181-90b7-6accf6b96741
8033
+ X-Runtime:
8034
+ - '0.012236'
8035
+ Server:
8036
+ - WEBrick/1.3.1 (Ruby/2.1.2/2014-05-08)
8037
+ Date:
8038
+ - Sat, 18 Oct 2014 17:18:45 GMT
8039
+ Content-Length:
8040
+ - '571'
8041
+ Connection:
8042
+ - Keep-Alive
8043
+ body:
8044
+ encoding: UTF-8
8045
+ string: |-
8046
+ {
8047
+ "id": 100,
8048
+ "text": "Do you like poptarts?",
8049
+ "type": "boolean",
8050
+ "responses": [
8051
+ "t",
8052
+ "f"
8053
+ ],
8054
+ "answer": null,
8055
+ "freeform": false,
8056
+ "_links": {
8057
+ "self": {
8058
+ "href": "http://localhost:3000/api/surveys/107/survey_questions/100"
8059
+ },
8060
+ "post": {
8061
+ "href": "http://localhost:3000/api/surveys/107/survey_questions"
8062
+ },
8063
+ "put": {
8064
+ "href": "http://localhost:3000/api/surveys/107/survey_questions/100"
8065
+ },
8066
+ "survey": {
8067
+ "href": "http://localhost:3000/api/surveys/107"
8068
+ }
8069
+ },
8070
+ "created_at": "2014-10-18T17:18:45.843Z"
8071
+ }
8072
+ http_version:
8073
+ recorded_at: Sat, 18 Oct 2014 17:18:45 GMT
8074
+ - request:
8075
+ method: put
8076
+ uri: http://localhost:3000/api/surveys/106/survey_questions/99
8077
+ body:
8078
+ encoding: UTF-8
8079
+ string: '{"id":99,"survey_question":{"answer":true}}'
8080
+ headers:
8081
+ User-Agent:
8082
+ - Faraday v0.9.0
8083
+ Content-Type:
8084
+ - application/json
8085
+ Api-Token:
8086
+ - testing
8087
+ User-Token:
8088
+ - d85991beca124151ae3cb30461497d7855695a9470228aa9cd4a0c128dad9304
8089
+ Service-User-Id:
8090
+ - 3d5243ba42ad86c72693fc4b73d9a1d758bb17a65c59a6c374aee33fc409ed95
8091
+ Accept-Encoding:
8092
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
8093
+ Accept:
8094
+ - "*/*"
8095
+ response:
8096
+ status:
8097
+ code: 204
8098
+ message: 'No Content '
8099
+ headers:
8100
+ X-Frame-Options:
8101
+ - SAMEORIGIN
8102
+ X-Xss-Protection:
8103
+ - 1; mode=block
8104
+ X-Content-Type-Options:
8105
+ - nosniff
8106
+ X-Ua-Compatible:
8107
+ - chrome=1
8108
+ Cache-Control:
8109
+ - no-cache
8110
+ X-Request-Id:
8111
+ - 5eeeded1-6467-428b-a686-53ca6ee7bdae
8112
+ X-Runtime:
8113
+ - '0.010642'
8114
+ Server:
8115
+ - WEBrick/1.3.1 (Ruby/2.1.2/2014-05-08)
8116
+ Date:
8117
+ - Sat, 18 Oct 2014 17:18:45 GMT
8118
+ Connection:
8119
+ - Keep-Alive
8120
+ body:
8121
+ encoding: UTF-8
8122
+ string: ''
8123
+ http_version:
8124
+ recorded_at: Sat, 18 Oct 2014 17:18:45 GMT
8125
+ - request:
8126
+ method: put
8127
+ uri: http://localhost:3000/api/surveys/107/survey_questions/100
8128
+ body:
8129
+ encoding: UTF-8
8130
+ string: '{"id":100,"survey_question":{"answer":false}}'
8131
+ headers:
8132
+ User-Agent:
8133
+ - Faraday v0.9.0
8134
+ Content-Type:
8135
+ - application/json
8136
+ Api-Token:
8137
+ - testing
8138
+ User-Token:
8139
+ - d85991beca124151ae3cb30461497d7855695a9470228aa9cd4a0c128dad9304
8140
+ Service-User-Id:
8141
+ - 3d5243ba42ad86c72693fc4b73d9a1d758bb17a65c59a6c374aee33fc409ed95
8142
+ Accept-Encoding:
8143
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
8144
+ Accept:
8145
+ - "*/*"
8146
+ response:
8147
+ status:
8148
+ code: 204
8149
+ message: 'No Content '
8150
+ headers:
8151
+ X-Frame-Options:
8152
+ - SAMEORIGIN
8153
+ X-Xss-Protection:
8154
+ - 1; mode=block
8155
+ X-Content-Type-Options:
8156
+ - nosniff
8157
+ X-Ua-Compatible:
8158
+ - chrome=1
8159
+ Cache-Control:
8160
+ - no-cache
8161
+ X-Request-Id:
8162
+ - a00a9a4e-c09d-496e-bed2-ddef75283b59
8163
+ X-Runtime:
8164
+ - '0.013029'
8165
+ Server:
8166
+ - WEBrick/1.3.1 (Ruby/2.1.2/2014-05-08)
8167
+ Date:
8168
+ - Sat, 18 Oct 2014 17:18:45 GMT
8169
+ Connection:
8170
+ - Keep-Alive
8171
+ body:
8172
+ encoding: UTF-8
8173
+ string: ''
8174
+ http_version:
8175
+ recorded_at: Sat, 18 Oct 2014 17:18:45 GMT
8176
+ - request:
8177
+ method: post
8178
+ uri: http://localhost:3000/api/surveys/110/survey_questions
8179
+ body:
8180
+ encoding: UTF-8
8181
+ string: '{"survey_question":{"question_id":111}}'
8182
+ headers:
8183
+ User-Agent:
8184
+ - Faraday v0.9.0
8185
+ Content-Type:
8186
+ - application/json
8187
+ Api-Token:
8188
+ - testing
8189
+ User-Token:
8190
+ - bc2c72ef761e77cdd83df91256e2d7a7d6a102b284a5c40d49f93410dad90ca0
8191
+ Service-User-Id:
8192
+ - 83273e83b450c68552926aa9852211508480b7c84a6e4ff82bc3c5404806cefe
8193
+ Accept-Encoding:
8194
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
8195
+ Accept:
8196
+ - "*/*"
8197
+ response:
8198
+ status:
8199
+ code: 201
8200
+ message: 'Created '
8201
+ headers:
8202
+ X-Frame-Options:
8203
+ - SAMEORIGIN
8204
+ X-Xss-Protection:
8205
+ - 1; mode=block
8206
+ X-Content-Type-Options:
8207
+ - nosniff
8208
+ X-Ua-Compatible:
8209
+ - chrome=1
8210
+ Content-Type:
8211
+ - application/json; charset=utf-8
8212
+ Etag:
8213
+ - '"77a83bef19eb141999777bbcc193465e"'
8214
+ Cache-Control:
8215
+ - max-age=0, private, must-revalidate
8216
+ X-Request-Id:
8217
+ - 3a14e577-7c22-46f7-8143-2f1772aea9af
8218
+ X-Runtime:
8219
+ - '0.013892'
8220
+ Server:
8221
+ - WEBrick/1.3.1 (Ruby/2.1.2/2014-05-08)
8222
+ Date:
8223
+ - Sat, 18 Oct 2014 17:19:19 GMT
8224
+ Content-Length:
8225
+ - '571'
8226
+ Connection:
8227
+ - Keep-Alive
8228
+ body:
8229
+ encoding: UTF-8
8230
+ string: |-
8231
+ {
8232
+ "id": 103,
8233
+ "text": "Do you like poptarts?",
8234
+ "type": "boolean",
8235
+ "responses": [
8236
+ "t",
8237
+ "f"
8238
+ ],
8239
+ "answer": null,
8240
+ "freeform": false,
8241
+ "_links": {
8242
+ "self": {
8243
+ "href": "http://localhost:3000/api/surveys/110/survey_questions/103"
8244
+ },
8245
+ "post": {
8246
+ "href": "http://localhost:3000/api/surveys/110/survey_questions"
8247
+ },
8248
+ "put": {
8249
+ "href": "http://localhost:3000/api/surveys/110/survey_questions/103"
8250
+ },
8251
+ "survey": {
8252
+ "href": "http://localhost:3000/api/surveys/110"
8253
+ }
8254
+ },
8255
+ "created_at": "2014-10-18T17:19:19.847Z"
8256
+ }
8257
+ http_version:
8258
+ recorded_at: Sat, 18 Oct 2014 17:19:19 GMT
8259
+ - request:
8260
+ method: post
8261
+ uri: http://localhost:3000/api/surveys/111/survey_questions
8262
+ body:
8263
+ encoding: UTF-8
8264
+ string: '{"survey_question":{"question_id":111}}'
8265
+ headers:
8266
+ User-Agent:
8267
+ - Faraday v0.9.0
8268
+ Content-Type:
8269
+ - application/json
8270
+ Api-Token:
8271
+ - testing
8272
+ User-Token:
8273
+ - bc2c72ef761e77cdd83df91256e2d7a7d6a102b284a5c40d49f93410dad90ca0
8274
+ Service-User-Id:
8275
+ - 83273e83b450c68552926aa9852211508480b7c84a6e4ff82bc3c5404806cefe
8276
+ Accept-Encoding:
8277
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
8278
+ Accept:
8279
+ - "*/*"
8280
+ response:
8281
+ status:
8282
+ code: 201
8283
+ message: 'Created '
8284
+ headers:
8285
+ X-Frame-Options:
8286
+ - SAMEORIGIN
8287
+ X-Xss-Protection:
8288
+ - 1; mode=block
8289
+ X-Content-Type-Options:
8290
+ - nosniff
8291
+ X-Ua-Compatible:
8292
+ - chrome=1
8293
+ Content-Type:
8294
+ - application/json; charset=utf-8
8295
+ Etag:
8296
+ - '"63c5032d500569c787e5e0aeb2a27ed3"'
8297
+ Cache-Control:
8298
+ - max-age=0, private, must-revalidate
8299
+ X-Request-Id:
8300
+ - d217a43a-6a89-437b-9f36-edf9f1c89365
8301
+ X-Runtime:
8302
+ - '0.012594'
8303
+ Server:
8304
+ - WEBrick/1.3.1 (Ruby/2.1.2/2014-05-08)
8305
+ Date:
8306
+ - Sat, 18 Oct 2014 17:19:19 GMT
8307
+ Content-Length:
8308
+ - '571'
8309
+ Connection:
8310
+ - Keep-Alive
8311
+ body:
8312
+ encoding: UTF-8
8313
+ string: |-
8314
+ {
8315
+ "id": 104,
8316
+ "text": "Do you like poptarts?",
8317
+ "type": "boolean",
8318
+ "responses": [
8319
+ "t",
8320
+ "f"
8321
+ ],
8322
+ "answer": null,
8323
+ "freeform": false,
8324
+ "_links": {
8325
+ "self": {
8326
+ "href": "http://localhost:3000/api/surveys/111/survey_questions/104"
8327
+ },
8328
+ "post": {
8329
+ "href": "http://localhost:3000/api/surveys/111/survey_questions"
8330
+ },
8331
+ "put": {
8332
+ "href": "http://localhost:3000/api/surveys/111/survey_questions/104"
8333
+ },
8334
+ "survey": {
8335
+ "href": "http://localhost:3000/api/surveys/111"
8336
+ }
8337
+ },
8338
+ "created_at": "2014-10-18T17:19:19.912Z"
8339
+ }
8340
+ http_version:
8341
+ recorded_at: Sat, 18 Oct 2014 17:19:19 GMT
8342
+ - request:
8343
+ method: put
8344
+ uri: http://localhost:3000/api/surveys/110/survey_questions/103
8345
+ body:
8346
+ encoding: UTF-8
8347
+ string: '{"id":103,"survey_question":{"answer":true}}'
8348
+ headers:
8349
+ User-Agent:
8350
+ - Faraday v0.9.0
8351
+ Content-Type:
8352
+ - application/json
8353
+ Api-Token:
8354
+ - testing
8355
+ User-Token:
8356
+ - bc2c72ef761e77cdd83df91256e2d7a7d6a102b284a5c40d49f93410dad90ca0
8357
+ Service-User-Id:
8358
+ - 83273e83b450c68552926aa9852211508480b7c84a6e4ff82bc3c5404806cefe
8359
+ Accept-Encoding:
8360
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
8361
+ Accept:
8362
+ - "*/*"
8363
+ response:
8364
+ status:
8365
+ code: 204
8366
+ message: 'No Content '
8367
+ headers:
8368
+ X-Frame-Options:
8369
+ - SAMEORIGIN
8370
+ X-Xss-Protection:
8371
+ - 1; mode=block
8372
+ X-Content-Type-Options:
8373
+ - nosniff
8374
+ X-Ua-Compatible:
8375
+ - chrome=1
8376
+ Cache-Control:
8377
+ - no-cache
8378
+ X-Request-Id:
8379
+ - 65772ed4-306b-48a4-96d9-521a061b023c
8380
+ X-Runtime:
8381
+ - '0.015398'
8382
+ Server:
8383
+ - WEBrick/1.3.1 (Ruby/2.1.2/2014-05-08)
8384
+ Date:
8385
+ - Sat, 18 Oct 2014 17:19:19 GMT
8386
+ Connection:
8387
+ - Keep-Alive
8388
+ body:
8389
+ encoding: UTF-8
8390
+ string: ''
8391
+ http_version:
8392
+ recorded_at: Sat, 18 Oct 2014 17:19:19 GMT
8393
+ - request:
8394
+ method: put
8395
+ uri: http://localhost:3000/api/surveys/111/survey_questions/104
8396
+ body:
8397
+ encoding: UTF-8
8398
+ string: '{"id":104,"survey_question":{"answer":false}}'
8399
+ headers:
8400
+ User-Agent:
8401
+ - Faraday v0.9.0
8402
+ Content-Type:
8403
+ - application/json
8404
+ Api-Token:
8405
+ - testing
8406
+ User-Token:
8407
+ - bc2c72ef761e77cdd83df91256e2d7a7d6a102b284a5c40d49f93410dad90ca0
8408
+ Service-User-Id:
8409
+ - 83273e83b450c68552926aa9852211508480b7c84a6e4ff82bc3c5404806cefe
8410
+ Accept-Encoding:
8411
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
8412
+ Accept:
8413
+ - "*/*"
8414
+ response:
8415
+ status:
8416
+ code: 204
8417
+ message: 'No Content '
8418
+ headers:
8419
+ X-Frame-Options:
8420
+ - SAMEORIGIN
8421
+ X-Xss-Protection:
8422
+ - 1; mode=block
8423
+ X-Content-Type-Options:
8424
+ - nosniff
8425
+ X-Ua-Compatible:
8426
+ - chrome=1
8427
+ Cache-Control:
8428
+ - no-cache
8429
+ X-Request-Id:
8430
+ - 7453ea3c-5f4a-4441-8e7b-83b99fcc23f5
8431
+ X-Runtime:
8432
+ - '0.010877'
8433
+ Server:
8434
+ - WEBrick/1.3.1 (Ruby/2.1.2/2014-05-08)
8435
+ Date:
8436
+ - Sat, 18 Oct 2014 17:19:19 GMT
8437
+ Connection:
8438
+ - Keep-Alive
8439
+ body:
8440
+ encoding: UTF-8
8441
+ string: ''
8442
+ http_version:
8443
+ recorded_at: Sat, 18 Oct 2014 17:19:19 GMT
8444
+ - request:
8445
+ method: post
8446
+ uri: http://localhost:3000/api/surveys/132/survey_questions
8447
+ body:
8448
+ encoding: UTF-8
8449
+ string: '{"survey_question":{"question_id":116}}'
8450
+ headers:
8451
+ User-Agent:
8452
+ - Faraday v0.9.0
8453
+ Content-Type:
8454
+ - application/json
8455
+ Api-Token:
8456
+ - testing
8457
+ User-Token:
8458
+ - a14988474dc08067840960ca826b22f99d9c6e7211199525814f2348561a0631
8459
+ Service-User-Id:
8460
+ - b9131e60ab5f9665127a4995eef5e645d4532a0a171dc0e29dc6211a2ced6071
8461
+ Accept-Encoding:
8462
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
8463
+ Accept:
8464
+ - "*/*"
8465
+ response:
8466
+ status:
8467
+ code: 201
8468
+ message: 'Created '
8469
+ headers:
8470
+ X-Frame-Options:
8471
+ - SAMEORIGIN
8472
+ X-Xss-Protection:
8473
+ - 1; mode=block
8474
+ X-Content-Type-Options:
8475
+ - nosniff
8476
+ X-Ua-Compatible:
8477
+ - chrome=1
8478
+ Content-Type:
8479
+ - application/json; charset=utf-8
8480
+ Etag:
8481
+ - '"c6a3380444ded2f9d18338a1f63a7f39"'
8482
+ Cache-Control:
8483
+ - max-age=0, private, must-revalidate
8484
+ X-Request-Id:
8485
+ - 6dd5e12e-3faa-48ab-a0df-b1bf354d6bea
8486
+ X-Runtime:
8487
+ - '0.012340'
8488
+ Server:
8489
+ - WEBrick/1.3.1 (Ruby/2.1.2/2014-05-08)
8490
+ Date:
8491
+ - Sat, 18 Oct 2014 17:26:54 GMT
8492
+ Content-Length:
8493
+ - '571'
8494
+ Connection:
8495
+ - Keep-Alive
8496
+ body:
8497
+ encoding: UTF-8
8498
+ string: |-
8499
+ {
8500
+ "id": 142,
8501
+ "text": "Do you like poptarts?",
8502
+ "type": "boolean",
8503
+ "responses": [
8504
+ "t",
8505
+ "f"
8506
+ ],
8507
+ "answer": null,
8508
+ "freeform": false,
8509
+ "_links": {
8510
+ "self": {
8511
+ "href": "http://localhost:3000/api/surveys/132/survey_questions/142"
8512
+ },
8513
+ "post": {
8514
+ "href": "http://localhost:3000/api/surveys/132/survey_questions"
8515
+ },
8516
+ "put": {
8517
+ "href": "http://localhost:3000/api/surveys/132/survey_questions/142"
8518
+ },
8519
+ "survey": {
8520
+ "href": "http://localhost:3000/api/surveys/132"
8521
+ }
8522
+ },
8523
+ "created_at": "2014-10-18T17:26:54.900Z"
8524
+ }
8525
+ http_version:
8526
+ recorded_at: Sat, 18 Oct 2014 17:26:54 GMT
8527
+ - request:
8528
+ method: post
8529
+ uri: http://localhost:3000/api/surveys/133/survey_questions
8530
+ body:
8531
+ encoding: UTF-8
8532
+ string: '{"survey_question":{"question_id":116}}'
8533
+ headers:
8534
+ User-Agent:
8535
+ - Faraday v0.9.0
8536
+ Content-Type:
8537
+ - application/json
8538
+ Api-Token:
8539
+ - testing
8540
+ User-Token:
8541
+ - a14988474dc08067840960ca826b22f99d9c6e7211199525814f2348561a0631
8542
+ Service-User-Id:
8543
+ - b9131e60ab5f9665127a4995eef5e645d4532a0a171dc0e29dc6211a2ced6071
8544
+ Accept-Encoding:
8545
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
8546
+ Accept:
8547
+ - "*/*"
8548
+ response:
8549
+ status:
8550
+ code: 201
8551
+ message: 'Created '
8552
+ headers:
8553
+ X-Frame-Options:
8554
+ - SAMEORIGIN
8555
+ X-Xss-Protection:
8556
+ - 1; mode=block
8557
+ X-Content-Type-Options:
8558
+ - nosniff
8559
+ X-Ua-Compatible:
8560
+ - chrome=1
8561
+ Content-Type:
8562
+ - application/json; charset=utf-8
8563
+ Etag:
8564
+ - '"cd0270491cd927317389912554d92241"'
8565
+ Cache-Control:
8566
+ - max-age=0, private, must-revalidate
8567
+ X-Request-Id:
8568
+ - b0f73116-06f9-4caa-9928-5a5f081a182a
8569
+ X-Runtime:
8570
+ - '0.012414'
8571
+ Server:
8572
+ - WEBrick/1.3.1 (Ruby/2.1.2/2014-05-08)
8573
+ Date:
8574
+ - Sat, 18 Oct 2014 17:26:54 GMT
8575
+ Content-Length:
8576
+ - '571'
8577
+ Connection:
8578
+ - Keep-Alive
8579
+ body:
8580
+ encoding: UTF-8
8581
+ string: |-
8582
+ {
8583
+ "id": 143,
8584
+ "text": "Do you like poptarts?",
8585
+ "type": "boolean",
8586
+ "responses": [
8587
+ "t",
8588
+ "f"
8589
+ ],
8590
+ "answer": null,
8591
+ "freeform": false,
8592
+ "_links": {
8593
+ "self": {
8594
+ "href": "http://localhost:3000/api/surveys/133/survey_questions/143"
8595
+ },
8596
+ "post": {
8597
+ "href": "http://localhost:3000/api/surveys/133/survey_questions"
8598
+ },
8599
+ "put": {
8600
+ "href": "http://localhost:3000/api/surveys/133/survey_questions/143"
8601
+ },
8602
+ "survey": {
8603
+ "href": "http://localhost:3000/api/surveys/133"
8604
+ }
8605
+ },
8606
+ "created_at": "2014-10-18T17:26:54.967Z"
8607
+ }
8608
+ http_version:
8609
+ recorded_at: Sat, 18 Oct 2014 17:26:54 GMT
8610
+ - request:
8611
+ method: put
8612
+ uri: http://localhost:3000/api/surveys/132/survey_questions/142
8613
+ body:
8614
+ encoding: UTF-8
8615
+ string: '{"id":142,"survey_question":{"answer":true}}'
8616
+ headers:
8617
+ User-Agent:
8618
+ - Faraday v0.9.0
8619
+ Content-Type:
8620
+ - application/json
8621
+ Api-Token:
8622
+ - testing
8623
+ User-Token:
8624
+ - a14988474dc08067840960ca826b22f99d9c6e7211199525814f2348561a0631
8625
+ Service-User-Id:
8626
+ - b9131e60ab5f9665127a4995eef5e645d4532a0a171dc0e29dc6211a2ced6071
8627
+ Accept-Encoding:
8628
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
8629
+ Accept:
8630
+ - "*/*"
8631
+ response:
8632
+ status:
8633
+ code: 204
8634
+ message: 'No Content '
8635
+ headers:
8636
+ X-Frame-Options:
8637
+ - SAMEORIGIN
8638
+ X-Xss-Protection:
8639
+ - 1; mode=block
8640
+ X-Content-Type-Options:
8641
+ - nosniff
8642
+ X-Ua-Compatible:
8643
+ - chrome=1
8644
+ Cache-Control:
8645
+ - no-cache
8646
+ X-Request-Id:
8647
+ - c4339f4b-4074-4af6-a01a-d58b7a108024
8648
+ X-Runtime:
8649
+ - '0.013632'
8650
+ Server:
8651
+ - WEBrick/1.3.1 (Ruby/2.1.2/2014-05-08)
8652
+ Date:
8653
+ - Sat, 18 Oct 2014 17:26:55 GMT
8654
+ Connection:
8655
+ - Keep-Alive
8656
+ body:
8657
+ encoding: UTF-8
8658
+ string: ''
8659
+ http_version:
8660
+ recorded_at: Sat, 18 Oct 2014 17:26:55 GMT
8661
+ - request:
8662
+ method: put
8663
+ uri: http://localhost:3000/api/surveys/133/survey_questions/143
8664
+ body:
8665
+ encoding: UTF-8
8666
+ string: '{"id":143,"survey_question":{"answer":false}}'
8667
+ headers:
8668
+ User-Agent:
8669
+ - Faraday v0.9.0
8670
+ Content-Type:
8671
+ - application/json
8672
+ Api-Token:
8673
+ - testing
8674
+ User-Token:
8675
+ - a14988474dc08067840960ca826b22f99d9c6e7211199525814f2348561a0631
8676
+ Service-User-Id:
8677
+ - b9131e60ab5f9665127a4995eef5e645d4532a0a171dc0e29dc6211a2ced6071
8678
+ Accept-Encoding:
8679
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
8680
+ Accept:
8681
+ - "*/*"
8682
+ response:
8683
+ status:
8684
+ code: 204
8685
+ message: 'No Content '
8686
+ headers:
8687
+ X-Frame-Options:
8688
+ - SAMEORIGIN
8689
+ X-Xss-Protection:
8690
+ - 1; mode=block
8691
+ X-Content-Type-Options:
8692
+ - nosniff
8693
+ X-Ua-Compatible:
8694
+ - chrome=1
8695
+ Cache-Control:
8696
+ - no-cache
8697
+ X-Request-Id:
8698
+ - 8929fdc4-9638-4b2e-9e08-0f55bd4ab96b
8699
+ X-Runtime:
8700
+ - '0.009673'
8701
+ Server:
8702
+ - WEBrick/1.3.1 (Ruby/2.1.2/2014-05-08)
8703
+ Date:
8704
+ - Sat, 18 Oct 2014 17:26:55 GMT
8705
+ Connection:
8706
+ - Keep-Alive
8707
+ body:
8708
+ encoding: UTF-8
8709
+ string: ''
8710
+ http_version:
8711
+ recorded_at: Sat, 18 Oct 2014 17:26:55 GMT
8712
+ - request:
8713
+ method: post
8714
+ uri: http://localhost:3000/api/surveys/144/survey_questions
8715
+ body:
8716
+ encoding: UTF-8
8717
+ string: '{"survey_question":{"question_id":121}}'
8718
+ headers:
8719
+ User-Agent:
8720
+ - Faraday v0.9.0
8721
+ Content-Type:
8722
+ - application/json
8723
+ Api-Token:
8724
+ - testing
8725
+ User-Token:
8726
+ - 6f60976124c03c4dcb6eec1203befa6e93931b5232dfaf40eae202f652518523
8727
+ Service-User-Id:
8728
+ - 9b9cecf62bf7b0209bc1d02efe07c39d3b4c9aea55305263c0a5ea3a879ac114
8729
+ Accept-Encoding:
8730
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
8731
+ Accept:
8732
+ - "*/*"
8733
+ response:
8734
+ status:
8735
+ code: 201
8736
+ message: 'Created '
8737
+ headers:
8738
+ X-Frame-Options:
8739
+ - SAMEORIGIN
8740
+ X-Xss-Protection:
8741
+ - 1; mode=block
8742
+ X-Content-Type-Options:
8743
+ - nosniff
8744
+ X-Ua-Compatible:
8745
+ - chrome=1
8746
+ Content-Type:
8747
+ - application/json; charset=utf-8
8748
+ Etag:
8749
+ - '"80c9ad12adf2a04a072c49db394a6e04"'
8750
+ Cache-Control:
8751
+ - max-age=0, private, must-revalidate
8752
+ X-Request-Id:
8753
+ - 6a76960c-ff4d-4900-8139-df658328d71b
8754
+ X-Runtime:
8755
+ - '0.013082'
8756
+ Server:
8757
+ - WEBrick/1.3.1 (Ruby/2.1.2/2014-05-08)
8758
+ Date:
8759
+ - Sat, 18 Oct 2014 17:28:27 GMT
8760
+ Content-Length:
8761
+ - '571'
8762
+ Connection:
8763
+ - Keep-Alive
8764
+ body:
8765
+ encoding: UTF-8
8766
+ string: |-
8767
+ {
8768
+ "id": 163,
8769
+ "text": "Do you like poptarts?",
8770
+ "type": "boolean",
8771
+ "responses": [
8772
+ "t",
8773
+ "f"
8774
+ ],
8775
+ "answer": null,
8776
+ "freeform": false,
8777
+ "_links": {
8778
+ "self": {
8779
+ "href": "http://localhost:3000/api/surveys/144/survey_questions/163"
8780
+ },
8781
+ "post": {
8782
+ "href": "http://localhost:3000/api/surveys/144/survey_questions"
8783
+ },
8784
+ "put": {
8785
+ "href": "http://localhost:3000/api/surveys/144/survey_questions/163"
8786
+ },
8787
+ "survey": {
8788
+ "href": "http://localhost:3000/api/surveys/144"
8789
+ }
8790
+ },
8791
+ "created_at": "2014-10-18T17:28:27.098Z"
8792
+ }
8793
+ http_version:
8794
+ recorded_at: Sat, 18 Oct 2014 17:28:27 GMT
8795
+ - request:
8796
+ method: post
8797
+ uri: http://localhost:3000/api/surveys/145/survey_questions
8798
+ body:
8799
+ encoding: UTF-8
8800
+ string: '{"survey_question":{"question_id":121}}'
8801
+ headers:
8802
+ User-Agent:
8803
+ - Faraday v0.9.0
8804
+ Content-Type:
8805
+ - application/json
8806
+ Api-Token:
8807
+ - testing
8808
+ User-Token:
8809
+ - 6f60976124c03c4dcb6eec1203befa6e93931b5232dfaf40eae202f652518523
8810
+ Service-User-Id:
8811
+ - 9b9cecf62bf7b0209bc1d02efe07c39d3b4c9aea55305263c0a5ea3a879ac114
8812
+ Accept-Encoding:
8813
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
8814
+ Accept:
8815
+ - "*/*"
8816
+ response:
8817
+ status:
8818
+ code: 201
8819
+ message: 'Created '
8820
+ headers:
8821
+ X-Frame-Options:
8822
+ - SAMEORIGIN
8823
+ X-Xss-Protection:
8824
+ - 1; mode=block
8825
+ X-Content-Type-Options:
8826
+ - nosniff
8827
+ X-Ua-Compatible:
8828
+ - chrome=1
8829
+ Content-Type:
8830
+ - application/json; charset=utf-8
8831
+ Etag:
8832
+ - '"f7db0d0a1d43804100066f7f1e34f887"'
8833
+ Cache-Control:
8834
+ - max-age=0, private, must-revalidate
8835
+ X-Request-Id:
8836
+ - d0a1692b-d12c-4ca8-b0c6-ab821da22b90
8837
+ X-Runtime:
8838
+ - '0.012272'
8839
+ Server:
8840
+ - WEBrick/1.3.1 (Ruby/2.1.2/2014-05-08)
8841
+ Date:
8842
+ - Sat, 18 Oct 2014 17:28:27 GMT
8843
+ Content-Length:
8844
+ - '571'
8845
+ Connection:
8846
+ - Keep-Alive
8847
+ body:
8848
+ encoding: UTF-8
8849
+ string: |-
8850
+ {
8851
+ "id": 164,
8852
+ "text": "Do you like poptarts?",
8853
+ "type": "boolean",
8854
+ "responses": [
8855
+ "t",
8856
+ "f"
8857
+ ],
8858
+ "answer": null,
8859
+ "freeform": false,
8860
+ "_links": {
8861
+ "self": {
8862
+ "href": "http://localhost:3000/api/surveys/145/survey_questions/164"
8863
+ },
8864
+ "post": {
8865
+ "href": "http://localhost:3000/api/surveys/145/survey_questions"
8866
+ },
8867
+ "put": {
8868
+ "href": "http://localhost:3000/api/surveys/145/survey_questions/164"
8869
+ },
8870
+ "survey": {
8871
+ "href": "http://localhost:3000/api/surveys/145"
8872
+ }
8873
+ },
8874
+ "created_at": "2014-10-18T17:28:27.162Z"
8875
+ }
8876
+ http_version:
8877
+ recorded_at: Sat, 18 Oct 2014 17:28:27 GMT
8878
+ - request:
8879
+ method: put
8880
+ uri: http://localhost:3000/api/surveys/144/survey_questions/163
8881
+ body:
8882
+ encoding: UTF-8
8883
+ string: '{"id":163,"survey_question":{"answer":true}}'
8884
+ headers:
8885
+ User-Agent:
8886
+ - Faraday v0.9.0
8887
+ Content-Type:
8888
+ - application/json
8889
+ Api-Token:
8890
+ - testing
8891
+ User-Token:
8892
+ - 6f60976124c03c4dcb6eec1203befa6e93931b5232dfaf40eae202f652518523
8893
+ Service-User-Id:
8894
+ - 9b9cecf62bf7b0209bc1d02efe07c39d3b4c9aea55305263c0a5ea3a879ac114
8895
+ Accept-Encoding:
8896
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
8897
+ Accept:
8898
+ - "*/*"
8899
+ response:
8900
+ status:
8901
+ code: 204
8902
+ message: 'No Content '
8903
+ headers:
8904
+ X-Frame-Options:
8905
+ - SAMEORIGIN
8906
+ X-Xss-Protection:
8907
+ - 1; mode=block
8908
+ X-Content-Type-Options:
8909
+ - nosniff
8910
+ X-Ua-Compatible:
8911
+ - chrome=1
8912
+ Cache-Control:
8913
+ - no-cache
8914
+ X-Request-Id:
8915
+ - 419196ac-89c6-408b-b4de-d22ea911a721
8916
+ X-Runtime:
8917
+ - '0.015080'
8918
+ Server:
8919
+ - WEBrick/1.3.1 (Ruby/2.1.2/2014-05-08)
8920
+ Date:
8921
+ - Sat, 18 Oct 2014 17:28:27 GMT
8922
+ Connection:
8923
+ - Keep-Alive
8924
+ body:
8925
+ encoding: UTF-8
8926
+ string: ''
8927
+ http_version:
8928
+ recorded_at: Sat, 18 Oct 2014 17:28:27 GMT
8929
+ - request:
8930
+ method: put
8931
+ uri: http://localhost:3000/api/surveys/145/survey_questions/164
8932
+ body:
8933
+ encoding: UTF-8
8934
+ string: '{"id":164,"survey_question":{"answer":false}}'
8935
+ headers:
8936
+ User-Agent:
8937
+ - Faraday v0.9.0
8938
+ Content-Type:
8939
+ - application/json
8940
+ Api-Token:
8941
+ - testing
8942
+ User-Token:
8943
+ - 6f60976124c03c4dcb6eec1203befa6e93931b5232dfaf40eae202f652518523
8944
+ Service-User-Id:
8945
+ - 9b9cecf62bf7b0209bc1d02efe07c39d3b4c9aea55305263c0a5ea3a879ac114
8946
+ Accept-Encoding:
8947
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
8948
+ Accept:
8949
+ - "*/*"
8950
+ response:
8951
+ status:
8952
+ code: 204
8953
+ message: 'No Content '
8954
+ headers:
8955
+ X-Frame-Options:
8956
+ - SAMEORIGIN
8957
+ X-Xss-Protection:
8958
+ - 1; mode=block
8959
+ X-Content-Type-Options:
8960
+ - nosniff
8961
+ X-Ua-Compatible:
8962
+ - chrome=1
8963
+ Cache-Control:
8964
+ - no-cache
8965
+ X-Request-Id:
8966
+ - 23f340f5-2e10-4478-855b-bbd30d8eba64
8967
+ X-Runtime:
8968
+ - '0.013719'
8969
+ Server:
8970
+ - WEBrick/1.3.1 (Ruby/2.1.2/2014-05-08)
8971
+ Date:
8972
+ - Sat, 18 Oct 2014 17:28:27 GMT
8973
+ Connection:
8974
+ - Keep-Alive
8975
+ body:
8976
+ encoding: UTF-8
8977
+ string: ''
8978
+ http_version:
8979
+ recorded_at: Sat, 18 Oct 2014 17:28:27 GMT
8980
+ - request:
8981
+ method: post
8982
+ uri: http://localhost:3000/api/questions
8983
+ body:
8984
+ encoding: UTF-8
8985
+ string: '{"question":{"question_type":"boolean","responses":[true,false],"text":"Do
8986
+ you like poptarts?","freeform":false,"absolute_index":null,"parent_question_id":null,"key":"testingooptarts"}}'
8987
+ headers:
8988
+ User-Agent:
8989
+ - Faraday v0.9.0
8990
+ Content-Type:
8991
+ - application/json
8992
+ Api-Token:
8993
+ - testing
8994
+ User-Token:
8995
+ - cd13490902b4944acf6af4d6e8505c8e44b68e841dbfca133523f68b941587b7
8996
+ Service-User-Id:
8997
+ - 8104645e99aeda86d54dd596af7d3d91ed7909493bcf2e0e6291270d4303a471
8998
+ Accept-Encoding:
8999
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
9000
+ Accept:
9001
+ - "*/*"
9002
+ response:
9003
+ status:
9004
+ code: 201
9005
+ message: 'Created '
9006
+ headers:
9007
+ X-Frame-Options:
9008
+ - SAMEORIGIN
9009
+ X-Xss-Protection:
9010
+ - 1; mode=block
9011
+ X-Content-Type-Options:
9012
+ - nosniff
9013
+ X-Ua-Compatible:
9014
+ - chrome=1
9015
+ Content-Type:
9016
+ - application/json; charset=utf-8
9017
+ Etag:
9018
+ - '"00c4e2b79f1b7d9367b0b98619c59386"'
9019
+ Cache-Control:
9020
+ - max-age=0, private, must-revalidate
9021
+ X-Request-Id:
9022
+ - ca24d43f-7072-4333-8b20-31faa14b2ae1
9023
+ X-Runtime:
9024
+ - '0.007519'
9025
+ Server:
9026
+ - WEBrick/1.3.1 (Ruby/2.1.2/2014-05-08)
9027
+ Date:
9028
+ - Sat, 18 Oct 2014 17:30:44 GMT
9029
+ Content-Length:
9030
+ - '227'
9031
+ Connection:
9032
+ - Keep-Alive
9033
+ body:
9034
+ encoding: UTF-8
9035
+ string: |-
9036
+ {
9037
+ "id": 126,
9038
+ "question_type": "boolean",
9039
+ "text": "Do you like poptarts?",
9040
+ "responses": [
9041
+ true,
9042
+ false
9043
+ ],
9044
+ "freeform": false,
9045
+ "absolute_index": null,
9046
+ "parent_question_id": null,
9047
+ "key": "testingooptarts"
9048
+ }
9049
+ http_version:
9050
+ recorded_at: Sat, 18 Oct 2014 17:30:44 GMT
9051
+ - request:
9052
+ method: post
9053
+ uri: http://localhost:3000/api/users
9054
+ body:
9055
+ encoding: UTF-8
9056
+ string: "{}"
9057
+ headers:
9058
+ User-Agent:
9059
+ - Faraday v0.9.0
9060
+ Content-Type:
9061
+ - application/json
9062
+ Api-Token:
9063
+ - testing
9064
+ User-Token:
9065
+ - cd13490902b4944acf6af4d6e8505c8e44b68e841dbfca133523f68b941587b7
9066
+ Service-User-Id:
9067
+ - 8104645e99aeda86d54dd596af7d3d91ed7909493bcf2e0e6291270d4303a471
9068
+ Accept-Encoding:
9069
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
9070
+ Accept:
9071
+ - "*/*"
9072
+ response:
9073
+ status:
9074
+ code: 201
9075
+ message: 'Created '
9076
+ headers:
9077
+ X-Frame-Options:
9078
+ - SAMEORIGIN
9079
+ X-Xss-Protection:
9080
+ - 1; mode=block
9081
+ X-Content-Type-Options:
9082
+ - nosniff
9083
+ X-Ua-Compatible:
9084
+ - chrome=1
9085
+ Content-Type:
9086
+ - application/json; charset=utf-8
9087
+ Etag:
9088
+ - '"6b28c257656ca8d458c4e751dc5eca7a"'
9089
+ Cache-Control:
9090
+ - max-age=0, private, must-revalidate
9091
+ X-Request-Id:
9092
+ - 8c561076-40b3-48f4-b4dd-500ec750b96a
9093
+ X-Runtime:
9094
+ - '0.007589'
9095
+ Server:
9096
+ - WEBrick/1.3.1 (Ruby/2.1.2/2014-05-08)
9097
+ Date:
9098
+ - Sat, 18 Oct 2014 17:30:44 GMT
9099
+ Content-Length:
9100
+ - '261'
9101
+ Connection:
9102
+ - Keep-Alive
9103
+ body:
9104
+ encoding: UTF-8
9105
+ string: |-
9106
+ {
9107
+ "service_user_id": "0cc711f2486004185fe85b93f829074b225b46a616d10cb2d5c9f15329c22e05",
9108
+ "_links": {
9109
+ "self": {
9110
+ "href": "http://localhost:3000/api/users/150"
9111
+ }
9112
+ },
9113
+ "token": "79d638f50b633871f48db1bf89a367c13fa838cc79b665c0f82ffc28fcf2d1ab"
7420
9114
  }
7421
9115
  http_version:
7422
- recorded_at: Thu, 09 Oct 2014 02:16:29 GMT
9116
+ recorded_at: Sat, 18 Oct 2014 17:30:44 GMT
7423
9117
  - request:
7424
9118
  method: post
7425
9119
  uri: http://localhost:3000/api/surveys
7426
9120
  body:
7427
9121
  encoding: UTF-8
7428
- string: '{"survey":{"service_user_id":"75523999537a5df6384ce5604d1bccf9507ceb980780032f8d2854cfbae10464"}}'
9122
+ string: '{"survey":{"service_user_id":"0cc711f2486004185fe85b93f829074b225b46a616d10cb2d5c9f15329c22e05"}}'
7429
9123
  headers:
7430
9124
  User-Agent:
7431
9125
  - Faraday v0.9.0
@@ -7433,6 +9127,10 @@ http_interactions:
7433
9127
  - application/json
7434
9128
  Api-Token:
7435
9129
  - testing
9130
+ User-Token:
9131
+ - 79d638f50b633871f48db1bf89a367c13fa838cc79b665c0f82ffc28fcf2d1ab
9132
+ Service-User-Id:
9133
+ - 0cc711f2486004185fe85b93f829074b225b46a616d10cb2d5c9f15329c22e05
7436
9134
  Accept-Encoding:
7437
9135
  - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
7438
9136
  Accept:
@@ -7453,37 +9151,37 @@ http_interactions:
7453
9151
  Content-Type:
7454
9152
  - application/json; charset=utf-8
7455
9153
  Etag:
7456
- - '"7688f59f31e8438c866643f57d0ffb6e"'
9154
+ - '"e61d7e6bf0ffebb01f613e8c03531a1a"'
7457
9155
  Cache-Control:
7458
9156
  - max-age=0, private, must-revalidate
7459
9157
  X-Request-Id:
7460
- - 47d34394-6f3a-4b67-92f4-93e5af2614c9
9158
+ - da0a3e4b-fcfd-4c2d-b34f-bde390f43e78
7461
9159
  X-Runtime:
7462
- - '0.008578'
9160
+ - '0.035492'
7463
9161
  Server:
7464
9162
  - WEBrick/1.3.1 (Ruby/2.1.2/2014-05-08)
7465
9163
  Date:
7466
- - Thu, 09 Oct 2014 02:16:29 GMT
9164
+ - Sat, 18 Oct 2014 17:30:44 GMT
7467
9165
  Content-Length:
7468
- - '472'
9166
+ - '476'
7469
9167
  Connection:
7470
9168
  - Keep-Alive
7471
9169
  body:
7472
9170
  encoding: UTF-8
7473
9171
  string: |-
7474
9172
  {
7475
- "id": 47,
7476
- "service_user_id": "75523999537a5df6384ce5604d1bccf9507ceb980780032f8d2854cfbae10464",
9173
+ "id": 186,
9174
+ "service_user_id": "0cc711f2486004185fe85b93f829074b225b46a616d10cb2d5c9f15329c22e05",
7477
9175
  "_links": {
7478
9176
  "self": {
7479
- "href": "http://localhost:3000/api/surveys/47"
9177
+ "href": "http://localhost:3000/api/surveys/186"
7480
9178
  },
7481
9179
  "survey_questions": {
7482
9180
  "post": {
7483
- "href": "http://localhost:3000/api/surveys/47/survey_questions"
9181
+ "href": "http://localhost:3000/api/surveys/186/survey_questions"
7484
9182
  },
7485
9183
  "put": {
7486
- "href": "http://localhost:3000/api/surveys/47/survey_questions"
9184
+ "href": "http://localhost:3000/api/surveys/186/survey_questions"
7487
9185
  }
7488
9186
  }
7489
9187
  },
@@ -7493,13 +9191,13 @@ http_interactions:
7493
9191
  ]
7494
9192
  }
7495
9193
  http_version:
7496
- recorded_at: Thu, 09 Oct 2014 02:16:29 GMT
9194
+ recorded_at: Sat, 18 Oct 2014 17:30:44 GMT
7497
9195
  - request:
7498
9196
  method: post
7499
- uri: http://localhost:3000/api/surveys/47/survey_questions
9197
+ uri: http://localhost:3000/api/surveys/186/survey_questions
7500
9198
  body:
7501
9199
  encoding: UTF-8
7502
- string: '{"survey_question":{"question_id":64}}'
9200
+ string: '{"survey_question":{"question_id":126}}'
7503
9201
  headers:
7504
9202
  User-Agent:
7505
9203
  - Faraday v0.9.0
@@ -7507,6 +9205,10 @@ http_interactions:
7507
9205
  - application/json
7508
9206
  Api-Token:
7509
9207
  - testing
9208
+ User-Token:
9209
+ - 79d638f50b633871f48db1bf89a367c13fa838cc79b665c0f82ffc28fcf2d1ab
9210
+ Service-User-Id:
9211
+ - 0cc711f2486004185fe85b93f829074b225b46a616d10cb2d5c9f15329c22e05
7510
9212
  Accept-Encoding:
7511
9213
  - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
7512
9214
  Accept:
@@ -7527,26 +9229,26 @@ http_interactions:
7527
9229
  Content-Type:
7528
9230
  - application/json; charset=utf-8
7529
9231
  Etag:
7530
- - '"04912e7db898f91a0ea7029abdd9e1b7"'
9232
+ - '"b673ccea86fd971d9f20458f0733abd9"'
7531
9233
  Cache-Control:
7532
9234
  - max-age=0, private, must-revalidate
7533
9235
  X-Request-Id:
7534
- - 8dc862a6-0511-4f0d-b2e6-cda1fb3f0bd8
9236
+ - 8589b89f-31b4-41c1-8ca3-0a79fe701949
7535
9237
  X-Runtime:
7536
- - '0.013472'
9238
+ - '0.015804'
7537
9239
  Server:
7538
9240
  - WEBrick/1.3.1 (Ruby/2.1.2/2014-05-08)
7539
9241
  Date:
7540
- - Thu, 09 Oct 2014 02:16:30 GMT
9242
+ - Sat, 18 Oct 2014 17:30:44 GMT
7541
9243
  Content-Length:
7542
- - '520'
9244
+ - '571'
7543
9245
  Connection:
7544
9246
  - Keep-Alive
7545
9247
  body:
7546
9248
  encoding: UTF-8
7547
9249
  string: |-
7548
9250
  {
7549
- "id": 47,
9251
+ "id": 269,
7550
9252
  "text": "Do you like poptarts?",
7551
9253
  "type": "boolean",
7552
9254
  "responses": [
@@ -7557,27 +9259,28 @@ http_interactions:
7557
9259
  "freeform": false,
7558
9260
  "_links": {
7559
9261
  "self": {
7560
- "href": "http://localhost:3000/api/surveys/47/survey_questions/47"
9262
+ "href": "http://localhost:3000/api/surveys/186/survey_questions/269"
7561
9263
  },
7562
9264
  "post": {
7563
- "href": "http://localhost:3000/api/surveys/47/survey_questions"
9265
+ "href": "http://localhost:3000/api/surveys/186/survey_questions"
7564
9266
  },
7565
9267
  "put": {
7566
- "href": "http://localhost:3000/api/surveys/47/survey_questions/47"
9268
+ "href": "http://localhost:3000/api/surveys/186/survey_questions/269"
7567
9269
  },
7568
9270
  "survey": {
7569
- "href": "http://localhost:3000/api/surveys/47"
9271
+ "href": "http://localhost:3000/api/surveys/186"
7570
9272
  }
7571
- }
9273
+ },
9274
+ "created_at": "2014-10-18T17:30:44.637Z"
7572
9275
  }
7573
9276
  http_version:
7574
- recorded_at: Thu, 09 Oct 2014 02:16:30 GMT
9277
+ recorded_at: Sat, 18 Oct 2014 17:30:44 GMT
7575
9278
  - request:
7576
9279
  method: post
7577
9280
  uri: http://localhost:3000/api/surveys
7578
9281
  body:
7579
9282
  encoding: UTF-8
7580
- string: '{"survey":{"service_user_id":"75523999537a5df6384ce5604d1bccf9507ceb980780032f8d2854cfbae10464"}}'
9283
+ string: '{"survey":{"service_user_id":"0cc711f2486004185fe85b93f829074b225b46a616d10cb2d5c9f15329c22e05"}}'
7581
9284
  headers:
7582
9285
  User-Agent:
7583
9286
  - Faraday v0.9.0
@@ -7585,6 +9288,10 @@ http_interactions:
7585
9288
  - application/json
7586
9289
  Api-Token:
7587
9290
  - testing
9291
+ User-Token:
9292
+ - 79d638f50b633871f48db1bf89a367c13fa838cc79b665c0f82ffc28fcf2d1ab
9293
+ Service-User-Id:
9294
+ - 0cc711f2486004185fe85b93f829074b225b46a616d10cb2d5c9f15329c22e05
7588
9295
  Accept-Encoding:
7589
9296
  - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
7590
9297
  Accept:
@@ -7605,37 +9312,37 @@ http_interactions:
7605
9312
  Content-Type:
7606
9313
  - application/json; charset=utf-8
7607
9314
  Etag:
7608
- - '"8d5dcec49464b236e1edead4949c4b28"'
9315
+ - '"ff8691d7cc2a4e7fbe4f455700b62a33"'
7609
9316
  Cache-Control:
7610
9317
  - max-age=0, private, must-revalidate
7611
9318
  X-Request-Id:
7612
- - e313c0f5-d9bb-4046-a8df-ba2711f07728
9319
+ - 3aaab540-8eef-4a62-aa37-7fc31f6e6b01
7613
9320
  X-Runtime:
7614
- - '0.008735'
9321
+ - '0.010871'
7615
9322
  Server:
7616
9323
  - WEBrick/1.3.1 (Ruby/2.1.2/2014-05-08)
7617
9324
  Date:
7618
- - Thu, 09 Oct 2014 02:16:30 GMT
9325
+ - Sat, 18 Oct 2014 17:30:44 GMT
7619
9326
  Content-Length:
7620
- - '472'
9327
+ - '476'
7621
9328
  Connection:
7622
9329
  - Keep-Alive
7623
9330
  body:
7624
9331
  encoding: UTF-8
7625
9332
  string: |-
7626
9333
  {
7627
- "id": 48,
7628
- "service_user_id": "75523999537a5df6384ce5604d1bccf9507ceb980780032f8d2854cfbae10464",
9334
+ "id": 187,
9335
+ "service_user_id": "0cc711f2486004185fe85b93f829074b225b46a616d10cb2d5c9f15329c22e05",
7629
9336
  "_links": {
7630
9337
  "self": {
7631
- "href": "http://localhost:3000/api/surveys/48"
9338
+ "href": "http://localhost:3000/api/surveys/187"
7632
9339
  },
7633
9340
  "survey_questions": {
7634
9341
  "post": {
7635
- "href": "http://localhost:3000/api/surveys/48/survey_questions"
9342
+ "href": "http://localhost:3000/api/surveys/187/survey_questions"
7636
9343
  },
7637
9344
  "put": {
7638
- "href": "http://localhost:3000/api/surveys/48/survey_questions"
9345
+ "href": "http://localhost:3000/api/surveys/187/survey_questions"
7639
9346
  }
7640
9347
  }
7641
9348
  },
@@ -7645,13 +9352,13 @@ http_interactions:
7645
9352
  ]
7646
9353
  }
7647
9354
  http_version:
7648
- recorded_at: Thu, 09 Oct 2014 02:16:30 GMT
9355
+ recorded_at: Sat, 18 Oct 2014 17:30:44 GMT
7649
9356
  - request:
7650
9357
  method: post
7651
- uri: http://localhost:3000/api/surveys/48/survey_questions
9358
+ uri: http://localhost:3000/api/surveys/187/survey_questions
7652
9359
  body:
7653
9360
  encoding: UTF-8
7654
- string: '{"survey_question":{"question_id":64}}'
9361
+ string: '{"survey_question":{"question_id":126}}'
7655
9362
  headers:
7656
9363
  User-Agent:
7657
9364
  - Faraday v0.9.0
@@ -7659,6 +9366,10 @@ http_interactions:
7659
9366
  - application/json
7660
9367
  Api-Token:
7661
9368
  - testing
9369
+ User-Token:
9370
+ - 79d638f50b633871f48db1bf89a367c13fa838cc79b665c0f82ffc28fcf2d1ab
9371
+ Service-User-Id:
9372
+ - 0cc711f2486004185fe85b93f829074b225b46a616d10cb2d5c9f15329c22e05
7662
9373
  Accept-Encoding:
7663
9374
  - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
7664
9375
  Accept:
@@ -7679,26 +9390,26 @@ http_interactions:
7679
9390
  Content-Type:
7680
9391
  - application/json; charset=utf-8
7681
9392
  Etag:
7682
- - '"4c18cc71eb2855b648624dccb231c49c"'
9393
+ - '"56b2013e2b798ef475d439572de342ef"'
7683
9394
  Cache-Control:
7684
9395
  - max-age=0, private, must-revalidate
7685
9396
  X-Request-Id:
7686
- - 09ac597a-f6c0-4d0d-86bf-ed580cfaac63
9397
+ - 2ff012c3-d6c8-4e03-b462-2caf8f7f3871
7687
9398
  X-Runtime:
7688
- - '0.009457'
9399
+ - '0.012672'
7689
9400
  Server:
7690
9401
  - WEBrick/1.3.1 (Ruby/2.1.2/2014-05-08)
7691
9402
  Date:
7692
- - Thu, 09 Oct 2014 02:16:30 GMT
9403
+ - Sat, 18 Oct 2014 17:30:44 GMT
7693
9404
  Content-Length:
7694
- - '520'
9405
+ - '571'
7695
9406
  Connection:
7696
9407
  - Keep-Alive
7697
9408
  body:
7698
9409
  encoding: UTF-8
7699
9410
  string: |-
7700
9411
  {
7701
- "id": 48,
9412
+ "id": 270,
7702
9413
  "text": "Do you like poptarts?",
7703
9414
  "type": "boolean",
7704
9415
  "responses": [
@@ -7709,27 +9420,28 @@ http_interactions:
7709
9420
  "freeform": false,
7710
9421
  "_links": {
7711
9422
  "self": {
7712
- "href": "http://localhost:3000/api/surveys/48/survey_questions/48"
9423
+ "href": "http://localhost:3000/api/surveys/187/survey_questions/270"
7713
9424
  },
7714
9425
  "post": {
7715
- "href": "http://localhost:3000/api/surveys/48/survey_questions"
9426
+ "href": "http://localhost:3000/api/surveys/187/survey_questions"
7716
9427
  },
7717
9428
  "put": {
7718
- "href": "http://localhost:3000/api/surveys/48/survey_questions/48"
9429
+ "href": "http://localhost:3000/api/surveys/187/survey_questions/270"
7719
9430
  },
7720
9431
  "survey": {
7721
- "href": "http://localhost:3000/api/surveys/48"
9432
+ "href": "http://localhost:3000/api/surveys/187"
7722
9433
  }
7723
- }
9434
+ },
9435
+ "created_at": "2014-10-18T17:30:44.702Z"
7724
9436
  }
7725
9437
  http_version:
7726
- recorded_at: Thu, 09 Oct 2014 02:16:30 GMT
9438
+ recorded_at: Sat, 18 Oct 2014 17:30:44 GMT
7727
9439
  - request:
7728
9440
  method: put
7729
- uri: http://localhost:3000/api/surveys/47/survey_questions/47
9441
+ uri: http://localhost:3000/api/surveys/186/survey_questions/269
7730
9442
  body:
7731
9443
  encoding: UTF-8
7732
- string: '{"id":47,"survey_question":{"answer":true}}'
9444
+ string: '{"id":269,"survey_question":{"answer":true}}'
7733
9445
  headers:
7734
9446
  User-Agent:
7735
9447
  - Faraday v0.9.0
@@ -7737,6 +9449,10 @@ http_interactions:
7737
9449
  - application/json
7738
9450
  Api-Token:
7739
9451
  - testing
9452
+ User-Token:
9453
+ - 79d638f50b633871f48db1bf89a367c13fa838cc79b665c0f82ffc28fcf2d1ab
9454
+ Service-User-Id:
9455
+ - 0cc711f2486004185fe85b93f829074b225b46a616d10cb2d5c9f15329c22e05
7740
9456
  Accept-Encoding:
7741
9457
  - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
7742
9458
  Accept:
@@ -7757,26 +9473,26 @@ http_interactions:
7757
9473
  Cache-Control:
7758
9474
  - no-cache
7759
9475
  X-Request-Id:
7760
- - 196bc025-db16-4bcb-88cc-af22047e30da
9476
+ - e73b75fb-cffb-44fc-8d01-ea0d972e9c40
7761
9477
  X-Runtime:
7762
- - '0.010819'
9478
+ - '0.015726'
7763
9479
  Server:
7764
9480
  - WEBrick/1.3.1 (Ruby/2.1.2/2014-05-08)
7765
9481
  Date:
7766
- - Thu, 09 Oct 2014 02:16:30 GMT
9482
+ - Sat, 18 Oct 2014 17:30:44 GMT
7767
9483
  Connection:
7768
9484
  - Keep-Alive
7769
9485
  body:
7770
9486
  encoding: UTF-8
7771
9487
  string: ''
7772
9488
  http_version:
7773
- recorded_at: Thu, 09 Oct 2014 02:16:30 GMT
9489
+ recorded_at: Sat, 18 Oct 2014 17:30:44 GMT
7774
9490
  - request:
7775
9491
  method: put
7776
- uri: http://localhost:3000/api/surveys/48/survey_questions/48
9492
+ uri: http://localhost:3000/api/surveys/187/survey_questions/270
7777
9493
  body:
7778
9494
  encoding: UTF-8
7779
- string: '{"id":48,"survey_question":{"answer":false}}'
9495
+ string: '{"id":270,"survey_question":{"answer":false}}'
7780
9496
  headers:
7781
9497
  User-Agent:
7782
9498
  - Faraday v0.9.0
@@ -7784,6 +9500,10 @@ http_interactions:
7784
9500
  - application/json
7785
9501
  Api-Token:
7786
9502
  - testing
9503
+ User-Token:
9504
+ - 79d638f50b633871f48db1bf89a367c13fa838cc79b665c0f82ffc28fcf2d1ab
9505
+ Service-User-Id:
9506
+ - 0cc711f2486004185fe85b93f829074b225b46a616d10cb2d5c9f15329c22e05
7787
9507
  Accept-Encoding:
7788
9508
  - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
7789
9509
  Accept:
@@ -7804,20 +9524,20 @@ http_interactions:
7804
9524
  Cache-Control:
7805
9525
  - no-cache
7806
9526
  X-Request-Id:
7807
- - f0a0fd4e-0b5c-4033-9f7c-14579a89d0fc
9527
+ - 41a37992-6353-49cf-b6bb-4e7b78ed04bd
7808
9528
  X-Runtime:
7809
- - '0.010456'
9529
+ - '0.010537'
7810
9530
  Server:
7811
9531
  - WEBrick/1.3.1 (Ruby/2.1.2/2014-05-08)
7812
9532
  Date:
7813
- - Thu, 09 Oct 2014 02:16:30 GMT
9533
+ - Sat, 18 Oct 2014 17:30:44 GMT
7814
9534
  Connection:
7815
9535
  - Keep-Alive
7816
9536
  body:
7817
9537
  encoding: UTF-8
7818
9538
  string: ''
7819
9539
  http_version:
7820
- recorded_at: Thu, 09 Oct 2014 02:16:30 GMT
9540
+ recorded_at: Sat, 18 Oct 2014 17:30:44 GMT
7821
9541
  - request:
7822
9542
  method: get
7823
9543
  uri: http://localhost:3000/api/questions/testingooptarts/survey_questions
@@ -7831,6 +9551,10 @@ http_interactions:
7831
9551
  - application/json
7832
9552
  Api-Token:
7833
9553
  - testing
9554
+ User-Token:
9555
+ - 79d638f50b633871f48db1bf89a367c13fa838cc79b665c0f82ffc28fcf2d1ab
9556
+ Service-User-Id:
9557
+ - 0cc711f2486004185fe85b93f829074b225b46a616d10cb2d5c9f15329c22e05
7834
9558
  Accept-Encoding:
7835
9559
  - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
7836
9560
  Accept:
@@ -7851,19 +9575,19 @@ http_interactions:
7851
9575
  Content-Type:
7852
9576
  - application/json; charset=utf-8
7853
9577
  Etag:
7854
- - '"3139b77cd8143482859a6139aa9d80b2"'
9578
+ - '"b63cae22484e016b6c9ed669090e56ef"'
7855
9579
  Cache-Control:
7856
9580
  - max-age=0, private, must-revalidate
7857
9581
  X-Request-Id:
7858
- - f40636aa-b133-4eab-9254-50d4aef57c4d
9582
+ - 2a487380-822d-44d5-9992-5ae55cf21106
7859
9583
  X-Runtime:
7860
- - '0.008190'
9584
+ - '0.013948'
7861
9585
  Server:
7862
9586
  - WEBrick/1.3.1 (Ruby/2.1.2/2014-05-08)
7863
9587
  Date:
7864
- - Thu, 09 Oct 2014 02:16:30 GMT
9588
+ - Sat, 18 Oct 2014 17:30:44 GMT
7865
9589
  Content-Length:
7866
- - '1272'
9590
+ - '1382'
7867
9591
  Connection:
7868
9592
  - Keep-Alive
7869
9593
  body:
@@ -7872,7 +9596,7 @@ http_interactions:
7872
9596
  {
7873
9597
  "survey_questions": [
7874
9598
  {
7875
- "id": 47,
9599
+ "id": 269,
7876
9600
  "text": "Do you like poptarts?",
7877
9601
  "type": "boolean",
7878
9602
  "responses": [
@@ -7883,21 +9607,22 @@ http_interactions:
7883
9607
  "freeform": false,
7884
9608
  "_links": {
7885
9609
  "self": {
7886
- "href": "http://localhost:3000/api/surveys/47/survey_questions/47"
9610
+ "href": "http://localhost:3000/api/surveys/186/survey_questions/269"
7887
9611
  },
7888
9612
  "post": {
7889
- "href": "http://localhost:3000/api/surveys/47/survey_questions"
9613
+ "href": "http://localhost:3000/api/surveys/186/survey_questions"
7890
9614
  },
7891
9615
  "put": {
7892
- "href": "http://localhost:3000/api/surveys/47/survey_questions/47"
9616
+ "href": "http://localhost:3000/api/surveys/186/survey_questions/269"
7893
9617
  },
7894
9618
  "survey": {
7895
- "href": "http://localhost:3000/api/surveys/47"
9619
+ "href": "http://localhost:3000/api/surveys/186"
7896
9620
  }
7897
- }
9621
+ },
9622
+ "created_at": "2014-10-18T17:30:44.637Z"
7898
9623
  },
7899
9624
  {
7900
- "id": 48,
9625
+ "id": 270,
7901
9626
  "text": "Do you like poptarts?",
7902
9627
  "type": "boolean",
7903
9628
  "responses": [
@@ -7908,21 +9633,22 @@ http_interactions:
7908
9633
  "freeform": false,
7909
9634
  "_links": {
7910
9635
  "self": {
7911
- "href": "http://localhost:3000/api/surveys/48/survey_questions/48"
9636
+ "href": "http://localhost:3000/api/surveys/187/survey_questions/270"
7912
9637
  },
7913
9638
  "post": {
7914
- "href": "http://localhost:3000/api/surveys/48/survey_questions"
9639
+ "href": "http://localhost:3000/api/surveys/187/survey_questions"
7915
9640
  },
7916
9641
  "put": {
7917
- "href": "http://localhost:3000/api/surveys/48/survey_questions/48"
9642
+ "href": "http://localhost:3000/api/surveys/187/survey_questions/270"
7918
9643
  },
7919
9644
  "survey": {
7920
- "href": "http://localhost:3000/api/surveys/48"
9645
+ "href": "http://localhost:3000/api/surveys/187"
7921
9646
  }
7922
- }
9647
+ },
9648
+ "created_at": "2014-10-18T17:30:44.702Z"
7923
9649
  }
7924
9650
  ]
7925
9651
  }
7926
9652
  http_version:
7927
- recorded_at: Thu, 09 Oct 2014 02:16:30 GMT
9653
+ recorded_at: Sat, 18 Oct 2014 17:30:44 GMT
7928
9654
  recorded_with: VCR 2.6.0