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.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/poptart/request.rb +6 -0
- data/lib/poptart/user.rb +9 -2
- data/lib/poptart.rb +18 -0
- data/lib/version.rb +1 -1
- data/spec/requests/answering_survey_questions_spec.rb +6 -0
- data/spec/requests/answers_spec.rb +2 -0
- data/spec/requests/surveys_spec.rb +11 -0
- data/spec/requests/user_management_spec.rb +1 -0
- data/spec/vcr/answering/survey_questions_answers_a_multiple_choice_question.yml +3407 -626
- data/spec/vcr/answering/survey_questions_answers_a_survey_question.yml +6035 -1352
- data/spec/vcr/answering/survey_questions_creates_and_returns_a_random_question_survey.yml +75 -240
- data/spec/vcr/answering/survey_questions_creates_and_returns_an_empty_survey.yml +35 -27
- data/spec/vcr/answering/survey_questions_finds_survey_question_for_id.yml +73 -235
- data/spec/vcr/creating/quesitons_returns_boolean_question.yml +19 -15
- data/spec/vcr/creating/quesitons_returns_multiple_question.yml +76 -60
- data/spec/vcr/creating/quesitons_returns_range_question.yml +75 -59
- data/spec/vcr/retrieving/answers_returns_all_answered_survey_questions_for_a_question.yml +6923 -442
- data/spec/vcr/retrieving/answers_returns_all_answered_survey_questions_for_a_question_by_key.yml +2055 -329
- data/spec/vcr/surveys/fetchs_all_surveys_for_a_user.yml +476 -0
- data/spec/vcr/user/management_creates_a_user.yml +55 -48
- data/spec/vcr/user/management_returns_a_user.yml +468 -17
- metadata +6 -2
@@ -1571,6 +1571,10 @@ http_interactions:
|
|
1571
1571
|
- application/json
|
1572
1572
|
Api-Token:
|
1573
1573
|
- testing
|
1574
|
+
User-Token:
|
1575
|
+
- 8481296cc93de968c5c7171d87e232cb247e9879dc0f566101cd125bf7a7fee6
|
1576
|
+
Service-User-Id:
|
1577
|
+
- d8cbe7ca7624cc03c9ed3bc9c959e92197da958e41dc91b1b5b6420bfcd30e31
|
1574
1578
|
Accept-Encoding:
|
1575
1579
|
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
1576
1580
|
Accept:
|
@@ -1591,17 +1595,17 @@ http_interactions:
|
|
1591
1595
|
Content-Type:
|
1592
1596
|
- application/json; charset=utf-8
|
1593
1597
|
Etag:
|
1594
|
-
- '"
|
1598
|
+
- '"70fd2ff885daca97a807460d21065c6a"'
|
1595
1599
|
Cache-Control:
|
1596
1600
|
- max-age=0, private, must-revalidate
|
1597
1601
|
X-Request-Id:
|
1598
|
-
-
|
1602
|
+
- db97f229-1aac-4bd8-bb96-1a24c19a8362
|
1599
1603
|
X-Runtime:
|
1600
|
-
- '0.
|
1604
|
+
- '0.007012'
|
1601
1605
|
Server:
|
1602
1606
|
- WEBrick/1.3.1 (Ruby/2.1.2/2014-05-08)
|
1603
1607
|
Date:
|
1604
|
-
-
|
1608
|
+
- Sat, 18 Oct 2014 17:30:41 GMT
|
1605
1609
|
Content-Length:
|
1606
1610
|
- '261'
|
1607
1611
|
Connection:
|
@@ -1610,22 +1614,22 @@ http_interactions:
|
|
1610
1614
|
encoding: UTF-8
|
1611
1615
|
string: |-
|
1612
1616
|
{
|
1613
|
-
"service_user_id": "
|
1617
|
+
"service_user_id": "d8cbe7ca7624cc03c9ed3bc9c959e92197da958e41dc91b1b5b6420bfcd30e31",
|
1614
1618
|
"_links": {
|
1615
1619
|
"self": {
|
1616
|
-
"href": "http://localhost:3000/api/users/
|
1620
|
+
"href": "http://localhost:3000/api/users/144"
|
1617
1621
|
}
|
1618
1622
|
},
|
1619
|
-
"token": "
|
1623
|
+
"token": "8481296cc93de968c5c7171d87e232cb247e9879dc0f566101cd125bf7a7fee6"
|
1620
1624
|
}
|
1621
1625
|
http_version:
|
1622
|
-
recorded_at:
|
1626
|
+
recorded_at: Sat, 18 Oct 2014 17:30:41 GMT
|
1623
1627
|
- request:
|
1624
1628
|
method: post
|
1625
1629
|
uri: http://localhost:3000/api/surveys?random=true
|
1626
1630
|
body:
|
1627
1631
|
encoding: UTF-8
|
1628
|
-
string: '{"survey":{"service_user_id":"
|
1632
|
+
string: '{"survey":{"service_user_id":"d8cbe7ca7624cc03c9ed3bc9c959e92197da958e41dc91b1b5b6420bfcd30e31"}}'
|
1629
1633
|
headers:
|
1630
1634
|
User-Agent:
|
1631
1635
|
- Faraday v0.9.0
|
@@ -1633,6 +1637,10 @@ http_interactions:
|
|
1633
1637
|
- application/json
|
1634
1638
|
Api-Token:
|
1635
1639
|
- testing
|
1640
|
+
User-Token:
|
1641
|
+
- 8481296cc93de968c5c7171d87e232cb247e9879dc0f566101cd125bf7a7fee6
|
1642
|
+
Service-User-Id:
|
1643
|
+
- d8cbe7ca7624cc03c9ed3bc9c959e92197da958e41dc91b1b5b6420bfcd30e31
|
1636
1644
|
Accept-Encoding:
|
1637
1645
|
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
1638
1646
|
Accept:
|
@@ -1653,44 +1661,44 @@ http_interactions:
|
|
1653
1661
|
Content-Type:
|
1654
1662
|
- application/json; charset=utf-8
|
1655
1663
|
Etag:
|
1656
|
-
- '"
|
1664
|
+
- '"9aae9fc9ec3187bff2c88be5e682b63d"'
|
1657
1665
|
Cache-Control:
|
1658
1666
|
- max-age=0, private, must-revalidate
|
1659
1667
|
X-Request-Id:
|
1660
|
-
-
|
1668
|
+
- 57945e23-4723-45ed-bb70-21dee7eac5db
|
1661
1669
|
X-Runtime:
|
1662
|
-
- '0.
|
1670
|
+
- '0.059881'
|
1663
1671
|
Server:
|
1664
1672
|
- WEBrick/1.3.1 (Ruby/2.1.2/2014-05-08)
|
1665
1673
|
Date:
|
1666
|
-
-
|
1674
|
+
- Sat, 18 Oct 2014 17:30:42 GMT
|
1667
1675
|
Content-Length:
|
1668
|
-
- '
|
1676
|
+
- '3890'
|
1669
1677
|
Connection:
|
1670
1678
|
- Keep-Alive
|
1671
1679
|
body:
|
1672
1680
|
encoding: UTF-8
|
1673
1681
|
string: |-
|
1674
1682
|
{
|
1675
|
-
"id":
|
1676
|
-
"service_user_id": "
|
1683
|
+
"id": 179,
|
1684
|
+
"service_user_id": "d8cbe7ca7624cc03c9ed3bc9c959e92197da958e41dc91b1b5b6420bfcd30e31",
|
1677
1685
|
"_links": {
|
1678
1686
|
"self": {
|
1679
|
-
"href": "http://localhost:3000/api/surveys/
|
1687
|
+
"href": "http://localhost:3000/api/surveys/179"
|
1680
1688
|
},
|
1681
1689
|
"survey_questions": {
|
1682
1690
|
"post": {
|
1683
|
-
"href": "http://localhost:3000/api/surveys/
|
1691
|
+
"href": "http://localhost:3000/api/surveys/179/survey_questions"
|
1684
1692
|
},
|
1685
1693
|
"put": {
|
1686
|
-
"href": "http://localhost:3000/api/surveys/
|
1694
|
+
"href": "http://localhost:3000/api/surveys/179/survey_questions"
|
1687
1695
|
}
|
1688
1696
|
}
|
1689
1697
|
},
|
1690
1698
|
"completed": false,
|
1691
1699
|
"survey_questions": [
|
1692
1700
|
{
|
1693
|
-
"id":
|
1701
|
+
"id": 250,
|
1694
1702
|
"text": "How do you feel right now?",
|
1695
1703
|
"type": "range",
|
1696
1704
|
"responses": [
|
@@ -1701,21 +1709,22 @@ http_interactions:
|
|
1701
1709
|
"freeform": false,
|
1702
1710
|
"_links": {
|
1703
1711
|
"self": {
|
1704
|
-
"href": "http://localhost:3000/api/surveys/
|
1712
|
+
"href": "http://localhost:3000/api/surveys/179/survey_questions/250"
|
1705
1713
|
},
|
1706
1714
|
"post": {
|
1707
|
-
"href": "http://localhost:3000/api/surveys/
|
1715
|
+
"href": "http://localhost:3000/api/surveys/179/survey_questions"
|
1708
1716
|
},
|
1709
1717
|
"put": {
|
1710
|
-
"href": "http://localhost:3000/api/surveys/
|
1718
|
+
"href": "http://localhost:3000/api/surveys/179/survey_questions/250"
|
1711
1719
|
},
|
1712
1720
|
"survey": {
|
1713
|
-
"href": "http://localhost:3000/api/surveys/
|
1721
|
+
"href": "http://localhost:3000/api/surveys/179"
|
1714
1722
|
}
|
1715
|
-
}
|
1723
|
+
},
|
1724
|
+
"created_at": "2014-10-18T17:30:41.997Z"
|
1716
1725
|
},
|
1717
1726
|
{
|
1718
|
-
"id":
|
1727
|
+
"id": 251,
|
1719
1728
|
"text": "Where are you?",
|
1720
1729
|
"type": "multiple",
|
1721
1730
|
"responses": [
|
@@ -1728,271 +1737,97 @@ http_interactions:
|
|
1728
1737
|
"freeform": true,
|
1729
1738
|
"_links": {
|
1730
1739
|
"self": {
|
1731
|
-
"href": "http://localhost:3000/api/surveys/
|
1732
|
-
},
|
1733
|
-
"post": {
|
1734
|
-
"href": "http://localhost:3000/api/surveys/230/survey_questions"
|
1735
|
-
},
|
1736
|
-
"put": {
|
1737
|
-
"href": "http://localhost:3000/api/surveys/230/survey_questions/958"
|
1738
|
-
},
|
1739
|
-
"survey": {
|
1740
|
-
"href": "http://localhost:3000/api/surveys/230"
|
1741
|
-
}
|
1742
|
-
}
|
1743
|
-
},
|
1744
|
-
{
|
1745
|
-
"id": 959,
|
1746
|
-
"text": "Do you like poptarts?",
|
1747
|
-
"type": "multiple",
|
1748
|
-
"responses": [
|
1749
|
-
"Yes",
|
1750
|
-
"No"
|
1751
|
-
],
|
1752
|
-
"answer": null,
|
1753
|
-
"freeform": true,
|
1754
|
-
"_links": {
|
1755
|
-
"self": {
|
1756
|
-
"href": "http://localhost:3000/api/surveys/230/survey_questions/959"
|
1757
|
-
},
|
1758
|
-
"post": {
|
1759
|
-
"href": "http://localhost:3000/api/surveys/230/survey_questions"
|
1760
|
-
},
|
1761
|
-
"put": {
|
1762
|
-
"href": "http://localhost:3000/api/surveys/230/survey_questions/959"
|
1763
|
-
},
|
1764
|
-
"survey": {
|
1765
|
-
"href": "http://localhost:3000/api/surveys/230"
|
1766
|
-
}
|
1767
|
-
}
|
1768
|
-
},
|
1769
|
-
{
|
1770
|
-
"id": 960,
|
1771
|
-
"text": "Do you like poptarts?",
|
1772
|
-
"type": "multiple",
|
1773
|
-
"responses": [
|
1774
|
-
"Yes",
|
1775
|
-
"No"
|
1776
|
-
],
|
1777
|
-
"answer": null,
|
1778
|
-
"freeform": true,
|
1779
|
-
"_links": {
|
1780
|
-
"self": {
|
1781
|
-
"href": "http://localhost:3000/api/surveys/230/survey_questions/960"
|
1782
|
-
},
|
1783
|
-
"post": {
|
1784
|
-
"href": "http://localhost:3000/api/surveys/230/survey_questions"
|
1785
|
-
},
|
1786
|
-
"put": {
|
1787
|
-
"href": "http://localhost:3000/api/surveys/230/survey_questions/960"
|
1788
|
-
},
|
1789
|
-
"survey": {
|
1790
|
-
"href": "http://localhost:3000/api/surveys/230"
|
1791
|
-
}
|
1792
|
-
}
|
1793
|
-
},
|
1794
|
-
{
|
1795
|
-
"id": 961,
|
1796
|
-
"text": "Do you love poptarts?",
|
1797
|
-
"type": "multiple",
|
1798
|
-
"responses": [
|
1799
|
-
"Yes",
|
1800
|
-
"No"
|
1801
|
-
],
|
1802
|
-
"answer": null,
|
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"
|
1740
|
+
"href": "http://localhost:3000/api/surveys/179/survey_questions/251"
|
1907
1741
|
},
|
1908
1742
|
"post": {
|
1909
|
-
"href": "http://localhost:3000/api/surveys/
|
1743
|
+
"href": "http://localhost:3000/api/surveys/179/survey_questions"
|
1910
1744
|
},
|
1911
1745
|
"put": {
|
1912
|
-
"href": "http://localhost:3000/api/surveys/
|
1746
|
+
"href": "http://localhost:3000/api/surveys/179/survey_questions/251"
|
1913
1747
|
},
|
1914
1748
|
"survey": {
|
1915
|
-
"href": "http://localhost:3000/api/surveys/
|
1749
|
+
"href": "http://localhost:3000/api/surveys/179"
|
1916
1750
|
}
|
1917
|
-
}
|
1751
|
+
},
|
1752
|
+
"created_at": "2014-10-18T17:30:41.998Z"
|
1918
1753
|
},
|
1919
1754
|
{
|
1920
|
-
"id":
|
1755
|
+
"id": 252,
|
1921
1756
|
"text": "Do you like poptarts?",
|
1922
|
-
"type": "
|
1757
|
+
"type": "boolean",
|
1923
1758
|
"responses": [
|
1924
|
-
"
|
1925
|
-
"
|
1759
|
+
"t",
|
1760
|
+
"f"
|
1926
1761
|
],
|
1927
1762
|
"answer": null,
|
1928
|
-
"freeform":
|
1763
|
+
"freeform": false,
|
1929
1764
|
"_links": {
|
1930
1765
|
"self": {
|
1931
|
-
"href": "http://localhost:3000/api/surveys/
|
1766
|
+
"href": "http://localhost:3000/api/surveys/179/survey_questions/252"
|
1932
1767
|
},
|
1933
1768
|
"post": {
|
1934
|
-
"href": "http://localhost:3000/api/surveys/
|
1769
|
+
"href": "http://localhost:3000/api/surveys/179/survey_questions"
|
1935
1770
|
},
|
1936
1771
|
"put": {
|
1937
|
-
"href": "http://localhost:3000/api/surveys/
|
1772
|
+
"href": "http://localhost:3000/api/surveys/179/survey_questions/252"
|
1938
1773
|
},
|
1939
1774
|
"survey": {
|
1940
|
-
"href": "http://localhost:3000/api/surveys/
|
1775
|
+
"href": "http://localhost:3000/api/surveys/179"
|
1941
1776
|
}
|
1942
|
-
}
|
1777
|
+
},
|
1778
|
+
"created_at": "2014-10-18T17:30:41.999Z"
|
1943
1779
|
},
|
1944
1780
|
{
|
1945
|
-
"id":
|
1781
|
+
"id": 253,
|
1946
1782
|
"text": "Do you like poptarts?",
|
1947
|
-
"type": "
|
1783
|
+
"type": "boolean",
|
1948
1784
|
"responses": [
|
1949
|
-
"
|
1950
|
-
"
|
1785
|
+
"t",
|
1786
|
+
"f"
|
1951
1787
|
],
|
1952
1788
|
"answer": null,
|
1953
|
-
"freeform":
|
1789
|
+
"freeform": false,
|
1954
1790
|
"_links": {
|
1955
1791
|
"self": {
|
1956
|
-
"href": "http://localhost:3000/api/surveys/
|
1792
|
+
"href": "http://localhost:3000/api/surveys/179/survey_questions/253"
|
1957
1793
|
},
|
1958
1794
|
"post": {
|
1959
|
-
"href": "http://localhost:3000/api/surveys/
|
1795
|
+
"href": "http://localhost:3000/api/surveys/179/survey_questions"
|
1960
1796
|
},
|
1961
1797
|
"put": {
|
1962
|
-
"href": "http://localhost:3000/api/surveys/
|
1798
|
+
"href": "http://localhost:3000/api/surveys/179/survey_questions/253"
|
1963
1799
|
},
|
1964
1800
|
"survey": {
|
1965
|
-
"href": "http://localhost:3000/api/surveys/
|
1801
|
+
"href": "http://localhost:3000/api/surveys/179"
|
1966
1802
|
}
|
1967
|
-
}
|
1803
|
+
},
|
1804
|
+
"created_at": "2014-10-18T17:30:42.014Z"
|
1968
1805
|
},
|
1969
1806
|
{
|
1970
|
-
"id":
|
1971
|
-
"text": "
|
1972
|
-
"type": "
|
1973
|
-
"responses":
|
1974
|
-
"Yes",
|
1975
|
-
"No"
|
1976
|
-
],
|
1807
|
+
"id": 254,
|
1808
|
+
"text": "What time did you wake up this morning?",
|
1809
|
+
"type": "time",
|
1810
|
+
"responses": null,
|
1977
1811
|
"answer": null,
|
1978
|
-
"freeform":
|
1812
|
+
"freeform": false,
|
1979
1813
|
"_links": {
|
1980
1814
|
"self": {
|
1981
|
-
"href": "http://localhost:3000/api/surveys/
|
1815
|
+
"href": "http://localhost:3000/api/surveys/179/survey_questions/254"
|
1982
1816
|
},
|
1983
1817
|
"post": {
|
1984
|
-
"href": "http://localhost:3000/api/surveys/
|
1818
|
+
"href": "http://localhost:3000/api/surveys/179/survey_questions"
|
1985
1819
|
},
|
1986
1820
|
"put": {
|
1987
|
-
"href": "http://localhost:3000/api/surveys/
|
1821
|
+
"href": "http://localhost:3000/api/surveys/179/survey_questions/254"
|
1988
1822
|
},
|
1989
1823
|
"survey": {
|
1990
|
-
"href": "http://localhost:3000/api/surveys/
|
1824
|
+
"href": "http://localhost:3000/api/surveys/179"
|
1991
1825
|
}
|
1992
|
-
}
|
1826
|
+
},
|
1827
|
+
"created_at": "2014-10-18T17:30:42.015Z"
|
1993
1828
|
}
|
1994
1829
|
]
|
1995
1830
|
}
|
1996
1831
|
http_version:
|
1997
|
-
recorded_at:
|
1832
|
+
recorded_at: Sat, 18 Oct 2014 17:30:42 GMT
|
1998
1833
|
recorded_with: VCR 2.6.0
|
@@ -781,13 +781,13 @@ http_interactions:
|
|
781
781
|
Cache-Control:
|
782
782
|
- max-age=0, private, must-revalidate
|
783
783
|
X-Request-Id:
|
784
|
-
-
|
784
|
+
- 41bf3126-6700-4929-a628-779e4da7b698
|
785
785
|
X-Runtime:
|
786
|
-
- '0.
|
786
|
+
- '0.006003'
|
787
787
|
Server:
|
788
788
|
- WEBrick/1.3.1 (Ruby/2.1.2/2014-05-08)
|
789
789
|
Date:
|
790
|
-
-
|
790
|
+
- Sat, 18 Oct 2014 17:30:41 GMT
|
791
791
|
Content-Length:
|
792
792
|
- '469'
|
793
793
|
Connection:
|
@@ -815,7 +815,7 @@ http_interactions:
|
|
815
815
|
}
|
816
816
|
}
|
817
817
|
http_version:
|
818
|
-
recorded_at:
|
818
|
+
recorded_at: Sat, 18 Oct 2014 17:30:41 GMT
|
819
819
|
- request:
|
820
820
|
method: post
|
821
821
|
uri: http://localhost:3000/api/users
|
@@ -849,17 +849,17 @@ http_interactions:
|
|
849
849
|
Content-Type:
|
850
850
|
- application/json; charset=utf-8
|
851
851
|
Etag:
|
852
|
-
- '"
|
852
|
+
- '"0f52f77b40b6e63fcd539f7a32b5d7e8"'
|
853
853
|
Cache-Control:
|
854
854
|
- max-age=0, private, must-revalidate
|
855
855
|
X-Request-Id:
|
856
|
-
-
|
856
|
+
- a1bd105d-0c8a-4933-a6b0-883916cd2d99
|
857
857
|
X-Runtime:
|
858
|
-
- '0.
|
858
|
+
- '0.013017'
|
859
859
|
Server:
|
860
860
|
- WEBrick/1.3.1 (Ruby/2.1.2/2014-05-08)
|
861
861
|
Date:
|
862
|
-
-
|
862
|
+
- Sat, 18 Oct 2014 17:30:41 GMT
|
863
863
|
Content-Length:
|
864
864
|
- '261'
|
865
865
|
Connection:
|
@@ -868,16 +868,16 @@ http_interactions:
|
|
868
868
|
encoding: UTF-8
|
869
869
|
string: |-
|
870
870
|
{
|
871
|
-
"service_user_id": "
|
871
|
+
"service_user_id": "d8cbe7ca7624cc03c9ed3bc9c959e92197da958e41dc91b1b5b6420bfcd30e31",
|
872
872
|
"_links": {
|
873
873
|
"self": {
|
874
|
-
"href": "http://localhost:3000/api/users/
|
874
|
+
"href": "http://localhost:3000/api/users/143"
|
875
875
|
}
|
876
876
|
},
|
877
|
-
"token": "
|
877
|
+
"token": "8481296cc93de968c5c7171d87e232cb247e9879dc0f566101cd125bf7a7fee6"
|
878
878
|
}
|
879
879
|
http_version:
|
880
|
-
recorded_at:
|
880
|
+
recorded_at: Sat, 18 Oct 2014 17:30:41 GMT
|
881
881
|
- request:
|
882
882
|
method: get
|
883
883
|
uri: http://localhost:3000/
|
@@ -891,6 +891,10 @@ http_interactions:
|
|
891
891
|
- application/json
|
892
892
|
Api-Token:
|
893
893
|
- testing
|
894
|
+
User-Token:
|
895
|
+
- 8481296cc93de968c5c7171d87e232cb247e9879dc0f566101cd125bf7a7fee6
|
896
|
+
Service-User-Id:
|
897
|
+
- d8cbe7ca7624cc03c9ed3bc9c959e92197da958e41dc91b1b5b6420bfcd30e31
|
894
898
|
Accept-Encoding:
|
895
899
|
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
896
900
|
Accept:
|
@@ -915,13 +919,13 @@ http_interactions:
|
|
915
919
|
Cache-Control:
|
916
920
|
- max-age=0, private, must-revalidate
|
917
921
|
X-Request-Id:
|
918
|
-
-
|
922
|
+
- 1f83e783-4b97-45ca-ad7a-c6396afc5e66
|
919
923
|
X-Runtime:
|
920
|
-
- '0.
|
924
|
+
- '0.004936'
|
921
925
|
Server:
|
922
926
|
- WEBrick/1.3.1 (Ruby/2.1.2/2014-05-08)
|
923
927
|
Date:
|
924
|
-
-
|
928
|
+
- Sat, 18 Oct 2014 17:30:41 GMT
|
925
929
|
Content-Length:
|
926
930
|
- '469'
|
927
931
|
Connection:
|
@@ -949,13 +953,13 @@ http_interactions:
|
|
949
953
|
}
|
950
954
|
}
|
951
955
|
http_version:
|
952
|
-
recorded_at:
|
956
|
+
recorded_at: Sat, 18 Oct 2014 17:30:41 GMT
|
953
957
|
- request:
|
954
958
|
method: post
|
955
959
|
uri: http://localhost:3000/api/surveys
|
956
960
|
body:
|
957
961
|
encoding: UTF-8
|
958
|
-
string: '{"survey":{"service_user_id":"
|
962
|
+
string: '{"survey":{"service_user_id":"d8cbe7ca7624cc03c9ed3bc9c959e92197da958e41dc91b1b5b6420bfcd30e31"}}'
|
959
963
|
headers:
|
960
964
|
User-Agent:
|
961
965
|
- Faraday v0.9.0
|
@@ -963,6 +967,10 @@ http_interactions:
|
|
963
967
|
- application/json
|
964
968
|
Api-Token:
|
965
969
|
- testing
|
970
|
+
User-Token:
|
971
|
+
- 8481296cc93de968c5c7171d87e232cb247e9879dc0f566101cd125bf7a7fee6
|
972
|
+
Service-User-Id:
|
973
|
+
- d8cbe7ca7624cc03c9ed3bc9c959e92197da958e41dc91b1b5b6420bfcd30e31
|
966
974
|
Accept-Encoding:
|
967
975
|
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
968
976
|
Accept:
|
@@ -983,17 +991,17 @@ http_interactions:
|
|
983
991
|
Content-Type:
|
984
992
|
- application/json; charset=utf-8
|
985
993
|
Etag:
|
986
|
-
- '"
|
994
|
+
- '"ff0bef7cc50d44e314097f6d62aa6770"'
|
987
995
|
Cache-Control:
|
988
996
|
- max-age=0, private, must-revalidate
|
989
997
|
X-Request-Id:
|
990
|
-
-
|
998
|
+
- e6251cca-bbe8-4558-9e99-f38ef1477a49
|
991
999
|
X-Runtime:
|
992
|
-
- '0.
|
1000
|
+
- '0.018456'
|
993
1001
|
Server:
|
994
1002
|
- WEBrick/1.3.1 (Ruby/2.1.2/2014-05-08)
|
995
1003
|
Date:
|
996
|
-
-
|
1004
|
+
- Sat, 18 Oct 2014 17:30:41 GMT
|
997
1005
|
Content-Length:
|
998
1006
|
- '476'
|
999
1007
|
Connection:
|
@@ -1002,18 +1010,18 @@ http_interactions:
|
|
1002
1010
|
encoding: UTF-8
|
1003
1011
|
string: |-
|
1004
1012
|
{
|
1005
|
-
"id":
|
1006
|
-
"service_user_id": "
|
1013
|
+
"id": 178,
|
1014
|
+
"service_user_id": "d8cbe7ca7624cc03c9ed3bc9c959e92197da958e41dc91b1b5b6420bfcd30e31",
|
1007
1015
|
"_links": {
|
1008
1016
|
"self": {
|
1009
|
-
"href": "http://localhost:3000/api/surveys/
|
1017
|
+
"href": "http://localhost:3000/api/surveys/178"
|
1010
1018
|
},
|
1011
1019
|
"survey_questions": {
|
1012
1020
|
"post": {
|
1013
|
-
"href": "http://localhost:3000/api/surveys/
|
1021
|
+
"href": "http://localhost:3000/api/surveys/178/survey_questions"
|
1014
1022
|
},
|
1015
1023
|
"put": {
|
1016
|
-
"href": "http://localhost:3000/api/surveys/
|
1024
|
+
"href": "http://localhost:3000/api/surveys/178/survey_questions"
|
1017
1025
|
}
|
1018
1026
|
}
|
1019
1027
|
},
|
@@ -1023,5 +1031,5 @@ http_interactions:
|
|
1023
1031
|
]
|
1024
1032
|
}
|
1025
1033
|
http_version:
|
1026
|
-
recorded_at:
|
1034
|
+
recorded_at: Sat, 18 Oct 2014 17:30:41 GMT
|
1027
1035
|
recorded_with: VCR 2.6.0
|