teamsnap_rb 2.0.0.beta6 → 2.0.0.beta7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/Gemfile +1 -0
- data/lib/teamsnap/item.rb +9 -2
- data/lib/teamsnap/version.rb +1 -1
- data/spec/cassettes/apiv3-init.yml +241 -166
- data/spec/cassettes/teamsnap__client/when_calling_via_s_on_the_client/does_not_raise_an_error_when_the_HTTP_actions_are_called.yml +12 -10
- data/spec/cassettes/teamsnap__client/when_calling_via_s_on_the_client/passes_them_to_the_faraday_client_using_method_missing.yml +12 -10
- data/spec/cassettes/teamsnap__collection/adds_find_if_search_is_available.yml +19 -14
- data/spec/cassettes/teamsnap__collection/adds_href_to_items.yml +20 -13
- data/spec/cassettes/teamsnap__collection/can_follow_plural_links.yml +87 -45
- data/spec/cassettes/teamsnap__collection/can_follow_singular_links.yml +39 -27
- data/spec/cassettes/teamsnap__collection/can_handle_links_with_no_data.yml +28 -21
- data/spec/cassettes/teamsnap__collection/handles_executing_an_action_via_commands.yml +20 -13
- data/spec/cassettes/teamsnap__collection/handles_executing_an_action_via_commands_with_multiple_params.yml +19 -11
- data/spec/cassettes/teamsnap__collection/handles_fetching_data_via_queries.yml +19 -14
- data/spec/cassettes/teamsnap__collection/handles_queries_with_no_data.yml +15 -11
- data/spec/cassettes/teamsnap__collection/raises_an_exception_if_find_returns_nothing.yml +15 -11
- data/spec/cassettes/teamsnap__collection/supports_relations_with_expected_behaviors/when_a_plural_relation_is_called/responds_with_an_array_of_objects_when_successful.yml +26 -24
- data/spec/cassettes/teamsnap__collection/supports_relations_with_expected_behaviors/when_a_plural_relation_is_called/responds_with_an_empty_array_when_no_objects_exist.yml +22 -20
- data/spec/cassettes/teamsnap__collection/supports_relations_with_expected_behaviors/when_a_singular_relation_is_called/responds_with_nil_if_it_does_NOT_exist.yml +25 -22
- data/spec/cassettes/teamsnap__collection/supports_relations_with_expected_behaviors/when_a_singular_relation_is_called/responds_with_the_object_if_it_exists.yml +33 -26
- data/spec/cassettes/teamsnap__structure/_create_collection_class/registers_new_classes_via_introspection_of_the_root_collection.yml +15 -11
- data/spec/cassettes/teamsnap__structure/_create_collection_class/sets_the_href_attribute_on_the_new_class.yml +15 -11
- data/spec/cassettes/teamsnap__structure/_init/has_all_classes_in_schema_loaded_except_for_exceptions_list_endpoints.yml +12 -10
- data/spec/cassettes/teamsnap_rb/_bulk_load/can_handle_an_empty_bulk_load.yml +8 -8
- data/spec/cassettes/teamsnap_rb/_bulk_load/can_handle_an_error_with_bulk_load_without_a_team_id.yml +6 -6
- data/spec/cassettes/teamsnap_rb/_bulk_load/can_use_bulk_load.yml +65 -32
- data/spec/cassettes/teamsnap_rb/_client_send/when_sent_a_known_via_/calls_DELETE_on_the_given_client.yml +242 -85
- data/spec/cassettes/teamsnap_rb/_client_send/when_sent_a_known_via_/calls_GET_on_the_given_client.yml +12 -10
- data/spec/cassettes/teamsnap_rb/_client_send/when_sent_a_known_via_/calls_PATCH_on_the_given_client.yml +242 -85
- data/spec/cassettes/teamsnap_rb/_client_send/when_sent_a_known_via_/calls_POST_on_the_given_client.yml +242 -85
- data/spec/cassettes/teamsnap_rb/_run/processes_the_response.yml +48 -40
- data/spec/spec_helper.rb +1 -0
- data/spec/teamsnap/item_spec.rb +35 -0
- data/spec/teamsnap_spec.rb +1 -1
- metadata +2 -2
@@ -2,7 +2,7 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: get
|
5
|
-
uri: http://localhost:3000/events/search?id=1&hmac_client_id=classic&hmac_nonce=
|
5
|
+
uri: http://localhost:3000/events/search?id=1&hmac_client_id=classic&hmac_nonce=df984ea0-7ffd-4ec3-99af-2861a925f900&hmac_timestamp=1464801842
|
6
6
|
body:
|
7
7
|
encoding: US-ASCII
|
8
8
|
string: ''
|
@@ -10,7 +10,7 @@ http_interactions:
|
|
10
10
|
User-Agent:
|
11
11
|
- Faraday v0.9.2
|
12
12
|
X-Teamsnap-Hmac:
|
13
|
-
-
|
13
|
+
- c1e753facac4404810d6be6c6ce75e067a9ec9634cadc2a54bb2e00ea907e951
|
14
14
|
response:
|
15
15
|
status:
|
16
16
|
code: 200
|
@@ -19,24 +19,24 @@ http_interactions:
|
|
19
19
|
Content-Type:
|
20
20
|
- application/vnd.collection+json
|
21
21
|
Content-Length:
|
22
|
-
- '
|
22
|
+
- '7979'
|
23
23
|
X-Content-Type-Options:
|
24
24
|
- nosniff
|
25
25
|
ETag:
|
26
|
-
- '"
|
26
|
+
- '"45f87573cadf9c70913ffc9640442bd2"'
|
27
27
|
Cache-Control:
|
28
28
|
- max-age=0, private, must-revalidate
|
29
29
|
X-Request-Id:
|
30
|
-
-
|
30
|
+
- 435c1c68-0402-4646-9ef7-a952f0427ea4
|
31
31
|
X-Runtime:
|
32
|
-
- '0.
|
32
|
+
- '0.077901'
|
33
33
|
Connection:
|
34
34
|
- keep-alive
|
35
35
|
Server:
|
36
36
|
- thin
|
37
37
|
body:
|
38
38
|
encoding: UTF-8
|
39
|
-
string: '{"collection":{"version":"3.
|
39
|
+
string: '{"collection":{"version":"3.276.0","href":"http://localhost:3000/events","rel":"events","template":{"data":[{"name":"type","value":"event"},{"name":"additional_location_details","value":null},{"name":"browser_time_zone","value":null},{"name":"division_location_id","value":null},{"name":"doesnt_count_towards_record","value":null},{"name":"duration_in_minutes","value":null},{"name":"game_type_code","value":null},{"name":"icon_color","value":null},{"name":"is_canceled","value":null},{"name":"is_game","value":null},{"name":"is_overtime","value":null},{"name":"is_shootout","value":null},{"name":"is_tbd","value":null},{"name":"label","value":null},{"name":"location_id","value":null},{"name":"minutes_to_arrive_early","value":null},{"name":"name","value":null},{"name":"notes","value":null},{"name":"notify_opponent","value":null},{"name":"notify_opponent_contacts_email","value":null},{"name":"notify_opponent_contacts_name","value":null},{"name":"notify_opponent_notes","value":null},{"name":"notify_team","value":null},{"name":"notify_team_as_member_id","value":null},{"name":"opponent_id","value":null},{"name":"points_for_opponent","value":null},{"name":"points_for_team","value":null},{"name":"repeating_include","value":null,"prompt":"When
|
40
40
|
updating a repeating event, this is a required field. Values are: \"all\"
|
41
41
|
- updates all events in this series, \"future\" - updates this event and all
|
42
42
|
that occur after, \"none\" - only updates a single event."},{"name":"repeating_type_code","value":null,"prompt":"A
|
@@ -46,11 +46,13 @@ http_interactions:
|
|
46
46
|
date when the repeating event should end, this is inclusive so an event will
|
47
47
|
be created on this day if it falls before the next event specified by \"repeating_type_code\".
|
48
48
|
This attribute is required with \"repeating_type_code\" when creating a repeating
|
49
|
-
event."},{"name":"results","value":null},{"name":"results_url","value":null},{"name":"shootout_points_for_opponent","value":null},{"name":"shootout_points_for_team","value":null},{"name":"start_date","value":null},{"name":"team_id","value":null},{"name":"time_zone","value":null},{"name":"tracks_availability","value":null},{"name":"uniform","value":null}]},"links":[{"rel":"assignments","href":"http://localhost:3000/assignments"},{"rel":"availabilities","href":"http://localhost:3000/availabilities"},{"rel":"division_location","href":"http://localhost:3000/division_locations"},{"rel":"event_statistics","href":"http://localhost:3000/event_statistics"},{"rel":"location","href":"http://localhost:3000/locations"},{"rel":"opponent","href":"http://localhost:3000/opponents"},{"rel":"statistic_data","href":"http://localhost:3000/statistic_data"},{"rel":"team","href":"http://localhost:3000/teams"},{"rel":"root","href":"http://localhost:3000/"},{"rel":"self","href":"http://localhost:3000/events/search?id=1"}],"queries":[{"rel":"search","href":"http://localhost:3000/events/search","data":[{"name":"team_id","value":null},{"name":"location_id","value":null},{"name":"opponent_id","value":null},{"name":"started_after","value":null},{"name":"started_before","value":null},{"name":"id","value":null},{"name":"page_size","value":null,"prompt":"The
|
49
|
+
event."},{"name":"results","value":null},{"name":"results_url","value":null},{"name":"shootout_points_for_opponent","value":null},{"name":"shootout_points_for_team","value":null},{"name":"start_date","value":null},{"name":"team_id","value":null},{"name":"time_zone","value":null},{"name":"tracks_availability","value":null},{"name":"uniform","value":null}]},"links":[{"rel":"assignments","href":"http://localhost:3000/assignments"},{"rel":"availabilities","href":"http://localhost:3000/availabilities"},{"rel":"division_location","href":"http://localhost:3000/division_locations"},{"rel":"event_statistics","href":"http://localhost:3000/event_statistics"},{"rel":"location","href":"http://localhost:3000/locations"},{"rel":"opponent","href":"http://localhost:3000/opponents"},{"rel":"statistic_data","href":"http://localhost:3000/statistic_data"},{"rel":"team","href":"http://localhost:3000/teams"},{"rel":"root","href":"http://localhost:3000/"},{"rel":"self","href":"http://localhost:3000/events/search?id=1"}],"queries":[{"rel":"search","sort":["start_date"],"href":"http://localhost:3000/events/search","data":[{"name":"team_id","value":null},{"name":"location_id","value":null},{"name":"opponent_id","value":null},{"name":"started_after","value":null},{"name":"started_before","value":null},{"name":"id","value":null},{"name":"page_size","value":null,"prompt":"The
|
50
50
|
number of items to return for each page. Sending this parameter with the query
|
51
51
|
will enable paging for the returned collection."},{"name":"page_number","value":null,"prompt":"The
|
52
52
|
number of the page to be returned. This requires that paging be turned on
|
53
|
-
by also providing the page_size parameter."}
|
53
|
+
by also providing the page_size parameter."},{"name":"sort_start_date","value":null,"prompt":"Sort
|
54
|
+
the returned dataset based on the start_date field, valid values are ''asc''
|
55
|
+
or ''desc''."}]},{"rel":"search_games","href":"http://localhost:3000/events/search_games","data":[{"name":"team_id","value":null}]},{"rel":"overview","href":"http://localhost:3000/events/overview","data":[{"name":"team_id","value":null}]}],"commands":[{"rel":"send_availability_reminders","href":"http://localhost:3000/events/send_availability_reminders","prompt":"members_to_notify
|
54
56
|
= [member_id, member_id]","data":[{"name":"id","value":null},{"name":"members_to_notify","value":null},{"name":"notify_team_as_member_id","value":null}]},{"rel":"update_final_score","href":"http://localhost:3000/events/update_final_score","prompt":"Update
|
55
57
|
the final score for an event","data":[{"name":"id","value":null},{"name":"points_for_team","value":null},{"name":"points_for_opponent","value":null},{"name":"shootout_points_for_team","value":null},{"name":"shootout_points_for_opponent","value":null},{"name":"is_overtime","value":null},{"name":"is_shootout","value":null},{"name":"results","value":null},{"name":"results_url","value":null}]},{"rel":"bulk_create","href":"http://localhost:3000/events/bulk_create","prompt":"event_ids
|
56
58
|
= [event_id, event_id]","data":[{"name":"templates","value":null},{"name":"team_id","value":null},{"name":"notify_team_as_member_id","value":null},{"name":"notify_team","value":null}]}],"items":[{"href":"http://localhost:3000/events/1","data":[{"name":"id","value":1},{"name":"type","value":"event"},{"name":"additional_location_details","value":"Court
|
@@ -58,14 +60,14 @@ http_interactions:
|
|
58
60
|
Specified"},{"name":"game_type_code","value":null},{"name":"icon_color","value":"blue"},{"name":"is_canceled","value":false},{"name":"is_game","value":false},{"name":"is_overtime","value":false},{"name":"is_shootout","value":false},{"name":"is_tbd","value":false},{"name":"label","value":null},{"name":"location_id","value":1},{"name":"minutes_to_arrive_early","value":null},{"name":"name","value":"March
|
59
61
|
Madness Game 1"},{"name":"notes","value":null},{"name":"opponent_id","value":1},{"name":"points_for_opponent","value":null},{"name":"points_for_team","value":null},{"name":"repeating_type","value":null},{"name":"repeating_type_code","value":null},{"name":"repeating_uuid","value":null},{"name":"results","value":null},{"name":"results_url","value":null},{"name":"shootout_points_for_opponent","value":null},{"name":"shootout_points_for_team","value":null},{"name":"start_date","value":"2015-01-01T00:00:00Z","type":"DateTime"},{"name":"team_id","value":1},{"name":"time_zone","value":"Mountain
|
60
62
|
Time (US & Canada)"},{"name":"time_zone_description","value":"Mountain Time
|
61
|
-
(US & Canada)"},{"name":"time_zone_iana_name","value":"America/Denver"},{"name":"time_zone_offset","value":"-07:00"},{"name":"source_time_zone_iana_name","value":"America/Denver"},{"name":"tracks_availability","value":true},{"name":"uniform","value":null},{"name":"is_league_controlled","value":false},{"name":"created_at","value":"2016-
|
63
|
+
(US & Canada)"},{"name":"time_zone_iana_name","value":"America/Denver"},{"name":"time_zone_offset","value":"-07:00"},{"name":"source_time_zone_iana_name","value":"America/Denver"},{"name":"tracks_availability","value":true},{"name":"uniform","value":null},{"name":"is_league_controlled","value":false},{"name":"created_at","value":"2016-06-01T16:41:14Z","type":"DateTime"},{"name":"updated_at","value":"2016-06-01T16:41:15Z","type":"DateTime"}],"links":[{"rel":"assignments","href":"http://localhost:3000/assignments/search?event_id=1"},{"rel":"availabilities","href":"http://localhost:3000/availabilities/search?event_id=1"},{"rel":"calendar_single_event","href":"http://86ed2e8eefaaee16c4b7-16391cffaf9272bff70e93998d553c16.r2.cf1.rackcdn.com/team_schedule/event/1.ics"},{"rel":"division_location","href":"http://localhost:3000/division_locations/"},{"rel":"event_statistics","href":"http://localhost:3000/event_statistics/search?event_id=1"},{"rel":"location","href":"http://localhost:3000/locations/1"},{"rel":"opponent","href":"http://localhost:3000/opponents/1"},{"rel":"statistic_data","href":"http://localhost:3000/statistic_data/search?event_id=1"},{"rel":"team","href":"http://localhost:3000/teams/1"}],"rel":"event-1"}]}}'
|
62
64
|
http_version: '1.1'
|
63
65
|
adapter_metadata:
|
64
|
-
effective_url: http://localhost:3000/events/search?id=1&hmac_client_id=classic&hmac_nonce=
|
65
|
-
recorded_at: Wed,
|
66
|
+
effective_url: http://localhost:3000/events/search?id=1&hmac_client_id=classic&hmac_nonce=df984ea0-7ffd-4ec3-99af-2861a925f900&hmac_timestamp=1464801842
|
67
|
+
recorded_at: Wed, 01 Jun 2016 17:24:02 GMT
|
66
68
|
- request:
|
67
69
|
method: get
|
68
|
-
uri: http://localhost:3000/assignments/search?event_id=1&hmac_client_id=classic&hmac_nonce=
|
70
|
+
uri: http://localhost:3000/assignments/search?event_id=1&hmac_client_id=classic&hmac_nonce=71abe6cc-fbad-456c-b138-d9f99d422570&hmac_timestamp=1464801842
|
69
71
|
body:
|
70
72
|
encoding: US-ASCII
|
71
73
|
string: ''
|
@@ -73,7 +75,7 @@ http_interactions:
|
|
73
75
|
User-Agent:
|
74
76
|
- Faraday v0.9.2
|
75
77
|
X-Teamsnap-Hmac:
|
76
|
-
-
|
78
|
+
- bce84277b3654d8985fc75a79f4bea81833ff3eefbee8a23969a7ae02de4c726
|
77
79
|
response:
|
78
80
|
status:
|
79
81
|
code: 200
|
@@ -86,26 +88,26 @@ http_interactions:
|
|
86
88
|
X-Content-Type-Options:
|
87
89
|
- nosniff
|
88
90
|
ETag:
|
89
|
-
- '"
|
91
|
+
- '"7f9d69b2319ca5668a4e3939a1d1f447"'
|
90
92
|
Cache-Control:
|
91
93
|
- max-age=0, private, must-revalidate
|
92
94
|
X-Request-Id:
|
93
|
-
-
|
95
|
+
- aa1c6c40-d36c-4b37-ad1e-cc05646ad31d
|
94
96
|
X-Runtime:
|
95
|
-
- '0.
|
97
|
+
- '0.052566'
|
96
98
|
Connection:
|
97
99
|
- keep-alive
|
98
100
|
Server:
|
99
101
|
- thin
|
100
102
|
body:
|
101
103
|
encoding: UTF-8
|
102
|
-
string: '{"collection":{"version":"3.
|
104
|
+
string: '{"collection":{"version":"3.276.0","href":"http://localhost:3000/assignments","rel":"assignments","template":{"data":[{"name":"description","value":null},{"name":"event_id","value":null},{"name":"member_id","value":null},{"name":"type","value":"assignment"}]},"links":[{"rel":"event","href":"http://localhost:3000/events"},{"rel":"member","href":"http://localhost:3000/members"},{"rel":"team","href":"http://localhost:3000/teams"},{"rel":"root","href":"http://localhost:3000/"},{"rel":"self","href":"http://localhost:3000/assignments/search?event_id=1"}],"queries":[{"rel":"search","href":"http://localhost:3000/assignments/search","data":[{"name":"team_id","value":null},{"name":"event_id","value":null},{"name":"member_id","value":null},{"name":"started_before","value":null},{"name":"started_after","value":null},{"name":"id","value":null},{"name":"page_size","value":null,"prompt":"The
|
103
105
|
number of items to return for each page. Sending this parameter with the query
|
104
106
|
will enable paging for the returned collection."},{"name":"page_number","value":null,"prompt":"The
|
105
107
|
number of the page to be returned. This requires that paging be turned on
|
106
108
|
by also providing the page_size parameter."}]}]}}'
|
107
109
|
http_version: '1.1'
|
108
110
|
adapter_metadata:
|
109
|
-
effective_url: http://localhost:3000/assignments/search?event_id=1&hmac_client_id=classic&hmac_nonce=
|
110
|
-
recorded_at: Wed,
|
111
|
+
effective_url: http://localhost:3000/assignments/search?event_id=1&hmac_client_id=classic&hmac_nonce=71abe6cc-fbad-456c-b138-d9f99d422570&hmac_timestamp=1464801842
|
112
|
+
recorded_at: Wed, 01 Jun 2016 17:24:02 GMT
|
111
113
|
recorded_with: VCR 2.9.3
|
@@ -2,7 +2,7 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: get
|
5
|
-
uri: http://localhost:3000/events/search?id=1&hmac_client_id=classic&hmac_nonce=
|
5
|
+
uri: http://localhost:3000/events/search?id=1&hmac_client_id=classic&hmac_nonce=95df849d-9351-4885-9079-01563f68ef6e&hmac_timestamp=1464801842
|
6
6
|
body:
|
7
7
|
encoding: US-ASCII
|
8
8
|
string: ''
|
@@ -10,7 +10,7 @@ http_interactions:
|
|
10
10
|
User-Agent:
|
11
11
|
- Faraday v0.9.2
|
12
12
|
X-Teamsnap-Hmac:
|
13
|
-
-
|
13
|
+
- e30d92a5fa4f45decd0bcccec345e896e9dc3e6f1b077838d12e9a7b081bfbe0
|
14
14
|
response:
|
15
15
|
status:
|
16
16
|
code: 200
|
@@ -19,24 +19,24 @@ http_interactions:
|
|
19
19
|
Content-Type:
|
20
20
|
- application/vnd.collection+json
|
21
21
|
Content-Length:
|
22
|
-
- '
|
22
|
+
- '7979'
|
23
23
|
X-Content-Type-Options:
|
24
24
|
- nosniff
|
25
25
|
ETag:
|
26
|
-
- '"
|
26
|
+
- '"45f87573cadf9c70913ffc9640442bd2"'
|
27
27
|
Cache-Control:
|
28
28
|
- max-age=0, private, must-revalidate
|
29
29
|
X-Request-Id:
|
30
|
-
-
|
30
|
+
- 404a602c-5067-409c-8371-d1a08fdf83fe
|
31
31
|
X-Runtime:
|
32
|
-
- '0.
|
32
|
+
- '0.075012'
|
33
33
|
Connection:
|
34
34
|
- keep-alive
|
35
35
|
Server:
|
36
36
|
- thin
|
37
37
|
body:
|
38
38
|
encoding: UTF-8
|
39
|
-
string: '{"collection":{"version":"3.
|
39
|
+
string: '{"collection":{"version":"3.276.0","href":"http://localhost:3000/events","rel":"events","template":{"data":[{"name":"type","value":"event"},{"name":"additional_location_details","value":null},{"name":"browser_time_zone","value":null},{"name":"division_location_id","value":null},{"name":"doesnt_count_towards_record","value":null},{"name":"duration_in_minutes","value":null},{"name":"game_type_code","value":null},{"name":"icon_color","value":null},{"name":"is_canceled","value":null},{"name":"is_game","value":null},{"name":"is_overtime","value":null},{"name":"is_shootout","value":null},{"name":"is_tbd","value":null},{"name":"label","value":null},{"name":"location_id","value":null},{"name":"minutes_to_arrive_early","value":null},{"name":"name","value":null},{"name":"notes","value":null},{"name":"notify_opponent","value":null},{"name":"notify_opponent_contacts_email","value":null},{"name":"notify_opponent_contacts_name","value":null},{"name":"notify_opponent_notes","value":null},{"name":"notify_team","value":null},{"name":"notify_team_as_member_id","value":null},{"name":"opponent_id","value":null},{"name":"points_for_opponent","value":null},{"name":"points_for_team","value":null},{"name":"repeating_include","value":null,"prompt":"When
|
40
40
|
updating a repeating event, this is a required field. Values are: \"all\"
|
41
41
|
- updates all events in this series, \"future\" - updates this event and all
|
42
42
|
that occur after, \"none\" - only updates a single event."},{"name":"repeating_type_code","value":null,"prompt":"A
|
@@ -46,11 +46,13 @@ http_interactions:
|
|
46
46
|
date when the repeating event should end, this is inclusive so an event will
|
47
47
|
be created on this day if it falls before the next event specified by \"repeating_type_code\".
|
48
48
|
This attribute is required with \"repeating_type_code\" when creating a repeating
|
49
|
-
event."},{"name":"results","value":null},{"name":"results_url","value":null},{"name":"shootout_points_for_opponent","value":null},{"name":"shootout_points_for_team","value":null},{"name":"start_date","value":null},{"name":"team_id","value":null},{"name":"time_zone","value":null},{"name":"tracks_availability","value":null},{"name":"uniform","value":null}]},"links":[{"rel":"assignments","href":"http://localhost:3000/assignments"},{"rel":"availabilities","href":"http://localhost:3000/availabilities"},{"rel":"division_location","href":"http://localhost:3000/division_locations"},{"rel":"event_statistics","href":"http://localhost:3000/event_statistics"},{"rel":"location","href":"http://localhost:3000/locations"},{"rel":"opponent","href":"http://localhost:3000/opponents"},{"rel":"statistic_data","href":"http://localhost:3000/statistic_data"},{"rel":"team","href":"http://localhost:3000/teams"},{"rel":"root","href":"http://localhost:3000/"},{"rel":"self","href":"http://localhost:3000/events/search?id=1"}],"queries":[{"rel":"search","href":"http://localhost:3000/events/search","data":[{"name":"team_id","value":null},{"name":"location_id","value":null},{"name":"opponent_id","value":null},{"name":"started_after","value":null},{"name":"started_before","value":null},{"name":"id","value":null},{"name":"page_size","value":null,"prompt":"The
|
49
|
+
event."},{"name":"results","value":null},{"name":"results_url","value":null},{"name":"shootout_points_for_opponent","value":null},{"name":"shootout_points_for_team","value":null},{"name":"start_date","value":null},{"name":"team_id","value":null},{"name":"time_zone","value":null},{"name":"tracks_availability","value":null},{"name":"uniform","value":null}]},"links":[{"rel":"assignments","href":"http://localhost:3000/assignments"},{"rel":"availabilities","href":"http://localhost:3000/availabilities"},{"rel":"division_location","href":"http://localhost:3000/division_locations"},{"rel":"event_statistics","href":"http://localhost:3000/event_statistics"},{"rel":"location","href":"http://localhost:3000/locations"},{"rel":"opponent","href":"http://localhost:3000/opponents"},{"rel":"statistic_data","href":"http://localhost:3000/statistic_data"},{"rel":"team","href":"http://localhost:3000/teams"},{"rel":"root","href":"http://localhost:3000/"},{"rel":"self","href":"http://localhost:3000/events/search?id=1"}],"queries":[{"rel":"search","sort":["start_date"],"href":"http://localhost:3000/events/search","data":[{"name":"team_id","value":null},{"name":"location_id","value":null},{"name":"opponent_id","value":null},{"name":"started_after","value":null},{"name":"started_before","value":null},{"name":"id","value":null},{"name":"page_size","value":null,"prompt":"The
|
50
50
|
number of items to return for each page. Sending this parameter with the query
|
51
51
|
will enable paging for the returned collection."},{"name":"page_number","value":null,"prompt":"The
|
52
52
|
number of the page to be returned. This requires that paging be turned on
|
53
|
-
by also providing the page_size parameter."}
|
53
|
+
by also providing the page_size parameter."},{"name":"sort_start_date","value":null,"prompt":"Sort
|
54
|
+
the returned dataset based on the start_date field, valid values are ''asc''
|
55
|
+
or ''desc''."}]},{"rel":"search_games","href":"http://localhost:3000/events/search_games","data":[{"name":"team_id","value":null}]},{"rel":"overview","href":"http://localhost:3000/events/overview","data":[{"name":"team_id","value":null}]}],"commands":[{"rel":"send_availability_reminders","href":"http://localhost:3000/events/send_availability_reminders","prompt":"members_to_notify
|
54
56
|
= [member_id, member_id]","data":[{"name":"id","value":null},{"name":"members_to_notify","value":null},{"name":"notify_team_as_member_id","value":null}]},{"rel":"update_final_score","href":"http://localhost:3000/events/update_final_score","prompt":"Update
|
55
57
|
the final score for an event","data":[{"name":"id","value":null},{"name":"points_for_team","value":null},{"name":"points_for_opponent","value":null},{"name":"shootout_points_for_team","value":null},{"name":"shootout_points_for_opponent","value":null},{"name":"is_overtime","value":null},{"name":"is_shootout","value":null},{"name":"results","value":null},{"name":"results_url","value":null}]},{"rel":"bulk_create","href":"http://localhost:3000/events/bulk_create","prompt":"event_ids
|
56
58
|
= [event_id, event_id]","data":[{"name":"templates","value":null},{"name":"team_id","value":null},{"name":"notify_team_as_member_id","value":null},{"name":"notify_team","value":null}]}],"items":[{"href":"http://localhost:3000/events/1","data":[{"name":"id","value":1},{"name":"type","value":"event"},{"name":"additional_location_details","value":"Court
|
@@ -58,14 +60,14 @@ http_interactions:
|
|
58
60
|
Specified"},{"name":"game_type_code","value":null},{"name":"icon_color","value":"blue"},{"name":"is_canceled","value":false},{"name":"is_game","value":false},{"name":"is_overtime","value":false},{"name":"is_shootout","value":false},{"name":"is_tbd","value":false},{"name":"label","value":null},{"name":"location_id","value":1},{"name":"minutes_to_arrive_early","value":null},{"name":"name","value":"March
|
59
61
|
Madness Game 1"},{"name":"notes","value":null},{"name":"opponent_id","value":1},{"name":"points_for_opponent","value":null},{"name":"points_for_team","value":null},{"name":"repeating_type","value":null},{"name":"repeating_type_code","value":null},{"name":"repeating_uuid","value":null},{"name":"results","value":null},{"name":"results_url","value":null},{"name":"shootout_points_for_opponent","value":null},{"name":"shootout_points_for_team","value":null},{"name":"start_date","value":"2015-01-01T00:00:00Z","type":"DateTime"},{"name":"team_id","value":1},{"name":"time_zone","value":"Mountain
|
60
62
|
Time (US & Canada)"},{"name":"time_zone_description","value":"Mountain Time
|
61
|
-
(US & Canada)"},{"name":"time_zone_iana_name","value":"America/Denver"},{"name":"time_zone_offset","value":"-07:00"},{"name":"source_time_zone_iana_name","value":"America/Denver"},{"name":"tracks_availability","value":true},{"name":"uniform","value":null},{"name":"is_league_controlled","value":false},{"name":"created_at","value":"2016-
|
63
|
+
(US & Canada)"},{"name":"time_zone_iana_name","value":"America/Denver"},{"name":"time_zone_offset","value":"-07:00"},{"name":"source_time_zone_iana_name","value":"America/Denver"},{"name":"tracks_availability","value":true},{"name":"uniform","value":null},{"name":"is_league_controlled","value":false},{"name":"created_at","value":"2016-06-01T16:41:14Z","type":"DateTime"},{"name":"updated_at","value":"2016-06-01T16:41:15Z","type":"DateTime"}],"links":[{"rel":"assignments","href":"http://localhost:3000/assignments/search?event_id=1"},{"rel":"availabilities","href":"http://localhost:3000/availabilities/search?event_id=1"},{"rel":"calendar_single_event","href":"http://86ed2e8eefaaee16c4b7-16391cffaf9272bff70e93998d553c16.r2.cf1.rackcdn.com/team_schedule/event/1.ics"},{"rel":"division_location","href":"http://localhost:3000/division_locations/"},{"rel":"event_statistics","href":"http://localhost:3000/event_statistics/search?event_id=1"},{"rel":"location","href":"http://localhost:3000/locations/1"},{"rel":"opponent","href":"http://localhost:3000/opponents/1"},{"rel":"statistic_data","href":"http://localhost:3000/statistic_data/search?event_id=1"},{"rel":"team","href":"http://localhost:3000/teams/1"}],"rel":"event-1"}]}}'
|
62
64
|
http_version: '1.1'
|
63
65
|
adapter_metadata:
|
64
|
-
effective_url: http://localhost:3000/events/search?id=1&hmac_client_id=classic&hmac_nonce=
|
65
|
-
recorded_at: Wed,
|
66
|
+
effective_url: http://localhost:3000/events/search?id=1&hmac_client_id=classic&hmac_nonce=95df849d-9351-4885-9079-01563f68ef6e&hmac_timestamp=1464801842
|
67
|
+
recorded_at: Wed, 01 Jun 2016 17:24:02 GMT
|
66
68
|
- request:
|
67
69
|
method: get
|
68
|
-
uri: http://localhost:3000/division_locations/?hmac_client_id=classic&hmac_nonce=
|
70
|
+
uri: http://localhost:3000/division_locations/?hmac_client_id=classic&hmac_nonce=627c6848-6710-4576-bb41-b2f0e1de7387&hmac_timestamp=1464801842
|
69
71
|
body:
|
70
72
|
encoding: US-ASCII
|
71
73
|
string: ''
|
@@ -73,7 +75,7 @@ http_interactions:
|
|
73
75
|
User-Agent:
|
74
76
|
- Faraday v0.9.2
|
75
77
|
X-Teamsnap-Hmac:
|
76
|
-
-
|
78
|
+
- 37c73ab7c206b1e5e23223f111d995239a2a6a4072e63bd9386fdc84108407b7
|
77
79
|
response:
|
78
80
|
status:
|
79
81
|
code: 200
|
@@ -82,30 +84,31 @@ http_interactions:
|
|
82
84
|
Content-Type:
|
83
85
|
- application/vnd.collection+json
|
84
86
|
Content-Length:
|
85
|
-
- '
|
87
|
+
- '1396'
|
86
88
|
X-Content-Type-Options:
|
87
89
|
- nosniff
|
88
90
|
ETag:
|
89
|
-
- '"
|
91
|
+
- '"eb76a9188f60fb2a72fe5c084f8a62bd"'
|
90
92
|
Cache-Control:
|
91
93
|
- max-age=0, private, must-revalidate
|
92
94
|
X-Request-Id:
|
93
|
-
-
|
95
|
+
- 2fee233e-e20e-4d46-9d1a-34c3d510197c
|
94
96
|
X-Runtime:
|
95
|
-
- '0.
|
97
|
+
- '0.050008'
|
96
98
|
Connection:
|
97
99
|
- keep-alive
|
98
100
|
Server:
|
99
101
|
- thin
|
100
102
|
body:
|
101
103
|
encoding: UTF-8
|
102
|
-
string: '{"collection":{"version":"3.
|
104
|
+
string: '{"collection":{"version":"3.276.0","href":"http://localhost:3000/division_locations","rel":"division_locations","template":{"data":[{"name":"name","value":null},{"name":"url","value":null},{"name":"phone","value":null},{"name":"notes","value":null},{"name":"address","value":null},{"name":"division_id","value":null},{"name":"type","value":"division_location"}]},"links":[{"rel":"events","href":"http://localhost:3000/events"},{"rel":"root","href":"http://localhost:3000/"},{"rel":"self","href":"http://localhost:3000/division_locations"}],"queries":[{"rel":"search","href":"http://localhost:3000/division_locations/search","data":[{"name":"division_id","value":null},{"name":"team_id","value":null},{"name":"id","value":null},{"name":"page_size","value":null,"prompt":"The
|
103
105
|
number of items to return for each page. Sending this parameter with the query
|
104
106
|
will enable paging for the returned collection."},{"name":"page_number","value":null,"prompt":"The
|
105
107
|
number of the page to be returned. This requires that paging be turned on
|
106
|
-
by also providing the page_size parameter."}]}]
|
108
|
+
by also providing the page_size parameter."}]}],"commands":[{"rel":"import_from_division","href":"http://localhost:3000/division_locations/import_from_division","prompt":"Copy
|
109
|
+
the specified ''source_division_location_ids'' to the specified ''destination_division_id''.","data":[{"name":"destination_division_id","value":null},{"name":"source_location_ids","value":null}]}]}}'
|
107
110
|
http_version: '1.1'
|
108
111
|
adapter_metadata:
|
109
|
-
effective_url: http://localhost:3000/division_locations/?hmac_client_id=classic&hmac_nonce=
|
110
|
-
recorded_at: Wed,
|
112
|
+
effective_url: http://localhost:3000/division_locations/?hmac_client_id=classic&hmac_nonce=627c6848-6710-4576-bb41-b2f0e1de7387&hmac_timestamp=1464801842
|
113
|
+
recorded_at: Wed, 01 Jun 2016 17:24:02 GMT
|
111
114
|
recorded_with: VCR 2.9.3
|