gman_client 0.0.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +15 -0
- data/.rspec +2 -0
- data/.rubocop.yml +9 -0
- data/.simplecov +3 -0
- data/.travis.yml +14 -0
- data/Gemfile +5 -0
- data/LICENSE.txt +22 -0
- data/README.md +46 -0
- data/Rakefile +1 -0
- data/gman_client.gemspec +29 -0
- data/lib/gman_client/version.rb +4 -0
- data/lib/gman_client.rb +77 -0
- data/pkg/gman_client-0.0.1.gem +0 -0
- data/pkg/gman_client-0.0.2.gem +0 -0
- data/pkg/gman_client-0.0.3.gem +0 -0
- data/pkg/gman_client-0.0.4.gem +0 -0
- data/pkg/gman_client-0.0.5.gem +0 -0
- data/spec/lib/driver_commission_history_response_spec.rb +92 -0
- data/spec/lib/driver_response_spec.rb +35 -0
- data/spec/lib/inventory_item_response_spec.rb +87 -0
- data/spec/spec_helper.rb +19 -0
- data/spec/support/gman_adapter.rb +14 -0
- data/spec/support/vcr.rb +23 -0
- data/spec/vcr_cassettes/driver_commission_histories.yml +127 -0
- data/spec/vcr_cassettes/driver_commission_histories_by_paid_date.yml +127 -0
- data/spec/vcr_cassettes/drivers.yml +87 -0
- data/spec/vcr_cassettes/inventory_items.yml +87 -0
- data/spec/vcr_cassettes/inventory_items_by_id.yml +87 -0
- data/spec/vcr_cassettes/inventory_items_like_id_description.yml +87 -0
- metadata +199 -0
@@ -0,0 +1,127 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: http://localhost:3000/oauth/token
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: grant_type=client_credentials&client_id=d137a94543da86e52214d3ed86b015f9299ad2fc66681637600afad814cd7d2b&client_secret=f444a467ddbbaed52297d61a3edc5efd93e9292fc542058786aa13fa366865a3
|
9
|
+
headers:
|
10
|
+
Accept:
|
11
|
+
- "*/*; q=0.5, application/xml"
|
12
|
+
Accept-Encoding:
|
13
|
+
- gzip, deflate
|
14
|
+
Content-Length:
|
15
|
+
- '183'
|
16
|
+
Content-Type:
|
17
|
+
- application/x-www-form-urlencoded
|
18
|
+
User-Agent:
|
19
|
+
- Ruby
|
20
|
+
response:
|
21
|
+
status:
|
22
|
+
code: 200
|
23
|
+
message: OK
|
24
|
+
headers:
|
25
|
+
X-Frame-Options:
|
26
|
+
- SAMEORIGIN
|
27
|
+
X-Xss-Protection:
|
28
|
+
- 1; mode=block
|
29
|
+
X-Content-Type-Options:
|
30
|
+
- nosniff
|
31
|
+
Cache-Control:
|
32
|
+
- no-store
|
33
|
+
Pragma:
|
34
|
+
- no-cache
|
35
|
+
Content-Type:
|
36
|
+
- application/json; charset=utf-8
|
37
|
+
Etag:
|
38
|
+
- '"636944a9f4b1f98126767e1f6af4eaa2"'
|
39
|
+
X-Request-Id:
|
40
|
+
- 7ad36f04-5225-410d-bbfa-96304af57d5d
|
41
|
+
X-Runtime:
|
42
|
+
- '0.035000'
|
43
|
+
Transfer-Encoding:
|
44
|
+
- chunked
|
45
|
+
body:
|
46
|
+
encoding: UTF-8
|
47
|
+
string: '{"access_token":"0b9a70731c14ca830b68b3d5624e20dfd4a56a1359c9b59d8269cdbe9e930094","token_type":"bearer","expires_in":7200,"created_at":1424907843}'
|
48
|
+
http_version:
|
49
|
+
recorded_at: Wed, 25 Feb 2015 23:44:03 GMT
|
50
|
+
- request:
|
51
|
+
method: get
|
52
|
+
uri: http://localhost:3000/api/v1/driver_commissions_history.json
|
53
|
+
body:
|
54
|
+
encoding: US-ASCII
|
55
|
+
string: ''
|
56
|
+
headers:
|
57
|
+
Authorization:
|
58
|
+
- Bearer 0b9a70731c14ca830b68b3d5624e20dfd4a56a1359c9b59d8269cdbe9e930094
|
59
|
+
response:
|
60
|
+
status:
|
61
|
+
code: 200
|
62
|
+
message: OK
|
63
|
+
headers:
|
64
|
+
X-Frame-Options:
|
65
|
+
- SAMEORIGIN
|
66
|
+
X-Xss-Protection:
|
67
|
+
- 1; mode=block
|
68
|
+
X-Content-Type-Options:
|
69
|
+
- nosniff
|
70
|
+
Content-Type:
|
71
|
+
- application/json; charset=utf-8
|
72
|
+
Etag:
|
73
|
+
- '"3cebdc8ebd0cf1b12efc87f79f1c120a"'
|
74
|
+
Cache-Control:
|
75
|
+
- max-age=0, private, must-revalidate
|
76
|
+
X-Request-Id:
|
77
|
+
- 572e4123-a78a-448c-9d73-abe142876217
|
78
|
+
X-Runtime:
|
79
|
+
- '0.043000'
|
80
|
+
Transfer-Encoding:
|
81
|
+
- chunked
|
82
|
+
body:
|
83
|
+
encoding: UTF-8
|
84
|
+
string: '[{"driver_id":1,"backhauls":"4115","freight_revenue":4221,"customer_id":294,"customer_name":"Aurelia,
|
85
|
+
Rohan","delivery_date":"2014-01-01","driver_rate":6291,"freight_bill_number":8188,"fuel_surcharge":8742,"layover":"layover","movement_type":"WALKING
|
86
|
+
FLOOR","other_hour_dollars":8457,"order_number_text":"7660","origin_name":"ORIGIN
|
87
|
+
NAME","paid_date":"2014-01-01","revenue":1252,"split_rate":2812,"total_freight_revenue":1819,"drvrcomh_key":"24168
|
88
|
+
73584449"},{"driver_id":2,"backhauls":"4140","freight_revenue":6753,"customer_id":7428,"customer_name":"Elvera,
|
89
|
+
Mayer","delivery_date":"2014-01-01","driver_rate":2107,"freight_bill_number":9720,"fuel_surcharge":4306,"layover":"layover","movement_type":"WALKING
|
90
|
+
FLOOR","other_hour_dollars":1232,"order_number_text":"1888","origin_name":"ORIGIN
|
91
|
+
NAME","paid_date":"2014-01-01","revenue":9343,"split_rate":8754,"total_freight_revenue":7556,"drvrcomh_key":"49773
|
92
|
+
57222043"},{"driver_id":3,"backhauls":"6757","freight_revenue":4416,"customer_id":7816,"customer_name":"Lew,
|
93
|
+
Marks","delivery_date":"2014-01-01","driver_rate":4834,"freight_bill_number":2001,"fuel_surcharge":3869,"layover":"layover","movement_type":"WALKING
|
94
|
+
FLOOR","other_hour_dollars":6950,"order_number_text":"1643","origin_name":"ORIGIN
|
95
|
+
NAME","paid_date":"2014-01-01","revenue":1196,"split_rate":1124,"total_freight_revenue":7371,"drvrcomh_key":"68210
|
96
|
+
21298265"},{"driver_id":4,"backhauls":"5331","freight_revenue":6150,"customer_id":1454,"customer_name":"Ezekiel,
|
97
|
+
Brakus","delivery_date":"2014-01-01","driver_rate":7235,"freight_bill_number":1791,"fuel_surcharge":8383,"layover":"layover","movement_type":"WALKING
|
98
|
+
FLOOR","other_hour_dollars":1991,"order_number_text":"7043","origin_name":"ORIGIN
|
99
|
+
NAME","paid_date":"2014-01-01","revenue":4706,"split_rate":3469,"total_freight_revenue":5774,"drvrcomh_key":"20427
|
100
|
+
50676873"},{"driver_id":5,"backhauls":"1182","freight_revenue":3528,"customer_id":5514,"customer_name":"Rodrick,
|
101
|
+
Luettgen","delivery_date":"2014-01-01","driver_rate":1813,"freight_bill_number":5519,"fuel_surcharge":421,"layover":"layover","movement_type":"WALKING
|
102
|
+
FLOOR","other_hour_dollars":3375,"order_number_text":"1034","origin_name":"ORIGIN
|
103
|
+
NAME","paid_date":"2014-01-01","revenue":6745,"split_rate":674,"total_freight_revenue":8439,"drvrcomh_key":"22523
|
104
|
+
70171858"},{"driver_id":6,"backhauls":"6281","freight_revenue":8928,"customer_id":5327,"customer_name":"Odie,
|
105
|
+
Boyle","delivery_date":"2014-01-01","driver_rate":3624,"freight_bill_number":6647,"fuel_surcharge":3414,"layover":"layover","movement_type":"WALKING
|
106
|
+
FLOOR","other_hour_dollars":1802,"order_number_text":"4756","origin_name":"ORIGIN
|
107
|
+
NAME","paid_date":"2014-01-01","revenue":2489,"split_rate":7738,"total_freight_revenue":6174,"drvrcomh_key":"64315
|
108
|
+
85047228"},{"driver_id":7,"backhauls":"2212","freight_revenue":3607,"customer_id":8475,"customer_name":"Sherman,
|
109
|
+
Heidenreich","delivery_date":"2014-01-01","driver_rate":2871,"freight_bill_number":3579,"fuel_surcharge":8186,"layover":"layover","movement_type":"WALKING
|
110
|
+
FLOOR","other_hour_dollars":4787,"order_number_text":"2412","origin_name":"ORIGIN
|
111
|
+
NAME","paid_date":"2014-01-01","revenue":7661,"split_rate":8457,"total_freight_revenue":6402,"drvrcomh_key":"76388
|
112
|
+
43618717"},{"driver_id":8,"backhauls":"5785","freight_revenue":6518,"customer_id":9765,"customer_name":"Skyla,
|
113
|
+
Kiehn","delivery_date":"2014-01-01","driver_rate":4450,"freight_bill_number":912,"fuel_surcharge":6168,"layover":"layover","movement_type":"WALKING
|
114
|
+
FLOOR","other_hour_dollars":3865,"order_number_text":"7122","origin_name":"ORIGIN
|
115
|
+
NAME","paid_date":"2014-01-01","revenue":2324,"split_rate":4192,"total_freight_revenue":8359,"drvrcomh_key":"62468
|
116
|
+
58677101"},{"driver_id":9,"backhauls":"3848","freight_revenue":3440,"customer_id":5882,"customer_name":"Vicky,
|
117
|
+
Bauch","delivery_date":"2014-01-01","driver_rate":6377,"freight_bill_number":7754,"fuel_surcharge":1074,"layover":"layover","movement_type":"WALKING
|
118
|
+
FLOOR","other_hour_dollars":5565,"order_number_text":"1298","origin_name":"ORIGIN
|
119
|
+
NAME","paid_date":"2014-01-01","revenue":8622,"split_rate":7173,"total_freight_revenue":4724,"drvrcomh_key":"19791
|
120
|
+
98581877"},{"driver_id":10,"backhauls":"7070","freight_revenue":5871,"customer_id":8994,"customer_name":"Audreanne,
|
121
|
+
Quitzon","delivery_date":"2014-01-01","driver_rate":3369,"freight_bill_number":6560,"fuel_surcharge":4827,"layover":"layover","movement_type":"WALKING
|
122
|
+
FLOOR","other_hour_dollars":8201,"order_number_text":"0065","origin_name":"ORIGIN
|
123
|
+
NAME","paid_date":"2014-01-01","revenue":2480,"split_rate":6634,"total_freight_revenue":4212,"drvrcomh_key":"78688
|
124
|
+
88857276"}]'
|
125
|
+
http_version:
|
126
|
+
recorded_at: Wed, 25 Feb 2015 23:44:03 GMT
|
127
|
+
recorded_with: VCR 2.9.3
|
@@ -0,0 +1,127 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: http://localhost:3000/oauth/token
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: grant_type=client_credentials&client_id=d137a94543da86e52214d3ed86b015f9299ad2fc66681637600afad814cd7d2b&client_secret=f444a467ddbbaed52297d61a3edc5efd93e9292fc542058786aa13fa366865a3
|
9
|
+
headers:
|
10
|
+
Accept:
|
11
|
+
- "*/*; q=0.5, application/xml"
|
12
|
+
Accept-Encoding:
|
13
|
+
- gzip, deflate
|
14
|
+
Content-Length:
|
15
|
+
- '183'
|
16
|
+
Content-Type:
|
17
|
+
- application/x-www-form-urlencoded
|
18
|
+
User-Agent:
|
19
|
+
- Ruby
|
20
|
+
response:
|
21
|
+
status:
|
22
|
+
code: 200
|
23
|
+
message: OK
|
24
|
+
headers:
|
25
|
+
X-Frame-Options:
|
26
|
+
- SAMEORIGIN
|
27
|
+
X-Xss-Protection:
|
28
|
+
- 1; mode=block
|
29
|
+
X-Content-Type-Options:
|
30
|
+
- nosniff
|
31
|
+
Cache-Control:
|
32
|
+
- no-store
|
33
|
+
Pragma:
|
34
|
+
- no-cache
|
35
|
+
Content-Type:
|
36
|
+
- application/json; charset=utf-8
|
37
|
+
Etag:
|
38
|
+
- '"e393144b7a865db4e23955c848371454"'
|
39
|
+
X-Request-Id:
|
40
|
+
- 818149a3-6c33-437b-a008-1725f9c6c68f
|
41
|
+
X-Runtime:
|
42
|
+
- '0.016000'
|
43
|
+
Transfer-Encoding:
|
44
|
+
- chunked
|
45
|
+
body:
|
46
|
+
encoding: UTF-8
|
47
|
+
string: '{"access_token":"cfdfc88c68f5672b28245f10a4a69b751abdc7afcb4230ab060b7c53a16227a1","token_type":"bearer","expires_in":7200,"created_at":1424907844}'
|
48
|
+
http_version:
|
49
|
+
recorded_at: Wed, 25 Feb 2015 23:44:04 GMT
|
50
|
+
- request:
|
51
|
+
method: get
|
52
|
+
uri: http://localhost:3000/api/v1/driver_commissions_history_by_paid_date.json?paid_date=2014-01-01
|
53
|
+
body:
|
54
|
+
encoding: US-ASCII
|
55
|
+
string: ''
|
56
|
+
headers:
|
57
|
+
Authorization:
|
58
|
+
- Bearer cfdfc88c68f5672b28245f10a4a69b751abdc7afcb4230ab060b7c53a16227a1
|
59
|
+
response:
|
60
|
+
status:
|
61
|
+
code: 200
|
62
|
+
message: OK
|
63
|
+
headers:
|
64
|
+
X-Frame-Options:
|
65
|
+
- SAMEORIGIN
|
66
|
+
X-Xss-Protection:
|
67
|
+
- 1; mode=block
|
68
|
+
X-Content-Type-Options:
|
69
|
+
- nosniff
|
70
|
+
Content-Type:
|
71
|
+
- application/json; charset=utf-8
|
72
|
+
Etag:
|
73
|
+
- '"3cebdc8ebd0cf1b12efc87f79f1c120a"'
|
74
|
+
Cache-Control:
|
75
|
+
- max-age=0, private, must-revalidate
|
76
|
+
X-Request-Id:
|
77
|
+
- 7f78a419-7ac5-43ec-93a2-6b752515e334
|
78
|
+
X-Runtime:
|
79
|
+
- '0.017000'
|
80
|
+
Transfer-Encoding:
|
81
|
+
- chunked
|
82
|
+
body:
|
83
|
+
encoding: UTF-8
|
84
|
+
string: '[{"driver_id":1,"backhauls":"4115","freight_revenue":4221,"customer_id":294,"customer_name":"Aurelia,
|
85
|
+
Rohan","delivery_date":"2014-01-01","driver_rate":6291,"freight_bill_number":8188,"fuel_surcharge":8742,"layover":"layover","movement_type":"WALKING
|
86
|
+
FLOOR","other_hour_dollars":8457,"order_number_text":"7660","origin_name":"ORIGIN
|
87
|
+
NAME","paid_date":"2014-01-01","revenue":1252,"split_rate":2812,"total_freight_revenue":1819,"drvrcomh_key":"24168
|
88
|
+
73584449"},{"driver_id":2,"backhauls":"4140","freight_revenue":6753,"customer_id":7428,"customer_name":"Elvera,
|
89
|
+
Mayer","delivery_date":"2014-01-01","driver_rate":2107,"freight_bill_number":9720,"fuel_surcharge":4306,"layover":"layover","movement_type":"WALKING
|
90
|
+
FLOOR","other_hour_dollars":1232,"order_number_text":"1888","origin_name":"ORIGIN
|
91
|
+
NAME","paid_date":"2014-01-01","revenue":9343,"split_rate":8754,"total_freight_revenue":7556,"drvrcomh_key":"49773
|
92
|
+
57222043"},{"driver_id":3,"backhauls":"6757","freight_revenue":4416,"customer_id":7816,"customer_name":"Lew,
|
93
|
+
Marks","delivery_date":"2014-01-01","driver_rate":4834,"freight_bill_number":2001,"fuel_surcharge":3869,"layover":"layover","movement_type":"WALKING
|
94
|
+
FLOOR","other_hour_dollars":6950,"order_number_text":"1643","origin_name":"ORIGIN
|
95
|
+
NAME","paid_date":"2014-01-01","revenue":1196,"split_rate":1124,"total_freight_revenue":7371,"drvrcomh_key":"68210
|
96
|
+
21298265"},{"driver_id":4,"backhauls":"5331","freight_revenue":6150,"customer_id":1454,"customer_name":"Ezekiel,
|
97
|
+
Brakus","delivery_date":"2014-01-01","driver_rate":7235,"freight_bill_number":1791,"fuel_surcharge":8383,"layover":"layover","movement_type":"WALKING
|
98
|
+
FLOOR","other_hour_dollars":1991,"order_number_text":"7043","origin_name":"ORIGIN
|
99
|
+
NAME","paid_date":"2014-01-01","revenue":4706,"split_rate":3469,"total_freight_revenue":5774,"drvrcomh_key":"20427
|
100
|
+
50676873"},{"driver_id":5,"backhauls":"1182","freight_revenue":3528,"customer_id":5514,"customer_name":"Rodrick,
|
101
|
+
Luettgen","delivery_date":"2014-01-01","driver_rate":1813,"freight_bill_number":5519,"fuel_surcharge":421,"layover":"layover","movement_type":"WALKING
|
102
|
+
FLOOR","other_hour_dollars":3375,"order_number_text":"1034","origin_name":"ORIGIN
|
103
|
+
NAME","paid_date":"2014-01-01","revenue":6745,"split_rate":674,"total_freight_revenue":8439,"drvrcomh_key":"22523
|
104
|
+
70171858"},{"driver_id":6,"backhauls":"6281","freight_revenue":8928,"customer_id":5327,"customer_name":"Odie,
|
105
|
+
Boyle","delivery_date":"2014-01-01","driver_rate":3624,"freight_bill_number":6647,"fuel_surcharge":3414,"layover":"layover","movement_type":"WALKING
|
106
|
+
FLOOR","other_hour_dollars":1802,"order_number_text":"4756","origin_name":"ORIGIN
|
107
|
+
NAME","paid_date":"2014-01-01","revenue":2489,"split_rate":7738,"total_freight_revenue":6174,"drvrcomh_key":"64315
|
108
|
+
85047228"},{"driver_id":7,"backhauls":"2212","freight_revenue":3607,"customer_id":8475,"customer_name":"Sherman,
|
109
|
+
Heidenreich","delivery_date":"2014-01-01","driver_rate":2871,"freight_bill_number":3579,"fuel_surcharge":8186,"layover":"layover","movement_type":"WALKING
|
110
|
+
FLOOR","other_hour_dollars":4787,"order_number_text":"2412","origin_name":"ORIGIN
|
111
|
+
NAME","paid_date":"2014-01-01","revenue":7661,"split_rate":8457,"total_freight_revenue":6402,"drvrcomh_key":"76388
|
112
|
+
43618717"},{"driver_id":8,"backhauls":"5785","freight_revenue":6518,"customer_id":9765,"customer_name":"Skyla,
|
113
|
+
Kiehn","delivery_date":"2014-01-01","driver_rate":4450,"freight_bill_number":912,"fuel_surcharge":6168,"layover":"layover","movement_type":"WALKING
|
114
|
+
FLOOR","other_hour_dollars":3865,"order_number_text":"7122","origin_name":"ORIGIN
|
115
|
+
NAME","paid_date":"2014-01-01","revenue":2324,"split_rate":4192,"total_freight_revenue":8359,"drvrcomh_key":"62468
|
116
|
+
58677101"},{"driver_id":9,"backhauls":"3848","freight_revenue":3440,"customer_id":5882,"customer_name":"Vicky,
|
117
|
+
Bauch","delivery_date":"2014-01-01","driver_rate":6377,"freight_bill_number":7754,"fuel_surcharge":1074,"layover":"layover","movement_type":"WALKING
|
118
|
+
FLOOR","other_hour_dollars":5565,"order_number_text":"1298","origin_name":"ORIGIN
|
119
|
+
NAME","paid_date":"2014-01-01","revenue":8622,"split_rate":7173,"total_freight_revenue":4724,"drvrcomh_key":"19791
|
120
|
+
98581877"},{"driver_id":10,"backhauls":"7070","freight_revenue":5871,"customer_id":8994,"customer_name":"Audreanne,
|
121
|
+
Quitzon","delivery_date":"2014-01-01","driver_rate":3369,"freight_bill_number":6560,"fuel_surcharge":4827,"layover":"layover","movement_type":"WALKING
|
122
|
+
FLOOR","other_hour_dollars":8201,"order_number_text":"0065","origin_name":"ORIGIN
|
123
|
+
NAME","paid_date":"2014-01-01","revenue":2480,"split_rate":6634,"total_freight_revenue":4212,"drvrcomh_key":"78688
|
124
|
+
88857276"}]'
|
125
|
+
http_version:
|
126
|
+
recorded_at: Wed, 25 Feb 2015 23:44:04 GMT
|
127
|
+
recorded_with: VCR 2.9.3
|
@@ -0,0 +1,87 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: http://localhost:3000/oauth/token
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: grant_type=client_credentials&client_id=d137a94543da86e52214d3ed86b015f9299ad2fc66681637600afad814cd7d2b&client_secret=f444a467ddbbaed52297d61a3edc5efd93e9292fc542058786aa13fa366865a3
|
9
|
+
headers:
|
10
|
+
Accept:
|
11
|
+
- "*/*; q=0.5, application/xml"
|
12
|
+
Accept-Encoding:
|
13
|
+
- gzip, deflate
|
14
|
+
Content-Length:
|
15
|
+
- '183'
|
16
|
+
Content-Type:
|
17
|
+
- application/x-www-form-urlencoded
|
18
|
+
User-Agent:
|
19
|
+
- Ruby
|
20
|
+
response:
|
21
|
+
status:
|
22
|
+
code: 200
|
23
|
+
message: OK
|
24
|
+
headers:
|
25
|
+
X-Frame-Options:
|
26
|
+
- SAMEORIGIN
|
27
|
+
X-Xss-Protection:
|
28
|
+
- 1; mode=block
|
29
|
+
X-Content-Type-Options:
|
30
|
+
- nosniff
|
31
|
+
Cache-Control:
|
32
|
+
- no-store
|
33
|
+
Pragma:
|
34
|
+
- no-cache
|
35
|
+
Content-Type:
|
36
|
+
- application/json; charset=utf-8
|
37
|
+
Etag:
|
38
|
+
- '"0f4b70434fd2b04f04b5585fae61cd82"'
|
39
|
+
X-Request-Id:
|
40
|
+
- feef8d8c-f05c-4325-b775-e67f84eedcac
|
41
|
+
X-Runtime:
|
42
|
+
- '0.016000'
|
43
|
+
Transfer-Encoding:
|
44
|
+
- chunked
|
45
|
+
body:
|
46
|
+
encoding: UTF-8
|
47
|
+
string: '{"access_token":"809eb7e39031e67b45b67297a83942e476b899b762ba75f99103e8e0825f432a","token_type":"bearer","expires_in":7200,"created_at":1424907844}'
|
48
|
+
http_version:
|
49
|
+
recorded_at: Wed, 25 Feb 2015 23:44:04 GMT
|
50
|
+
- request:
|
51
|
+
method: get
|
52
|
+
uri: http://localhost:3000/api/v1/drivers.json
|
53
|
+
body:
|
54
|
+
encoding: US-ASCII
|
55
|
+
string: ''
|
56
|
+
headers:
|
57
|
+
Authorization:
|
58
|
+
- Bearer 809eb7e39031e67b45b67297a83942e476b899b762ba75f99103e8e0825f432a
|
59
|
+
response:
|
60
|
+
status:
|
61
|
+
code: 200
|
62
|
+
message: OK
|
63
|
+
headers:
|
64
|
+
X-Frame-Options:
|
65
|
+
- SAMEORIGIN
|
66
|
+
X-Xss-Protection:
|
67
|
+
- 1; mode=block
|
68
|
+
X-Content-Type-Options:
|
69
|
+
- nosniff
|
70
|
+
Content-Type:
|
71
|
+
- application/json; charset=utf-8
|
72
|
+
Etag:
|
73
|
+
- '"e3538e3c02a937a6510e6944a39bc372"'
|
74
|
+
Cache-Control:
|
75
|
+
- max-age=0, private, must-revalidate
|
76
|
+
X-Request-Id:
|
77
|
+
- 6551cafc-8dfc-49e9-a94d-c5c1b99c65ad
|
78
|
+
X-Runtime:
|
79
|
+
- '0.021000'
|
80
|
+
Transfer-Encoding:
|
81
|
+
- chunked
|
82
|
+
body:
|
83
|
+
encoding: UTF-8
|
84
|
+
string: '[{"driver_id":1,"active_fg":1,"driver_type":"DR","sub_hauler_fg":1,"first_name":"Elmore","last_name":"Quigley"},{"driver_id":2,"active_fg":0,"driver_type":"DR","sub_hauler_fg":0,"first_name":"Duane","last_name":"Altenwerth"},{"driver_id":3,"active_fg":1,"driver_type":"DR","sub_hauler_fg":1,"first_name":"Mose","last_name":"Cummings"},{"driver_id":4,"active_fg":0,"driver_type":"DR","sub_hauler_fg":0,"first_name":"Stone","last_name":"Grady"},{"driver_id":5,"active_fg":1,"driver_type":"DR","sub_hauler_fg":0,"first_name":"Retha","last_name":"Gutmann"},{"driver_id":6,"active_fg":1,"driver_type":"DR","sub_hauler_fg":1,"first_name":"Libby","last_name":"Zemlak"},{"driver_id":7,"active_fg":0,"driver_type":"DR","sub_hauler_fg":0,"first_name":"Kiara","last_name":"Bartell"},{"driver_id":8,"active_fg":1,"driver_type":"DR","sub_hauler_fg":1,"first_name":"Jerry","last_name":"Runolfsson"},{"driver_id":9,"active_fg":0,"driver_type":"DR","sub_hauler_fg":0,"first_name":"George","last_name":"Kerluke"},{"driver_id":10,"active_fg":1,"driver_type":"DR","sub_hauler_fg":1,"first_name":"Laverne","last_name":"MacGyver"}]'
|
85
|
+
http_version:
|
86
|
+
recorded_at: Wed, 25 Feb 2015 23:44:04 GMT
|
87
|
+
recorded_with: VCR 2.9.3
|
@@ -0,0 +1,87 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: http://localhost:3000/oauth/token
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: grant_type=client_credentials&client_id=d137a94543da86e52214d3ed86b015f9299ad2fc66681637600afad814cd7d2b&client_secret=f444a467ddbbaed52297d61a3edc5efd93e9292fc542058786aa13fa366865a3
|
9
|
+
headers:
|
10
|
+
Accept:
|
11
|
+
- "*/*; q=0.5, application/xml"
|
12
|
+
Accept-Encoding:
|
13
|
+
- gzip, deflate
|
14
|
+
Content-Length:
|
15
|
+
- '183'
|
16
|
+
Content-Type:
|
17
|
+
- application/x-www-form-urlencoded
|
18
|
+
User-Agent:
|
19
|
+
- Ruby
|
20
|
+
response:
|
21
|
+
status:
|
22
|
+
code: 200
|
23
|
+
message: OK
|
24
|
+
headers:
|
25
|
+
X-Frame-Options:
|
26
|
+
- SAMEORIGIN
|
27
|
+
X-Xss-Protection:
|
28
|
+
- 1; mode=block
|
29
|
+
X-Content-Type-Options:
|
30
|
+
- nosniff
|
31
|
+
Cache-Control:
|
32
|
+
- no-store
|
33
|
+
Pragma:
|
34
|
+
- no-cache
|
35
|
+
Content-Type:
|
36
|
+
- application/json; charset=utf-8
|
37
|
+
Etag:
|
38
|
+
- '"5210bf6916b56af0a1c8c54275e69d1e"'
|
39
|
+
X-Request-Id:
|
40
|
+
- d99cf0fb-884d-4634-a7c5-a1d6a933cf53
|
41
|
+
X-Runtime:
|
42
|
+
- '0.014000'
|
43
|
+
Transfer-Encoding:
|
44
|
+
- chunked
|
45
|
+
body:
|
46
|
+
encoding: UTF-8
|
47
|
+
string: '{"access_token":"696785ca85c0c092c77bfe153bc3f926f27cf458eaf919e55610372591cc2388","token_type":"bearer","expires_in":7200,"created_at":1424907844}'
|
48
|
+
http_version:
|
49
|
+
recorded_at: Wed, 25 Feb 2015 23:44:04 GMT
|
50
|
+
- request:
|
51
|
+
method: get
|
52
|
+
uri: http://localhost:3000/api/v1/inventory/items.json
|
53
|
+
body:
|
54
|
+
encoding: US-ASCII
|
55
|
+
string: ''
|
56
|
+
headers:
|
57
|
+
Authorization:
|
58
|
+
- Bearer 696785ca85c0c092c77bfe153bc3f926f27cf458eaf919e55610372591cc2388
|
59
|
+
response:
|
60
|
+
status:
|
61
|
+
code: 200
|
62
|
+
message: OK
|
63
|
+
headers:
|
64
|
+
X-Frame-Options:
|
65
|
+
- SAMEORIGIN
|
66
|
+
X-Xss-Protection:
|
67
|
+
- 1; mode=block
|
68
|
+
X-Content-Type-Options:
|
69
|
+
- nosniff
|
70
|
+
Content-Type:
|
71
|
+
- application/json; charset=utf-8
|
72
|
+
Etag:
|
73
|
+
- '"136c0e672e686dfb4b17c3892a32f938"'
|
74
|
+
Cache-Control:
|
75
|
+
- max-age=0, private, must-revalidate
|
76
|
+
X-Request-Id:
|
77
|
+
- 607f2988-1ed4-44b9-823d-eff3652175e3
|
78
|
+
X-Runtime:
|
79
|
+
- '0.020000'
|
80
|
+
Transfer-Encoding:
|
81
|
+
- chunked
|
82
|
+
body:
|
83
|
+
encoding: UTF-8
|
84
|
+
string: '[{"item_id":7634,"in_item_description":"Donnell"},{"item_id":4144,"in_item_description":"Shemar"},{"item_id":2167,"in_item_description":"Chris"},{"item_id":9617,"in_item_description":"Loyal"},{"item_id":1582,"in_item_description":"Jackson"},{"item_id":4874,"in_item_description":"Juanita"},{"item_id":2476,"in_item_description":"Stacey"},{"item_id":6119,"in_item_description":"Reba"},{"item_id":1574,"in_item_description":"Onie"},{"item_id":3881,"in_item_description":"Britney"}]'
|
85
|
+
http_version:
|
86
|
+
recorded_at: Wed, 25 Feb 2015 23:44:04 GMT
|
87
|
+
recorded_with: VCR 2.9.3
|
@@ -0,0 +1,87 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: http://localhost:3000/oauth/token
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: grant_type=client_credentials&client_id=f444a467ddbbaed52297d61a3edc5efd93e9292fc542058786aa13fa366865a3&client_secret=d137a94543da86e52214d3ed86b015f9299ad2fc66681637600afad814cd7d2b
|
9
|
+
headers:
|
10
|
+
Accept:
|
11
|
+
- "*/*; q=0.5, application/xml"
|
12
|
+
Accept-Encoding:
|
13
|
+
- gzip, deflate
|
14
|
+
Content-Length:
|
15
|
+
- '183'
|
16
|
+
Content-Type:
|
17
|
+
- application/x-www-form-urlencoded
|
18
|
+
User-Agent:
|
19
|
+
- Ruby
|
20
|
+
response:
|
21
|
+
status:
|
22
|
+
code: 200
|
23
|
+
message: OK
|
24
|
+
headers:
|
25
|
+
X-Frame-Options:
|
26
|
+
- SAMEORIGIN
|
27
|
+
X-Xss-Protection:
|
28
|
+
- 1; mode=block
|
29
|
+
X-Content-Type-Options:
|
30
|
+
- nosniff
|
31
|
+
Cache-Control:
|
32
|
+
- no-store
|
33
|
+
Pragma:
|
34
|
+
- no-cache
|
35
|
+
Content-Type:
|
36
|
+
- application/json; charset=utf-8
|
37
|
+
Etag:
|
38
|
+
- '"9aa8f7755d55659030a38874c13f35af"'
|
39
|
+
X-Request-Id:
|
40
|
+
- f5398a6f-aedf-415c-9218-678c99fd52f6
|
41
|
+
X-Runtime:
|
42
|
+
- '0.017000'
|
43
|
+
Transfer-Encoding:
|
44
|
+
- chunked
|
45
|
+
body:
|
46
|
+
encoding: UTF-8
|
47
|
+
string: '{"access_token":"005bbad3c36eed1a3d68582a54ac3844a10273f75cbd0e3d8a6d0e713cce7477","token_type":"bearer","expires_in":7200,"created_at":1421885634}'
|
48
|
+
http_version:
|
49
|
+
recorded_at: Thu, 22 Jan 2015 00:13:54 GMT
|
50
|
+
- request:
|
51
|
+
method: get
|
52
|
+
uri: http://localhost:3000/api/v1/inventory/items_by_id.json?item_id=9370
|
53
|
+
body:
|
54
|
+
encoding: US-ASCII
|
55
|
+
string: ''
|
56
|
+
headers:
|
57
|
+
Authorization:
|
58
|
+
- Bearer 005bbad3c36eed1a3d68582a54ac3844a10273f75cbd0e3d8a6d0e713cce7477
|
59
|
+
response:
|
60
|
+
status:
|
61
|
+
code: 200
|
62
|
+
message: OK
|
63
|
+
headers:
|
64
|
+
X-Frame-Options:
|
65
|
+
- SAMEORIGIN
|
66
|
+
X-Xss-Protection:
|
67
|
+
- 1; mode=block
|
68
|
+
X-Content-Type-Options:
|
69
|
+
- nosniff
|
70
|
+
Content-Type:
|
71
|
+
- application/json; charset=utf-8
|
72
|
+
Etag:
|
73
|
+
- '"6f346f20f0d5722e04c451e3cdfa7dea"'
|
74
|
+
Cache-Control:
|
75
|
+
- max-age=0, private, must-revalidate
|
76
|
+
X-Request-Id:
|
77
|
+
- 2c806d36-a617-4c46-aa48-1ca57101e7af
|
78
|
+
X-Runtime:
|
79
|
+
- '0.012000'
|
80
|
+
Transfer-Encoding:
|
81
|
+
- chunked
|
82
|
+
body:
|
83
|
+
encoding: UTF-8
|
84
|
+
string: '[{"item_id":9370,"in_item_description":"Rachelle"}]'
|
85
|
+
http_version:
|
86
|
+
recorded_at: Thu, 22 Jan 2015 00:13:54 GMT
|
87
|
+
recorded_with: VCR 2.9.3
|
@@ -0,0 +1,87 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: http://localhost:3000/oauth/token
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: grant_type=client_credentials&client_id=f444a467ddbbaed52297d61a3edc5efd93e9292fc542058786aa13fa366865a3&client_secret=d137a94543da86e52214d3ed86b015f9299ad2fc66681637600afad814cd7d2b
|
9
|
+
headers:
|
10
|
+
Accept:
|
11
|
+
- "*/*; q=0.5, application/xml"
|
12
|
+
Accept-Encoding:
|
13
|
+
- gzip, deflate
|
14
|
+
Content-Length:
|
15
|
+
- '183'
|
16
|
+
Content-Type:
|
17
|
+
- application/x-www-form-urlencoded
|
18
|
+
User-Agent:
|
19
|
+
- Ruby
|
20
|
+
response:
|
21
|
+
status:
|
22
|
+
code: 200
|
23
|
+
message: OK
|
24
|
+
headers:
|
25
|
+
X-Frame-Options:
|
26
|
+
- SAMEORIGIN
|
27
|
+
X-Xss-Protection:
|
28
|
+
- 1; mode=block
|
29
|
+
X-Content-Type-Options:
|
30
|
+
- nosniff
|
31
|
+
Cache-Control:
|
32
|
+
- no-store
|
33
|
+
Pragma:
|
34
|
+
- no-cache
|
35
|
+
Content-Type:
|
36
|
+
- application/json; charset=utf-8
|
37
|
+
Etag:
|
38
|
+
- '"7bc21725715aa64b6d0bc2a64ce981e0"'
|
39
|
+
X-Request-Id:
|
40
|
+
- 9eddfc11-bf21-4c0d-bade-0ce304e63861
|
41
|
+
X-Runtime:
|
42
|
+
- '0.017000'
|
43
|
+
Transfer-Encoding:
|
44
|
+
- chunked
|
45
|
+
body:
|
46
|
+
encoding: UTF-8
|
47
|
+
string: '{"access_token":"1e096801ad14a3b8251b683c127ff31bf6325baad1efdbc839e6f3852f555236","token_type":"bearer","expires_in":7200,"created_at":1421888460}'
|
48
|
+
http_version:
|
49
|
+
recorded_at: Thu, 22 Jan 2015 01:01:00 GMT
|
50
|
+
- request:
|
51
|
+
method: get
|
52
|
+
uri: http://localhost:3000/api/v1/inventory/items_like_id_description.json?in_item_description=Rachelle&item_id=9370
|
53
|
+
body:
|
54
|
+
encoding: US-ASCII
|
55
|
+
string: ''
|
56
|
+
headers:
|
57
|
+
Authorization:
|
58
|
+
- Bearer 1e096801ad14a3b8251b683c127ff31bf6325baad1efdbc839e6f3852f555236
|
59
|
+
response:
|
60
|
+
status:
|
61
|
+
code: 200
|
62
|
+
message: OK
|
63
|
+
headers:
|
64
|
+
X-Frame-Options:
|
65
|
+
- SAMEORIGIN
|
66
|
+
X-Xss-Protection:
|
67
|
+
- 1; mode=block
|
68
|
+
X-Content-Type-Options:
|
69
|
+
- nosniff
|
70
|
+
Content-Type:
|
71
|
+
- application/json; charset=utf-8
|
72
|
+
Etag:
|
73
|
+
- '"6f346f20f0d5722e04c451e3cdfa7dea"'
|
74
|
+
Cache-Control:
|
75
|
+
- max-age=0, private, must-revalidate
|
76
|
+
X-Request-Id:
|
77
|
+
- f546ddd4-8c7c-4f21-b27f-5ae6673984eb
|
78
|
+
X-Runtime:
|
79
|
+
- '0.011000'
|
80
|
+
Transfer-Encoding:
|
81
|
+
- chunked
|
82
|
+
body:
|
83
|
+
encoding: UTF-8
|
84
|
+
string: '[{"item_id":9370,"in_item_description":"Rachelle"}]'
|
85
|
+
http_version:
|
86
|
+
recorded_at: Thu, 22 Jan 2015 01:01:00 GMT
|
87
|
+
recorded_with: VCR 2.9.3
|