teamsnap_rb 0.0.4 → 0.0.5

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,5 +1,139 @@
1
1
  require "spec_helper"
2
2
 
3
3
  describe TeamsnapRb::Collection do
4
- pending
5
- end
4
+ describe "default attributes" do
5
+ it "includes Enumerable" do
6
+ expect(TeamsnapRb::Collection).to include(Enumerable)
7
+ end
8
+ end
9
+
10
+ context "GET root", :vcr, record: :once do
11
+ use_vcr_cassette "root"
12
+ let(:root_collection) { TeamsnapRb::Collection.new("http://localhost:3003", {}, TeamsnapRb::Config.new) }
13
+
14
+ describe "#href" do
15
+ it "responds to href with the correct value" do
16
+ expect(root_collection.href).to eq("http://localhost:3003/")
17
+ end
18
+ end
19
+
20
+ describe "#links" do
21
+ it "returns a LinksProxy object" do
22
+ expect(root_collection.links).to be_a(TeamsnapRb::LinksProxy)
23
+ end
24
+ end
25
+
26
+ describe "#[]" do
27
+ it "returns nil when the collection does not have any data elements" do
28
+ expect(root_collection[0]).to be_nil
29
+ end
30
+ end
31
+
32
+ describe "#queries" do
33
+ it "returns a QueriesProxy object" do
34
+ expect(root_collection.queries).to be_a(TeamsnapRb::QueriesProxy)
35
+ end
36
+
37
+ it "contains a set of Query objects" do
38
+ expect(root_collection.queries.first).to be_a(TeamsnapRb::Query)
39
+ end
40
+ end
41
+
42
+ describe "#each" do
43
+ it "returns an empty array when there are not data elements" do
44
+ expect(root_collection.each).to eq([])
45
+ end
46
+ end
47
+
48
+ describe "#where" do
49
+ it "returns a CollectionWhereProxy" do
50
+ expect(root_collection.where({})).to be_a(TeamsnapRb::Collection::CollectionWhereProxy)
51
+ end
52
+
53
+ it "returns nil when trying to access an empty collection" do
54
+ expect(root_collection.where({})[0]).to be_nil
55
+ end
56
+ end
57
+
58
+ describe "#error" do
59
+ it "returns an empty array if there are no errors" do
60
+ expect(root_collection.error).to be_empty
61
+ end
62
+ end
63
+
64
+ describe "#error?" do
65
+ it "returns false if there are no errors" do
66
+ expect(root_collection.error?).to eq(false)
67
+ end
68
+ end
69
+ end
70
+
71
+ context "GET /teams/1", :vcr, record: :once do
72
+ use_vcr_cassette "team"
73
+ let(:team_collection) { TeamsnapRb::Collection.new("http://localhost:3003/teams/1", {}, TeamsnapRb::Config.new) }
74
+
75
+ describe "#href" do
76
+ it "responds to href with the correct value" do
77
+ expect(team_collection.href).to eq("http://localhost:3003/teams")
78
+ end
79
+ end
80
+
81
+ describe "#links" do
82
+ it "returns a LinksProxy object" do
83
+ expect(team_collection.links).to be_a(TeamsnapRb::LinksProxy)
84
+ end
85
+ end
86
+
87
+ describe "#[]" do
88
+ it "returns an Item when the collection has data elements" do
89
+ expect(team_collection[0]).to be_a(TeamsnapRb::Item)
90
+ end
91
+ end
92
+
93
+ describe "#queries" do
94
+ it "returns a QueriesProxy object" do
95
+ expect(team_collection.queries).to be_a(TeamsnapRb::QueriesProxy)
96
+ end
97
+
98
+ it "contains a set of Query objects" do
99
+ expect(team_collection.queries.first).to be_a(TeamsnapRb::Query)
100
+ end
101
+ end
102
+
103
+ describe "#each" do
104
+ it "returns an array of items" do
105
+ expect(team_collection.each {|item|}).to_not be_empty
106
+ end
107
+ end
108
+
109
+ describe "#where" do
110
+ it "returns a CollectionWhereProxy" do
111
+ expect(team_collection.where({})).to be_a(TeamsnapRb::Collection::CollectionWhereProxy)
112
+ end
113
+
114
+ it "returns nil when trying to access a type that doesn't exist in the collection" do
115
+ expect(team_collection.where({type: "division"})[0]).to be_nil
116
+ end
117
+
118
+ it "returns an array of items that match the type passed in" do
119
+ expect(team_collection.where({type: "team"})[0]).to be_a(TeamsnapRb::Item)
120
+ end
121
+
122
+ it "the item selected has the expected data" do
123
+ expect(team_collection.where({type: "team"})[0].name).to eq("Test Mania")
124
+ end
125
+ end
126
+
127
+ describe "#error" do
128
+ it "returns an empty array if there are no errors" do
129
+ expect(team_collection.error).to be_empty
130
+ end
131
+ end
132
+
133
+ describe "#error?" do
134
+ it "returns false if there are no errors" do
135
+ expect(team_collection.error?).to eq(false)
136
+ end
137
+ end
138
+ end
139
+ end
@@ -0,0 +1,60 @@
1
+ require "spec_helper"
2
+
3
+ describe TeamsnapRb::Command do
4
+ use_vcr_cassette "team", :match_requests_on => [:host, :path, :body], :record => :new_episodes
5
+
6
+ let(:client) { TeamsnapRb::Client.new("http://localhost:3003/teams/1") }
7
+ let(:command) { client.commands.first }
8
+
9
+ describe "#new" do
10
+ it "is built from a TeamsnapRb::Collection" do
11
+ expect{command}.to_not raise_exception
12
+ end
13
+ end
14
+
15
+ describe "#execute" do
16
+ it "returns a Faraday::Response" do
17
+ expect(
18
+ command.execute(
19
+ [:team_id => 1, :member_id => 8, :notify_as_member_id => 1]
20
+ )
21
+ ).to be_a(Faraday::Response)
22
+ end
23
+
24
+ it "returns an appropriate status code" do
25
+ expect(
26
+ command.execute(
27
+ [:team_id => 1, :member_id => 8, :notify_as_member_id => 1]
28
+ ).status
29
+ ).to eq(202)
30
+ end
31
+ end
32
+
33
+ describe "#href" do
34
+ it "returns the href for the command" do
35
+ expect(command.href).to eq("http://localhost:3003/teams/invite")
36
+ end
37
+ end
38
+
39
+ describe "#rel" do
40
+ it "returns the name of the command" do
41
+ expect(command.rel).to eq("invite")
42
+ end
43
+ end
44
+
45
+ describe "#prompt" do
46
+ it "returns the prompt for the command" do
47
+ expect(command.prompt).to eq("invite team members or contacts to join TeamSnap.")
48
+ end
49
+ end
50
+
51
+ describe "#data" do
52
+ it "returns the data for the command" do
53
+ expect(command.data).to include("team_id", "member_id")
54
+ end
55
+
56
+ it "returns the data for the command" do
57
+ expect(command.data).to be_a(Array)
58
+ end
59
+ end
60
+ end
@@ -0,0 +1,35 @@
1
+ require "spec_helper"
2
+
3
+ describe TeamsnapRb::CommandsProxy do
4
+ use_vcr_cassette "team", :match_requests_on => [:host, :path, :body]
5
+
6
+ let(:commands_proxy) { TeamsnapRb::Collection.new(
7
+ "http://localhost:3003/teams/1", {}, TeamsnapRb::Config.new
8
+ ).commands }
9
+
10
+ describe "#new" do
11
+ it "accepts an array of commands from a collection+json response and a config" do
12
+ expect(commands_proxy).to be_a(TeamsnapRb::CommandsProxy)
13
+ end
14
+ end
15
+
16
+ describe "#rels" do
17
+ it "returns an array of the different commands available for the collection" do
18
+ expect(commands_proxy.rels).to eq([:invite])
19
+ end
20
+ end
21
+
22
+ describe "executing a command" do
23
+ it "with valid data, it posts to the invite href when a match is found" do
24
+ expect(
25
+ commands_proxy.invite(
26
+ :team_id => 1, :member_id => 8, :notify_as_member_id => 1
27
+ ).status
28
+ ).to eq(202)
29
+ end
30
+
31
+ it "with invalid data, it returns a 400" do
32
+ expect(commands_proxy.invite.status).to eq(400)
33
+ end
34
+ end
35
+ end
@@ -0,0 +1,15 @@
1
+ require "spec_helper"
2
+
3
+ describe TeamsnapRb::Config do
4
+ let(:config) { TeamsnapRb::Config.new }
5
+
6
+ describe "#new" do
7
+ it "uses sensible defaults when no options are passed in" do
8
+ expect(config.access_token).to be_nil
9
+ expect(config.client_secret).to be_nil
10
+ expect(config.client_id).to be_nil
11
+ expect(config.response_middleware).to eq([])
12
+ expect(config.request_middleware).to eq([])
13
+ end
14
+ end
15
+ end
@@ -0,0 +1,59 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://apiv3.teamsnap.com/
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ User-Agent:
11
+ - Faraday v0.9.0
12
+ Accept-Encoding:
13
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
14
+ Accept:
15
+ - "*/*"
16
+ response:
17
+ status:
18
+ code: 401
19
+ message: Unauthorized
20
+ headers:
21
+ Content-Type:
22
+ - text/html;charset=utf-8
23
+ Content-Length:
24
+ - '138'
25
+ Connection:
26
+ - keep-alive
27
+ Status:
28
+ - 401 Unauthorized
29
+ X-Xss-Protection:
30
+ - 1; mode=block
31
+ X-Content-Type-Options:
32
+ - nosniff
33
+ X-Frame-Options:
34
+ - SAMEORIGIN
35
+ X-Ratelimit-Limit:
36
+ - '5000'
37
+ X-Ratelimit-Remaining:
38
+ - '4997'
39
+ X-Ratelimit-Reset:
40
+ - '1415731203'
41
+ Cache-Control:
42
+ - no-cache
43
+ X-Request-Id:
44
+ - 16f9d410-b994-472a-a2ef-097357c11915
45
+ X-Runtime:
46
+ - '0.004984'
47
+ X-Powered-By:
48
+ - Phusion Passenger 4.0.48
49
+ Date:
50
+ - Tue, 11 Nov 2014 17:46:29 GMT
51
+ Server:
52
+ - nginx/1.4.5 + Phusion Passenger 4.0.48
53
+ body:
54
+ encoding: UTF-8
55
+ string: '{"collection":{"error":{"message":"You are not authorized to access
56
+ this resource. Please ensure you''ve provided a valid access token."}}}'
57
+ http_version:
58
+ recorded_at: Tue, 11 Nov 2014 17:46:29 GMT
59
+ recorded_with: VCR 2.9.3
@@ -0,0 +1,573 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: http://localhost:3003/
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ User-Agent:
11
+ - Faraday v0.9.0
12
+ Accept-Encoding:
13
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
14
+ Accept:
15
+ - "*/*"
16
+ response:
17
+ status:
18
+ code: 200
19
+ message: 'OK '
20
+ headers:
21
+ Content-Type:
22
+ - application/vnd.collection+json
23
+ Content-Length:
24
+ - '2187'
25
+ X-Content-Type-Options:
26
+ - nosniff
27
+ X-Ratelimit-Limit:
28
+ - '5000'
29
+ X-Ratelimit-Remaining:
30
+ - '4996'
31
+ X-Ratelimit-Reset:
32
+ - '1415652962'
33
+ Etag:
34
+ - '"c5dd7d647d0380580d508bd4908093ee"'
35
+ Cache-Control:
36
+ - max-age=0, private, must-revalidate
37
+ X-Request-Id:
38
+ - 99b9857a-e351-41ec-b97d-f294b5a0ebce
39
+ X-Runtime:
40
+ - '0.014089'
41
+ Server:
42
+ - WEBrick/1.3.1 (Ruby/2.1.1/2014-02-24)
43
+ Date:
44
+ - Mon, 10 Nov 2014 20:01:46 GMT
45
+ Connection:
46
+ - Keep-Alive
47
+ body:
48
+ encoding: UTF-8
49
+ string: '{"collection":{"version":"3.1.1","href":"http://localhost:3003/","links":[{"rel":"apiv2_root","href":"http://localhost:3003"},{"rel":"assignments","href":"http://localhost:3003/assignments"},{"rel":"availabilities","href":"http://localhost:3003/availabilities"},{"rel":"contact_email_addresses","href":"http://localhost:3003/contact_email_addresses"},{"rel":"contact_phone_numbers","href":"http://localhost:3003/contact_phone_numbers"},{"rel":"contacts","href":"http://localhost:3003/contacts"},{"rel":"custom_data","href":"http://localhost:3003/custom_data"},{"rel":"custom_fields","href":"http://localhost:3003/custom_fields"},{"rel":"events","href":"http://localhost:3003/events"},{"rel":"locations","href":"http://localhost:3003/locations"},{"rel":"me","href":"http://localhost:3003/me"},{"rel":"member_email_addresses","href":"http://localhost:3003/member_email_addresses"},{"rel":"member_files","href":"http://localhost:3003/member_files"},{"rel":"member_links","href":"http://localhost:3003/member_links"},{"rel":"member_phone_numbers","href":"http://localhost:3003/member_phone_numbers"},{"rel":"members","href":"http://localhost:3003/members"},{"rel":"members_preferences","href":"http://localhost:3003/members_preferences"},{"rel":"opponents","href":"http://localhost:3003/opponents"},{"rel":"plans","href":"http://localhost:3003/plans"},{"rel":"sms_gateways","href":"http://localhost:3003/sms_gateways"},{"rel":"sports","href":"http://localhost:3003/sports"},{"rel":"team_public_sites","href":"http://localhost:3003/team_public_sites"},{"rel":"teams","href":"http://localhost:3003/teams"},{"rel":"teams_preferences","href":"http://localhost:3003/teams_preferences"},{"rel":"time_zones","href":"http://localhost:3003/time_zones"},{"rel":"tracked_item_statuses","href":"http://localhost:3003/tracked_item_statuses"},{"rel":"tracked_items","href":"http://localhost:3003/tracked_items"},{"rel":"users","href":"http://localhost:3003/users"},{"rel":"root","href":"http://localhost:3003/"},{"rel":"self","href":"http://localhost:3003/"}],"queries":[{"rel":"bulk_load","href":"http://localhost:3003/bulk_load","data":[{"name":"team_id","value":null},{"name":"types","value":null}]}]}}'
50
+ http_version:
51
+ recorded_at: Mon, 10 Nov 2014 20:01:46 GMT
52
+ - request:
53
+ method: get
54
+ uri: http://localhost:3003/bulk_load?team_id=1
55
+ body:
56
+ encoding: US-ASCII
57
+ string: ''
58
+ headers:
59
+ User-Agent:
60
+ - Faraday v0.9.0
61
+ Accept-Encoding:
62
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
63
+ Accept:
64
+ - "*/*"
65
+ response:
66
+ status:
67
+ code: 400
68
+ message: 'Bad Request '
69
+ headers:
70
+ Content-Type:
71
+ - application/vnd.collection+json
72
+ Content-Length:
73
+ - '73'
74
+ X-Content-Type-Options:
75
+ - nosniff
76
+ X-Ratelimit-Limit:
77
+ - '5000'
78
+ X-Ratelimit-Remaining:
79
+ - '4998'
80
+ X-Ratelimit-Reset:
81
+ - '1415740100'
82
+ Cache-Control:
83
+ - no-cache
84
+ X-Request-Id:
85
+ - fd8f1d8b-de86-4816-88a4-2ad6321c28bb
86
+ X-Runtime:
87
+ - '0.016286'
88
+ Server:
89
+ - WEBrick/1.3.1 (Ruby/2.1.1/2014-02-24)
90
+ Date:
91
+ - Tue, 11 Nov 2014 20:20:16 GMT
92
+ Connection:
93
+ - Keep-Alive
94
+ body:
95
+ encoding: UTF-8
96
+ string: '{"collection":{"error":{"message":"You must include a types parameter"}}}'
97
+ http_version:
98
+ recorded_at: Tue, 11 Nov 2014 20:20:16 GMT
99
+ - request:
100
+ method: get
101
+ uri: http://localhost:3003/teams
102
+ body:
103
+ encoding: US-ASCII
104
+ string: ''
105
+ headers:
106
+ User-Agent:
107
+ - Faraday v0.9.0
108
+ Accept-Encoding:
109
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
110
+ Accept:
111
+ - "*/*"
112
+ response:
113
+ status:
114
+ code: 200
115
+ message: 'OK '
116
+ headers:
117
+ Content-Type:
118
+ - application/vnd.collection+json
119
+ Content-Length:
120
+ - '2809'
121
+ X-Content-Type-Options:
122
+ - nosniff
123
+ X-Ratelimit-Limit:
124
+ - '5000'
125
+ X-Ratelimit-Remaining:
126
+ - '4999'
127
+ X-Ratelimit-Reset:
128
+ - '1415746747'
129
+ Etag:
130
+ - '"5daf3cf1d2f681f9ce53cdea0e70b9fb"'
131
+ Cache-Control:
132
+ - max-age=0, private, must-revalidate
133
+ X-Request-Id:
134
+ - 5e47d282-95d8-4bab-8495-c5185102d648
135
+ X-Runtime:
136
+ - '0.011763'
137
+ Server:
138
+ - WEBrick/1.3.1 (Ruby/2.1.1/2014-02-24)
139
+ Date:
140
+ - Tue, 11 Nov 2014 21:59:07 GMT
141
+ Connection:
142
+ - Keep-Alive
143
+ body:
144
+ encoding: UTF-8
145
+ string: '{"collection":{"version":"3.1.1","href":"http://localhost:3003/teams","template":{"data":[{"name":"name","value":null},{"name":"location_country","value":null},{"name":"location_postal_code","value":null},{"name":"time_zone","value":null},{"name":"sport_id","value":null},{"name":"division_name","value":null},{"name":"season_name","value":null},{"name":"league_name","value":null},{"name":"league_url","value":null}]},"links":[{"rel":"active_season_team","href":"http://localhost:3003/teams"},{"rel":"assignments","href":"http://localhost:3003/assignments"},{"rel":"availabilities","href":"http://localhost:3003/availabilities"},{"rel":"contact_email_addresses","href":"http://localhost:3003/contact_email_addresses"},{"rel":"contact_phone_numbers","href":"http://localhost:3003/contact_phone_numbers"},{"rel":"contacts","href":"http://localhost:3003/contacts"},{"rel":"custom_data","href":"http://localhost:3003/custom_data"},{"rel":"custom_fields","href":"http://localhost:3003/custom_fields"},{"rel":"events","href":"http://localhost:3003/events"},{"rel":"locations","href":"http://localhost:3003/locations"},{"rel":"managers","href":"http://localhost:3003/members"},{"rel":"member_email_addresses","href":"http://localhost:3003/member_email_addresses"},{"rel":"member_files","href":"http://localhost:3003/member_files"},{"rel":"member_links","href":"http://localhost:3003/member_links"},{"rel":"member_phone_numbers","href":"http://localhost:3003/member_phone_numbers"},{"rel":"members","href":"http://localhost:3003/members"},{"rel":"members_preferences","href":"http://localhost:3003/members_preferences"},{"rel":"opponents","href":"http://localhost:3003/opponents"},{"rel":"owner","href":"http://localhost:3003/members"},{"rel":"plan","href":"http://localhost:3003/plans"},{"rel":"sport","href":"http://localhost:3003/sports"},{"rel":"team_preferences","href":"http://localhost:3003/teams_preferences"},{"rel":"team_public_site","href":"http://localhost:3003/team_public_sites"},{"rel":"team_results","href":"http://localhost:3003/teams_results"},{"rel":"tracked_item_statuses","href":"http://localhost:3003/tracked_item_statuses"},{"rel":"tracked_items","href":"http://localhost:3003/tracked_items"},{"rel":"root","href":"http://localhost:3003/"},{"rel":"self","href":"http://localhost:3003/teams"}],"queries":[{"rel":"search","href":"http://localhost:3003/teams/search","data":[{"name":"id","value":null},{"name":"team_id","value":null},{"name":"user_id","value":null}]}],"commands":[{"rel":"invite","href":"http://localhost:3003/teams/invite","prompt":"invite
146
+ team members or contacts to join TeamSnap.","data":[{"name":"team_id","value":null},{"name":"contact_id","value":null},{"name":"member_id","value":null},{"name":"introduction","value":null},{"name":"notify_as_member_id","value":null}]}]}}'
147
+ http_version:
148
+ recorded_at: Tue, 11 Nov 2014 21:59:07 GMT
149
+ - request:
150
+ method: get
151
+ uri: http://localhost:3003/teams/search?id=1
152
+ body:
153
+ encoding: US-ASCII
154
+ string: ''
155
+ headers:
156
+ User-Agent:
157
+ - Faraday v0.9.0
158
+ Accept-Encoding:
159
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
160
+ Accept:
161
+ - "*/*"
162
+ response:
163
+ status:
164
+ code: 200
165
+ message: 'OK '
166
+ headers:
167
+ Content-Type:
168
+ - application/vnd.collection+json
169
+ Content-Length:
170
+ - '6445'
171
+ X-Content-Type-Options:
172
+ - nosniff
173
+ X-Ratelimit-Limit:
174
+ - '5000'
175
+ X-Ratelimit-Remaining:
176
+ - '4998'
177
+ X-Ratelimit-Reset:
178
+ - '1415746747'
179
+ Etag:
180
+ - '"22206dcb948d395fe8bbf8fef02a841b"'
181
+ Cache-Control:
182
+ - max-age=0, private, must-revalidate
183
+ X-Request-Id:
184
+ - 10438cd4-435f-4f75-a1dc-e4e4b21cdfd8
185
+ X-Runtime:
186
+ - '0.020118'
187
+ Server:
188
+ - WEBrick/1.3.1 (Ruby/2.1.1/2014-02-24)
189
+ Date:
190
+ - Tue, 11 Nov 2014 22:04:58 GMT
191
+ Connection:
192
+ - Keep-Alive
193
+ body:
194
+ encoding: UTF-8
195
+ string: '{"collection":{"version":"3.1.1","href":"http://localhost:3003/teams","template":{"data":[{"name":"name","value":null},{"name":"location_country","value":null},{"name":"location_postal_code","value":null},{"name":"time_zone","value":null},{"name":"sport_id","value":null},{"name":"division_name","value":null},{"name":"season_name","value":null},{"name":"league_name","value":null},{"name":"league_url","value":null}]},"links":[{"rel":"active_season_team","href":"http://localhost:3003/teams"},{"rel":"assignments","href":"http://localhost:3003/assignments"},{"rel":"availabilities","href":"http://localhost:3003/availabilities"},{"rel":"contact_email_addresses","href":"http://localhost:3003/contact_email_addresses"},{"rel":"contact_phone_numbers","href":"http://localhost:3003/contact_phone_numbers"},{"rel":"contacts","href":"http://localhost:3003/contacts"},{"rel":"custom_data","href":"http://localhost:3003/custom_data"},{"rel":"custom_fields","href":"http://localhost:3003/custom_fields"},{"rel":"events","href":"http://localhost:3003/events"},{"rel":"locations","href":"http://localhost:3003/locations"},{"rel":"managers","href":"http://localhost:3003/members"},{"rel":"member_email_addresses","href":"http://localhost:3003/member_email_addresses"},{"rel":"member_files","href":"http://localhost:3003/member_files"},{"rel":"member_links","href":"http://localhost:3003/member_links"},{"rel":"member_phone_numbers","href":"http://localhost:3003/member_phone_numbers"},{"rel":"members","href":"http://localhost:3003/members"},{"rel":"members_preferences","href":"http://localhost:3003/members_preferences"},{"rel":"opponents","href":"http://localhost:3003/opponents"},{"rel":"owner","href":"http://localhost:3003/members"},{"rel":"plan","href":"http://localhost:3003/plans"},{"rel":"sport","href":"http://localhost:3003/sports"},{"rel":"team_preferences","href":"http://localhost:3003/teams_preferences"},{"rel":"team_public_site","href":"http://localhost:3003/team_public_sites"},{"rel":"team_results","href":"http://localhost:3003/teams_results"},{"rel":"tracked_item_statuses","href":"http://localhost:3003/tracked_item_statuses"},{"rel":"tracked_items","href":"http://localhost:3003/tracked_items"},{"rel":"root","href":"http://localhost:3003/"},{"rel":"self","href":"http://localhost:3003/teams/search?id=1"}],"queries":[{"rel":"search","href":"http://localhost:3003/teams/search","data":[{"name":"id","value":null},{"name":"team_id","value":null},{"name":"user_id","value":null}]}],"commands":[{"rel":"invite","href":"http://localhost:3003/teams/invite","prompt":"invite
196
+ team members or contacts to join TeamSnap.","data":[{"name":"team_id","value":null},{"name":"contact_id","value":null},{"name":"member_id","value":null},{"name":"introduction","value":null},{"name":"notify_as_member_id","value":null}]}],"items":[{"href":"http://localhost:3003/teams/1","data":[{"name":"id","value":1},{"name":"type","value":"team"},{"name":"name","value":"Danger
197
+ Rangers"},{"name":"time_zone_offset","value":"-07:00"},{"name":"time_zone_iana_name","value":"America/Denver"},{"name":"time_zone_description","value":"Mountain
198
+ Time (US & Canada)"},{"name":"updated_at","value":"2014-11-11T00:09:24Z","type":"DateTime"},{"name":"created_at","value":"2014-11-10T23:38:54Z","type":"DateTime"},{"name":"league_name","value":null},{"name":"league_url","value":null},{"name":"division_name","value":null},{"name":"season_name","value":null},{"name":"location_country","value":"United
199
+ States"},{"name":"location_postal_code","value":"80951"},{"name":"is_archived_season","value":false},{"name":"sport_id","value":1},{"name":"plan_id","value":14}],"links":[{"rel":"assignments","href":"http://localhost:3003/assignments/search?team_id=1"},{"rel":"availabilities","href":"http://localhost:3003/availabilities/search?team_id=1"},{"rel":"calendar_http","href":"http://86ed2e8eefaaee16c4b7-16391cffaf9272bff70e93998d553c16.r2.cf1.rackcdn.com/team_schedule/a7e08520-4b60-0132-c8fd-000c29d7248b.ics"},{"rel":"calendar_http_games_only","href":"http://86ed2e8eefaaee16c4b7-16391cffaf9272bff70e93998d553c16.r2.cf1.rackcdn.com/team_schedule/filter/games/a7e08520-4b60-0132-c8fd-000c29d7248b.ics"},{"rel":"calendar_webcal","href":"webcal://86ed2e8eefaaee16c4b7-16391cffaf9272bff70e93998d553c16.r2.cf1.rackcdn.com/team_schedule/a7e08520-4b60-0132-c8fd-000c29d7248b.ics"},{"rel":"calendar_webcal_games_only","href":"webcal://86ed2e8eefaaee16c4b7-16391cffaf9272bff70e93998d553c16.r2.cf1.rackcdn.com/team_schedule/filter/games/a7e08520-4b60-0132-c8fd-000c29d7248b.ics"},{"rel":"contact_email_addresses","href":"http://localhost:3003/contact_email_addresses/search?team_id=1"},{"rel":"contact_phone_numbers","href":"http://localhost:3003/contact_phone_numbers/search?team_id=1"},{"rel":"contacts","href":"http://localhost:3003/contacts/search?team_id=1"},{"rel":"custom_data","href":"http://localhost:3003/custom_data/search?team_id=1"},{"rel":"custom_fields","href":"http://localhost:3003/custom_fields/search?team_id=1"},{"rel":"events","href":"http://localhost:3003/events/search?team_id=1"},{"rel":"locations","href":"http://localhost:3003/locations/search?team_id=1"},{"rel":"managers","href":"http://localhost:3003/members/managers?team_id=1"},{"rel":"member_email_addresses","href":"http://localhost:3003/member_email_addresses/search?team_id=1"},{"rel":"member_files","href":"http://localhost:3003/member_files/search?team_id=1"},{"rel":"member_links","href":"http://localhost:3003/member_links/search?team_id=1"},{"rel":"member_phone_numbers","href":"http://localhost:3003/member_phone_numbers/search?team_id=1"},{"rel":"members","href":"http://localhost:3003/members/search?team_id=1"},{"rel":"members_preferences","href":"http://localhost:3003/members_preferences/search?team_id=1"},{"rel":"opponents","href":"http://localhost:3003/opponents/search?team_id=1"},{"rel":"owner","href":"http://localhost:3003/owner_members?team_id=1"},{"rel":"plan","href":"http://localhost:3003/plans/14"},{"rel":"sport","href":"http://localhost:3003/sports/1"},{"rel":"team_preferences","href":"http://localhost:3003/teams_preferences/1"},{"rel":"team_public_site","href":"http://localhost:3003/team_public_sites/1"},{"rel":"team_results","href":"http://localhost:3003/teams_results/1"},{"rel":"tracked_item_statuses","href":"http://localhost:3003/tracked_item_statuses/search?team_id=1"},{"rel":"tracked_items","href":"http://localhost:3003/tracked_items/search?team_id=1"}]}]}}'
200
+ http_version:
201
+ recorded_at: Tue, 11 Nov 2014 22:04:58 GMT
202
+ - request:
203
+ method: get
204
+ uri: http://localhost:3003/teams/search?id=1
205
+ body:
206
+ encoding: US-ASCII
207
+ string: ''
208
+ headers:
209
+ User-Agent:
210
+ - Faraday v0.9.0
211
+ Accept-Encoding:
212
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
213
+ Accept:
214
+ - "*/*"
215
+ response:
216
+ status:
217
+ code: 200
218
+ message: 'OK '
219
+ headers:
220
+ Content-Type:
221
+ - application/vnd.collection+json
222
+ Content-Length:
223
+ - '6445'
224
+ X-Content-Type-Options:
225
+ - nosniff
226
+ X-Ratelimit-Limit:
227
+ - '5000'
228
+ X-Ratelimit-Remaining:
229
+ - '4997'
230
+ X-Ratelimit-Reset:
231
+ - '1415746747'
232
+ Etag:
233
+ - '"22206dcb948d395fe8bbf8fef02a841b"'
234
+ Cache-Control:
235
+ - max-age=0, private, must-revalidate
236
+ X-Request-Id:
237
+ - dc3fe648-fde3-4501-9929-41b1b7164206
238
+ X-Runtime:
239
+ - '0.018476'
240
+ Server:
241
+ - WEBrick/1.3.1 (Ruby/2.1.1/2014-02-24)
242
+ Date:
243
+ - Tue, 11 Nov 2014 22:05:22 GMT
244
+ Connection:
245
+ - Keep-Alive
246
+ body:
247
+ encoding: UTF-8
248
+ string: '{"collection":{"version":"3.1.1","href":"http://localhost:3003/teams","template":{"data":[{"name":"name","value":null},{"name":"location_country","value":null},{"name":"location_postal_code","value":null},{"name":"time_zone","value":null},{"name":"sport_id","value":null},{"name":"division_name","value":null},{"name":"season_name","value":null},{"name":"league_name","value":null},{"name":"league_url","value":null}]},"links":[{"rel":"active_season_team","href":"http://localhost:3003/teams"},{"rel":"assignments","href":"http://localhost:3003/assignments"},{"rel":"availabilities","href":"http://localhost:3003/availabilities"},{"rel":"contact_email_addresses","href":"http://localhost:3003/contact_email_addresses"},{"rel":"contact_phone_numbers","href":"http://localhost:3003/contact_phone_numbers"},{"rel":"contacts","href":"http://localhost:3003/contacts"},{"rel":"custom_data","href":"http://localhost:3003/custom_data"},{"rel":"custom_fields","href":"http://localhost:3003/custom_fields"},{"rel":"events","href":"http://localhost:3003/events"},{"rel":"locations","href":"http://localhost:3003/locations"},{"rel":"managers","href":"http://localhost:3003/members"},{"rel":"member_email_addresses","href":"http://localhost:3003/member_email_addresses"},{"rel":"member_files","href":"http://localhost:3003/member_files"},{"rel":"member_links","href":"http://localhost:3003/member_links"},{"rel":"member_phone_numbers","href":"http://localhost:3003/member_phone_numbers"},{"rel":"members","href":"http://localhost:3003/members"},{"rel":"members_preferences","href":"http://localhost:3003/members_preferences"},{"rel":"opponents","href":"http://localhost:3003/opponents"},{"rel":"owner","href":"http://localhost:3003/members"},{"rel":"plan","href":"http://localhost:3003/plans"},{"rel":"sport","href":"http://localhost:3003/sports"},{"rel":"team_preferences","href":"http://localhost:3003/teams_preferences"},{"rel":"team_public_site","href":"http://localhost:3003/team_public_sites"},{"rel":"team_results","href":"http://localhost:3003/teams_results"},{"rel":"tracked_item_statuses","href":"http://localhost:3003/tracked_item_statuses"},{"rel":"tracked_items","href":"http://localhost:3003/tracked_items"},{"rel":"root","href":"http://localhost:3003/"},{"rel":"self","href":"http://localhost:3003/teams/search?id=1"}],"queries":[{"rel":"search","href":"http://localhost:3003/teams/search","data":[{"name":"id","value":null},{"name":"team_id","value":null},{"name":"user_id","value":null}]}],"commands":[{"rel":"invite","href":"http://localhost:3003/teams/invite","prompt":"invite
249
+ team members or contacts to join TeamSnap.","data":[{"name":"team_id","value":null},{"name":"contact_id","value":null},{"name":"member_id","value":null},{"name":"introduction","value":null},{"name":"notify_as_member_id","value":null}]}],"items":[{"href":"http://localhost:3003/teams/1","data":[{"name":"id","value":1},{"name":"type","value":"team"},{"name":"name","value":"Danger
250
+ Rangers"},{"name":"time_zone_offset","value":"-07:00"},{"name":"time_zone_iana_name","value":"America/Denver"},{"name":"time_zone_description","value":"Mountain
251
+ Time (US & Canada)"},{"name":"updated_at","value":"2014-11-11T00:09:24Z","type":"DateTime"},{"name":"created_at","value":"2014-11-10T23:38:54Z","type":"DateTime"},{"name":"league_name","value":null},{"name":"league_url","value":null},{"name":"division_name","value":null},{"name":"season_name","value":null},{"name":"location_country","value":"United
252
+ States"},{"name":"location_postal_code","value":"80951"},{"name":"is_archived_season","value":false},{"name":"sport_id","value":1},{"name":"plan_id","value":14}],"links":[{"rel":"assignments","href":"http://localhost:3003/assignments/search?team_id=1"},{"rel":"availabilities","href":"http://localhost:3003/availabilities/search?team_id=1"},{"rel":"calendar_http","href":"http://86ed2e8eefaaee16c4b7-16391cffaf9272bff70e93998d553c16.r2.cf1.rackcdn.com/team_schedule/a7e08520-4b60-0132-c8fd-000c29d7248b.ics"},{"rel":"calendar_http_games_only","href":"http://86ed2e8eefaaee16c4b7-16391cffaf9272bff70e93998d553c16.r2.cf1.rackcdn.com/team_schedule/filter/games/a7e08520-4b60-0132-c8fd-000c29d7248b.ics"},{"rel":"calendar_webcal","href":"webcal://86ed2e8eefaaee16c4b7-16391cffaf9272bff70e93998d553c16.r2.cf1.rackcdn.com/team_schedule/a7e08520-4b60-0132-c8fd-000c29d7248b.ics"},{"rel":"calendar_webcal_games_only","href":"webcal://86ed2e8eefaaee16c4b7-16391cffaf9272bff70e93998d553c16.r2.cf1.rackcdn.com/team_schedule/filter/games/a7e08520-4b60-0132-c8fd-000c29d7248b.ics"},{"rel":"contact_email_addresses","href":"http://localhost:3003/contact_email_addresses/search?team_id=1"},{"rel":"contact_phone_numbers","href":"http://localhost:3003/contact_phone_numbers/search?team_id=1"},{"rel":"contacts","href":"http://localhost:3003/contacts/search?team_id=1"},{"rel":"custom_data","href":"http://localhost:3003/custom_data/search?team_id=1"},{"rel":"custom_fields","href":"http://localhost:3003/custom_fields/search?team_id=1"},{"rel":"events","href":"http://localhost:3003/events/search?team_id=1"},{"rel":"locations","href":"http://localhost:3003/locations/search?team_id=1"},{"rel":"managers","href":"http://localhost:3003/members/managers?team_id=1"},{"rel":"member_email_addresses","href":"http://localhost:3003/member_email_addresses/search?team_id=1"},{"rel":"member_files","href":"http://localhost:3003/member_files/search?team_id=1"},{"rel":"member_links","href":"http://localhost:3003/member_links/search?team_id=1"},{"rel":"member_phone_numbers","href":"http://localhost:3003/member_phone_numbers/search?team_id=1"},{"rel":"members","href":"http://localhost:3003/members/search?team_id=1"},{"rel":"members_preferences","href":"http://localhost:3003/members_preferences/search?team_id=1"},{"rel":"opponents","href":"http://localhost:3003/opponents/search?team_id=1"},{"rel":"owner","href":"http://localhost:3003/owner_members?team_id=1"},{"rel":"plan","href":"http://localhost:3003/plans/14"},{"rel":"sport","href":"http://localhost:3003/sports/1"},{"rel":"team_preferences","href":"http://localhost:3003/teams_preferences/1"},{"rel":"team_public_site","href":"http://localhost:3003/team_public_sites/1"},{"rel":"team_results","href":"http://localhost:3003/teams_results/1"},{"rel":"tracked_item_statuses","href":"http://localhost:3003/tracked_item_statuses/search?team_id=1"},{"rel":"tracked_items","href":"http://localhost:3003/tracked_items/search?team_id=1"}]}]}}'
253
+ http_version:
254
+ recorded_at: Tue, 11 Nov 2014 22:05:22 GMT
255
+ - request:
256
+ method: get
257
+ uri: http://localhost:3003/teams/search?id=1
258
+ body:
259
+ encoding: US-ASCII
260
+ string: ''
261
+ headers:
262
+ User-Agent:
263
+ - Faraday v0.9.0
264
+ Accept-Encoding:
265
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
266
+ Accept:
267
+ - "*/*"
268
+ response:
269
+ status:
270
+ code: 200
271
+ message: 'OK '
272
+ headers:
273
+ Content-Type:
274
+ - application/vnd.collection+json
275
+ Content-Length:
276
+ - '6445'
277
+ X-Content-Type-Options:
278
+ - nosniff
279
+ X-Ratelimit-Limit:
280
+ - '5000'
281
+ X-Ratelimit-Remaining:
282
+ - '4996'
283
+ X-Ratelimit-Reset:
284
+ - '1415746747'
285
+ Etag:
286
+ - '"22206dcb948d395fe8bbf8fef02a841b"'
287
+ Cache-Control:
288
+ - max-age=0, private, must-revalidate
289
+ X-Request-Id:
290
+ - b908e2ce-36df-42f3-a1b2-faedf2b80952
291
+ X-Runtime:
292
+ - '0.018106'
293
+ Server:
294
+ - WEBrick/1.3.1 (Ruby/2.1.1/2014-02-24)
295
+ Date:
296
+ - Tue, 11 Nov 2014 22:05:27 GMT
297
+ Connection:
298
+ - Keep-Alive
299
+ body:
300
+ encoding: UTF-8
301
+ string: '{"collection":{"version":"3.1.1","href":"http://localhost:3003/teams","template":{"data":[{"name":"name","value":null},{"name":"location_country","value":null},{"name":"location_postal_code","value":null},{"name":"time_zone","value":null},{"name":"sport_id","value":null},{"name":"division_name","value":null},{"name":"season_name","value":null},{"name":"league_name","value":null},{"name":"league_url","value":null}]},"links":[{"rel":"active_season_team","href":"http://localhost:3003/teams"},{"rel":"assignments","href":"http://localhost:3003/assignments"},{"rel":"availabilities","href":"http://localhost:3003/availabilities"},{"rel":"contact_email_addresses","href":"http://localhost:3003/contact_email_addresses"},{"rel":"contact_phone_numbers","href":"http://localhost:3003/contact_phone_numbers"},{"rel":"contacts","href":"http://localhost:3003/contacts"},{"rel":"custom_data","href":"http://localhost:3003/custom_data"},{"rel":"custom_fields","href":"http://localhost:3003/custom_fields"},{"rel":"events","href":"http://localhost:3003/events"},{"rel":"locations","href":"http://localhost:3003/locations"},{"rel":"managers","href":"http://localhost:3003/members"},{"rel":"member_email_addresses","href":"http://localhost:3003/member_email_addresses"},{"rel":"member_files","href":"http://localhost:3003/member_files"},{"rel":"member_links","href":"http://localhost:3003/member_links"},{"rel":"member_phone_numbers","href":"http://localhost:3003/member_phone_numbers"},{"rel":"members","href":"http://localhost:3003/members"},{"rel":"members_preferences","href":"http://localhost:3003/members_preferences"},{"rel":"opponents","href":"http://localhost:3003/opponents"},{"rel":"owner","href":"http://localhost:3003/members"},{"rel":"plan","href":"http://localhost:3003/plans"},{"rel":"sport","href":"http://localhost:3003/sports"},{"rel":"team_preferences","href":"http://localhost:3003/teams_preferences"},{"rel":"team_public_site","href":"http://localhost:3003/team_public_sites"},{"rel":"team_results","href":"http://localhost:3003/teams_results"},{"rel":"tracked_item_statuses","href":"http://localhost:3003/tracked_item_statuses"},{"rel":"tracked_items","href":"http://localhost:3003/tracked_items"},{"rel":"root","href":"http://localhost:3003/"},{"rel":"self","href":"http://localhost:3003/teams/search?id=1"}],"queries":[{"rel":"search","href":"http://localhost:3003/teams/search","data":[{"name":"id","value":null},{"name":"team_id","value":null},{"name":"user_id","value":null}]}],"commands":[{"rel":"invite","href":"http://localhost:3003/teams/invite","prompt":"invite
302
+ team members or contacts to join TeamSnap.","data":[{"name":"team_id","value":null},{"name":"contact_id","value":null},{"name":"member_id","value":null},{"name":"introduction","value":null},{"name":"notify_as_member_id","value":null}]}],"items":[{"href":"http://localhost:3003/teams/1","data":[{"name":"id","value":1},{"name":"type","value":"team"},{"name":"name","value":"Danger
303
+ Rangers"},{"name":"time_zone_offset","value":"-07:00"},{"name":"time_zone_iana_name","value":"America/Denver"},{"name":"time_zone_description","value":"Mountain
304
+ Time (US & Canada)"},{"name":"updated_at","value":"2014-11-11T00:09:24Z","type":"DateTime"},{"name":"created_at","value":"2014-11-10T23:38:54Z","type":"DateTime"},{"name":"league_name","value":null},{"name":"league_url","value":null},{"name":"division_name","value":null},{"name":"season_name","value":null},{"name":"location_country","value":"United
305
+ States"},{"name":"location_postal_code","value":"80951"},{"name":"is_archived_season","value":false},{"name":"sport_id","value":1},{"name":"plan_id","value":14}],"links":[{"rel":"assignments","href":"http://localhost:3003/assignments/search?team_id=1"},{"rel":"availabilities","href":"http://localhost:3003/availabilities/search?team_id=1"},{"rel":"calendar_http","href":"http://86ed2e8eefaaee16c4b7-16391cffaf9272bff70e93998d553c16.r2.cf1.rackcdn.com/team_schedule/a7e08520-4b60-0132-c8fd-000c29d7248b.ics"},{"rel":"calendar_http_games_only","href":"http://86ed2e8eefaaee16c4b7-16391cffaf9272bff70e93998d553c16.r2.cf1.rackcdn.com/team_schedule/filter/games/a7e08520-4b60-0132-c8fd-000c29d7248b.ics"},{"rel":"calendar_webcal","href":"webcal://86ed2e8eefaaee16c4b7-16391cffaf9272bff70e93998d553c16.r2.cf1.rackcdn.com/team_schedule/a7e08520-4b60-0132-c8fd-000c29d7248b.ics"},{"rel":"calendar_webcal_games_only","href":"webcal://86ed2e8eefaaee16c4b7-16391cffaf9272bff70e93998d553c16.r2.cf1.rackcdn.com/team_schedule/filter/games/a7e08520-4b60-0132-c8fd-000c29d7248b.ics"},{"rel":"contact_email_addresses","href":"http://localhost:3003/contact_email_addresses/search?team_id=1"},{"rel":"contact_phone_numbers","href":"http://localhost:3003/contact_phone_numbers/search?team_id=1"},{"rel":"contacts","href":"http://localhost:3003/contacts/search?team_id=1"},{"rel":"custom_data","href":"http://localhost:3003/custom_data/search?team_id=1"},{"rel":"custom_fields","href":"http://localhost:3003/custom_fields/search?team_id=1"},{"rel":"events","href":"http://localhost:3003/events/search?team_id=1"},{"rel":"locations","href":"http://localhost:3003/locations/search?team_id=1"},{"rel":"managers","href":"http://localhost:3003/members/managers?team_id=1"},{"rel":"member_email_addresses","href":"http://localhost:3003/member_email_addresses/search?team_id=1"},{"rel":"member_files","href":"http://localhost:3003/member_files/search?team_id=1"},{"rel":"member_links","href":"http://localhost:3003/member_links/search?team_id=1"},{"rel":"member_phone_numbers","href":"http://localhost:3003/member_phone_numbers/search?team_id=1"},{"rel":"members","href":"http://localhost:3003/members/search?team_id=1"},{"rel":"members_preferences","href":"http://localhost:3003/members_preferences/search?team_id=1"},{"rel":"opponents","href":"http://localhost:3003/opponents/search?team_id=1"},{"rel":"owner","href":"http://localhost:3003/owner_members?team_id=1"},{"rel":"plan","href":"http://localhost:3003/plans/14"},{"rel":"sport","href":"http://localhost:3003/sports/1"},{"rel":"team_preferences","href":"http://localhost:3003/teams_preferences/1"},{"rel":"team_public_site","href":"http://localhost:3003/team_public_sites/1"},{"rel":"team_results","href":"http://localhost:3003/teams_results/1"},{"rel":"tracked_item_statuses","href":"http://localhost:3003/tracked_item_statuses/search?team_id=1"},{"rel":"tracked_items","href":"http://localhost:3003/tracked_items/search?team_id=1"}]}]}}'
306
+ http_version:
307
+ recorded_at: Tue, 11 Nov 2014 22:05:27 GMT
308
+ - request:
309
+ method: get
310
+ uri: http://localhost:3003/teams/search?id=1
311
+ body:
312
+ encoding: US-ASCII
313
+ string: ''
314
+ headers:
315
+ User-Agent:
316
+ - Faraday v0.9.0
317
+ Accept-Encoding:
318
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
319
+ Accept:
320
+ - "*/*"
321
+ response:
322
+ status:
323
+ code: 200
324
+ message: 'OK '
325
+ headers:
326
+ Content-Type:
327
+ - application/vnd.collection+json
328
+ Content-Length:
329
+ - '6445'
330
+ X-Content-Type-Options:
331
+ - nosniff
332
+ X-Ratelimit-Limit:
333
+ - '5000'
334
+ X-Ratelimit-Remaining:
335
+ - '4995'
336
+ X-Ratelimit-Reset:
337
+ - '1415746747'
338
+ Etag:
339
+ - '"22206dcb948d395fe8bbf8fef02a841b"'
340
+ Cache-Control:
341
+ - max-age=0, private, must-revalidate
342
+ X-Request-Id:
343
+ - 643ba00b-c1f6-4756-8f39-0c47ef6d338d
344
+ X-Runtime:
345
+ - '0.022036'
346
+ Server:
347
+ - WEBrick/1.3.1 (Ruby/2.1.1/2014-02-24)
348
+ Date:
349
+ - Tue, 11 Nov 2014 22:05:27 GMT
350
+ Connection:
351
+ - Keep-Alive
352
+ body:
353
+ encoding: UTF-8
354
+ string: '{"collection":{"version":"3.1.1","href":"http://localhost:3003/teams","template":{"data":[{"name":"name","value":null},{"name":"location_country","value":null},{"name":"location_postal_code","value":null},{"name":"time_zone","value":null},{"name":"sport_id","value":null},{"name":"division_name","value":null},{"name":"season_name","value":null},{"name":"league_name","value":null},{"name":"league_url","value":null}]},"links":[{"rel":"active_season_team","href":"http://localhost:3003/teams"},{"rel":"assignments","href":"http://localhost:3003/assignments"},{"rel":"availabilities","href":"http://localhost:3003/availabilities"},{"rel":"contact_email_addresses","href":"http://localhost:3003/contact_email_addresses"},{"rel":"contact_phone_numbers","href":"http://localhost:3003/contact_phone_numbers"},{"rel":"contacts","href":"http://localhost:3003/contacts"},{"rel":"custom_data","href":"http://localhost:3003/custom_data"},{"rel":"custom_fields","href":"http://localhost:3003/custom_fields"},{"rel":"events","href":"http://localhost:3003/events"},{"rel":"locations","href":"http://localhost:3003/locations"},{"rel":"managers","href":"http://localhost:3003/members"},{"rel":"member_email_addresses","href":"http://localhost:3003/member_email_addresses"},{"rel":"member_files","href":"http://localhost:3003/member_files"},{"rel":"member_links","href":"http://localhost:3003/member_links"},{"rel":"member_phone_numbers","href":"http://localhost:3003/member_phone_numbers"},{"rel":"members","href":"http://localhost:3003/members"},{"rel":"members_preferences","href":"http://localhost:3003/members_preferences"},{"rel":"opponents","href":"http://localhost:3003/opponents"},{"rel":"owner","href":"http://localhost:3003/members"},{"rel":"plan","href":"http://localhost:3003/plans"},{"rel":"sport","href":"http://localhost:3003/sports"},{"rel":"team_preferences","href":"http://localhost:3003/teams_preferences"},{"rel":"team_public_site","href":"http://localhost:3003/team_public_sites"},{"rel":"team_results","href":"http://localhost:3003/teams_results"},{"rel":"tracked_item_statuses","href":"http://localhost:3003/tracked_item_statuses"},{"rel":"tracked_items","href":"http://localhost:3003/tracked_items"},{"rel":"root","href":"http://localhost:3003/"},{"rel":"self","href":"http://localhost:3003/teams/search?id=1"}],"queries":[{"rel":"search","href":"http://localhost:3003/teams/search","data":[{"name":"id","value":null},{"name":"team_id","value":null},{"name":"user_id","value":null}]}],"commands":[{"rel":"invite","href":"http://localhost:3003/teams/invite","prompt":"invite
355
+ team members or contacts to join TeamSnap.","data":[{"name":"team_id","value":null},{"name":"contact_id","value":null},{"name":"member_id","value":null},{"name":"introduction","value":null},{"name":"notify_as_member_id","value":null}]}],"items":[{"href":"http://localhost:3003/teams/1","data":[{"name":"id","value":1},{"name":"type","value":"team"},{"name":"name","value":"Danger
356
+ Rangers"},{"name":"time_zone_offset","value":"-07:00"},{"name":"time_zone_iana_name","value":"America/Denver"},{"name":"time_zone_description","value":"Mountain
357
+ Time (US & Canada)"},{"name":"updated_at","value":"2014-11-11T00:09:24Z","type":"DateTime"},{"name":"created_at","value":"2014-11-10T23:38:54Z","type":"DateTime"},{"name":"league_name","value":null},{"name":"league_url","value":null},{"name":"division_name","value":null},{"name":"season_name","value":null},{"name":"location_country","value":"United
358
+ States"},{"name":"location_postal_code","value":"80951"},{"name":"is_archived_season","value":false},{"name":"sport_id","value":1},{"name":"plan_id","value":14}],"links":[{"rel":"assignments","href":"http://localhost:3003/assignments/search?team_id=1"},{"rel":"availabilities","href":"http://localhost:3003/availabilities/search?team_id=1"},{"rel":"calendar_http","href":"http://86ed2e8eefaaee16c4b7-16391cffaf9272bff70e93998d553c16.r2.cf1.rackcdn.com/team_schedule/a7e08520-4b60-0132-c8fd-000c29d7248b.ics"},{"rel":"calendar_http_games_only","href":"http://86ed2e8eefaaee16c4b7-16391cffaf9272bff70e93998d553c16.r2.cf1.rackcdn.com/team_schedule/filter/games/a7e08520-4b60-0132-c8fd-000c29d7248b.ics"},{"rel":"calendar_webcal","href":"webcal://86ed2e8eefaaee16c4b7-16391cffaf9272bff70e93998d553c16.r2.cf1.rackcdn.com/team_schedule/a7e08520-4b60-0132-c8fd-000c29d7248b.ics"},{"rel":"calendar_webcal_games_only","href":"webcal://86ed2e8eefaaee16c4b7-16391cffaf9272bff70e93998d553c16.r2.cf1.rackcdn.com/team_schedule/filter/games/a7e08520-4b60-0132-c8fd-000c29d7248b.ics"},{"rel":"contact_email_addresses","href":"http://localhost:3003/contact_email_addresses/search?team_id=1"},{"rel":"contact_phone_numbers","href":"http://localhost:3003/contact_phone_numbers/search?team_id=1"},{"rel":"contacts","href":"http://localhost:3003/contacts/search?team_id=1"},{"rel":"custom_data","href":"http://localhost:3003/custom_data/search?team_id=1"},{"rel":"custom_fields","href":"http://localhost:3003/custom_fields/search?team_id=1"},{"rel":"events","href":"http://localhost:3003/events/search?team_id=1"},{"rel":"locations","href":"http://localhost:3003/locations/search?team_id=1"},{"rel":"managers","href":"http://localhost:3003/members/managers?team_id=1"},{"rel":"member_email_addresses","href":"http://localhost:3003/member_email_addresses/search?team_id=1"},{"rel":"member_files","href":"http://localhost:3003/member_files/search?team_id=1"},{"rel":"member_links","href":"http://localhost:3003/member_links/search?team_id=1"},{"rel":"member_phone_numbers","href":"http://localhost:3003/member_phone_numbers/search?team_id=1"},{"rel":"members","href":"http://localhost:3003/members/search?team_id=1"},{"rel":"members_preferences","href":"http://localhost:3003/members_preferences/search?team_id=1"},{"rel":"opponents","href":"http://localhost:3003/opponents/search?team_id=1"},{"rel":"owner","href":"http://localhost:3003/owner_members?team_id=1"},{"rel":"plan","href":"http://localhost:3003/plans/14"},{"rel":"sport","href":"http://localhost:3003/sports/1"},{"rel":"team_preferences","href":"http://localhost:3003/teams_preferences/1"},{"rel":"team_public_site","href":"http://localhost:3003/team_public_sites/1"},{"rel":"team_results","href":"http://localhost:3003/teams_results/1"},{"rel":"tracked_item_statuses","href":"http://localhost:3003/tracked_item_statuses/search?team_id=1"},{"rel":"tracked_items","href":"http://localhost:3003/tracked_items/search?team_id=1"}]}]}}'
359
+ http_version:
360
+ recorded_at: Tue, 11 Nov 2014 22:05:27 GMT
361
+ - request:
362
+ method: get
363
+ uri: http://localhost:3003/teams/search?id=1
364
+ body:
365
+ encoding: US-ASCII
366
+ string: ''
367
+ headers:
368
+ User-Agent:
369
+ - Faraday v0.9.0
370
+ Accept-Encoding:
371
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
372
+ Accept:
373
+ - "*/*"
374
+ response:
375
+ status:
376
+ code: 200
377
+ message: 'OK '
378
+ headers:
379
+ Content-Type:
380
+ - application/vnd.collection+json
381
+ Content-Length:
382
+ - '6445'
383
+ X-Content-Type-Options:
384
+ - nosniff
385
+ X-Ratelimit-Limit:
386
+ - '5000'
387
+ X-Ratelimit-Remaining:
388
+ - '4994'
389
+ X-Ratelimit-Reset:
390
+ - '1415746746'
391
+ Etag:
392
+ - '"22206dcb948d395fe8bbf8fef02a841b"'
393
+ Cache-Control:
394
+ - max-age=0, private, must-revalidate
395
+ X-Request-Id:
396
+ - 7021980f-868d-41f9-84a7-01ccc9f604cd
397
+ X-Runtime:
398
+ - '0.017416'
399
+ Server:
400
+ - WEBrick/1.3.1 (Ruby/2.1.1/2014-02-24)
401
+ Date:
402
+ - Tue, 11 Nov 2014 22:05:39 GMT
403
+ Connection:
404
+ - Keep-Alive
405
+ body:
406
+ encoding: UTF-8
407
+ string: '{"collection":{"version":"3.1.1","href":"http://localhost:3003/teams","template":{"data":[{"name":"name","value":null},{"name":"location_country","value":null},{"name":"location_postal_code","value":null},{"name":"time_zone","value":null},{"name":"sport_id","value":null},{"name":"division_name","value":null},{"name":"season_name","value":null},{"name":"league_name","value":null},{"name":"league_url","value":null}]},"links":[{"rel":"active_season_team","href":"http://localhost:3003/teams"},{"rel":"assignments","href":"http://localhost:3003/assignments"},{"rel":"availabilities","href":"http://localhost:3003/availabilities"},{"rel":"contact_email_addresses","href":"http://localhost:3003/contact_email_addresses"},{"rel":"contact_phone_numbers","href":"http://localhost:3003/contact_phone_numbers"},{"rel":"contacts","href":"http://localhost:3003/contacts"},{"rel":"custom_data","href":"http://localhost:3003/custom_data"},{"rel":"custom_fields","href":"http://localhost:3003/custom_fields"},{"rel":"events","href":"http://localhost:3003/events"},{"rel":"locations","href":"http://localhost:3003/locations"},{"rel":"managers","href":"http://localhost:3003/members"},{"rel":"member_email_addresses","href":"http://localhost:3003/member_email_addresses"},{"rel":"member_files","href":"http://localhost:3003/member_files"},{"rel":"member_links","href":"http://localhost:3003/member_links"},{"rel":"member_phone_numbers","href":"http://localhost:3003/member_phone_numbers"},{"rel":"members","href":"http://localhost:3003/members"},{"rel":"members_preferences","href":"http://localhost:3003/members_preferences"},{"rel":"opponents","href":"http://localhost:3003/opponents"},{"rel":"owner","href":"http://localhost:3003/members"},{"rel":"plan","href":"http://localhost:3003/plans"},{"rel":"sport","href":"http://localhost:3003/sports"},{"rel":"team_preferences","href":"http://localhost:3003/teams_preferences"},{"rel":"team_public_site","href":"http://localhost:3003/team_public_sites"},{"rel":"team_results","href":"http://localhost:3003/teams_results"},{"rel":"tracked_item_statuses","href":"http://localhost:3003/tracked_item_statuses"},{"rel":"tracked_items","href":"http://localhost:3003/tracked_items"},{"rel":"root","href":"http://localhost:3003/"},{"rel":"self","href":"http://localhost:3003/teams/search?id=1"}],"queries":[{"rel":"search","href":"http://localhost:3003/teams/search","data":[{"name":"id","value":null},{"name":"team_id","value":null},{"name":"user_id","value":null}]}],"commands":[{"rel":"invite","href":"http://localhost:3003/teams/invite","prompt":"invite
408
+ team members or contacts to join TeamSnap.","data":[{"name":"team_id","value":null},{"name":"contact_id","value":null},{"name":"member_id","value":null},{"name":"introduction","value":null},{"name":"notify_as_member_id","value":null}]}],"items":[{"href":"http://localhost:3003/teams/1","data":[{"name":"id","value":1},{"name":"type","value":"team"},{"name":"name","value":"Danger
409
+ Rangers"},{"name":"time_zone_offset","value":"-07:00"},{"name":"time_zone_iana_name","value":"America/Denver"},{"name":"time_zone_description","value":"Mountain
410
+ Time (US & Canada)"},{"name":"updated_at","value":"2014-11-11T00:09:24Z","type":"DateTime"},{"name":"created_at","value":"2014-11-10T23:38:54Z","type":"DateTime"},{"name":"league_name","value":null},{"name":"league_url","value":null},{"name":"division_name","value":null},{"name":"season_name","value":null},{"name":"location_country","value":"United
411
+ States"},{"name":"location_postal_code","value":"80951"},{"name":"is_archived_season","value":false},{"name":"sport_id","value":1},{"name":"plan_id","value":14}],"links":[{"rel":"assignments","href":"http://localhost:3003/assignments/search?team_id=1"},{"rel":"availabilities","href":"http://localhost:3003/availabilities/search?team_id=1"},{"rel":"calendar_http","href":"http://86ed2e8eefaaee16c4b7-16391cffaf9272bff70e93998d553c16.r2.cf1.rackcdn.com/team_schedule/a7e08520-4b60-0132-c8fd-000c29d7248b.ics"},{"rel":"calendar_http_games_only","href":"http://86ed2e8eefaaee16c4b7-16391cffaf9272bff70e93998d553c16.r2.cf1.rackcdn.com/team_schedule/filter/games/a7e08520-4b60-0132-c8fd-000c29d7248b.ics"},{"rel":"calendar_webcal","href":"webcal://86ed2e8eefaaee16c4b7-16391cffaf9272bff70e93998d553c16.r2.cf1.rackcdn.com/team_schedule/a7e08520-4b60-0132-c8fd-000c29d7248b.ics"},{"rel":"calendar_webcal_games_only","href":"webcal://86ed2e8eefaaee16c4b7-16391cffaf9272bff70e93998d553c16.r2.cf1.rackcdn.com/team_schedule/filter/games/a7e08520-4b60-0132-c8fd-000c29d7248b.ics"},{"rel":"contact_email_addresses","href":"http://localhost:3003/contact_email_addresses/search?team_id=1"},{"rel":"contact_phone_numbers","href":"http://localhost:3003/contact_phone_numbers/search?team_id=1"},{"rel":"contacts","href":"http://localhost:3003/contacts/search?team_id=1"},{"rel":"custom_data","href":"http://localhost:3003/custom_data/search?team_id=1"},{"rel":"custom_fields","href":"http://localhost:3003/custom_fields/search?team_id=1"},{"rel":"events","href":"http://localhost:3003/events/search?team_id=1"},{"rel":"locations","href":"http://localhost:3003/locations/search?team_id=1"},{"rel":"managers","href":"http://localhost:3003/members/managers?team_id=1"},{"rel":"member_email_addresses","href":"http://localhost:3003/member_email_addresses/search?team_id=1"},{"rel":"member_files","href":"http://localhost:3003/member_files/search?team_id=1"},{"rel":"member_links","href":"http://localhost:3003/member_links/search?team_id=1"},{"rel":"member_phone_numbers","href":"http://localhost:3003/member_phone_numbers/search?team_id=1"},{"rel":"members","href":"http://localhost:3003/members/search?team_id=1"},{"rel":"members_preferences","href":"http://localhost:3003/members_preferences/search?team_id=1"},{"rel":"opponents","href":"http://localhost:3003/opponents/search?team_id=1"},{"rel":"owner","href":"http://localhost:3003/owner_members?team_id=1"},{"rel":"plan","href":"http://localhost:3003/plans/14"},{"rel":"sport","href":"http://localhost:3003/sports/1"},{"rel":"team_preferences","href":"http://localhost:3003/teams_preferences/1"},{"rel":"team_public_site","href":"http://localhost:3003/team_public_sites/1"},{"rel":"team_results","href":"http://localhost:3003/teams_results/1"},{"rel":"tracked_item_statuses","href":"http://localhost:3003/tracked_item_statuses/search?team_id=1"},{"rel":"tracked_items","href":"http://localhost:3003/tracked_items/search?team_id=1"}]}]}}'
412
+ http_version:
413
+ recorded_at: Tue, 11 Nov 2014 22:05:39 GMT
414
+ - request:
415
+ method: get
416
+ uri: http://localhost:3003/teams/search?id=1
417
+ body:
418
+ encoding: US-ASCII
419
+ string: ''
420
+ headers:
421
+ User-Agent:
422
+ - Faraday v0.9.0
423
+ Accept-Encoding:
424
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
425
+ Accept:
426
+ - "*/*"
427
+ response:
428
+ status:
429
+ code: 200
430
+ message: 'OK '
431
+ headers:
432
+ Content-Type:
433
+ - application/vnd.collection+json
434
+ Content-Length:
435
+ - '6445'
436
+ X-Content-Type-Options:
437
+ - nosniff
438
+ X-Ratelimit-Limit:
439
+ - '5000'
440
+ X-Ratelimit-Remaining:
441
+ - '4993'
442
+ X-Ratelimit-Reset:
443
+ - '1415746747'
444
+ Etag:
445
+ - '"22206dcb948d395fe8bbf8fef02a841b"'
446
+ Cache-Control:
447
+ - max-age=0, private, must-revalidate
448
+ X-Request-Id:
449
+ - e076b2da-66ed-4ed1-8daf-71b9eac5b159
450
+ X-Runtime:
451
+ - '0.017128'
452
+ Server:
453
+ - WEBrick/1.3.1 (Ruby/2.1.1/2014-02-24)
454
+ Date:
455
+ - Tue, 11 Nov 2014 22:05:43 GMT
456
+ Connection:
457
+ - Keep-Alive
458
+ body:
459
+ encoding: UTF-8
460
+ string: '{"collection":{"version":"3.1.1","href":"http://localhost:3003/teams","template":{"data":[{"name":"name","value":null},{"name":"location_country","value":null},{"name":"location_postal_code","value":null},{"name":"time_zone","value":null},{"name":"sport_id","value":null},{"name":"division_name","value":null},{"name":"season_name","value":null},{"name":"league_name","value":null},{"name":"league_url","value":null}]},"links":[{"rel":"active_season_team","href":"http://localhost:3003/teams"},{"rel":"assignments","href":"http://localhost:3003/assignments"},{"rel":"availabilities","href":"http://localhost:3003/availabilities"},{"rel":"contact_email_addresses","href":"http://localhost:3003/contact_email_addresses"},{"rel":"contact_phone_numbers","href":"http://localhost:3003/contact_phone_numbers"},{"rel":"contacts","href":"http://localhost:3003/contacts"},{"rel":"custom_data","href":"http://localhost:3003/custom_data"},{"rel":"custom_fields","href":"http://localhost:3003/custom_fields"},{"rel":"events","href":"http://localhost:3003/events"},{"rel":"locations","href":"http://localhost:3003/locations"},{"rel":"managers","href":"http://localhost:3003/members"},{"rel":"member_email_addresses","href":"http://localhost:3003/member_email_addresses"},{"rel":"member_files","href":"http://localhost:3003/member_files"},{"rel":"member_links","href":"http://localhost:3003/member_links"},{"rel":"member_phone_numbers","href":"http://localhost:3003/member_phone_numbers"},{"rel":"members","href":"http://localhost:3003/members"},{"rel":"members_preferences","href":"http://localhost:3003/members_preferences"},{"rel":"opponents","href":"http://localhost:3003/opponents"},{"rel":"owner","href":"http://localhost:3003/members"},{"rel":"plan","href":"http://localhost:3003/plans"},{"rel":"sport","href":"http://localhost:3003/sports"},{"rel":"team_preferences","href":"http://localhost:3003/teams_preferences"},{"rel":"team_public_site","href":"http://localhost:3003/team_public_sites"},{"rel":"team_results","href":"http://localhost:3003/teams_results"},{"rel":"tracked_item_statuses","href":"http://localhost:3003/tracked_item_statuses"},{"rel":"tracked_items","href":"http://localhost:3003/tracked_items"},{"rel":"root","href":"http://localhost:3003/"},{"rel":"self","href":"http://localhost:3003/teams/search?id=1"}],"queries":[{"rel":"search","href":"http://localhost:3003/teams/search","data":[{"name":"id","value":null},{"name":"team_id","value":null},{"name":"user_id","value":null}]}],"commands":[{"rel":"invite","href":"http://localhost:3003/teams/invite","prompt":"invite
461
+ team members or contacts to join TeamSnap.","data":[{"name":"team_id","value":null},{"name":"contact_id","value":null},{"name":"member_id","value":null},{"name":"introduction","value":null},{"name":"notify_as_member_id","value":null}]}],"items":[{"href":"http://localhost:3003/teams/1","data":[{"name":"id","value":1},{"name":"type","value":"team"},{"name":"name","value":"Danger
462
+ Rangers"},{"name":"time_zone_offset","value":"-07:00"},{"name":"time_zone_iana_name","value":"America/Denver"},{"name":"time_zone_description","value":"Mountain
463
+ Time (US & Canada)"},{"name":"updated_at","value":"2014-11-11T00:09:24Z","type":"DateTime"},{"name":"created_at","value":"2014-11-10T23:38:54Z","type":"DateTime"},{"name":"league_name","value":null},{"name":"league_url","value":null},{"name":"division_name","value":null},{"name":"season_name","value":null},{"name":"location_country","value":"United
464
+ States"},{"name":"location_postal_code","value":"80951"},{"name":"is_archived_season","value":false},{"name":"sport_id","value":1},{"name":"plan_id","value":14}],"links":[{"rel":"assignments","href":"http://localhost:3003/assignments/search?team_id=1"},{"rel":"availabilities","href":"http://localhost:3003/availabilities/search?team_id=1"},{"rel":"calendar_http","href":"http://86ed2e8eefaaee16c4b7-16391cffaf9272bff70e93998d553c16.r2.cf1.rackcdn.com/team_schedule/a7e08520-4b60-0132-c8fd-000c29d7248b.ics"},{"rel":"calendar_http_games_only","href":"http://86ed2e8eefaaee16c4b7-16391cffaf9272bff70e93998d553c16.r2.cf1.rackcdn.com/team_schedule/filter/games/a7e08520-4b60-0132-c8fd-000c29d7248b.ics"},{"rel":"calendar_webcal","href":"webcal://86ed2e8eefaaee16c4b7-16391cffaf9272bff70e93998d553c16.r2.cf1.rackcdn.com/team_schedule/a7e08520-4b60-0132-c8fd-000c29d7248b.ics"},{"rel":"calendar_webcal_games_only","href":"webcal://86ed2e8eefaaee16c4b7-16391cffaf9272bff70e93998d553c16.r2.cf1.rackcdn.com/team_schedule/filter/games/a7e08520-4b60-0132-c8fd-000c29d7248b.ics"},{"rel":"contact_email_addresses","href":"http://localhost:3003/contact_email_addresses/search?team_id=1"},{"rel":"contact_phone_numbers","href":"http://localhost:3003/contact_phone_numbers/search?team_id=1"},{"rel":"contacts","href":"http://localhost:3003/contacts/search?team_id=1"},{"rel":"custom_data","href":"http://localhost:3003/custom_data/search?team_id=1"},{"rel":"custom_fields","href":"http://localhost:3003/custom_fields/search?team_id=1"},{"rel":"events","href":"http://localhost:3003/events/search?team_id=1"},{"rel":"locations","href":"http://localhost:3003/locations/search?team_id=1"},{"rel":"managers","href":"http://localhost:3003/members/managers?team_id=1"},{"rel":"member_email_addresses","href":"http://localhost:3003/member_email_addresses/search?team_id=1"},{"rel":"member_files","href":"http://localhost:3003/member_files/search?team_id=1"},{"rel":"member_links","href":"http://localhost:3003/member_links/search?team_id=1"},{"rel":"member_phone_numbers","href":"http://localhost:3003/member_phone_numbers/search?team_id=1"},{"rel":"members","href":"http://localhost:3003/members/search?team_id=1"},{"rel":"members_preferences","href":"http://localhost:3003/members_preferences/search?team_id=1"},{"rel":"opponents","href":"http://localhost:3003/opponents/search?team_id=1"},{"rel":"owner","href":"http://localhost:3003/owner_members?team_id=1"},{"rel":"plan","href":"http://localhost:3003/plans/14"},{"rel":"sport","href":"http://localhost:3003/sports/1"},{"rel":"team_preferences","href":"http://localhost:3003/teams_preferences/1"},{"rel":"team_public_site","href":"http://localhost:3003/team_public_sites/1"},{"rel":"team_results","href":"http://localhost:3003/teams_results/1"},{"rel":"tracked_item_statuses","href":"http://localhost:3003/tracked_item_statuses/search?team_id=1"},{"rel":"tracked_items","href":"http://localhost:3003/tracked_items/search?team_id=1"}]}]}}'
465
+ http_version:
466
+ recorded_at: Tue, 11 Nov 2014 22:05:43 GMT
467
+ - request:
468
+ method: get
469
+ uri: http://localhost:3003/teams/search?id=1
470
+ body:
471
+ encoding: US-ASCII
472
+ string: ''
473
+ headers:
474
+ User-Agent:
475
+ - Faraday v0.9.0
476
+ Accept-Encoding:
477
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
478
+ Accept:
479
+ - "*/*"
480
+ response:
481
+ status:
482
+ code: 200
483
+ message: 'OK '
484
+ headers:
485
+ Content-Type:
486
+ - application/vnd.collection+json
487
+ Content-Length:
488
+ - '6445'
489
+ X-Content-Type-Options:
490
+ - nosniff
491
+ X-Ratelimit-Limit:
492
+ - '5000'
493
+ X-Ratelimit-Remaining:
494
+ - '4992'
495
+ X-Ratelimit-Reset:
496
+ - '1415746747'
497
+ Etag:
498
+ - '"22206dcb948d395fe8bbf8fef02a841b"'
499
+ Cache-Control:
500
+ - max-age=0, private, must-revalidate
501
+ X-Request-Id:
502
+ - 194d7b21-57ee-45c9-acea-0428509ca366
503
+ X-Runtime:
504
+ - '0.021655'
505
+ Server:
506
+ - WEBrick/1.3.1 (Ruby/2.1.1/2014-02-24)
507
+ Date:
508
+ - Tue, 11 Nov 2014 22:05:43 GMT
509
+ Connection:
510
+ - Keep-Alive
511
+ body:
512
+ encoding: UTF-8
513
+ string: '{"collection":{"version":"3.1.1","href":"http://localhost:3003/teams","template":{"data":[{"name":"name","value":null},{"name":"location_country","value":null},{"name":"location_postal_code","value":null},{"name":"time_zone","value":null},{"name":"sport_id","value":null},{"name":"division_name","value":null},{"name":"season_name","value":null},{"name":"league_name","value":null},{"name":"league_url","value":null}]},"links":[{"rel":"active_season_team","href":"http://localhost:3003/teams"},{"rel":"assignments","href":"http://localhost:3003/assignments"},{"rel":"availabilities","href":"http://localhost:3003/availabilities"},{"rel":"contact_email_addresses","href":"http://localhost:3003/contact_email_addresses"},{"rel":"contact_phone_numbers","href":"http://localhost:3003/contact_phone_numbers"},{"rel":"contacts","href":"http://localhost:3003/contacts"},{"rel":"custom_data","href":"http://localhost:3003/custom_data"},{"rel":"custom_fields","href":"http://localhost:3003/custom_fields"},{"rel":"events","href":"http://localhost:3003/events"},{"rel":"locations","href":"http://localhost:3003/locations"},{"rel":"managers","href":"http://localhost:3003/members"},{"rel":"member_email_addresses","href":"http://localhost:3003/member_email_addresses"},{"rel":"member_files","href":"http://localhost:3003/member_files"},{"rel":"member_links","href":"http://localhost:3003/member_links"},{"rel":"member_phone_numbers","href":"http://localhost:3003/member_phone_numbers"},{"rel":"members","href":"http://localhost:3003/members"},{"rel":"members_preferences","href":"http://localhost:3003/members_preferences"},{"rel":"opponents","href":"http://localhost:3003/opponents"},{"rel":"owner","href":"http://localhost:3003/members"},{"rel":"plan","href":"http://localhost:3003/plans"},{"rel":"sport","href":"http://localhost:3003/sports"},{"rel":"team_preferences","href":"http://localhost:3003/teams_preferences"},{"rel":"team_public_site","href":"http://localhost:3003/team_public_sites"},{"rel":"team_results","href":"http://localhost:3003/teams_results"},{"rel":"tracked_item_statuses","href":"http://localhost:3003/tracked_item_statuses"},{"rel":"tracked_items","href":"http://localhost:3003/tracked_items"},{"rel":"root","href":"http://localhost:3003/"},{"rel":"self","href":"http://localhost:3003/teams/search?id=1"}],"queries":[{"rel":"search","href":"http://localhost:3003/teams/search","data":[{"name":"id","value":null},{"name":"team_id","value":null},{"name":"user_id","value":null}]}],"commands":[{"rel":"invite","href":"http://localhost:3003/teams/invite","prompt":"invite
514
+ team members or contacts to join TeamSnap.","data":[{"name":"team_id","value":null},{"name":"contact_id","value":null},{"name":"member_id","value":null},{"name":"introduction","value":null},{"name":"notify_as_member_id","value":null}]}],"items":[{"href":"http://localhost:3003/teams/1","data":[{"name":"id","value":1},{"name":"type","value":"team"},{"name":"name","value":"Danger
515
+ Rangers"},{"name":"time_zone_offset","value":"-07:00"},{"name":"time_zone_iana_name","value":"America/Denver"},{"name":"time_zone_description","value":"Mountain
516
+ Time (US & Canada)"},{"name":"updated_at","value":"2014-11-11T00:09:24Z","type":"DateTime"},{"name":"created_at","value":"2014-11-10T23:38:54Z","type":"DateTime"},{"name":"league_name","value":null},{"name":"league_url","value":null},{"name":"division_name","value":null},{"name":"season_name","value":null},{"name":"location_country","value":"United
517
+ States"},{"name":"location_postal_code","value":"80951"},{"name":"is_archived_season","value":false},{"name":"sport_id","value":1},{"name":"plan_id","value":14}],"links":[{"rel":"assignments","href":"http://localhost:3003/assignments/search?team_id=1"},{"rel":"availabilities","href":"http://localhost:3003/availabilities/search?team_id=1"},{"rel":"calendar_http","href":"http://86ed2e8eefaaee16c4b7-16391cffaf9272bff70e93998d553c16.r2.cf1.rackcdn.com/team_schedule/a7e08520-4b60-0132-c8fd-000c29d7248b.ics"},{"rel":"calendar_http_games_only","href":"http://86ed2e8eefaaee16c4b7-16391cffaf9272bff70e93998d553c16.r2.cf1.rackcdn.com/team_schedule/filter/games/a7e08520-4b60-0132-c8fd-000c29d7248b.ics"},{"rel":"calendar_webcal","href":"webcal://86ed2e8eefaaee16c4b7-16391cffaf9272bff70e93998d553c16.r2.cf1.rackcdn.com/team_schedule/a7e08520-4b60-0132-c8fd-000c29d7248b.ics"},{"rel":"calendar_webcal_games_only","href":"webcal://86ed2e8eefaaee16c4b7-16391cffaf9272bff70e93998d553c16.r2.cf1.rackcdn.com/team_schedule/filter/games/a7e08520-4b60-0132-c8fd-000c29d7248b.ics"},{"rel":"contact_email_addresses","href":"http://localhost:3003/contact_email_addresses/search?team_id=1"},{"rel":"contact_phone_numbers","href":"http://localhost:3003/contact_phone_numbers/search?team_id=1"},{"rel":"contacts","href":"http://localhost:3003/contacts/search?team_id=1"},{"rel":"custom_data","href":"http://localhost:3003/custom_data/search?team_id=1"},{"rel":"custom_fields","href":"http://localhost:3003/custom_fields/search?team_id=1"},{"rel":"events","href":"http://localhost:3003/events/search?team_id=1"},{"rel":"locations","href":"http://localhost:3003/locations/search?team_id=1"},{"rel":"managers","href":"http://localhost:3003/members/managers?team_id=1"},{"rel":"member_email_addresses","href":"http://localhost:3003/member_email_addresses/search?team_id=1"},{"rel":"member_files","href":"http://localhost:3003/member_files/search?team_id=1"},{"rel":"member_links","href":"http://localhost:3003/member_links/search?team_id=1"},{"rel":"member_phone_numbers","href":"http://localhost:3003/member_phone_numbers/search?team_id=1"},{"rel":"members","href":"http://localhost:3003/members/search?team_id=1"},{"rel":"members_preferences","href":"http://localhost:3003/members_preferences/search?team_id=1"},{"rel":"opponents","href":"http://localhost:3003/opponents/search?team_id=1"},{"rel":"owner","href":"http://localhost:3003/owner_members?team_id=1"},{"rel":"plan","href":"http://localhost:3003/plans/14"},{"rel":"sport","href":"http://localhost:3003/sports/1"},{"rel":"team_preferences","href":"http://localhost:3003/teams_preferences/1"},{"rel":"team_public_site","href":"http://localhost:3003/team_public_sites/1"},{"rel":"team_results","href":"http://localhost:3003/teams_results/1"},{"rel":"tracked_item_statuses","href":"http://localhost:3003/tracked_item_statuses/search?team_id=1"},{"rel":"tracked_items","href":"http://localhost:3003/tracked_items/search?team_id=1"}]}]}}'
518
+ http_version:
519
+ recorded_at: Tue, 11 Nov 2014 22:05:43 GMT
520
+ - request:
521
+ method: get
522
+ uri: http://localhost:3003/teams/search?id=1
523
+ body:
524
+ encoding: US-ASCII
525
+ string: ''
526
+ headers:
527
+ User-Agent:
528
+ - Faraday v0.9.0
529
+ Accept-Encoding:
530
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
531
+ Accept:
532
+ - "*/*"
533
+ response:
534
+ status:
535
+ code: 200
536
+ message: 'OK '
537
+ headers:
538
+ Content-Type:
539
+ - application/vnd.collection+json
540
+ Content-Length:
541
+ - '6445'
542
+ X-Content-Type-Options:
543
+ - nosniff
544
+ X-Ratelimit-Limit:
545
+ - '5000'
546
+ X-Ratelimit-Remaining:
547
+ - '4991'
548
+ X-Ratelimit-Reset:
549
+ - '1415746746'
550
+ Etag:
551
+ - '"22206dcb948d395fe8bbf8fef02a841b"'
552
+ Cache-Control:
553
+ - max-age=0, private, must-revalidate
554
+ X-Request-Id:
555
+ - bb17f2eb-b86d-4e9c-97d3-57fc18236f91
556
+ X-Runtime:
557
+ - '0.016368'
558
+ Server:
559
+ - WEBrick/1.3.1 (Ruby/2.1.1/2014-02-24)
560
+ Date:
561
+ - Tue, 11 Nov 2014 22:05:53 GMT
562
+ Connection:
563
+ - Keep-Alive
564
+ body:
565
+ encoding: UTF-8
566
+ string: '{"collection":{"version":"3.1.1","href":"http://localhost:3003/teams","template":{"data":[{"name":"name","value":null},{"name":"location_country","value":null},{"name":"location_postal_code","value":null},{"name":"time_zone","value":null},{"name":"sport_id","value":null},{"name":"division_name","value":null},{"name":"season_name","value":null},{"name":"league_name","value":null},{"name":"league_url","value":null}]},"links":[{"rel":"active_season_team","href":"http://localhost:3003/teams"},{"rel":"assignments","href":"http://localhost:3003/assignments"},{"rel":"availabilities","href":"http://localhost:3003/availabilities"},{"rel":"contact_email_addresses","href":"http://localhost:3003/contact_email_addresses"},{"rel":"contact_phone_numbers","href":"http://localhost:3003/contact_phone_numbers"},{"rel":"contacts","href":"http://localhost:3003/contacts"},{"rel":"custom_data","href":"http://localhost:3003/custom_data"},{"rel":"custom_fields","href":"http://localhost:3003/custom_fields"},{"rel":"events","href":"http://localhost:3003/events"},{"rel":"locations","href":"http://localhost:3003/locations"},{"rel":"managers","href":"http://localhost:3003/members"},{"rel":"member_email_addresses","href":"http://localhost:3003/member_email_addresses"},{"rel":"member_files","href":"http://localhost:3003/member_files"},{"rel":"member_links","href":"http://localhost:3003/member_links"},{"rel":"member_phone_numbers","href":"http://localhost:3003/member_phone_numbers"},{"rel":"members","href":"http://localhost:3003/members"},{"rel":"members_preferences","href":"http://localhost:3003/members_preferences"},{"rel":"opponents","href":"http://localhost:3003/opponents"},{"rel":"owner","href":"http://localhost:3003/members"},{"rel":"plan","href":"http://localhost:3003/plans"},{"rel":"sport","href":"http://localhost:3003/sports"},{"rel":"team_preferences","href":"http://localhost:3003/teams_preferences"},{"rel":"team_public_site","href":"http://localhost:3003/team_public_sites"},{"rel":"team_results","href":"http://localhost:3003/teams_results"},{"rel":"tracked_item_statuses","href":"http://localhost:3003/tracked_item_statuses"},{"rel":"tracked_items","href":"http://localhost:3003/tracked_items"},{"rel":"root","href":"http://localhost:3003/"},{"rel":"self","href":"http://localhost:3003/teams/search?id=1"}],"queries":[{"rel":"search","href":"http://localhost:3003/teams/search","data":[{"name":"id","value":null},{"name":"team_id","value":null},{"name":"user_id","value":null}]}],"commands":[{"rel":"invite","href":"http://localhost:3003/teams/invite","prompt":"invite
567
+ team members or contacts to join TeamSnap.","data":[{"name":"team_id","value":null},{"name":"contact_id","value":null},{"name":"member_id","value":null},{"name":"introduction","value":null},{"name":"notify_as_member_id","value":null}]}],"items":[{"href":"http://localhost:3003/teams/1","data":[{"name":"id","value":1},{"name":"type","value":"team"},{"name":"name","value":"Danger
568
+ Rangers"},{"name":"time_zone_offset","value":"-07:00"},{"name":"time_zone_iana_name","value":"America/Denver"},{"name":"time_zone_description","value":"Mountain
569
+ Time (US & Canada)"},{"name":"updated_at","value":"2014-11-11T00:09:24Z","type":"DateTime"},{"name":"created_at","value":"2014-11-10T23:38:54Z","type":"DateTime"},{"name":"league_name","value":null},{"name":"league_url","value":null},{"name":"division_name","value":null},{"name":"season_name","value":null},{"name":"location_country","value":"United
570
+ States"},{"name":"location_postal_code","value":"80951"},{"name":"is_archived_season","value":false},{"name":"sport_id","value":1},{"name":"plan_id","value":14}],"links":[{"rel":"assignments","href":"http://localhost:3003/assignments/search?team_id=1"},{"rel":"availabilities","href":"http://localhost:3003/availabilities/search?team_id=1"},{"rel":"calendar_http","href":"http://86ed2e8eefaaee16c4b7-16391cffaf9272bff70e93998d553c16.r2.cf1.rackcdn.com/team_schedule/a7e08520-4b60-0132-c8fd-000c29d7248b.ics"},{"rel":"calendar_http_games_only","href":"http://86ed2e8eefaaee16c4b7-16391cffaf9272bff70e93998d553c16.r2.cf1.rackcdn.com/team_schedule/filter/games/a7e08520-4b60-0132-c8fd-000c29d7248b.ics"},{"rel":"calendar_webcal","href":"webcal://86ed2e8eefaaee16c4b7-16391cffaf9272bff70e93998d553c16.r2.cf1.rackcdn.com/team_schedule/a7e08520-4b60-0132-c8fd-000c29d7248b.ics"},{"rel":"calendar_webcal_games_only","href":"webcal://86ed2e8eefaaee16c4b7-16391cffaf9272bff70e93998d553c16.r2.cf1.rackcdn.com/team_schedule/filter/games/a7e08520-4b60-0132-c8fd-000c29d7248b.ics"},{"rel":"contact_email_addresses","href":"http://localhost:3003/contact_email_addresses/search?team_id=1"},{"rel":"contact_phone_numbers","href":"http://localhost:3003/contact_phone_numbers/search?team_id=1"},{"rel":"contacts","href":"http://localhost:3003/contacts/search?team_id=1"},{"rel":"custom_data","href":"http://localhost:3003/custom_data/search?team_id=1"},{"rel":"custom_fields","href":"http://localhost:3003/custom_fields/search?team_id=1"},{"rel":"events","href":"http://localhost:3003/events/search?team_id=1"},{"rel":"locations","href":"http://localhost:3003/locations/search?team_id=1"},{"rel":"managers","href":"http://localhost:3003/members/managers?team_id=1"},{"rel":"member_email_addresses","href":"http://localhost:3003/member_email_addresses/search?team_id=1"},{"rel":"member_files","href":"http://localhost:3003/member_files/search?team_id=1"},{"rel":"member_links","href":"http://localhost:3003/member_links/search?team_id=1"},{"rel":"member_phone_numbers","href":"http://localhost:3003/member_phone_numbers/search?team_id=1"},{"rel":"members","href":"http://localhost:3003/members/search?team_id=1"},{"rel":"members_preferences","href":"http://localhost:3003/members_preferences/search?team_id=1"},{"rel":"opponents","href":"http://localhost:3003/opponents/search?team_id=1"},{"rel":"owner","href":"http://localhost:3003/owner_members?team_id=1"},{"rel":"plan","href":"http://localhost:3003/plans/14"},{"rel":"sport","href":"http://localhost:3003/sports/1"},{"rel":"team_preferences","href":"http://localhost:3003/teams_preferences/1"},{"rel":"team_public_site","href":"http://localhost:3003/team_public_sites/1"},{"rel":"team_results","href":"http://localhost:3003/teams_results/1"},{"rel":"tracked_item_statuses","href":"http://localhost:3003/tracked_item_statuses/search?team_id=1"},{"rel":"tracked_items","href":"http://localhost:3003/tracked_items/search?team_id=1"}]}]}}'
571
+ http_version:
572
+ recorded_at: Tue, 11 Nov 2014 22:05:53 GMT
573
+ recorded_with: VCR 2.9.3