teamsnap_rb 2.4.0 → 2.4.1
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/.github/stale.yml +16 -0
- data/.gitignore +1 -1
- data/.travis.yml +5 -6
- data/CHANGELOG.md +7 -0
- data/Gemfile +1 -2
- data/README.md +0 -1
- data/Rakefile +0 -5
- data/lib/teamsnap.rb +5 -1
- data/lib/teamsnap/api.rb +2 -1
- data/lib/teamsnap/auth_middleware.rb +2 -0
- data/lib/teamsnap/response.rb +5 -1
- data/lib/teamsnap/version.rb +1 -1
- data/spec/cassettes/apiv3-init.yml +850 -236
- data/spec/cassettes/teamsnap__api/_run/when_creating/when_successful/can_parse_the_json.yml +73 -0
- data/spec/cassettes/teamsnap__api/_run/when_deleting/when_successful/handles_empty_response_body.yml +38 -0
- data/spec/cassettes/teamsnap__client/_api/Sends_the_proper_information_to_TeamSnap_Api_run.yml +87 -0
- data/spec/cassettes/teamsnap__client/when_calling_via_s_on_the_client/does_not_raise_an_error_when_the_HTTP_actions_are_called.yml +24 -17
- data/spec/cassettes/teamsnap__client/when_calling_via_s_on_the_client/passes_them_to_the_faraday_client_using_method_missing.yml +24 -17
- data/spec/cassettes/teamsnap__client/when_specifying_a_headers_flag/correctly_sets_the_ghost_header_flag.yml +846 -232
- data/spec/cassettes/teamsnap__client/when_specifying_a_headers_flag/won_t_set_feature_headers_without_the_header_variable_present.yml +847 -232
- data/spec/cassettes/teamsnap__collection/_items/returns_all_items_for_a_base_collection.yml +68 -63
- data/spec/cassettes/teamsnap__collection/adds_find_if_search_is_available.yml +44 -27
- data/spec/cassettes/teamsnap__collection/adds_href_to_items.yml +132 -33
- data/spec/cassettes/teamsnap__collection/can_follow_plural_links.yml +421 -136
- data/spec/cassettes/teamsnap__collection/can_follow_singular_links.yml +175 -59
- data/spec/cassettes/teamsnap__collection/can_handle_links_with_no_data.yml +155 -53
- data/spec/cassettes/teamsnap__collection/handles_executing_an_action_via_commands.yml +132 -33
- data/spec/cassettes/teamsnap__collection/handles_executing_an_action_via_commands_with_multiple_params.yml +75 -35
- data/spec/cassettes/teamsnap__collection/handles_fetching_data_via_queries.yml +44 -27
- data/spec/cassettes/teamsnap__collection/handles_queries_with_no_data.yml +36 -22
- data/spec/cassettes/teamsnap__collection/raises_an_exception_if_find_returns_nothing.yml +36 -22
- 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 +63 -51
- 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 +57 -47
- 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 +49 -42
- data/spec/cassettes/teamsnap__collection/supports_relations_with_expected_behaviors/when_a_singular_relation_is_called/responds_with_the_object_if_it_exists.yml +77 -53
- data/spec/cassettes/teamsnap__structure/_create_collection_class/registers_new_classes_via_introspection_of_the_root_collection.yml +36 -22
- data/spec/cassettes/teamsnap__structure/_create_collection_class/sets_the_href_attribute_on_the_new_class.yml +36 -22
- data/spec/cassettes/teamsnap__structure/_init/has_all_classes_in_schema_loaded_except_for_exceptions_list_endpoints.yml +24 -17
- data/spec/cassettes/teamsnap_rb/_bulk_load/can_handle_an_empty_bulk_load.yml +16 -16
- data/spec/cassettes/teamsnap_rb/_bulk_load/can_handle_an_error_with_bulk_load_without_a_team_id.yml +14 -14
- data/spec/cassettes/teamsnap_rb/_bulk_load/can_use_bulk_load.yml +291 -103
- data/spec/cassettes/teamsnap_rb/_client_send/when_sent_a_known_via_/accepts_test_file_arg_when_creating_HMAC.yml +82 -2653
- data/spec/cassettes/teamsnap_rb/_client_send/when_sent_a_known_via_/calls_DELETE_on_the_given_client.yml +67 -2639
- data/spec/cassettes/teamsnap_rb/_client_send/when_sent_a_known_via_/calls_GET_on_the_given_client.yml +24 -17
- data/spec/cassettes/teamsnap_rb/_client_send/when_sent_a_known_via_/calls_PATCH_on_the_given_client.yml +67 -2639
- data/spec/cassettes/teamsnap_rb/_client_send/when_sent_a_known_via_/calls_POST_on_the_given_client.yml +67 -2639
- data/spec/cassettes/teamsnap_rb/_run/processes_the_response.yml +93 -65
- data/spec/cassettes/uploading_files/uploads_a_file.yml +130 -31
- data/spec/cassettes/uploading_files/uploads_a_tempfile.yml +130 -31
- data/spec/features/uploading_files_spec.rb +2 -2
- data/spec/spec_helper.rb +0 -13
- data/spec/teamsnap/apiv_spec.rb +49 -1
- data/spec/teamsnap/client_spec.rb +4 -4
- data/spec/teamsnap/collection_spec.rb +5 -5
- data/spec/teamsnap/item_spec.rb +1 -1
- data/spec/teamsnap/structure_spec.rb +2 -2
- data/spec/teamsnap_spec.rb +4 -4
- data/teamsnap_rb.gemspec +5 -5
- metadata +27 -14
@@ -2,15 +2,17 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: get
|
5
|
-
uri: http://localhost:3000/teams/search?id=0&hmac_client_id=
|
5
|
+
uri: http://localhost:3000/teams/search?id=0&hmac_client_id=classic_service&hmac_nonce=537cada8-7c61-4b1d-afa0-b025c40171dd&hmac_timestamp=1590177501
|
6
6
|
body:
|
7
7
|
encoding: US-ASCII
|
8
8
|
string: ''
|
9
9
|
headers:
|
10
10
|
User-Agent:
|
11
|
-
- Faraday v0.
|
11
|
+
- Faraday v0.17.3
|
12
12
|
X-Teamsnap-Hmac:
|
13
|
-
-
|
13
|
+
- dcad8a980e6ee400ff70378cf99b3aabca33637865a39e976fb7eae2e83a4a22
|
14
|
+
Expect:
|
15
|
+
- ''
|
14
16
|
response:
|
15
17
|
status:
|
16
18
|
code: 200
|
@@ -18,27 +20,25 @@ http_interactions:
|
|
18
20
|
headers:
|
19
21
|
Content-Type:
|
20
22
|
- application/vnd.collection+json
|
21
|
-
Content-Length:
|
22
|
-
- '8756'
|
23
23
|
X-Content-Type-Options:
|
24
24
|
- nosniff
|
25
25
|
ETag:
|
26
|
-
-
|
26
|
+
- W/"e7e1395a05f95ce858e47581fce944dc"
|
27
27
|
Cache-Control:
|
28
28
|
- max-age=0, private, must-revalidate
|
29
29
|
X-Request-Id:
|
30
|
-
-
|
30
|
+
- bda8060f-e970-4091-bb09-4255ed324bb3
|
31
31
|
X-Runtime:
|
32
|
-
- '0.
|
33
|
-
|
34
|
-
-
|
35
|
-
|
36
|
-
-
|
32
|
+
- '0.583555'
|
33
|
+
Vary:
|
34
|
+
- Origin
|
35
|
+
Content-Length:
|
36
|
+
- '11417'
|
37
37
|
body:
|
38
38
|
encoding: UTF-8
|
39
|
-
string: '{"collection":{"version":"3.
|
39
|
+
string: '{"collection":{"version":"3.854.0","href":"http://localhost:3000/teams","rel":"teams","template":{"data":[{"name":"name","value":null},{"name":"location_country","value":null},{"name":"location_postal_code","value":null},{"name":"time_zone","value":null,"prompt":"The
|
40
40
|
time_zone parameter is required when creating a team, but for changing a team''s
|
41
|
-
time_zone, use the update_time_zone command"},{"name":"sport_id","value":null},{"name":"division_id","value":null},{"name":"division_name","value":null},{"name":"season_name","value":null},{"name":"league_name","value":null},{"name":"league_url","value":null},{"name":"owner_first_name","value":null},{"name":"owner_last_name","value":null},{"name":"owner_email","value":null},{"name":"is_ownership_pending","value":null},{"name":"type","value":"team"}]},"links":[{"rel":"active_season_team","href":"http://localhost:3000/teams"},{"rel":"assignments","href":"http://localhost:3000/assignments"},{"rel":"availabilities","href":"http://localhost:3000/availabilities"},{"rel":"broadcast_email_attachments","href":"http://localhost:3000/broadcast_email_attachments"},{"rel":"broadcast_emails","href":"http://localhost:3000/broadcast_emails"},{"rel":"broadcast_alerts","href":"http://localhost:3000/broadcast_alerts"},{"rel":"commissioners","href":"http://localhost:3000/members"},{"rel":"contact_email_addresses","href":"http://localhost:3000/contact_email_addresses"},{"rel":"contact_phone_numbers","href":"http://localhost:3000/contact_phone_numbers"},{"rel":"contacts","href":"http://localhost:3000/contacts"},{"rel":"custom_data","href":"http://localhost:3000/custom_data"},{"rel":"custom_fields","href":"http://localhost:3000/custom_fields"},{"rel":"division_contact_email_addresses","href":"http://localhost:3000/division_contact_email_addresses"},{"rel":"division_contact_phone_numbers","href":"http://localhost:3000/division_contact_phone_numbers"},{"rel":"division_contacts","href":"http://localhost:3000/division_contacts"},{"rel":"division_locations","href":"http://localhost:3000/division_locations"},{"rel":"division_member_email_addresses","href":"http://localhost:3000/division_member_email_addresses"},{"rel":"division_member_phone_numbers","href":"http://localhost:3000/division_member_phone_numbers"},{"rel":"division_members","href":"http://localhost:3000/division_members"},{"rel":"division_members_preferences","href":"http://localhost:3000/division_members_preferences"},{"rel":"division_team_standings","href":"http://localhost:3000/division_team_standings"},{"rel":"event_statistics","href":"http://localhost:3000/event_statistics"},{"rel":"events","href":"http://localhost:3000/events"},{"rel":"events_overview","href":"http://localhost:3000/events/overview"},{"rel":"forum_posts","href":"http://localhost:3000/forum_posts"},{"rel":"forum_subscriptions","href":"http://localhost:3000/forum_subscriptions"},{"rel":"forum_topics","href":"http://localhost:3000/forum_topics"},{"rel":"league_custom_data","href":"http://localhost:3000/league_custom_data"},{"rel":"league_custom_fields","href":"http://localhost:3000/league_custom_fields"},{"rel":"league_registrant_documents","href":"http://localhost:3000/league_registrant_documents"},{"rel":"locations","href":"http://localhost:3000/locations"},{"rel":"managers","href":"http://localhost:3000/members"},{"rel":"member_balances","href":"http://localhost:3000/member_balances"},{"rel":"member_email_addresses","href":"http://localhost:3000/member_email_addresses"},{"rel":"member_files","href":"http://localhost:3000/member_files"},{"rel":"member_links","href":"http://localhost:3000/member_links"},{"rel":"member_payments","href":"http://localhost:3000/member_payments"},{"rel":"member_phone_numbers","href":"http://localhost:3000/member_phone_numbers"},{"rel":"member_photos","href":"http://localhost:3000/member_photos"},{"rel":"member_statistics","href":"http://localhost:3000/member_statistics"},{"rel":"members","href":"http://localhost:3000/members"},{"rel":"members_preferences","href":"http://localhost:3000/members_preferences"},{"rel":"message_data","href":"http://localhost:3000/message_data"},{"rel":"messages","href":"http://localhost:3000/messages"},{"rel":"opponents","href":"http://localhost:3000/opponents"},{"rel":"opponents_results","href":"http://localhost:3000/opponents_results"},{"rel":"owner","href":"http://localhost:3000/members"},{"rel":"payment_notes","href":"http://localhost:3000/payment_notes"},{"rel":"paypal_currency","href":"http://localhost:3000/paypal_currencies"},{"rel":"plan","href":"http://localhost:3000/plans"},{"rel":"sponsors","href":"http://localhost:3000/sponsors"},{"rel":"sport","href":"http://localhost:3000/sports"},{"rel":"statistic","href":"http://localhost:3000/statistics"},{"rel":"statistic_aggregates","href":"http://localhost:3000/statistic_aggregates"},{"rel":"statistic_data","href":"http://localhost:3000/statistic_data"},{"rel":"statistic_group","href":"http://localhost:3000/statistic_groups"},{"rel":"team_fees","href":"http://localhost:3000/team_fees"},{"rel":"team_media","href":"http://localhost:3000/team_media"},{"rel":"team_medium_comments","href":"http://localhost:3000/team_medium_comments"},{"rel":"team_media_groups","href":"http://localhost:3000/team_media_groups"},{"rel":"team_paypal_preferences","href":"http://localhost:3000/teams_paypal_preferences"},{"rel":"team_photos","href":"http://localhost:3000/team_photos"},{"rel":"team_preferences","href":"http://localhost:3000/teams_preferences"},{"rel":"team_public_site","href":"http://localhost:3000/team_public_sites"},{"rel":"team_results","href":"http://localhost:3000/teams_results"},{"rel":"team_statistics","href":"http://localhost:3000/team_statistics"},{"rel":"tracked_item_statuses","href":"http://localhost:3000/tracked_item_statuses"},{"rel":"tracked_items","href":"http://localhost:3000/tracked_items"},{"rel":"root","href":"http://localhost:3000/"},{"rel":"self","href":"http://localhost:3000/teams/search?id=0"}],"queries":[{"rel":"search","href":"http://localhost:3000/teams/search","sort":["name"],"data":[{"name":"id","value":null},{"name":"team_id","value":null},{"name":"user_id","value":null},{"name":"division_id","value":null},{"name":"page_size","value":null,"prompt":"The
|
41
|
+
time_zone, use the update_time_zone command"},{"name":"sport_id","value":null},{"name":"division_id","value":null},{"name":"division_name","value":null},{"name":"season_name","value":null},{"name":"league_name","value":null},{"name":"league_url","value":null},{"name":"owner_first_name","value":null},{"name":"owner_last_name","value":null},{"name":"owner_email","value":null},{"name":"is_ownership_pending","value":null},{"name":"type","value":"team"}]},"links":[{"rel":"advertisements","href":"http://localhost:3000/advertisements"},{"rel":"active_season_team","href":"http://localhost:3000/teams"},{"rel":"assignments","href":"http://localhost:3000/assignments"},{"rel":"availabilities","href":"http://localhost:3000/availabilities"},{"rel":"batch_invoices","href":"http://localhost:3000/batch_invoices"},{"rel":"batch_invoices_aggregates","href":"http://localhost:3000/batch_invoices_aggregates"},{"rel":"broadcast_email_attachments","href":"http://localhost:3000/broadcast_email_attachments"},{"rel":"broadcast_emails","href":"http://localhost:3000/broadcast_emails"},{"rel":"broadcast_alerts","href":"http://localhost:3000/broadcast_alerts"},{"rel":"commissioners","href":"http://localhost:3000/members"},{"rel":"contact_email_addresses","href":"http://localhost:3000/contact_email_addresses"},{"rel":"contact_phone_numbers","href":"http://localhost:3000/contact_phone_numbers"},{"rel":"contacts","href":"http://localhost:3000/contacts"},{"rel":"custom_data","href":"http://localhost:3000/custom_data"},{"rel":"custom_fields","href":"http://localhost:3000/custom_fields"},{"rel":"division_contact_email_addresses","href":"http://localhost:3000/division_contact_email_addresses"},{"rel":"division_contact_phone_numbers","href":"http://localhost:3000/division_contact_phone_numbers"},{"rel":"division_contacts","href":"http://localhost:3000/division_contacts"},{"rel":"division_locations","href":"http://localhost:3000/division_locations"},{"rel":"division_member_email_addresses","href":"http://localhost:3000/division_member_email_addresses"},{"rel":"division_member_phone_numbers","href":"http://localhost:3000/division_member_phone_numbers"},{"rel":"division_members","href":"http://localhost:3000/division_members"},{"rel":"division_members_preferences","href":"http://localhost:3000/division_members_preferences"},{"rel":"division_team_standings","href":"http://localhost:3000/division_team_standings"},{"rel":"event_statistics","href":"http://localhost:3000/event_statistics"},{"rel":"events","href":"http://localhost:3000/events"},{"rel":"events_overview","href":"http://localhost:3000/events/overview"},{"rel":"forum_posts","href":"http://localhost:3000/forum_posts"},{"rel":"forum_subscriptions","href":"http://localhost:3000/forum_subscriptions"},{"rel":"forum_topics","href":"http://localhost:3000/forum_topics"},{"rel":"league_custom_data","href":"http://localhost:3000/league_custom_data"},{"rel":"league_custom_fields","href":"http://localhost:3000/league_custom_fields"},{"rel":"league_registrant_documents","href":"http://localhost:3000/league_registrant_documents"},{"rel":"locations","href":"http://localhost:3000/locations"},{"rel":"managers","href":"http://localhost:3000/members"},{"rel":"member_balances","href":"http://localhost:3000/member_balances"},{"rel":"member_email_addresses","href":"http://localhost:3000/member_email_addresses"},{"rel":"member_files","href":"http://localhost:3000/member_files"},{"rel":"member_links","href":"http://localhost:3000/member_links"},{"rel":"member_payments","href":"http://localhost:3000/member_payments"},{"rel":"member_phone_numbers","href":"http://localhost:3000/member_phone_numbers"},{"rel":"member_photos","href":"http://localhost:3000/member_photos"},{"rel":"member_statistics","href":"http://localhost:3000/member_statistics"},{"rel":"members","href":"http://localhost:3000/members"},{"rel":"members_preferences","href":"http://localhost:3000/members_preferences"},{"rel":"message_data","href":"http://localhost:3000/message_data"},{"rel":"messages","href":"http://localhost:3000/messages"},{"rel":"opponents","href":"http://localhost:3000/opponents"},{"rel":"opponents_results","href":"http://localhost:3000/opponents_results"},{"rel":"owner","href":"http://localhost:3000/members"},{"rel":"payment_notes","href":"http://localhost:3000/payment_notes"},{"rel":"paypal_currency","href":"http://localhost:3000/paypal_currencies"},{"rel":"plan","href":"http://localhost:3000/plans"},{"rel":"sponsors","href":"http://localhost:3000/sponsors"},{"rel":"sport","href":"http://localhost:3000/sports"},{"rel":"sport_positions","href":"http://localhost:3000/sport_positions"},{"rel":"statistic","href":"http://localhost:3000/statistics"},{"rel":"statistic_aggregates","href":"http://localhost:3000/statistic_aggregates"},{"rel":"statistic_data","href":"http://localhost:3000/statistic_data"},{"rel":"statistic_group","href":"http://localhost:3000/statistic_groups"},{"rel":"team_fees","href":"http://localhost:3000/team_fees"},{"rel":"team_media","href":"http://localhost:3000/team_media"},{"rel":"team_medium_comments","href":"http://localhost:3000/team_medium_comments"},{"rel":"team_media_groups","href":"http://localhost:3000/team_media_groups"},{"rel":"team_paypal_preferences","href":"http://localhost:3000/teams_paypal_preferences"},{"rel":"team_photos","href":"http://localhost:3000/team_photos"},{"rel":"team_preferences","href":"http://localhost:3000/teams_preferences"},{"rel":"team_public_site","href":"http://localhost:3000/team_public_sites"},{"rel":"team_results","href":"http://localhost:3000/teams_results"},{"rel":"team_statistics","href":"http://localhost:3000/team_statistics"},{"rel":"team_stores","href":"http://localhost:3000/team_stores"},{"rel":"tracked_item_statuses","href":"http://localhost:3000/tracked_item_statuses"},{"rel":"tracked_items","href":"http://localhost:3000/tracked_items"},{"rel":"root","href":"http://localhost:3000/"},{"rel":"self","href":"http://localhost:3000/teams/search?id=0"}],"queries":[{"rel":"search","href":"http://localhost:3000/teams/search","sort":["name"],"data":[{"name":"id","value":null},{"name":"team_id","value":null},{"name":"user_id","value":null},{"name":"division_id","value":null},{"name":"page_size","value":null,"prompt":"The
|
42
42
|
number of items to return for each page. Sending this parameter with the query
|
43
43
|
will enable paging for the returned collection."},{"name":"page_number","value":null,"prompt":"The
|
44
44
|
number of the page to be returned. This requires that paging be turned on
|
@@ -47,19 +47,33 @@ http_interactions:
|
|
47
47
|
''desc''."}]},{"rel":"available_for_statistic_import","href":"http://localhost:3000/teams/available_for_statistic_import","prompt":"Finds
|
48
48
|
all teams accessible to current user that have the provided sport_id and have
|
49
49
|
at least one statistic to import","data":[{"name":"sport_id","value":null}]},{"rel":"active_teams","href":"http://localhost:3000/teams/active","prompt":"Finds
|
50
|
-
all active teams for a given user. Excludes archived seasons and retired teams.","data":[{"name":"user_id","value":null}
|
50
|
+
all active teams for a given user. Excludes archived seasons and retired teams.","data":[{"name":"user_id","value":null},{"name":"division_id","value":null}]},{"rel":"division_search","href":"http://localhost:3000/teams/division_search","prompt":"Search
|
51
|
+
the teams on the division_id and its descendants or a commissioner''s user_id.","data":[{"name":"division_id","value":null},{"name":"user_id","value":null},{"name":"is_active","value":null},{"name":"is_commissioner","value":null},{"name":"page_size","value":null,"prompt":"The
|
52
|
+
number of items to return for each page. Sending this parameter with the query
|
53
|
+
will enable paging for the returned collection."},{"name":"page_number","value":null,"prompt":"The
|
54
|
+
number of the page to be returned. This requires that paging be turned on
|
55
|
+
by also providing the page_size parameter."}]}],"commands":[{"rel":"invite","href":"http://localhost:3000/teams/invite","prompt":"invite
|
51
56
|
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}]},{"rel":"update_time_zone","href":"http://localhost:3000/teams/update_time_zone","prompt":"Update
|
52
57
|
team''s time zone. This is currently the only method of updating a team''s
|
53
|
-
time zone.","data":[{"name":"team_id","value":null},{"name":"time_zone","value":null},{"name":"offset_team_times","value":null
|
58
|
+
time zone.","data":[{"name":"team_id","value":null},{"name":"time_zone","value":null},{"name":"offset_team_times","value":null,"deprecated":true,"prompt":"%{old}
|
59
|
+
is deprecated and will be removed in a future version, use %{new} instead."}]},{"rel":"reset_statistics","href":"http://localhost:3000/teams/reset_statistics","prompt":"Deletes
|
54
60
|
all data, categories and groups for a given team_id","data":[{"name":"team_id","value":null}]},{"rel":"invite_team_owners","href":"http://localhost:3000/teams/invite_team_owners","prompt":"Beta:
|
55
61
|
(This endpoint subject to change) Allow commissioners to send invitations
|
56
62
|
to all owners on active teams in the division.","data":[{"name":"id","value":null}]},{"rel":"change_owner","href":"http://localhost:3000/teams/change_owner","prompt":"Beta:
|
57
63
|
(This endpoint subject to change) Allow commissioners to change the owner
|
58
|
-
of a league team.","data":[{"name":"team_id","value":null},{"name":"member_id","value":null}]},{"rel":"
|
59
|
-
|
60
|
-
|
64
|
+
of a league team.","data":[{"name":"team_id","value":null},{"name":"member_id","value":null}]},{"rel":"toggle_team_visibility_on_dashboard","href":"http://localhost:3000/teams/toggle_team_visibility_on_dashboard","prompt":"Toggles
|
65
|
+
the visibility of teams on the list of active teams, per user. Requires a
|
66
|
+
single id or a comma separated list of ''team_id''s","data":[{"name":"team_ids","value":null}]},{"rel":"send_upsell_message_from_owner","href":"http://localhost:3000/teams/send_upsell_message_from_owner","prompt":"Send
|
67
|
+
an upsell email to the team owner.","data":[{"name":"team_id","value":null},{"name":"feature","value":null}]},{"rel":"send_upsell_message_from_contact","href":"http://localhost:3000/teams/send_upsell_message_from_contact","prompt":"Send
|
68
|
+
an upsell email to the team owner from a contact.","data":[{"name":"team_id","value":null},{"name":"contact_id","value":null},{"name":"feature","value":null}]},{"rel":"update_team_plan","href":"http://localhost:3000/teams/update_team_plan","prompt":"Update
|
69
|
+
team''s plan. Requires a single id or a comma separated list of ''team_id''s
|
70
|
+
and a plan_id.","data":[{"name":"team_ids","value":null},{"name":"plan_id","value":null}]},{"rel":"apply_promotion","href":"http://localhost:3000/teams/apply_promotion","prompt":"Apply
|
71
|
+
a promotion to a team. Requires a single id or a comma separated list of ''team_id''s,
|
72
|
+
promotion_name, promotion_length and a plan_id.","data":[{"name":"team_ids","value":null},{"name":"promotion_name","value":null},{"name":"promotion_length","value":null},{"name":"plan_id","value":null}]},{"rel":"enable_fundraising","href":"http://localhost:3000/teams/enable_fundraising","prompt":"Enable
|
73
|
+
fundraising for a team. Requires a single team_id and goal_cents as the fundraising
|
74
|
+
goal.","data":[{"name":"team_id","value":null},{"name":"goal_cents","value":null}]}]}}'
|
61
75
|
http_version: '1.1'
|
62
76
|
adapter_metadata:
|
63
|
-
effective_url: http://localhost:3000/teams/search?id=0&hmac_client_id=
|
64
|
-
recorded_at:
|
65
|
-
recorded_with: VCR
|
77
|
+
effective_url: http://localhost:3000/teams/search?id=0&hmac_client_id=classic_service&hmac_nonce=537cada8-7c61-4b1d-afa0-b025c40171dd&hmac_timestamp=1590177501
|
78
|
+
recorded_at: Fri, 22 May 2020 19:58:22 GMT
|
79
|
+
recorded_with: VCR 5.1.0
|
@@ -2,15 +2,17 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: get
|
5
|
-
uri: http://localhost:3000/teams/search?id=0&hmac_client_id=
|
5
|
+
uri: http://localhost:3000/teams/search?id=0&hmac_client_id=classic_service&hmac_nonce=7fa237b0-85ca-4cfa-b81c-8e4339216063&hmac_timestamp=1590177502
|
6
6
|
body:
|
7
7
|
encoding: US-ASCII
|
8
8
|
string: ''
|
9
9
|
headers:
|
10
10
|
User-Agent:
|
11
|
-
- Faraday v0.
|
11
|
+
- Faraday v0.17.3
|
12
12
|
X-Teamsnap-Hmac:
|
13
|
-
-
|
13
|
+
- 623d4bedf72d0cefd59e08721609dc7dad106c5e4720e150bc652a7fca53a0a0
|
14
|
+
Expect:
|
15
|
+
- ''
|
14
16
|
response:
|
15
17
|
status:
|
16
18
|
code: 200
|
@@ -18,27 +20,25 @@ http_interactions:
|
|
18
20
|
headers:
|
19
21
|
Content-Type:
|
20
22
|
- application/vnd.collection+json
|
21
|
-
Content-Length:
|
22
|
-
- '8756'
|
23
23
|
X-Content-Type-Options:
|
24
24
|
- nosniff
|
25
25
|
ETag:
|
26
|
-
-
|
26
|
+
- W/"e7e1395a05f95ce858e47581fce944dc"
|
27
27
|
Cache-Control:
|
28
28
|
- max-age=0, private, must-revalidate
|
29
29
|
X-Request-Id:
|
30
|
-
-
|
30
|
+
- f67bbb89-3617-45cc-932c-6c6bb54cd48d
|
31
31
|
X-Runtime:
|
32
|
-
- '0.
|
33
|
-
|
34
|
-
-
|
35
|
-
|
36
|
-
-
|
32
|
+
- '0.717546'
|
33
|
+
Vary:
|
34
|
+
- Origin
|
35
|
+
Content-Length:
|
36
|
+
- '11417'
|
37
37
|
body:
|
38
38
|
encoding: UTF-8
|
39
|
-
string: '{"collection":{"version":"3.
|
39
|
+
string: '{"collection":{"version":"3.854.0","href":"http://localhost:3000/teams","rel":"teams","template":{"data":[{"name":"name","value":null},{"name":"location_country","value":null},{"name":"location_postal_code","value":null},{"name":"time_zone","value":null,"prompt":"The
|
40
40
|
time_zone parameter is required when creating a team, but for changing a team''s
|
41
|
-
time_zone, use the update_time_zone command"},{"name":"sport_id","value":null},{"name":"division_id","value":null},{"name":"division_name","value":null},{"name":"season_name","value":null},{"name":"league_name","value":null},{"name":"league_url","value":null},{"name":"owner_first_name","value":null},{"name":"owner_last_name","value":null},{"name":"owner_email","value":null},{"name":"is_ownership_pending","value":null},{"name":"type","value":"team"}]},"links":[{"rel":"active_season_team","href":"http://localhost:3000/teams"},{"rel":"assignments","href":"http://localhost:3000/assignments"},{"rel":"availabilities","href":"http://localhost:3000/availabilities"},{"rel":"broadcast_email_attachments","href":"http://localhost:3000/broadcast_email_attachments"},{"rel":"broadcast_emails","href":"http://localhost:3000/broadcast_emails"},{"rel":"broadcast_alerts","href":"http://localhost:3000/broadcast_alerts"},{"rel":"commissioners","href":"http://localhost:3000/members"},{"rel":"contact_email_addresses","href":"http://localhost:3000/contact_email_addresses"},{"rel":"contact_phone_numbers","href":"http://localhost:3000/contact_phone_numbers"},{"rel":"contacts","href":"http://localhost:3000/contacts"},{"rel":"custom_data","href":"http://localhost:3000/custom_data"},{"rel":"custom_fields","href":"http://localhost:3000/custom_fields"},{"rel":"division_contact_email_addresses","href":"http://localhost:3000/division_contact_email_addresses"},{"rel":"division_contact_phone_numbers","href":"http://localhost:3000/division_contact_phone_numbers"},{"rel":"division_contacts","href":"http://localhost:3000/division_contacts"},{"rel":"division_locations","href":"http://localhost:3000/division_locations"},{"rel":"division_member_email_addresses","href":"http://localhost:3000/division_member_email_addresses"},{"rel":"division_member_phone_numbers","href":"http://localhost:3000/division_member_phone_numbers"},{"rel":"division_members","href":"http://localhost:3000/division_members"},{"rel":"division_members_preferences","href":"http://localhost:3000/division_members_preferences"},{"rel":"division_team_standings","href":"http://localhost:3000/division_team_standings"},{"rel":"event_statistics","href":"http://localhost:3000/event_statistics"},{"rel":"events","href":"http://localhost:3000/events"},{"rel":"events_overview","href":"http://localhost:3000/events/overview"},{"rel":"forum_posts","href":"http://localhost:3000/forum_posts"},{"rel":"forum_subscriptions","href":"http://localhost:3000/forum_subscriptions"},{"rel":"forum_topics","href":"http://localhost:3000/forum_topics"},{"rel":"league_custom_data","href":"http://localhost:3000/league_custom_data"},{"rel":"league_custom_fields","href":"http://localhost:3000/league_custom_fields"},{"rel":"league_registrant_documents","href":"http://localhost:3000/league_registrant_documents"},{"rel":"locations","href":"http://localhost:3000/locations"},{"rel":"managers","href":"http://localhost:3000/members"},{"rel":"member_balances","href":"http://localhost:3000/member_balances"},{"rel":"member_email_addresses","href":"http://localhost:3000/member_email_addresses"},{"rel":"member_files","href":"http://localhost:3000/member_files"},{"rel":"member_links","href":"http://localhost:3000/member_links"},{"rel":"member_payments","href":"http://localhost:3000/member_payments"},{"rel":"member_phone_numbers","href":"http://localhost:3000/member_phone_numbers"},{"rel":"member_photos","href":"http://localhost:3000/member_photos"},{"rel":"member_statistics","href":"http://localhost:3000/member_statistics"},{"rel":"members","href":"http://localhost:3000/members"},{"rel":"members_preferences","href":"http://localhost:3000/members_preferences"},{"rel":"message_data","href":"http://localhost:3000/message_data"},{"rel":"messages","href":"http://localhost:3000/messages"},{"rel":"opponents","href":"http://localhost:3000/opponents"},{"rel":"opponents_results","href":"http://localhost:3000/opponents_results"},{"rel":"owner","href":"http://localhost:3000/members"},{"rel":"payment_notes","href":"http://localhost:3000/payment_notes"},{"rel":"paypal_currency","href":"http://localhost:3000/paypal_currencies"},{"rel":"plan","href":"http://localhost:3000/plans"},{"rel":"sponsors","href":"http://localhost:3000/sponsors"},{"rel":"sport","href":"http://localhost:3000/sports"},{"rel":"statistic","href":"http://localhost:3000/statistics"},{"rel":"statistic_aggregates","href":"http://localhost:3000/statistic_aggregates"},{"rel":"statistic_data","href":"http://localhost:3000/statistic_data"},{"rel":"statistic_group","href":"http://localhost:3000/statistic_groups"},{"rel":"team_fees","href":"http://localhost:3000/team_fees"},{"rel":"team_media","href":"http://localhost:3000/team_media"},{"rel":"team_medium_comments","href":"http://localhost:3000/team_medium_comments"},{"rel":"team_media_groups","href":"http://localhost:3000/team_media_groups"},{"rel":"team_paypal_preferences","href":"http://localhost:3000/teams_paypal_preferences"},{"rel":"team_photos","href":"http://localhost:3000/team_photos"},{"rel":"team_preferences","href":"http://localhost:3000/teams_preferences"},{"rel":"team_public_site","href":"http://localhost:3000/team_public_sites"},{"rel":"team_results","href":"http://localhost:3000/teams_results"},{"rel":"team_statistics","href":"http://localhost:3000/team_statistics"},{"rel":"tracked_item_statuses","href":"http://localhost:3000/tracked_item_statuses"},{"rel":"tracked_items","href":"http://localhost:3000/tracked_items"},{"rel":"root","href":"http://localhost:3000/"},{"rel":"self","href":"http://localhost:3000/teams/search?id=0"}],"queries":[{"rel":"search","href":"http://localhost:3000/teams/search","sort":["name"],"data":[{"name":"id","value":null},{"name":"team_id","value":null},{"name":"user_id","value":null},{"name":"division_id","value":null},{"name":"page_size","value":null,"prompt":"The
|
41
|
+
time_zone, use the update_time_zone command"},{"name":"sport_id","value":null},{"name":"division_id","value":null},{"name":"division_name","value":null},{"name":"season_name","value":null},{"name":"league_name","value":null},{"name":"league_url","value":null},{"name":"owner_first_name","value":null},{"name":"owner_last_name","value":null},{"name":"owner_email","value":null},{"name":"is_ownership_pending","value":null},{"name":"type","value":"team"}]},"links":[{"rel":"advertisements","href":"http://localhost:3000/advertisements"},{"rel":"active_season_team","href":"http://localhost:3000/teams"},{"rel":"assignments","href":"http://localhost:3000/assignments"},{"rel":"availabilities","href":"http://localhost:3000/availabilities"},{"rel":"batch_invoices","href":"http://localhost:3000/batch_invoices"},{"rel":"batch_invoices_aggregates","href":"http://localhost:3000/batch_invoices_aggregates"},{"rel":"broadcast_email_attachments","href":"http://localhost:3000/broadcast_email_attachments"},{"rel":"broadcast_emails","href":"http://localhost:3000/broadcast_emails"},{"rel":"broadcast_alerts","href":"http://localhost:3000/broadcast_alerts"},{"rel":"commissioners","href":"http://localhost:3000/members"},{"rel":"contact_email_addresses","href":"http://localhost:3000/contact_email_addresses"},{"rel":"contact_phone_numbers","href":"http://localhost:3000/contact_phone_numbers"},{"rel":"contacts","href":"http://localhost:3000/contacts"},{"rel":"custom_data","href":"http://localhost:3000/custom_data"},{"rel":"custom_fields","href":"http://localhost:3000/custom_fields"},{"rel":"division_contact_email_addresses","href":"http://localhost:3000/division_contact_email_addresses"},{"rel":"division_contact_phone_numbers","href":"http://localhost:3000/division_contact_phone_numbers"},{"rel":"division_contacts","href":"http://localhost:3000/division_contacts"},{"rel":"division_locations","href":"http://localhost:3000/division_locations"},{"rel":"division_member_email_addresses","href":"http://localhost:3000/division_member_email_addresses"},{"rel":"division_member_phone_numbers","href":"http://localhost:3000/division_member_phone_numbers"},{"rel":"division_members","href":"http://localhost:3000/division_members"},{"rel":"division_members_preferences","href":"http://localhost:3000/division_members_preferences"},{"rel":"division_team_standings","href":"http://localhost:3000/division_team_standings"},{"rel":"event_statistics","href":"http://localhost:3000/event_statistics"},{"rel":"events","href":"http://localhost:3000/events"},{"rel":"events_overview","href":"http://localhost:3000/events/overview"},{"rel":"forum_posts","href":"http://localhost:3000/forum_posts"},{"rel":"forum_subscriptions","href":"http://localhost:3000/forum_subscriptions"},{"rel":"forum_topics","href":"http://localhost:3000/forum_topics"},{"rel":"league_custom_data","href":"http://localhost:3000/league_custom_data"},{"rel":"league_custom_fields","href":"http://localhost:3000/league_custom_fields"},{"rel":"league_registrant_documents","href":"http://localhost:3000/league_registrant_documents"},{"rel":"locations","href":"http://localhost:3000/locations"},{"rel":"managers","href":"http://localhost:3000/members"},{"rel":"member_balances","href":"http://localhost:3000/member_balances"},{"rel":"member_email_addresses","href":"http://localhost:3000/member_email_addresses"},{"rel":"member_files","href":"http://localhost:3000/member_files"},{"rel":"member_links","href":"http://localhost:3000/member_links"},{"rel":"member_payments","href":"http://localhost:3000/member_payments"},{"rel":"member_phone_numbers","href":"http://localhost:3000/member_phone_numbers"},{"rel":"member_photos","href":"http://localhost:3000/member_photos"},{"rel":"member_statistics","href":"http://localhost:3000/member_statistics"},{"rel":"members","href":"http://localhost:3000/members"},{"rel":"members_preferences","href":"http://localhost:3000/members_preferences"},{"rel":"message_data","href":"http://localhost:3000/message_data"},{"rel":"messages","href":"http://localhost:3000/messages"},{"rel":"opponents","href":"http://localhost:3000/opponents"},{"rel":"opponents_results","href":"http://localhost:3000/opponents_results"},{"rel":"owner","href":"http://localhost:3000/members"},{"rel":"payment_notes","href":"http://localhost:3000/payment_notes"},{"rel":"paypal_currency","href":"http://localhost:3000/paypal_currencies"},{"rel":"plan","href":"http://localhost:3000/plans"},{"rel":"sponsors","href":"http://localhost:3000/sponsors"},{"rel":"sport","href":"http://localhost:3000/sports"},{"rel":"sport_positions","href":"http://localhost:3000/sport_positions"},{"rel":"statistic","href":"http://localhost:3000/statistics"},{"rel":"statistic_aggregates","href":"http://localhost:3000/statistic_aggregates"},{"rel":"statistic_data","href":"http://localhost:3000/statistic_data"},{"rel":"statistic_group","href":"http://localhost:3000/statistic_groups"},{"rel":"team_fees","href":"http://localhost:3000/team_fees"},{"rel":"team_media","href":"http://localhost:3000/team_media"},{"rel":"team_medium_comments","href":"http://localhost:3000/team_medium_comments"},{"rel":"team_media_groups","href":"http://localhost:3000/team_media_groups"},{"rel":"team_paypal_preferences","href":"http://localhost:3000/teams_paypal_preferences"},{"rel":"team_photos","href":"http://localhost:3000/team_photos"},{"rel":"team_preferences","href":"http://localhost:3000/teams_preferences"},{"rel":"team_public_site","href":"http://localhost:3000/team_public_sites"},{"rel":"team_results","href":"http://localhost:3000/teams_results"},{"rel":"team_statistics","href":"http://localhost:3000/team_statistics"},{"rel":"team_stores","href":"http://localhost:3000/team_stores"},{"rel":"tracked_item_statuses","href":"http://localhost:3000/tracked_item_statuses"},{"rel":"tracked_items","href":"http://localhost:3000/tracked_items"},{"rel":"root","href":"http://localhost:3000/"},{"rel":"self","href":"http://localhost:3000/teams/search?id=0"}],"queries":[{"rel":"search","href":"http://localhost:3000/teams/search","sort":["name"],"data":[{"name":"id","value":null},{"name":"team_id","value":null},{"name":"user_id","value":null},{"name":"division_id","value":null},{"name":"page_size","value":null,"prompt":"The
|
42
42
|
number of items to return for each page. Sending this parameter with the query
|
43
43
|
will enable paging for the returned collection."},{"name":"page_number","value":null,"prompt":"The
|
44
44
|
number of the page to be returned. This requires that paging be turned on
|
@@ -47,19 +47,33 @@ http_interactions:
|
|
47
47
|
''desc''."}]},{"rel":"available_for_statistic_import","href":"http://localhost:3000/teams/available_for_statistic_import","prompt":"Finds
|
48
48
|
all teams accessible to current user that have the provided sport_id and have
|
49
49
|
at least one statistic to import","data":[{"name":"sport_id","value":null}]},{"rel":"active_teams","href":"http://localhost:3000/teams/active","prompt":"Finds
|
50
|
-
all active teams for a given user. Excludes archived seasons and retired teams.","data":[{"name":"user_id","value":null}
|
50
|
+
all active teams for a given user. Excludes archived seasons and retired teams.","data":[{"name":"user_id","value":null},{"name":"division_id","value":null}]},{"rel":"division_search","href":"http://localhost:3000/teams/division_search","prompt":"Search
|
51
|
+
the teams on the division_id and its descendants or a commissioner''s user_id.","data":[{"name":"division_id","value":null},{"name":"user_id","value":null},{"name":"is_active","value":null},{"name":"is_commissioner","value":null},{"name":"page_size","value":null,"prompt":"The
|
52
|
+
number of items to return for each page. Sending this parameter with the query
|
53
|
+
will enable paging for the returned collection."},{"name":"page_number","value":null,"prompt":"The
|
54
|
+
number of the page to be returned. This requires that paging be turned on
|
55
|
+
by also providing the page_size parameter."}]}],"commands":[{"rel":"invite","href":"http://localhost:3000/teams/invite","prompt":"invite
|
51
56
|
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}]},{"rel":"update_time_zone","href":"http://localhost:3000/teams/update_time_zone","prompt":"Update
|
52
57
|
team''s time zone. This is currently the only method of updating a team''s
|
53
|
-
time zone.","data":[{"name":"team_id","value":null},{"name":"time_zone","value":null},{"name":"offset_team_times","value":null
|
58
|
+
time zone.","data":[{"name":"team_id","value":null},{"name":"time_zone","value":null},{"name":"offset_team_times","value":null,"deprecated":true,"prompt":"%{old}
|
59
|
+
is deprecated and will be removed in a future version, use %{new} instead."}]},{"rel":"reset_statistics","href":"http://localhost:3000/teams/reset_statistics","prompt":"Deletes
|
54
60
|
all data, categories and groups for a given team_id","data":[{"name":"team_id","value":null}]},{"rel":"invite_team_owners","href":"http://localhost:3000/teams/invite_team_owners","prompt":"Beta:
|
55
61
|
(This endpoint subject to change) Allow commissioners to send invitations
|
56
62
|
to all owners on active teams in the division.","data":[{"name":"id","value":null}]},{"rel":"change_owner","href":"http://localhost:3000/teams/change_owner","prompt":"Beta:
|
57
63
|
(This endpoint subject to change) Allow commissioners to change the owner
|
58
|
-
of a league team.","data":[{"name":"team_id","value":null},{"name":"member_id","value":null}]},{"rel":"
|
59
|
-
|
60
|
-
|
64
|
+
of a league team.","data":[{"name":"team_id","value":null},{"name":"member_id","value":null}]},{"rel":"toggle_team_visibility_on_dashboard","href":"http://localhost:3000/teams/toggle_team_visibility_on_dashboard","prompt":"Toggles
|
65
|
+
the visibility of teams on the list of active teams, per user. Requires a
|
66
|
+
single id or a comma separated list of ''team_id''s","data":[{"name":"team_ids","value":null}]},{"rel":"send_upsell_message_from_owner","href":"http://localhost:3000/teams/send_upsell_message_from_owner","prompt":"Send
|
67
|
+
an upsell email to the team owner.","data":[{"name":"team_id","value":null},{"name":"feature","value":null}]},{"rel":"send_upsell_message_from_contact","href":"http://localhost:3000/teams/send_upsell_message_from_contact","prompt":"Send
|
68
|
+
an upsell email to the team owner from a contact.","data":[{"name":"team_id","value":null},{"name":"contact_id","value":null},{"name":"feature","value":null}]},{"rel":"update_team_plan","href":"http://localhost:3000/teams/update_team_plan","prompt":"Update
|
69
|
+
team''s plan. Requires a single id or a comma separated list of ''team_id''s
|
70
|
+
and a plan_id.","data":[{"name":"team_ids","value":null},{"name":"plan_id","value":null}]},{"rel":"apply_promotion","href":"http://localhost:3000/teams/apply_promotion","prompt":"Apply
|
71
|
+
a promotion to a team. Requires a single id or a comma separated list of ''team_id''s,
|
72
|
+
promotion_name, promotion_length and a plan_id.","data":[{"name":"team_ids","value":null},{"name":"promotion_name","value":null},{"name":"promotion_length","value":null},{"name":"plan_id","value":null}]},{"rel":"enable_fundraising","href":"http://localhost:3000/teams/enable_fundraising","prompt":"Enable
|
73
|
+
fundraising for a team. Requires a single team_id and goal_cents as the fundraising
|
74
|
+
goal.","data":[{"name":"team_id","value":null},{"name":"goal_cents","value":null}]}]}}'
|
61
75
|
http_version: '1.1'
|
62
76
|
adapter_metadata:
|
63
|
-
effective_url: http://localhost:3000/teams/search?id=0&hmac_client_id=
|
64
|
-
recorded_at:
|
65
|
-
recorded_with: VCR
|
77
|
+
effective_url: http://localhost:3000/teams/search?id=0&hmac_client_id=classic_service&hmac_nonce=7fa237b0-85ca-4cfa-b81c-8e4339216063&hmac_timestamp=1590177502
|
78
|
+
recorded_at: Fri, 22 May 2020 19:58:22 GMT
|
79
|
+
recorded_with: VCR 5.1.0
|
@@ -2,15 +2,17 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: get
|
5
|
-
uri: http://localhost:3000/events/search?id=1&hmac_client_id=
|
5
|
+
uri: http://localhost:3000/events/search?id=1&hmac_client_id=classic_service&hmac_nonce=ab2d3d58-6e68-4eb9-95f9-f6643668d171&hmac_timestamp=1590177512
|
6
6
|
body:
|
7
7
|
encoding: US-ASCII
|
8
8
|
string: ''
|
9
9
|
headers:
|
10
10
|
User-Agent:
|
11
|
-
- Faraday v0.
|
11
|
+
- Faraday v0.17.3
|
12
12
|
X-Teamsnap-Hmac:
|
13
|
-
-
|
13
|
+
- 3686111be96c80d26ce9666998e0ca9d221529a6d8eb30b67235c91df78bc39c
|
14
|
+
Expect:
|
15
|
+
- ''
|
14
16
|
response:
|
15
17
|
status:
|
16
18
|
code: 200
|
@@ -18,25 +20,25 @@ http_interactions:
|
|
18
20
|
headers:
|
19
21
|
Content-Type:
|
20
22
|
- application/vnd.collection+json
|
21
|
-
|
22
|
-
-
|
23
|
-
X-Content-Type-Options:
|
24
|
-
- nosniff
|
25
|
-
ETag:
|
26
|
-
- '"8c2c173df95de409c806e789216eee4a"'
|
23
|
+
Last-Modified:
|
24
|
+
- Fri, 22 May 2020 19:56:15 GMT
|
27
25
|
Cache-Control:
|
28
26
|
- max-age=0, private, must-revalidate
|
27
|
+
ETag:
|
28
|
+
- '"c92e1457ff76e82f7a183dc57d3d82b152a91747ef7ac24673d23972415cea67"'
|
29
|
+
X-Content-Type-Options:
|
30
|
+
- nosniff
|
29
31
|
X-Request-Id:
|
30
|
-
-
|
32
|
+
- 0e96d094-2e7b-4df8-b228-c1be6879aa87
|
31
33
|
X-Runtime:
|
32
|
-
- '0.
|
33
|
-
|
34
|
-
-
|
35
|
-
|
36
|
-
-
|
34
|
+
- '0.461997'
|
35
|
+
Vary:
|
36
|
+
- Origin
|
37
|
+
Content-Length:
|
38
|
+
- '9768'
|
37
39
|
body:
|
38
40
|
encoding: UTF-8
|
39
|
-
string: '{"collection":{"version":"3.
|
41
|
+
string: '{"collection":{"version":"3.854.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
42
|
updating a repeating event, this is a required field. Values are: \"all\"
|
41
43
|
- updates all events in this series, \"future\" - updates this event and all
|
42
44
|
that occur after, \"none\" - only updates a single event."},{"name":"repeating_type_code","value":null,"prompt":"A
|
@@ -46,36 +48,43 @@ http_interactions:
|
|
46
48
|
date when the repeating event should end, this is inclusive so an event will
|
47
49
|
be created on this day if it falls before the next event specified by \"repeating_type_code\".
|
48
50
|
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","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
|
51
|
+
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_lineups","href":"http://localhost:3000/event_lineups"},{"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":"suggested_assignments","href":"http://localhost:3000/suggested_assignments"},{"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":"user_id","value":null},{"name":"location_id","value":null},{"name":"opponent_id","value":null},{"name":"started_after","value":null},{"name":"started_before","value":null},{"name":"repeating_uuid","value":null},{"name":"id","value":null},{"name":"is_game","value":null},{"name":"updated_since","value":null},{"name":"page_size","value":null,"prompt":"The
|
50
52
|
number of items to return for each page. Sending this parameter with the query
|
51
53
|
will enable paging for the returned collection."},{"name":"page_number","value":null,"prompt":"The
|
52
54
|
number of the page to be returned. This requires that paging be turned on
|
53
55
|
by also providing the page_size parameter."},{"name":"sort_start_date","value":null,"prompt":"Sort
|
54
56
|
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}
|
57
|
+
or ''desc''."}]},{"rel":"search_games","href":"http://localhost:3000/events/search_games","data":[{"name":"team_id","value":null},{"name":"page_size","value":null,"prompt":"The
|
58
|
+
number of items to return for each page. Sending this parameter with the query
|
59
|
+
will enable paging for the returned collection."},{"name":"page_number","value":null,"prompt":"The
|
60
|
+
number of the page to be returned. This requires that paging be turned on
|
61
|
+
by also providing the page_size parameter."}]},{"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
|
56
62
|
= [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
|
57
63
|
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
|
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":"
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
Time (US & Canada)"},{"name":"
|
63
|
-
|
64
|
+
= [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,"type":"String"},{"name":"type","value":"event","type":"String"},{"name":"additional_location_details","value":null,"type":"String"},{"name":"arrival_date","value":"2015-01-01T00:00:00Z","type":"DateTime"},{"name":"division_location_id","value":null,"type":"String"},{"name":"doesnt_count_towards_record","value":false,"type":"Boolean"},{"name":"duration_in_minutes","value":120,"type":"Integer"},{"name":"end_date","value":"2015-01-01T02:00:00Z","type":"DateTime"},{"name":"formatted_results","value":null,"type":"String"},{"name":"game_type","value":"Not
|
65
|
+
Specified","type":"String"},{"name":"game_type_code","value":null,"type":"Integer"},{"name":"icon_color","value":"blue","type":"String"},{"name":"is_canceled","value":false,"type":"Boolean"},{"name":"is_game","value":false,"type":"Boolean"},{"name":"is_overtime","value":false,"type":"Boolean"},{"name":"is_shootout","value":false,"type":"Boolean"},{"name":"is_tbd","value":false,"type":"Boolean"},{"name":"label","value":null,"type":"String"},{"name":"location_id","value":1,"type":"String"},{"name":"minutes_to_arrive_early","value":null,"type":"Integer"},{"name":"name","value":"March
|
66
|
+
Madness Game 1","type":"String"},{"name":"notes","value":null,"type":"String"},{"name":"opponent_id","value":null,"type":"String"},{"name":"points_for_opponent","value":null,"type":"Integer"},{"name":"points_for_team","value":null,"type":"Integer"},{"name":"repeating_type","value":null,"type":"String"},{"name":"repeating_type_code","value":null,"type":"Integer"},{"name":"repeating_uuid","value":null,"type":"String"},{"name":"results","value":null,"type":"String"},{"name":"results_url","value":null,"type":"String"},{"name":"shootout_points_for_opponent","value":null,"type":"Integer"},{"name":"shootout_points_for_team","value":null,"type":"Integer"},{"name":"start_date","value":"2015-01-01T00:00:00Z","type":"DateTime"},{"name":"team_id","value":1,"type":"String"},{"name":"time_zone","value":"Mountain
|
67
|
+
Time (US & Canada)","type":"String"},{"name":"time_zone_description","value":"Mountain
|
68
|
+
Time (US & Canada)","type":"String"},{"name":"time_zone_iana_name","value":"America/Denver","type":"String"},{"name":"time_zone_offset","value":"-07:00","type":"String"},{"name":"source_time_zone_iana_name","value":"America/Denver","type":"String"},{"name":"tracks_availability","value":true,"type":"Boolean"},{"name":"uniform","value":null,"type":"String"},{"name":"is_league_controlled","value":false,"type":"Boolean"},{"name":"opponent_name","value":null,"type":"String"},{"name":"location_name","value":"BoulderHQ","type":"String"},{"name":"formatted_title","value":"March
|
69
|
+
Madness Game 1","type":"String"},{"name":"formatted_title_for_multi_team","value":"Base
|
70
|
+
Team March Madness Game 1","type":"String"},{"name":"created_at","value":"2020-05-22T19:56:14Z","type":"DateTime"},{"name":"updated_at","value":"2020-05-22T19:56:15Z","type":"DateTime"}],"links":[{"rel":"assignments","href":"http://localhost:3000/assignments/search?event_id=1"},{"rel":"assignments_team","href":"http://localhost:3000/assignments/search?event_id=1&team_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_lineups","href":"http://localhost:3000/event_lineups/search?event_id=1"},{"rel":"event_statistics","href":"http://localhost:3000/event_statistics/search?event_id=1"},{"rel":"location","href":"http://localhost:3000/locations/1"},{"rel":"statistic_data","href":"http://localhost:3000/statistic_data/search?event_id=1"},{"rel":"suggested_assignments","href":"http://localhost:3000/suggested_assignments/search?team_id=1"},{"rel":"team","href":"http://localhost:3000/teams/1"}],"rel":"event-1"}]}}'
|
64
71
|
http_version: '1.1'
|
65
72
|
adapter_metadata:
|
66
|
-
effective_url: http://localhost:3000/events/search?id=1&hmac_client_id=
|
67
|
-
recorded_at:
|
73
|
+
effective_url: http://localhost:3000/events/search?id=1&hmac_client_id=classic_service&hmac_nonce=ab2d3d58-6e68-4eb9-95f9-f6643668d171&hmac_timestamp=1590177512
|
74
|
+
recorded_at: Fri, 22 May 2020 19:58:32 GMT
|
68
75
|
- request:
|
69
76
|
method: get
|
70
|
-
uri: http://localhost:3000/availabilities/search?event_id=1&hmac_client_id=
|
77
|
+
uri: http://localhost:3000/availabilities/search?event_id=1&hmac_client_id=classic_service&hmac_nonce=e2a8b21d-a940-4300-b35a-00229bddcab2&hmac_timestamp=1590177512
|
71
78
|
body:
|
72
79
|
encoding: US-ASCII
|
73
80
|
string: ''
|
74
81
|
headers:
|
75
82
|
User-Agent:
|
76
|
-
- Faraday v0.
|
83
|
+
- Faraday v0.17.3
|
77
84
|
X-Teamsnap-Hmac:
|
78
|
-
-
|
85
|
+
- 06f38969525c692ef8ec4501d6538cf38da6a723fa61ce21c4418c04aeab1d8e
|
86
|
+
Expect:
|
87
|
+
- ''
|
79
88
|
response:
|
80
89
|
status:
|
81
90
|
code: 200
|
@@ -83,37 +92,40 @@ http_interactions:
|
|
83
92
|
headers:
|
84
93
|
Content-Type:
|
85
94
|
- application/vnd.collection+json
|
86
|
-
|
87
|
-
-
|
88
|
-
X-Content-Type-Options:
|
89
|
-
- nosniff
|
90
|
-
ETag:
|
91
|
-
- '"936c87ef222bbd36ea970662a1902c87"'
|
95
|
+
Last-Modified:
|
96
|
+
- Fri, 22 May 2020 19:56:15 GMT
|
92
97
|
Cache-Control:
|
93
98
|
- max-age=0, private, must-revalidate
|
99
|
+
ETag:
|
100
|
+
- '"242b0fa45447320e9f208e2d483d7ba5eca9d9e237c2e1552050edf9d52b173f"'
|
101
|
+
X-Content-Type-Options:
|
102
|
+
- nosniff
|
94
103
|
X-Request-Id:
|
95
|
-
-
|
104
|
+
- 13174593-919d-4099-9433-c481ddc5478e
|
96
105
|
X-Runtime:
|
97
|
-
- '0.
|
98
|
-
|
99
|
-
-
|
100
|
-
|
101
|
-
-
|
106
|
+
- '0.559119'
|
107
|
+
Vary:
|
108
|
+
- Origin
|
109
|
+
Content-Length:
|
110
|
+
- '5780'
|
102
111
|
body:
|
103
112
|
encoding: UTF-8
|
104
|
-
string: '{"collection":{"version":"3.
|
113
|
+
string: '{"collection":{"version":"3.854.0","href":"http://localhost:3000/availabilities","rel":"availabilities","template":{"data":[{"name":"status_code","value":null},{"name":"notes","value":null},{"name":"event_id","value":null},{"name":"member_id","value":null},{"name":"notes_author_member_id","value":null},{"name":"source","value":null},{"name":"type","value":"availability"}]},"links":[{"rel":"event","href":"http://localhost:3000/events"},{"rel":"member","href":"http://localhost:3000/members"},{"rel":"notes_author_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/availabilities/search?event_id=1"}],"queries":[{"rel":"search","href":"http://localhost:3000/availabilities/search","sort":["event_id","start_date"],"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
|
105
114
|
number of items to return for each page. Sending this parameter with the query
|
106
115
|
will enable paging for the returned collection."},{"name":"page_number","value":null,"prompt":"The
|
107
116
|
number of the page to be returned. This requires that paging be turned on
|
108
|
-
by also providing the page_size parameter."}
|
117
|
+
by also providing the page_size parameter."},{"name":"sort_event_id","value":null,"prompt":"Sort
|
118
|
+
the returned dataset based on the event_id field, valid values are ''asc''
|
119
|
+
or ''desc''."},{"name":"sort_start_date","value":null,"prompt":"Sort the returned
|
120
|
+
dataset based on the start_date field, valid values are ''asc'' or ''desc''."}]}],"commands":[{"rel":"bulk_mark_unset_availabilities","href":"http://localhost:3000/availabilities/bulk_mark_unset_availabilities","prompt":"Mark
|
109
121
|
all future unset availabilities to specified status_code for the specified
|
110
|
-
member_id","data":[{"name":"status_code","value":null},{"name":"member_id","value":null},{"name":"started_after","value":null}]}],"items":[{"href":"http://localhost:3000/availabilities/1","data":[{"name":"id","value":1},{"name":"type","value":"availability"},{"name":"event_id","value":1},{"name":"member_id","value":
|
111
|
-
I will be there."},{"name":"status_code","value":1},{"name":"team_id","value":1},{"name":"created_at","value":"
|
112
|
-
I will be there."},{"name":"status_code","value":1},{"name":"team_id","value":1},{"name":"created_at","value":"
|
113
|
-
I''m not sure yet."},{"name":"status_code","value":2},{"name":"team_id","value":1},{"name":"created_at","value":"
|
114
|
-
I can''t make it."
|
122
|
+
member_id","data":[{"name":"status_code","value":null},{"name":"member_id","value":null},{"name":"started_after","value":null}]}],"items":[{"href":"http://localhost:3000/availabilities/69-1","data":[{"name":"id","value":"69-1","type":"String"},{"name":"type","value":"availability","type":"String"},{"name":"event_id","value":1,"type":"String"},{"name":"member_id","value":69,"type":"String"},{"name":"notes","value":null,"type":"String"},{"name":"notes_author_member_id","value":null,"type":"String"},{"name":"status","value":"Yes.
|
123
|
+
I will be there.","type":"String"},{"name":"status_code","value":1,"type":"Integer"},{"name":"team_id","value":1,"type":"String"},{"name":"is_current_user","value":false,"type":"Boolean"},{"name":"created_at","value":"2020-05-22T19:56:14Z","type":"DateTime"},{"name":"updated_at","value":"2020-05-22T19:56:14Z","type":"DateTime"}],"links":[{"rel":"event","href":"http://localhost:3000/events/1"},{"rel":"member","href":"http://localhost:3000/members/69"},{"rel":"team","href":"http://localhost:3000/teams/1"}],"rel":"availability-69-1"},{"href":"http://localhost:3000/availabilities/70-1","data":[{"name":"id","value":"70-1","type":"String"},{"name":"type","value":"availability","type":"String"},{"name":"event_id","value":1,"type":"String"},{"name":"member_id","value":70,"type":"String"},{"name":"notes","value":null,"type":"String"},{"name":"notes_author_member_id","value":null,"type":"String"},{"name":"status","value":"Yes.
|
124
|
+
I will be there.","type":"String"},{"name":"status_code","value":1,"type":"Integer"},{"name":"team_id","value":1,"type":"String"},{"name":"is_current_user","value":false,"type":"Boolean"},{"name":"created_at","value":"2020-05-22T19:56:14Z","type":"DateTime"},{"name":"updated_at","value":"2020-05-22T19:56:14Z","type":"DateTime"}],"links":[{"rel":"event","href":"http://localhost:3000/events/1"},{"rel":"member","href":"http://localhost:3000/members/70"},{"rel":"team","href":"http://localhost:3000/teams/1"}],"rel":"availability-70-1"},{"href":"http://localhost:3000/availabilities/73-1","data":[{"name":"id","value":"73-1","type":"String"},{"name":"type","value":"availability","type":"String"},{"name":"event_id","value":1,"type":"String"},{"name":"member_id","value":73,"type":"String"},{"name":"notes","value":null,"type":"String"},{"name":"notes_author_member_id","value":null,"type":"String"},{"name":"status","value":"Maybe.
|
125
|
+
I''m not sure yet.","type":"String"},{"name":"status_code","value":2,"type":"Integer"},{"name":"team_id","value":1,"type":"String"},{"name":"is_current_user","value":false,"type":"Boolean"},{"name":"created_at","value":"2020-05-22T19:56:15Z","type":"DateTime"},{"name":"updated_at","value":"2020-05-22T19:56:15Z","type":"DateTime"}],"links":[{"rel":"event","href":"http://localhost:3000/events/1"},{"rel":"member","href":"http://localhost:3000/members/73"},{"rel":"team","href":"http://localhost:3000/teams/1"}],"rel":"availability-73-1"},{"href":"http://localhost:3000/availabilities/74-1","data":[{"name":"id","value":"74-1","type":"String"},{"name":"type","value":"availability","type":"String"},{"name":"event_id","value":1,"type":"String"},{"name":"member_id","value":74,"type":"String"},{"name":"notes","value":null,"type":"String"},{"name":"notes_author_member_id","value":null,"type":"String"},{"name":"status","value":"No.
|
126
|
+
I can''t make it.","type":"String"},{"name":"status_code","value":0,"type":"Integer"},{"name":"team_id","value":1,"type":"String"},{"name":"is_current_user","value":false,"type":"Boolean"},{"name":"created_at","value":"2020-05-22T19:56:15Z","type":"DateTime"},{"name":"updated_at","value":"2020-05-22T19:56:15Z","type":"DateTime"}],"links":[{"rel":"event","href":"http://localhost:3000/events/1"},{"rel":"member","href":"http://localhost:3000/members/74"},{"rel":"team","href":"http://localhost:3000/teams/1"}],"rel":"availability-74-1"}]}}'
|
115
127
|
http_version: '1.1'
|
116
128
|
adapter_metadata:
|
117
|
-
effective_url: http://localhost:3000/availabilities/search?event_id=1&hmac_client_id=
|
118
|
-
recorded_at:
|
119
|
-
recorded_with: VCR
|
129
|
+
effective_url: http://localhost:3000/availabilities/search?event_id=1&hmac_client_id=classic_service&hmac_nonce=e2a8b21d-a940-4300-b35a-00229bddcab2&hmac_timestamp=1590177512
|
130
|
+
recorded_at: Fri, 22 May 2020 19:58:33 GMT
|
131
|
+
recorded_with: VCR 5.1.0
|
@@ -2,15 +2,17 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: get
|
5
|
-
uri: http://localhost:3000/events/search?id=1&hmac_client_id=
|
5
|
+
uri: http://localhost:3000/events/search?id=1&hmac_client_id=classic_service&hmac_nonce=716e12ab-a107-4549-8077-68a2b5b9fdf0&hmac_timestamp=1590177511
|
6
6
|
body:
|
7
7
|
encoding: US-ASCII
|
8
8
|
string: ''
|
9
9
|
headers:
|
10
10
|
User-Agent:
|
11
|
-
- Faraday v0.
|
11
|
+
- Faraday v0.17.3
|
12
12
|
X-Teamsnap-Hmac:
|
13
|
-
-
|
13
|
+
- 75e270ca07dbb8131c21256eb21d622347358aa44a5a755e8f6b2f0c6500c16d
|
14
|
+
Expect:
|
15
|
+
- ''
|
14
16
|
response:
|
15
17
|
status:
|
16
18
|
code: 200
|
@@ -18,25 +20,25 @@ http_interactions:
|
|
18
20
|
headers:
|
19
21
|
Content-Type:
|
20
22
|
- application/vnd.collection+json
|
21
|
-
|
22
|
-
-
|
23
|
-
X-Content-Type-Options:
|
24
|
-
- nosniff
|
25
|
-
ETag:
|
26
|
-
- '"8c2c173df95de409c806e789216eee4a"'
|
23
|
+
Last-Modified:
|
24
|
+
- Fri, 22 May 2020 19:56:15 GMT
|
27
25
|
Cache-Control:
|
28
26
|
- max-age=0, private, must-revalidate
|
27
|
+
ETag:
|
28
|
+
- '"c92e1457ff76e82f7a183dc57d3d82b152a91747ef7ac24673d23972415cea67"'
|
29
|
+
X-Content-Type-Options:
|
30
|
+
- nosniff
|
29
31
|
X-Request-Id:
|
30
|
-
-
|
32
|
+
- 871e9d65-069d-4485-9e62-6558b9c3c7a5
|
31
33
|
X-Runtime:
|
32
|
-
- '0.
|
33
|
-
|
34
|
-
-
|
35
|
-
|
36
|
-
-
|
34
|
+
- '0.660263'
|
35
|
+
Vary:
|
36
|
+
- Origin
|
37
|
+
Content-Length:
|
38
|
+
- '9768'
|
37
39
|
body:
|
38
40
|
encoding: UTF-8
|
39
|
-
string: '{"collection":{"version":"3.
|
41
|
+
string: '{"collection":{"version":"3.854.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
42
|
updating a repeating event, this is a required field. Values are: \"all\"
|
41
43
|
- updates all events in this series, \"future\" - updates this event and all
|
42
44
|
that occur after, \"none\" - only updates a single event."},{"name":"repeating_type_code","value":null,"prompt":"A
|
@@ -46,36 +48,43 @@ http_interactions:
|
|
46
48
|
date when the repeating event should end, this is inclusive so an event will
|
47
49
|
be created on this day if it falls before the next event specified by \"repeating_type_code\".
|
48
50
|
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","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
|
51
|
+
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_lineups","href":"http://localhost:3000/event_lineups"},{"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":"suggested_assignments","href":"http://localhost:3000/suggested_assignments"},{"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":"user_id","value":null},{"name":"location_id","value":null},{"name":"opponent_id","value":null},{"name":"started_after","value":null},{"name":"started_before","value":null},{"name":"repeating_uuid","value":null},{"name":"id","value":null},{"name":"is_game","value":null},{"name":"updated_since","value":null},{"name":"page_size","value":null,"prompt":"The
|
50
52
|
number of items to return for each page. Sending this parameter with the query
|
51
53
|
will enable paging for the returned collection."},{"name":"page_number","value":null,"prompt":"The
|
52
54
|
number of the page to be returned. This requires that paging be turned on
|
53
55
|
by also providing the page_size parameter."},{"name":"sort_start_date","value":null,"prompt":"Sort
|
54
56
|
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}
|
57
|
+
or ''desc''."}]},{"rel":"search_games","href":"http://localhost:3000/events/search_games","data":[{"name":"team_id","value":null},{"name":"page_size","value":null,"prompt":"The
|
58
|
+
number of items to return for each page. Sending this parameter with the query
|
59
|
+
will enable paging for the returned collection."},{"name":"page_number","value":null,"prompt":"The
|
60
|
+
number of the page to be returned. This requires that paging be turned on
|
61
|
+
by also providing the page_size parameter."}]},{"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
|
56
62
|
= [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
|
57
63
|
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
|
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":"
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
Time (US & Canada)"},{"name":"
|
63
|
-
|
64
|
+
= [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,"type":"String"},{"name":"type","value":"event","type":"String"},{"name":"additional_location_details","value":null,"type":"String"},{"name":"arrival_date","value":"2015-01-01T00:00:00Z","type":"DateTime"},{"name":"division_location_id","value":null,"type":"String"},{"name":"doesnt_count_towards_record","value":false,"type":"Boolean"},{"name":"duration_in_minutes","value":120,"type":"Integer"},{"name":"end_date","value":"2015-01-01T02:00:00Z","type":"DateTime"},{"name":"formatted_results","value":null,"type":"String"},{"name":"game_type","value":"Not
|
65
|
+
Specified","type":"String"},{"name":"game_type_code","value":null,"type":"Integer"},{"name":"icon_color","value":"blue","type":"String"},{"name":"is_canceled","value":false,"type":"Boolean"},{"name":"is_game","value":false,"type":"Boolean"},{"name":"is_overtime","value":false,"type":"Boolean"},{"name":"is_shootout","value":false,"type":"Boolean"},{"name":"is_tbd","value":false,"type":"Boolean"},{"name":"label","value":null,"type":"String"},{"name":"location_id","value":1,"type":"String"},{"name":"minutes_to_arrive_early","value":null,"type":"Integer"},{"name":"name","value":"March
|
66
|
+
Madness Game 1","type":"String"},{"name":"notes","value":null,"type":"String"},{"name":"opponent_id","value":null,"type":"String"},{"name":"points_for_opponent","value":null,"type":"Integer"},{"name":"points_for_team","value":null,"type":"Integer"},{"name":"repeating_type","value":null,"type":"String"},{"name":"repeating_type_code","value":null,"type":"Integer"},{"name":"repeating_uuid","value":null,"type":"String"},{"name":"results","value":null,"type":"String"},{"name":"results_url","value":null,"type":"String"},{"name":"shootout_points_for_opponent","value":null,"type":"Integer"},{"name":"shootout_points_for_team","value":null,"type":"Integer"},{"name":"start_date","value":"2015-01-01T00:00:00Z","type":"DateTime"},{"name":"team_id","value":1,"type":"String"},{"name":"time_zone","value":"Mountain
|
67
|
+
Time (US & Canada)","type":"String"},{"name":"time_zone_description","value":"Mountain
|
68
|
+
Time (US & Canada)","type":"String"},{"name":"time_zone_iana_name","value":"America/Denver","type":"String"},{"name":"time_zone_offset","value":"-07:00","type":"String"},{"name":"source_time_zone_iana_name","value":"America/Denver","type":"String"},{"name":"tracks_availability","value":true,"type":"Boolean"},{"name":"uniform","value":null,"type":"String"},{"name":"is_league_controlled","value":false,"type":"Boolean"},{"name":"opponent_name","value":null,"type":"String"},{"name":"location_name","value":"BoulderHQ","type":"String"},{"name":"formatted_title","value":"March
|
69
|
+
Madness Game 1","type":"String"},{"name":"formatted_title_for_multi_team","value":"Base
|
70
|
+
Team March Madness Game 1","type":"String"},{"name":"created_at","value":"2020-05-22T19:56:14Z","type":"DateTime"},{"name":"updated_at","value":"2020-05-22T19:56:15Z","type":"DateTime"}],"links":[{"rel":"assignments","href":"http://localhost:3000/assignments/search?event_id=1"},{"rel":"assignments_team","href":"http://localhost:3000/assignments/search?event_id=1&team_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_lineups","href":"http://localhost:3000/event_lineups/search?event_id=1"},{"rel":"event_statistics","href":"http://localhost:3000/event_statistics/search?event_id=1"},{"rel":"location","href":"http://localhost:3000/locations/1"},{"rel":"statistic_data","href":"http://localhost:3000/statistic_data/search?event_id=1"},{"rel":"suggested_assignments","href":"http://localhost:3000/suggested_assignments/search?team_id=1"},{"rel":"team","href":"http://localhost:3000/teams/1"}],"rel":"event-1"}]}}'
|
64
71
|
http_version: '1.1'
|
65
72
|
adapter_metadata:
|
66
|
-
effective_url: http://localhost:3000/events/search?id=1&hmac_client_id=
|
67
|
-
recorded_at:
|
73
|
+
effective_url: http://localhost:3000/events/search?id=1&hmac_client_id=classic_service&hmac_nonce=716e12ab-a107-4549-8077-68a2b5b9fdf0&hmac_timestamp=1590177511
|
74
|
+
recorded_at: Fri, 22 May 2020 19:58:31 GMT
|
68
75
|
- request:
|
69
76
|
method: get
|
70
|
-
uri: http://localhost:3000/assignments/search?event_id=1&hmac_client_id=
|
77
|
+
uri: http://localhost:3000/assignments/search?event_id=1&hmac_client_id=classic_service&hmac_nonce=73f2c79f-2c7a-4448-96cc-17bfa901df12&hmac_timestamp=1590177511
|
71
78
|
body:
|
72
79
|
encoding: US-ASCII
|
73
80
|
string: ''
|
74
81
|
headers:
|
75
82
|
User-Agent:
|
76
|
-
- Faraday v0.
|
83
|
+
- Faraday v0.17.3
|
77
84
|
X-Teamsnap-Hmac:
|
78
|
-
-
|
85
|
+
- '08130f5d84a43fa72ce6a2a6242e7ca8d94ce769d02044e68413d231635e1f16'
|
86
|
+
Expect:
|
87
|
+
- ''
|
79
88
|
response:
|
80
89
|
status:
|
81
90
|
code: 200
|
@@ -83,36 +92,37 @@ http_interactions:
|
|
83
92
|
headers:
|
84
93
|
Content-Type:
|
85
94
|
- application/vnd.collection+json
|
86
|
-
Content-Length:
|
87
|
-
- '1862'
|
88
95
|
X-Content-Type-Options:
|
89
96
|
- nosniff
|
90
97
|
ETag:
|
91
|
-
-
|
98
|
+
- W/"1b74a34fdd88510f3ede58578fa89686"
|
92
99
|
Cache-Control:
|
93
100
|
- max-age=0, private, must-revalidate
|
94
101
|
X-Request-Id:
|
95
|
-
-
|
102
|
+
- 3c717237-5fd6-430c-8215-8b1917aa9ed3
|
96
103
|
X-Runtime:
|
97
|
-
- '0.
|
98
|
-
|
99
|
-
-
|
100
|
-
|
101
|
-
-
|
104
|
+
- '0.511346'
|
105
|
+
Vary:
|
106
|
+
- Origin
|
107
|
+
Content-Length:
|
108
|
+
- '2714'
|
102
109
|
body:
|
103
110
|
encoding: UTF-8
|
104
|
-
string: '{"collection":{"version":"3.
|
111
|
+
string: '{"collection":{"version":"3.854.0","href":"http://localhost:3000/assignments","rel":"assignments","template":{"data":[{"name":"description","value":null},{"name":"event_id","value":null},{"name":"create_as_member_id","value":null},{"name":"member_id","value":null,"deprecated":true,"prompt":"member_id
|
105
112
|
is deprecated and has been removed. Continued use of member_id is not recommended
|
106
|
-
it will no longer be stored."},{"name":"type","value":"assignment"}]},"links":[{"rel":"event","href":"http://localhost:3000/events"},{"rel":"member","href":"http://localhost:3000/members"},{"rel":"member_assignments","href":"http://localhost:3000/member_assignments"},{"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
|
113
|
+
it will no longer be stored."},{"name":"type","value":"assignment"}]},"links":[{"rel":"event","href":"http://localhost:3000/events"},{"rel":"member","href":"http://localhost:3000/members"},{"rel":"member_assignments","href":"http://localhost:3000/member_assignments"},{"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":"teamsnap_plus","value":null},{"name":"page_size","value":null,"prompt":"The
|
107
114
|
number of items to return for each page. Sending this parameter with the query
|
108
115
|
will enable paging for the returned collection."},{"name":"page_number","value":null,"prompt":"The
|
109
116
|
number of the page to be returned. This requires that paging be turned on
|
110
|
-
by also providing the page_size parameter."}]}],"commands":[{"rel":"
|
111
|
-
|
112
|
-
|
113
|
-
|
117
|
+
by also providing the page_size parameter."}]}],"commands":[{"rel":"create_bulk_assignments","href":"http://localhost:3000/assignments/create_bulk_assignments","prompt":"aaa","data":[{"name":"event_set","value":null,"prompt":"A
|
118
|
+
comma-delimited string of keywords and/or event_ids. Keywords include ''future_events'',
|
119
|
+
''future_games'', and ''future_games_and_events''"},{"name":"create_as_member_id","value":null,"prompt":"aaa"},{"name":"team_id","value":null,"prompt":"aaa"},{"name":"description","value":null,"prompt":"aaa"},{"name":"member_id","value":null,"prompt":"aaa"}]},{"rel":"send_assignment_emails","href":"http://localhost:3000/assignments/send_assignment_emails","prompt":"Notifies
|
120
|
+
all members on the team via email regarding upcoming event assignments.","data":[{"name":"event_ids","value":null,"prompt":"A
|
121
|
+
comma-delimited list of event ids."},{"name":"message","value":null},{"name":"sending_member_id","value":null},{"name":"team_id","value":null}]},{"rel":"reorder_assignments","href":"http://localhost:3000/assignments/reorder","prompt":"reorder
|
122
|
+
the assignments based on the sorted_ids provided","data":[{"name":"event_id","value":null},{"name":"sorted_ids","value":null,"prompt":"An
|
123
|
+
array of the ids in the order that they are to be moved to"}]}]}}'
|
114
124
|
http_version: '1.1'
|
115
125
|
adapter_metadata:
|
116
|
-
effective_url: http://localhost:3000/assignments/search?event_id=1&hmac_client_id=
|
117
|
-
recorded_at:
|
118
|
-
recorded_with: VCR
|
126
|
+
effective_url: http://localhost:3000/assignments/search?event_id=1&hmac_client_id=classic_service&hmac_nonce=73f2c79f-2c7a-4448-96cc-17bfa901df12&hmac_timestamp=1590177511
|
127
|
+
recorded_at: Fri, 22 May 2020 19:58:32 GMT
|
128
|
+
recorded_with: VCR 5.1.0
|