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/?hmac_client_id=classic&hmac_nonce=
|
5
|
+
uri: http://localhost:3000/?hmac_client_id=classic&hmac_nonce=097c9638-8d04-4b0c-9122-062c0b48be74&hmac_timestamp=1464801846
|
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
|
+
- 87fb1de17c3c0495646515223897e697b142bcfe9f4c8467f5de9c637deeb9c2
|
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
|
+
- '10199'
|
23
23
|
X-Content-Type-Options:
|
24
24
|
- nosniff
|
25
25
|
ETag:
|
26
|
-
- '"
|
26
|
+
- '"3d3b2752259fc1fac8fc255965f7cd7f"'
|
27
27
|
Cache-Control:
|
28
28
|
- max-age=0, private, must-revalidate
|
29
29
|
X-Request-Id:
|
30
|
-
-
|
30
|
+
- 069a65b7-5ade-4cf1-ae3f-5996fc9003e0
|
31
31
|
X-Runtime:
|
32
|
-
- '0.
|
32
|
+
- '0.072196'
|
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/","rel":"root","links":[{"rel":"apiv2_root","href":"http://localhost:3003"},{"rel":"authorization","href":"http://localhost:3004"},{"rel":"apn_devices","href":"http://localhost:3000/apn_devices"},{"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":"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":"countries","href":"http://localhost:3000/countries"},{"rel":"custom_data","href":"http://localhost:3000/custom_data"},{"rel":"custom_fields","href":"http://localhost:3000/custom_fields"},{"rel":"league_custom_data","href":"http://localhost:3000/league_custom_data"},{"rel":"league_custom_fields","href":"http://localhost:3000/league_custom_fields"},{"rel":"divisions","href":"http://localhost:3000/divisions"},{"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_events","href":"http://localhost:3000/division_events"},{"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_events_imports","href":"http://localhost:3000/division_events_imports"},{"rel":"division_team_standings","href":"http://localhost:3000/division_team_standings"},{"rel":"divisions_preferences","href":"http://localhost:3000/divisions_preferences"},{"rel":"event_statistics","href":"http://localhost:3000/event_statistics"},{"rel":"events","href":"http://localhost:3000/events"},{"rel":"facebook_pages","href":"http://localhost:3000/facebook_pages"},{"rel":"forecasts","href":"http://localhost:3000/forecasts"},{"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":"geocoded_locations","href":"http://localhost:3000/geocoded_locations"},{"rel":"gcm_devices","href":"http://localhost:3000/gcm_devices"},{"rel":"league_registrant_documents","href":"http://localhost:3000/league_registrant_documents"},{"rel":"locations","href":"http://localhost:3000/locations"},{"rel":"me","href":"http://localhost:3000/me"},{"rel":"member_email_addresses","href":"http://localhost:3000/member_email_addresses"},{"rel":"member_balances","href":"http://localhost:3000/member_balances"},{"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":"payment_notes","href":"http://localhost:3000/payment_notes"},{"rel":"paypal_currencies","href":"http://localhost:3000/paypal_currencies"},{"rel":"plans","href":"http://localhost:3000/plans"},{"rel":"plans_all","href":"http://localhost:3000/plans/all"},{"rel":"public_features","href":"http://localhost:3000/public_features"},{"rel":"schemas","href":"http://localhost:3000/schemas"},{"rel":"sms_gateways","href":"http://localhost:3000/sms_gateways"},{"rel":"sponsors","href":"http://localhost:3000/sponsors"},{"rel":"sports","href":"http://localhost:3000/sports"},{"rel":"statistics","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_groups","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_photos","href":"http://localhost:3000/team_photos"},{"rel":"team_public_sites","href":"http://localhost:3000/team_public_sites"},{"rel":"teams","href":"http://localhost:3000/teams"},{"rel":"teams_paypal_preferences","href":"http://localhost:3000/teams_paypal_preferences"},{"rel":"teams_preferences","href":"http://localhost:3000/teams_preferences"},{"rel":"teams_results","href":"http://localhost:3000/teams_results"},{"rel":"team_statistics","href":"http://localhost:3000/team_statistics"},{"rel":"time_zones","href":"http://localhost:3000/time_zones"},{"rel":"tracked_item_statuses","href":"http://localhost:3000/tracked_item_statuses"},{"rel":"tracked_items","href":"http://localhost:3000/tracked_items"},{"rel":"tsl_metadata","href":"http://localhost:3000/tsl_metadata"},{"rel":"tsl_chats","href":"http://localhost:3000/tsl_chats"},{"rel":"tsl_photos","href":"http://localhost:3000/tsl_photos"},{"rel":"tsl_scores","href":"http://localhost:3000/tsl_scores"},{"rel":"users","href":"http://localhost:3000/users"},{"rel":"dude","href":"http://localhost:3000/dude"},{"rel":"sweet","href":"http://localhost:3000/sweet"},{"rel":"random","href":"http://localhost:3000/random"},{"rel":"xyzzy","href":"http://localhost:3000/xyzzy"},{"rel":"root","href":"http://localhost:3000/"},{"rel":"self","href":"http://localhost:3000/"}],"queries":[{"rel":"bulk_load","href":"http://localhost:3000/bulk_load","prompt":"Returns
|
40
40
|
a heterogeneous collection of the specified types for a specified team or
|
41
41
|
teams. Additional filters can be passed into requested types by passing them
|
42
42
|
in the url''s querystring as type__filter=value (i.e. ?event__start_date=2015-01-01).
|
@@ -58,17 +58,19 @@ http_interactions:
|
|
58
58
|
of the related result sets to. For instance, scoping assignments to events
|
59
59
|
and providing a filter on events will return only assignments for the events
|
60
60
|
returned."},{"name":"types","value":null,"prompt":"A comma separated list
|
61
|
-
of singular types that you want returned.
|
61
|
+
of singular types that you want returned. You may also specify a query by
|
62
|
+
proceeding the type with a ''__<query_name>''. For instance ''member__personas''
|
63
|
+
will use ''personas'' query on the ''members'' endpoint."}]},{"rel":"me","href":"http://localhost:3000/me"},{"rel":"feature","href":"http://localhost:3000/feature","data":[{"name":"id","value":null},{"name":"type","value":null},{"name":"feature_name","value":null}]},{"rel":"forecast","href":"http://localhost:3000/forecasts/search","data":[{"name":"team_id","value":null}]},{"rel":"geocode","href":"http://localhost:3000/geocoded_locations/search","data":[{"name":"country","value":null},{"name":"postal_code","value":null}]},{"rel":"generate_firebase_token","href":"http://localhost:3000/generate_firebase_token","data":[{"name":"team_id","value":null},{"name":"version","value":null}]},{"rel":"invitation_finder","href":"http://localhost:3000/invitation_finder","data":[{"name":"email_address","value":null}]}],"commands":[{"rel":"send_invitations","href":"http://localhost:3000/send_invitations","prompt":"Send
|
62
64
|
any pending invitations for a specified email address","data":[{"name":"email_address","value":null}]},{"rel":"welcome","href":"http://localhost:3000/welcome","prompt":"Send
|
63
65
|
a welcome email to an unregistered user to start the registration process","data":[{"name":"email_address","value":null},{"name":"client_id","value":null},{"name":"redirect_uri","value":null}]},{"rel":"initiate_registration","href":"http://localhost:3000/initiate_registration","prompt":"Send
|
64
66
|
a signup email to an unregistered user to start the registration process","data":[{"name":"email_address","value":null},{"name":"client_id","value":null},{"name":"redirect_uri","value":null}]}]}}'
|
65
67
|
http_version: '1.1'
|
66
68
|
adapter_metadata:
|
67
|
-
effective_url: http://localhost:3000/?hmac_client_id=classic&hmac_nonce=
|
68
|
-
recorded_at: Wed,
|
69
|
+
effective_url: http://localhost:3000/?hmac_client_id=classic&hmac_nonce=097c9638-8d04-4b0c-9122-062c0b48be74&hmac_timestamp=1464801846
|
70
|
+
recorded_at: Wed, 01 Jun 2016 17:24:06 GMT
|
69
71
|
- request:
|
70
72
|
method: get
|
71
|
-
uri: http://localhost:3000/?hmac_client_id=classic&hmac_nonce=
|
73
|
+
uri: http://localhost:3000/?hmac_client_id=classic&hmac_nonce=ffb254cc-799d-480f-a062-7b02e75c3ad7&hmac_timestamp=1464801846
|
72
74
|
body:
|
73
75
|
encoding: US-ASCII
|
74
76
|
string: ''
|
@@ -76,7 +78,7 @@ http_interactions:
|
|
76
78
|
User-Agent:
|
77
79
|
- Faraday v0.9.2
|
78
80
|
X-Teamsnap-Hmac:
|
79
|
-
-
|
81
|
+
- 0b0ec5d124319f0ade47f6ad746af3ca8754d0c24abbf9509d0e5484ab4fa03a
|
80
82
|
response:
|
81
83
|
status:
|
82
84
|
code: 200
|
@@ -85,24 +87,24 @@ http_interactions:
|
|
85
87
|
Content-Type:
|
86
88
|
- application/vnd.collection+json
|
87
89
|
Content-Length:
|
88
|
-
- '
|
90
|
+
- '10199'
|
89
91
|
X-Content-Type-Options:
|
90
92
|
- nosniff
|
91
93
|
ETag:
|
92
|
-
- '"
|
94
|
+
- '"3d3b2752259fc1fac8fc255965f7cd7f"'
|
93
95
|
Cache-Control:
|
94
96
|
- max-age=0, private, must-revalidate
|
95
97
|
X-Request-Id:
|
96
|
-
-
|
98
|
+
- 1f40b14d-82bc-462b-829f-ea9f4f26797b
|
97
99
|
X-Runtime:
|
98
|
-
- '0.
|
100
|
+
- '0.080362'
|
99
101
|
Connection:
|
100
102
|
- keep-alive
|
101
103
|
Server:
|
102
104
|
- thin
|
103
105
|
body:
|
104
106
|
encoding: UTF-8
|
105
|
-
string: '{"collection":{"version":"3.
|
107
|
+
string: '{"collection":{"version":"3.276.0","href":"http://localhost:3000/","rel":"root","links":[{"rel":"apiv2_root","href":"http://localhost:3003"},{"rel":"authorization","href":"http://localhost:3004"},{"rel":"apn_devices","href":"http://localhost:3000/apn_devices"},{"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":"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":"countries","href":"http://localhost:3000/countries"},{"rel":"custom_data","href":"http://localhost:3000/custom_data"},{"rel":"custom_fields","href":"http://localhost:3000/custom_fields"},{"rel":"league_custom_data","href":"http://localhost:3000/league_custom_data"},{"rel":"league_custom_fields","href":"http://localhost:3000/league_custom_fields"},{"rel":"divisions","href":"http://localhost:3000/divisions"},{"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_events","href":"http://localhost:3000/division_events"},{"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_events_imports","href":"http://localhost:3000/division_events_imports"},{"rel":"division_team_standings","href":"http://localhost:3000/division_team_standings"},{"rel":"divisions_preferences","href":"http://localhost:3000/divisions_preferences"},{"rel":"event_statistics","href":"http://localhost:3000/event_statistics"},{"rel":"events","href":"http://localhost:3000/events"},{"rel":"facebook_pages","href":"http://localhost:3000/facebook_pages"},{"rel":"forecasts","href":"http://localhost:3000/forecasts"},{"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":"geocoded_locations","href":"http://localhost:3000/geocoded_locations"},{"rel":"gcm_devices","href":"http://localhost:3000/gcm_devices"},{"rel":"league_registrant_documents","href":"http://localhost:3000/league_registrant_documents"},{"rel":"locations","href":"http://localhost:3000/locations"},{"rel":"me","href":"http://localhost:3000/me"},{"rel":"member_email_addresses","href":"http://localhost:3000/member_email_addresses"},{"rel":"member_balances","href":"http://localhost:3000/member_balances"},{"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":"payment_notes","href":"http://localhost:3000/payment_notes"},{"rel":"paypal_currencies","href":"http://localhost:3000/paypal_currencies"},{"rel":"plans","href":"http://localhost:3000/plans"},{"rel":"plans_all","href":"http://localhost:3000/plans/all"},{"rel":"public_features","href":"http://localhost:3000/public_features"},{"rel":"schemas","href":"http://localhost:3000/schemas"},{"rel":"sms_gateways","href":"http://localhost:3000/sms_gateways"},{"rel":"sponsors","href":"http://localhost:3000/sponsors"},{"rel":"sports","href":"http://localhost:3000/sports"},{"rel":"statistics","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_groups","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_photos","href":"http://localhost:3000/team_photos"},{"rel":"team_public_sites","href":"http://localhost:3000/team_public_sites"},{"rel":"teams","href":"http://localhost:3000/teams"},{"rel":"teams_paypal_preferences","href":"http://localhost:3000/teams_paypal_preferences"},{"rel":"teams_preferences","href":"http://localhost:3000/teams_preferences"},{"rel":"teams_results","href":"http://localhost:3000/teams_results"},{"rel":"team_statistics","href":"http://localhost:3000/team_statistics"},{"rel":"time_zones","href":"http://localhost:3000/time_zones"},{"rel":"tracked_item_statuses","href":"http://localhost:3000/tracked_item_statuses"},{"rel":"tracked_items","href":"http://localhost:3000/tracked_items"},{"rel":"tsl_metadata","href":"http://localhost:3000/tsl_metadata"},{"rel":"tsl_chats","href":"http://localhost:3000/tsl_chats"},{"rel":"tsl_photos","href":"http://localhost:3000/tsl_photos"},{"rel":"tsl_scores","href":"http://localhost:3000/tsl_scores"},{"rel":"users","href":"http://localhost:3000/users"},{"rel":"dude","href":"http://localhost:3000/dude"},{"rel":"sweet","href":"http://localhost:3000/sweet"},{"rel":"random","href":"http://localhost:3000/random"},{"rel":"xyzzy","href":"http://localhost:3000/xyzzy"},{"rel":"root","href":"http://localhost:3000/"},{"rel":"self","href":"http://localhost:3000/"}],"queries":[{"rel":"bulk_load","href":"http://localhost:3000/bulk_load","prompt":"Returns
|
106
108
|
a heterogeneous collection of the specified types for a specified team or
|
107
109
|
teams. Additional filters can be passed into requested types by passing them
|
108
110
|
in the url''s querystring as type__filter=value (i.e. ?event__start_date=2015-01-01).
|
@@ -124,17 +126,19 @@ http_interactions:
|
|
124
126
|
of the related result sets to. For instance, scoping assignments to events
|
125
127
|
and providing a filter on events will return only assignments for the events
|
126
128
|
returned."},{"name":"types","value":null,"prompt":"A comma separated list
|
127
|
-
of singular types that you want returned.
|
129
|
+
of singular types that you want returned. You may also specify a query by
|
130
|
+
proceeding the type with a ''__<query_name>''. For instance ''member__personas''
|
131
|
+
will use ''personas'' query on the ''members'' endpoint."}]},{"rel":"me","href":"http://localhost:3000/me"},{"rel":"feature","href":"http://localhost:3000/feature","data":[{"name":"id","value":null},{"name":"type","value":null},{"name":"feature_name","value":null}]},{"rel":"forecast","href":"http://localhost:3000/forecasts/search","data":[{"name":"team_id","value":null}]},{"rel":"geocode","href":"http://localhost:3000/geocoded_locations/search","data":[{"name":"country","value":null},{"name":"postal_code","value":null}]},{"rel":"generate_firebase_token","href":"http://localhost:3000/generate_firebase_token","data":[{"name":"team_id","value":null},{"name":"version","value":null}]},{"rel":"invitation_finder","href":"http://localhost:3000/invitation_finder","data":[{"name":"email_address","value":null}]}],"commands":[{"rel":"send_invitations","href":"http://localhost:3000/send_invitations","prompt":"Send
|
128
132
|
any pending invitations for a specified email address","data":[{"name":"email_address","value":null}]},{"rel":"welcome","href":"http://localhost:3000/welcome","prompt":"Send
|
129
133
|
a welcome email to an unregistered user to start the registration process","data":[{"name":"email_address","value":null},{"name":"client_id","value":null},{"name":"redirect_uri","value":null}]},{"rel":"initiate_registration","href":"http://localhost:3000/initiate_registration","prompt":"Send
|
130
134
|
a signup email to an unregistered user to start the registration process","data":[{"name":"email_address","value":null},{"name":"client_id","value":null},{"name":"redirect_uri","value":null}]}]}}'
|
131
135
|
http_version: '1.1'
|
132
136
|
adapter_metadata:
|
133
|
-
effective_url: http://localhost:3000/?hmac_client_id=classic&hmac_nonce=
|
134
|
-
recorded_at: Wed,
|
137
|
+
effective_url: http://localhost:3000/?hmac_client_id=classic&hmac_nonce=ffb254cc-799d-480f-a062-7b02e75c3ad7&hmac_timestamp=1464801846
|
138
|
+
recorded_at: Wed, 01 Jun 2016 17:24:06 GMT
|
135
139
|
- request:
|
136
140
|
method: get
|
137
|
-
uri: http://localhost:3000/?hmac_client_id=classic&hmac_nonce=
|
141
|
+
uri: http://localhost:3000/?hmac_client_id=classic&hmac_nonce=946dd591-b3dc-4e63-853d-38db2339b17b&hmac_timestamp=1464801846
|
138
142
|
body:
|
139
143
|
encoding: US-ASCII
|
140
144
|
string: ''
|
@@ -142,7 +146,7 @@ http_interactions:
|
|
142
146
|
User-Agent:
|
143
147
|
- Faraday v0.9.2
|
144
148
|
X-Teamsnap-Hmac:
|
145
|
-
-
|
149
|
+
- fcb58791d275b77b5c5c34ddd4dba5e5b665ad6d13fb8139e8abb96ffb08c4fd
|
146
150
|
response:
|
147
151
|
status:
|
148
152
|
code: 200
|
@@ -151,24 +155,24 @@ http_interactions:
|
|
151
155
|
Content-Type:
|
152
156
|
- application/vnd.collection+json
|
153
157
|
Content-Length:
|
154
|
-
- '
|
158
|
+
- '10199'
|
155
159
|
X-Content-Type-Options:
|
156
160
|
- nosniff
|
157
161
|
ETag:
|
158
|
-
- '"
|
162
|
+
- '"3d3b2752259fc1fac8fc255965f7cd7f"'
|
159
163
|
Cache-Control:
|
160
164
|
- max-age=0, private, must-revalidate
|
161
165
|
X-Request-Id:
|
162
|
-
-
|
166
|
+
- 5dba422a-f0e2-410b-9b48-93b872a10c8f
|
163
167
|
X-Runtime:
|
164
|
-
- '0.
|
168
|
+
- '0.069682'
|
165
169
|
Connection:
|
166
170
|
- keep-alive
|
167
171
|
Server:
|
168
172
|
- thin
|
169
173
|
body:
|
170
174
|
encoding: UTF-8
|
171
|
-
string: '{"collection":{"version":"3.
|
175
|
+
string: '{"collection":{"version":"3.276.0","href":"http://localhost:3000/","rel":"root","links":[{"rel":"apiv2_root","href":"http://localhost:3003"},{"rel":"authorization","href":"http://localhost:3004"},{"rel":"apn_devices","href":"http://localhost:3000/apn_devices"},{"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":"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":"countries","href":"http://localhost:3000/countries"},{"rel":"custom_data","href":"http://localhost:3000/custom_data"},{"rel":"custom_fields","href":"http://localhost:3000/custom_fields"},{"rel":"league_custom_data","href":"http://localhost:3000/league_custom_data"},{"rel":"league_custom_fields","href":"http://localhost:3000/league_custom_fields"},{"rel":"divisions","href":"http://localhost:3000/divisions"},{"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_events","href":"http://localhost:3000/division_events"},{"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_events_imports","href":"http://localhost:3000/division_events_imports"},{"rel":"division_team_standings","href":"http://localhost:3000/division_team_standings"},{"rel":"divisions_preferences","href":"http://localhost:3000/divisions_preferences"},{"rel":"event_statistics","href":"http://localhost:3000/event_statistics"},{"rel":"events","href":"http://localhost:3000/events"},{"rel":"facebook_pages","href":"http://localhost:3000/facebook_pages"},{"rel":"forecasts","href":"http://localhost:3000/forecasts"},{"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":"geocoded_locations","href":"http://localhost:3000/geocoded_locations"},{"rel":"gcm_devices","href":"http://localhost:3000/gcm_devices"},{"rel":"league_registrant_documents","href":"http://localhost:3000/league_registrant_documents"},{"rel":"locations","href":"http://localhost:3000/locations"},{"rel":"me","href":"http://localhost:3000/me"},{"rel":"member_email_addresses","href":"http://localhost:3000/member_email_addresses"},{"rel":"member_balances","href":"http://localhost:3000/member_balances"},{"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":"payment_notes","href":"http://localhost:3000/payment_notes"},{"rel":"paypal_currencies","href":"http://localhost:3000/paypal_currencies"},{"rel":"plans","href":"http://localhost:3000/plans"},{"rel":"plans_all","href":"http://localhost:3000/plans/all"},{"rel":"public_features","href":"http://localhost:3000/public_features"},{"rel":"schemas","href":"http://localhost:3000/schemas"},{"rel":"sms_gateways","href":"http://localhost:3000/sms_gateways"},{"rel":"sponsors","href":"http://localhost:3000/sponsors"},{"rel":"sports","href":"http://localhost:3000/sports"},{"rel":"statistics","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_groups","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_photos","href":"http://localhost:3000/team_photos"},{"rel":"team_public_sites","href":"http://localhost:3000/team_public_sites"},{"rel":"teams","href":"http://localhost:3000/teams"},{"rel":"teams_paypal_preferences","href":"http://localhost:3000/teams_paypal_preferences"},{"rel":"teams_preferences","href":"http://localhost:3000/teams_preferences"},{"rel":"teams_results","href":"http://localhost:3000/teams_results"},{"rel":"team_statistics","href":"http://localhost:3000/team_statistics"},{"rel":"time_zones","href":"http://localhost:3000/time_zones"},{"rel":"tracked_item_statuses","href":"http://localhost:3000/tracked_item_statuses"},{"rel":"tracked_items","href":"http://localhost:3000/tracked_items"},{"rel":"tsl_metadata","href":"http://localhost:3000/tsl_metadata"},{"rel":"tsl_chats","href":"http://localhost:3000/tsl_chats"},{"rel":"tsl_photos","href":"http://localhost:3000/tsl_photos"},{"rel":"tsl_scores","href":"http://localhost:3000/tsl_scores"},{"rel":"users","href":"http://localhost:3000/users"},{"rel":"dude","href":"http://localhost:3000/dude"},{"rel":"sweet","href":"http://localhost:3000/sweet"},{"rel":"random","href":"http://localhost:3000/random"},{"rel":"xyzzy","href":"http://localhost:3000/xyzzy"},{"rel":"root","href":"http://localhost:3000/"},{"rel":"self","href":"http://localhost:3000/"}],"queries":[{"rel":"bulk_load","href":"http://localhost:3000/bulk_load","prompt":"Returns
|
172
176
|
a heterogeneous collection of the specified types for a specified team or
|
173
177
|
teams. Additional filters can be passed into requested types by passing them
|
174
178
|
in the url''s querystring as type__filter=value (i.e. ?event__start_date=2015-01-01).
|
@@ -190,17 +194,19 @@ http_interactions:
|
|
190
194
|
of the related result sets to. For instance, scoping assignments to events
|
191
195
|
and providing a filter on events will return only assignments for the events
|
192
196
|
returned."},{"name":"types","value":null,"prompt":"A comma separated list
|
193
|
-
of singular types that you want returned.
|
197
|
+
of singular types that you want returned. You may also specify a query by
|
198
|
+
proceeding the type with a ''__<query_name>''. For instance ''member__personas''
|
199
|
+
will use ''personas'' query on the ''members'' endpoint."}]},{"rel":"me","href":"http://localhost:3000/me"},{"rel":"feature","href":"http://localhost:3000/feature","data":[{"name":"id","value":null},{"name":"type","value":null},{"name":"feature_name","value":null}]},{"rel":"forecast","href":"http://localhost:3000/forecasts/search","data":[{"name":"team_id","value":null}]},{"rel":"geocode","href":"http://localhost:3000/geocoded_locations/search","data":[{"name":"country","value":null},{"name":"postal_code","value":null}]},{"rel":"generate_firebase_token","href":"http://localhost:3000/generate_firebase_token","data":[{"name":"team_id","value":null},{"name":"version","value":null}]},{"rel":"invitation_finder","href":"http://localhost:3000/invitation_finder","data":[{"name":"email_address","value":null}]}],"commands":[{"rel":"send_invitations","href":"http://localhost:3000/send_invitations","prompt":"Send
|
194
200
|
any pending invitations for a specified email address","data":[{"name":"email_address","value":null}]},{"rel":"welcome","href":"http://localhost:3000/welcome","prompt":"Send
|
195
201
|
a welcome email to an unregistered user to start the registration process","data":[{"name":"email_address","value":null},{"name":"client_id","value":null},{"name":"redirect_uri","value":null}]},{"rel":"initiate_registration","href":"http://localhost:3000/initiate_registration","prompt":"Send
|
196
202
|
a signup email to an unregistered user to start the registration process","data":[{"name":"email_address","value":null},{"name":"client_id","value":null},{"name":"redirect_uri","value":null}]}]}}'
|
197
203
|
http_version: '1.1'
|
198
204
|
adapter_metadata:
|
199
|
-
effective_url: http://localhost:3000/?hmac_client_id=classic&hmac_nonce=
|
200
|
-
recorded_at: Wed,
|
205
|
+
effective_url: http://localhost:3000/?hmac_client_id=classic&hmac_nonce=946dd591-b3dc-4e63-853d-38db2339b17b&hmac_timestamp=1464801846
|
206
|
+
recorded_at: Wed, 01 Jun 2016 17:24:06 GMT
|
201
207
|
- request:
|
202
208
|
method: get
|
203
|
-
uri: http://localhost:3000/?hmac_client_id=classic&hmac_nonce=
|
209
|
+
uri: http://localhost:3000/?hmac_client_id=classic&hmac_nonce=e86854e1-8073-4fb6-b01f-9dcc8de6caf9&hmac_timestamp=1464801846
|
204
210
|
body:
|
205
211
|
encoding: US-ASCII
|
206
212
|
string: ''
|
@@ -208,7 +214,7 @@ http_interactions:
|
|
208
214
|
User-Agent:
|
209
215
|
- Faraday v0.9.2
|
210
216
|
X-Teamsnap-Hmac:
|
211
|
-
-
|
217
|
+
- cd1c91ec93b879068a7e5d5fca1b70488957d8117170cbf97c4ced4a065d2889
|
212
218
|
response:
|
213
219
|
status:
|
214
220
|
code: 200
|
@@ -217,24 +223,24 @@ http_interactions:
|
|
217
223
|
Content-Type:
|
218
224
|
- application/vnd.collection+json
|
219
225
|
Content-Length:
|
220
|
-
- '
|
226
|
+
- '10199'
|
221
227
|
X-Content-Type-Options:
|
222
228
|
- nosniff
|
223
229
|
ETag:
|
224
|
-
- '"
|
230
|
+
- '"3d3b2752259fc1fac8fc255965f7cd7f"'
|
225
231
|
Cache-Control:
|
226
232
|
- max-age=0, private, must-revalidate
|
227
233
|
X-Request-Id:
|
228
|
-
-
|
234
|
+
- 7c4499ae-ae77-4cba-b3a7-eff1607c7244
|
229
235
|
X-Runtime:
|
230
|
-
- '0.
|
236
|
+
- '0.050002'
|
231
237
|
Connection:
|
232
238
|
- keep-alive
|
233
239
|
Server:
|
234
240
|
- thin
|
235
241
|
body:
|
236
242
|
encoding: UTF-8
|
237
|
-
string: '{"collection":{"version":"3.
|
243
|
+
string: '{"collection":{"version":"3.276.0","href":"http://localhost:3000/","rel":"root","links":[{"rel":"apiv2_root","href":"http://localhost:3003"},{"rel":"authorization","href":"http://localhost:3004"},{"rel":"apn_devices","href":"http://localhost:3000/apn_devices"},{"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":"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":"countries","href":"http://localhost:3000/countries"},{"rel":"custom_data","href":"http://localhost:3000/custom_data"},{"rel":"custom_fields","href":"http://localhost:3000/custom_fields"},{"rel":"league_custom_data","href":"http://localhost:3000/league_custom_data"},{"rel":"league_custom_fields","href":"http://localhost:3000/league_custom_fields"},{"rel":"divisions","href":"http://localhost:3000/divisions"},{"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_events","href":"http://localhost:3000/division_events"},{"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_events_imports","href":"http://localhost:3000/division_events_imports"},{"rel":"division_team_standings","href":"http://localhost:3000/division_team_standings"},{"rel":"divisions_preferences","href":"http://localhost:3000/divisions_preferences"},{"rel":"event_statistics","href":"http://localhost:3000/event_statistics"},{"rel":"events","href":"http://localhost:3000/events"},{"rel":"facebook_pages","href":"http://localhost:3000/facebook_pages"},{"rel":"forecasts","href":"http://localhost:3000/forecasts"},{"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":"geocoded_locations","href":"http://localhost:3000/geocoded_locations"},{"rel":"gcm_devices","href":"http://localhost:3000/gcm_devices"},{"rel":"league_registrant_documents","href":"http://localhost:3000/league_registrant_documents"},{"rel":"locations","href":"http://localhost:3000/locations"},{"rel":"me","href":"http://localhost:3000/me"},{"rel":"member_email_addresses","href":"http://localhost:3000/member_email_addresses"},{"rel":"member_balances","href":"http://localhost:3000/member_balances"},{"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":"payment_notes","href":"http://localhost:3000/payment_notes"},{"rel":"paypal_currencies","href":"http://localhost:3000/paypal_currencies"},{"rel":"plans","href":"http://localhost:3000/plans"},{"rel":"plans_all","href":"http://localhost:3000/plans/all"},{"rel":"public_features","href":"http://localhost:3000/public_features"},{"rel":"schemas","href":"http://localhost:3000/schemas"},{"rel":"sms_gateways","href":"http://localhost:3000/sms_gateways"},{"rel":"sponsors","href":"http://localhost:3000/sponsors"},{"rel":"sports","href":"http://localhost:3000/sports"},{"rel":"statistics","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_groups","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_photos","href":"http://localhost:3000/team_photos"},{"rel":"team_public_sites","href":"http://localhost:3000/team_public_sites"},{"rel":"teams","href":"http://localhost:3000/teams"},{"rel":"teams_paypal_preferences","href":"http://localhost:3000/teams_paypal_preferences"},{"rel":"teams_preferences","href":"http://localhost:3000/teams_preferences"},{"rel":"teams_results","href":"http://localhost:3000/teams_results"},{"rel":"team_statistics","href":"http://localhost:3000/team_statistics"},{"rel":"time_zones","href":"http://localhost:3000/time_zones"},{"rel":"tracked_item_statuses","href":"http://localhost:3000/tracked_item_statuses"},{"rel":"tracked_items","href":"http://localhost:3000/tracked_items"},{"rel":"tsl_metadata","href":"http://localhost:3000/tsl_metadata"},{"rel":"tsl_chats","href":"http://localhost:3000/tsl_chats"},{"rel":"tsl_photos","href":"http://localhost:3000/tsl_photos"},{"rel":"tsl_scores","href":"http://localhost:3000/tsl_scores"},{"rel":"users","href":"http://localhost:3000/users"},{"rel":"dude","href":"http://localhost:3000/dude"},{"rel":"sweet","href":"http://localhost:3000/sweet"},{"rel":"random","href":"http://localhost:3000/random"},{"rel":"xyzzy","href":"http://localhost:3000/xyzzy"},{"rel":"root","href":"http://localhost:3000/"},{"rel":"self","href":"http://localhost:3000/"}],"queries":[{"rel":"bulk_load","href":"http://localhost:3000/bulk_load","prompt":"Returns
|
238
244
|
a heterogeneous collection of the specified types for a specified team or
|
239
245
|
teams. Additional filters can be passed into requested types by passing them
|
240
246
|
in the url''s querystring as type__filter=value (i.e. ?event__start_date=2015-01-01).
|
@@ -256,12 +262,14 @@ http_interactions:
|
|
256
262
|
of the related result sets to. For instance, scoping assignments to events
|
257
263
|
and providing a filter on events will return only assignments for the events
|
258
264
|
returned."},{"name":"types","value":null,"prompt":"A comma separated list
|
259
|
-
of singular types that you want returned.
|
265
|
+
of singular types that you want returned. You may also specify a query by
|
266
|
+
proceeding the type with a ''__<query_name>''. For instance ''member__personas''
|
267
|
+
will use ''personas'' query on the ''members'' endpoint."}]},{"rel":"me","href":"http://localhost:3000/me"},{"rel":"feature","href":"http://localhost:3000/feature","data":[{"name":"id","value":null},{"name":"type","value":null},{"name":"feature_name","value":null}]},{"rel":"forecast","href":"http://localhost:3000/forecasts/search","data":[{"name":"team_id","value":null}]},{"rel":"geocode","href":"http://localhost:3000/geocoded_locations/search","data":[{"name":"country","value":null},{"name":"postal_code","value":null}]},{"rel":"generate_firebase_token","href":"http://localhost:3000/generate_firebase_token","data":[{"name":"team_id","value":null},{"name":"version","value":null}]},{"rel":"invitation_finder","href":"http://localhost:3000/invitation_finder","data":[{"name":"email_address","value":null}]}],"commands":[{"rel":"send_invitations","href":"http://localhost:3000/send_invitations","prompt":"Send
|
260
268
|
any pending invitations for a specified email address","data":[{"name":"email_address","value":null}]},{"rel":"welcome","href":"http://localhost:3000/welcome","prompt":"Send
|
261
269
|
a welcome email to an unregistered user to start the registration process","data":[{"name":"email_address","value":null},{"name":"client_id","value":null},{"name":"redirect_uri","value":null}]},{"rel":"initiate_registration","href":"http://localhost:3000/initiate_registration","prompt":"Send
|
262
270
|
a signup email to an unregistered user to start the registration process","data":[{"name":"email_address","value":null},{"name":"client_id","value":null},{"name":"redirect_uri","value":null}]}]}}'
|
263
271
|
http_version: '1.1'
|
264
272
|
adapter_metadata:
|
265
|
-
effective_url: http://localhost:3000/?hmac_client_id=classic&hmac_nonce=
|
266
|
-
recorded_at: Wed,
|
273
|
+
effective_url: http://localhost:3000/?hmac_client_id=classic&hmac_nonce=e86854e1-8073-4fb6-b01f-9dcc8de6caf9&hmac_timestamp=1464801846
|
274
|
+
recorded_at: Wed, 01 Jun 2016 17:24:06 GMT
|
267
275
|
recorded_with: VCR 2.9.3
|
data/spec/spec_helper.rb
CHANGED
data/spec/teamsnap/item_spec.rb
CHANGED
@@ -159,5 +159,40 @@ RSpec.describe "teamsnap__item", :vcr => true do
|
|
159
159
|
expect(item.logo_url).to eq("http://example.com/logo.png")
|
160
160
|
expect(item.attributes[:logo_url]).to eq("http://example.com/logo.png")
|
161
161
|
end
|
162
|
+
|
163
|
+
it "adds new attributes for items" do
|
164
|
+
collection = {
|
165
|
+
:items => [
|
166
|
+
{
|
167
|
+
:href => "http://localhost:3000/teams/10",
|
168
|
+
:data => [
|
169
|
+
{:name => "id", :value => 10},
|
170
|
+
{:name => "type", :value => "team"}
|
171
|
+
]
|
172
|
+
}
|
173
|
+
]
|
174
|
+
}
|
175
|
+
next_collection = {
|
176
|
+
:items => [
|
177
|
+
{
|
178
|
+
:href => "http://localhost:3000/teams/10",
|
179
|
+
:data => [
|
180
|
+
{:name => "id", :value => 11},
|
181
|
+
{:name => "type", :value => "team"},
|
182
|
+
{:name => "new_attr", :value => "new_value"}
|
183
|
+
]
|
184
|
+
}
|
185
|
+
]
|
186
|
+
}
|
187
|
+
|
188
|
+
item = TeamSnap::Item.load_items(TeamSnap.root_client, collection)[0]
|
189
|
+
expect(item.class).to eq(TeamSnap::Team)
|
190
|
+
expect(item.id).to eq(10)
|
191
|
+
|
192
|
+
item = TeamSnap::Item.load_items(TeamSnap.root_client, next_collection)[0]
|
193
|
+
expect(item.class).to eq(TeamSnap::Team)
|
194
|
+
expect(item.id).to eq(11)
|
195
|
+
expect(item.new_attr).to eq("new_value")
|
196
|
+
end
|
162
197
|
end
|
163
198
|
end
|
data/spec/teamsnap_spec.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: teamsnap_rb
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0.0.
|
4
|
+
version: 2.0.0.beta7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Shane Emmons
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2016-
|
12
|
+
date: 2016-06-08 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rake
|