ftc_events_client 0.1.0
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 +7 -0
- data/Gemfile +9 -0
- data/README.md +236 -0
- data/Rakefile +10 -0
- data/config.json +8 -0
- data/docs/AllianceModelVersion2.md +32 -0
- data/docs/AllianceScore2020.md +86 -0
- data/docs/AllianceSelectionApi.md +62 -0
- data/docs/AllianceSelectionModelVersion2.md +20 -0
- data/docs/ApiIndexModel.md +34 -0
- data/docs/AwardAssignmentModel.md +38 -0
- data/docs/AwardsApi.md +235 -0
- data/docs/AwardsModel.md +18 -0
- data/docs/EventMatchResultsModelVersion2.md +18 -0
- data/docs/EventRankingsModel.md +18 -0
- data/docs/EventScheduleHybridModelVersion2.md +18 -0
- data/docs/EventScheduleModelVersion2.md +18 -0
- data/docs/GeneralApi.md +51 -0
- data/docs/MatchResultModelVersion2.md +44 -0
- data/docs/MatchResultTeamModelVersion2.md +22 -0
- data/docs/MatchResultsApi.md +141 -0
- data/docs/MatchScoresModel.md +18 -0
- data/docs/MatchScoresModelMatchScoresOneOf.md +51 -0
- data/docs/RankingsApi.md +68 -0
- data/docs/ScheduleApi.md +135 -0
- data/docs/ScheduleHybridModelTeamVersion2.md +26 -0
- data/docs/ScheduleHybridModelVersion2.md +44 -0
- data/docs/ScheduledMatchModelVersion2.md +32 -0
- data/docs/ScheduledMatchTeamModelVersion2.md +24 -0
- data/docs/ScoreDetailAllianceModel2020.md +90 -0
- data/docs/ScoreDetailModel2019.md +22 -0
- data/docs/ScoreDetailModel2020.md +22 -0
- data/docs/ScoreDetailModelAlliance2019.md +84 -0
- data/docs/ScoreDetailModelSinglePlayer2020.md +24 -0
- data/docs/SeasonAwardListingsModel.md +18 -0
- data/docs/SeasonAwardsModel.md +24 -0
- data/docs/SeasonDataApi.md +182 -0
- data/docs/SeasonEventListingsModelVersion2.md +20 -0
- data/docs/SeasonEventModelVersion2.md +50 -0
- data/docs/SeasonSummaryModelChampionship.md +22 -0
- data/docs/SeasonSummaryModelVersion2.md +28 -0
- data/docs/SeasonTeamListingsModelVersion2.md +26 -0
- data/docs/SeasonTeamModelVersion2.md +40 -0
- data/docs/Stone.md +15 -0
- data/docs/TeamRankingModel.md +46 -0
- data/docs/TournamentLevel.md +15 -0
- data/ftc_events_client.gemspec +38 -0
- data/git_push.sh +58 -0
- data/lib/ftc_events_client.rb +80 -0
- data/lib/ftc_events_client/api/alliance_selection_api.rb +87 -0
- data/lib/ftc_events_client/api/awards_api.rb +296 -0
- data/lib/ftc_events_client/api/general_api.rb +79 -0
- data/lib/ftc_events_client/api/match_results_api.rb +185 -0
- data/lib/ftc_events_client/api/rankings_api.rb +93 -0
- data/lib/ftc_events_client/api/schedule_api.rb +176 -0
- data/lib/ftc_events_client/api/season_data_api.rb +229 -0
- data/lib/ftc_events_client/api_client.rb +390 -0
- data/lib/ftc_events_client/api_error.rb +57 -0
- data/lib/ftc_events_client/configuration.rb +275 -0
- data/lib/ftc_events_client/models/alliance_model_version2.rb +288 -0
- data/lib/ftc_events_client/models/alliance_score2020.rb +524 -0
- data/lib/ftc_events_client/models/alliance_selection_model_version2.rb +230 -0
- data/lib/ftc_events_client/models/api_index_model.rb +301 -0
- data/lib/ftc_events_client/models/award_assignment_model.rb +317 -0
- data/lib/ftc_events_client/models/awards_model.rb +221 -0
- data/lib/ftc_events_client/models/event_match_results_model_version2.rb +221 -0
- data/lib/ftc_events_client/models/event_rankings_model.rb +221 -0
- data/lib/ftc_events_client/models/event_schedule_hybrid_model_version2.rb +221 -0
- data/lib/ftc_events_client/models/event_schedule_model_version2.rb +221 -0
- data/lib/ftc_events_client/models/match_result_model_version2.rb +343 -0
- data/lib/ftc_events_client/models/match_result_team_model_version2.rb +237 -0
- data/lib/ftc_events_client/models/match_scores_model.rb +221 -0
- data/lib/ftc_events_client/models/match_scores_model_match_scores_one_of.rb +106 -0
- data/lib/ftc_events_client/models/schedule_hybrid_model_team_version2.rb +257 -0
- data/lib/ftc_events_client/models/schedule_hybrid_model_version2.rb +349 -0
- data/lib/ftc_events_client/models/scheduled_match_model_version2.rb +289 -0
- data/lib/ftc_events_client/models/scheduled_match_team_model_version2.rb +247 -0
- data/lib/ftc_events_client/models/score_detail_alliance_model2020.rb +543 -0
- data/lib/ftc_events_client/models/score_detail_model2019.rb +239 -0
- data/lib/ftc_events_client/models/score_detail_model2020.rb +239 -0
- data/lib/ftc_events_client/models/score_detail_model_alliance2019.rb +519 -0
- data/lib/ftc_events_client/models/score_detail_model_single_player2020.rb +245 -0
- data/lib/ftc_events_client/models/season_award_listings_model.rb +221 -0
- data/lib/ftc_events_client/models/season_awards_model.rb +247 -0
- data/lib/ftc_events_client/models/season_event_listings_model_version2.rb +230 -0
- data/lib/ftc_events_client/models/season_event_model_version2.rb +377 -0
- data/lib/ftc_events_client/models/season_summary_model_championship.rb +239 -0
- data/lib/ftc_events_client/models/season_summary_model_version2.rb +268 -0
- data/lib/ftc_events_client/models/season_team_listings_model_version2.rb +257 -0
- data/lib/ftc_events_client/models/season_team_model_version2.rb +328 -0
- data/lib/ftc_events_client/models/stone.rb +38 -0
- data/lib/ftc_events_client/models/team_ranking_model.rb +344 -0
- data/lib/ftc_events_client/models/tournament_level.rb +41 -0
- data/lib/ftc_events_client/version.rb +15 -0
- data/spec/api/alliance_selection_api_spec.rb +48 -0
- data/spec/api/awards_api_spec.rb +89 -0
- data/spec/api/general_api_spec.rb +46 -0
- data/spec/api/match_results_api_spec.rb +71 -0
- data/spec/api/rankings_api_spec.rb +50 -0
- data/spec/api/schedule_api_spec.rb +68 -0
- data/spec/api/season_data_api_spec.rb +77 -0
- data/spec/api_client_spec.rb +226 -0
- data/spec/configuration_spec.rb +42 -0
- data/spec/models/alliance_model_version2_spec.rb +76 -0
- data/spec/models/alliance_score2020_spec.rb +238 -0
- data/spec/models/alliance_selection_model_version2_spec.rb +40 -0
- data/spec/models/api_index_model_spec.rb +82 -0
- data/spec/models/award_assignment_model_spec.rb +94 -0
- data/spec/models/awards_model_spec.rb +34 -0
- data/spec/models/event_match_results_model_version2_spec.rb +34 -0
- data/spec/models/event_rankings_model_spec.rb +34 -0
- data/spec/models/event_schedule_hybrid_model_version2_spec.rb +34 -0
- data/spec/models/event_schedule_model_version2_spec.rb +34 -0
- data/spec/models/match_result_model_version2_spec.rb +112 -0
- data/spec/models/match_result_team_model_version2_spec.rb +46 -0
- data/spec/models/match_scores_model_match_scores_one_of_spec.rb +31 -0
- data/spec/models/match_scores_model_spec.rb +34 -0
- data/spec/models/schedule_hybrid_model_team_version2_spec.rb +58 -0
- data/spec/models/schedule_hybrid_model_version2_spec.rb +112 -0
- data/spec/models/scheduled_match_model_version2_spec.rb +76 -0
- data/spec/models/scheduled_match_team_model_version2_spec.rb +52 -0
- data/spec/models/score_detail_alliance_model2020_spec.rb +250 -0
- data/spec/models/score_detail_model2019_spec.rb +46 -0
- data/spec/models/score_detail_model2020_spec.rb +46 -0
- data/spec/models/score_detail_model_alliance2019_spec.rb +232 -0
- data/spec/models/score_detail_model_single_player2020_spec.rb +52 -0
- data/spec/models/season_award_listings_model_spec.rb +34 -0
- data/spec/models/season_awards_model_spec.rb +52 -0
- data/spec/models/season_event_listings_model_version2_spec.rb +40 -0
- data/spec/models/season_event_model_version2_spec.rb +130 -0
- data/spec/models/season_summary_model_championship_spec.rb +46 -0
- data/spec/models/season_summary_model_version2_spec.rb +64 -0
- data/spec/models/season_team_listings_model_version2_spec.rb +58 -0
- data/spec/models/season_team_model_version2_spec.rb +100 -0
- data/spec/models/stone_spec.rb +28 -0
- data/spec/models/team_ranking_model_spec.rb +118 -0
- data/spec/models/tournament_level_spec.rb +28 -0
- data/spec/spec_helper.rb +111 -0
- data/update.sh +8 -0
- metadata +265 -0
@@ -0,0 +1,44 @@
|
|
1
|
+
# FtcEventsClient::MatchResultModelVersion2
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **actual_start_time** | **Time** | | [optional] |
|
8
|
+
| **description** | **String** | | [optional] |
|
9
|
+
| **tournament_level** | **String** | | [optional] |
|
10
|
+
| **series** | **Integer** | | [optional] |
|
11
|
+
| **match_number** | **Integer** | | [optional] |
|
12
|
+
| **score_red_final** | **Integer** | | [optional] |
|
13
|
+
| **score_red_foul** | **Integer** | | [optional] |
|
14
|
+
| **score_red_auto** | **Integer** | | [optional] |
|
15
|
+
| **score_blue_final** | **Integer** | | [optional] |
|
16
|
+
| **score_blue_foul** | **Integer** | | [optional] |
|
17
|
+
| **score_blue_auto** | **Integer** | | [optional] |
|
18
|
+
| **post_result_time** | **Time** | | [optional] |
|
19
|
+
| **teams** | [**Array<MatchResultTeamModelVersion2>**](MatchResultTeamModelVersion2.md) | | [optional] |
|
20
|
+
| **modified_on** | **Time** | | [optional] |
|
21
|
+
|
22
|
+
## Code Sample
|
23
|
+
|
24
|
+
```ruby
|
25
|
+
require 'ftc_events_client'
|
26
|
+
|
27
|
+
instance = FtcEventsClient::MatchResultModelVersion2.new(
|
28
|
+
actual_start_time: null,
|
29
|
+
description: null,
|
30
|
+
tournament_level: null,
|
31
|
+
series: null,
|
32
|
+
match_number: null,
|
33
|
+
score_red_final: null,
|
34
|
+
score_red_foul: null,
|
35
|
+
score_red_auto: null,
|
36
|
+
score_blue_final: null,
|
37
|
+
score_blue_foul: null,
|
38
|
+
score_blue_auto: null,
|
39
|
+
post_result_time: null,
|
40
|
+
teams: null,
|
41
|
+
modified_on: null
|
42
|
+
)
|
43
|
+
```
|
44
|
+
|
@@ -0,0 +1,22 @@
|
|
1
|
+
# FtcEventsClient::MatchResultTeamModelVersion2
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **team_number** | **Integer** | | [optional] |
|
8
|
+
| **station** | **String** | | [optional] |
|
9
|
+
| **dq** | **Boolean** | | [optional] |
|
10
|
+
|
11
|
+
## Code Sample
|
12
|
+
|
13
|
+
```ruby
|
14
|
+
require 'ftc_events_client'
|
15
|
+
|
16
|
+
instance = FtcEventsClient::MatchResultTeamModelVersion2.new(
|
17
|
+
team_number: null,
|
18
|
+
station: null,
|
19
|
+
dq: null
|
20
|
+
)
|
21
|
+
```
|
22
|
+
|
@@ -0,0 +1,141 @@
|
|
1
|
+
# FtcEventsClient::MatchResultsApi
|
2
|
+
|
3
|
+
All URIs are relative to *http://localhost*
|
4
|
+
|
5
|
+
| Method | HTTP request | Description |
|
6
|
+
| ------ | ------------ | ----------- |
|
7
|
+
| [**v20_season_matches_event_code_get**](MatchResultsApi.md#v20_season_matches_event_code_get) | **GET** /v2.0/{season}/matches/{eventCode} | Event Match Results |
|
8
|
+
| [**v20_season_scores_event_code_tournament_level_get**](MatchResultsApi.md#v20_season_scores_event_code_tournament_level_get) | **GET** /v2.0/{season}/scores/{eventCode}/{tournamentLevel} | Score Details |
|
9
|
+
|
10
|
+
|
11
|
+
## v20_season_matches_event_code_get
|
12
|
+
|
13
|
+
> EventMatchResultsModelVersion2 v20_season_matches_event_code_get(season, event_code, opts)
|
14
|
+
|
15
|
+
Event Match Results
|
16
|
+
|
17
|
+
The match results API returns the match results for all matches of a particular event in a particular season. Match results are only available once a match has been played, retrieving info about future matches requires the event schedule API. You cannot receive data about a match that is in progress. You can, however, request the Hybrid Schedule if you would like data about upcoming and played matches at the same time. If you specify the `matchNumber`, `start` and/or `end` optional parameters, you must also specify a `tournamentLevel`. If you specify the `teamNumber` parameter, you cannot specify a `matchNumber` parameter. If you specify the `matchNumber`, you cannot define a start or end. Note: If you specify `start`, and it is higher than the maximum match number at the event, you will not receive any match results in the response. The same is true in reverse for the `end` parameter.
|
18
|
+
|
19
|
+
### Example
|
20
|
+
|
21
|
+
```ruby
|
22
|
+
# load the gem
|
23
|
+
require 'ftc_events_client'
|
24
|
+
# setup authorization
|
25
|
+
FtcEventsClient.configure do |config|
|
26
|
+
# Configure HTTP basic authorization: basic
|
27
|
+
config.username = 'YOUR USERNAME'
|
28
|
+
config.password = 'YOUR PASSWORD'
|
29
|
+
end
|
30
|
+
|
31
|
+
api_instance = FtcEventsClient::MatchResultsApi.new
|
32
|
+
season = 56 # Integer | Numeric year of the event from which the match results are requested. Must be 4 digits.
|
33
|
+
event_code = 'event_code_example' # String | Case insensitive alphanumeric `eventCode` of the event from which the results are requested. Must be at least 3 characters.
|
34
|
+
opts = {
|
35
|
+
tournament_level: '0', # String | Required tournamentLevel of desired score details.
|
36
|
+
team_number: 56, # Integer | `teamNumber` to search for within the results. Only returns match results in which the requested team was a participant.
|
37
|
+
match_number: 56, # Integer | specific single `matchNumber` of result.
|
38
|
+
start: 0, # Integer | `start` match number for subset of results to return.
|
39
|
+
_end: 999 # Integer | `end` match number for subset of results to return (inclusive).
|
40
|
+
}
|
41
|
+
|
42
|
+
begin
|
43
|
+
#Event Match Results
|
44
|
+
result = api_instance.v20_season_matches_event_code_get(season, event_code, opts)
|
45
|
+
p result
|
46
|
+
rescue FtcEventsClient::ApiError => e
|
47
|
+
puts "Exception when calling MatchResultsApi->v20_season_matches_event_code_get: #{e}"
|
48
|
+
end
|
49
|
+
```
|
50
|
+
|
51
|
+
### Parameters
|
52
|
+
|
53
|
+
| Name | Type | Description | Notes |
|
54
|
+
| ---- | ---- | ----------- | ----- |
|
55
|
+
| **season** | **Integer** | Numeric year of the event from which the match results are requested. Must be 4 digits. | |
|
56
|
+
| **event_code** | **String** | Case insensitive alphanumeric `eventCode` of the event from which the results are requested. Must be at least 3 characters. | |
|
57
|
+
| **tournament_level** | **String** | Required tournamentLevel of desired score details. | [optional][default to '0'] |
|
58
|
+
| **team_number** | **Integer** | `teamNumber` to search for within the results. Only returns match results in which the requested team was a participant. | [optional] |
|
59
|
+
| **match_number** | **Integer** | specific single `matchNumber` of result. | [optional] |
|
60
|
+
| **start** | **Integer** | `start` match number for subset of results to return. | [optional][default to 0] |
|
61
|
+
| **_end** | **Integer** | `end` match number for subset of results to return (inclusive). | [optional][default to 999] |
|
62
|
+
|
63
|
+
### Return type
|
64
|
+
|
65
|
+
[**EventMatchResultsModelVersion2**](EventMatchResultsModelVersion2.md)
|
66
|
+
|
67
|
+
### Authorization
|
68
|
+
|
69
|
+
[basic](../README.md#basic)
|
70
|
+
|
71
|
+
### HTTP request headers
|
72
|
+
|
73
|
+
- **Content-Type**: Not defined
|
74
|
+
- **Accept**: application/json
|
75
|
+
|
76
|
+
|
77
|
+
## v20_season_scores_event_code_tournament_level_get
|
78
|
+
|
79
|
+
> MatchScoresModel v20_season_scores_event_code_tournament_level_get(season, event_code, tournament_level, opts)
|
80
|
+
|
81
|
+
Score Details
|
82
|
+
|
83
|
+
The score details API returns the score detail for all matches of a particular event in a particular season and a particular tournament level. Score details are only available once a match has been played, retrieving info about future matches requires the event schedule API. You cannot receive data about a match that is in progress.
|
84
|
+
|
85
|
+
### Example
|
86
|
+
|
87
|
+
```ruby
|
88
|
+
# load the gem
|
89
|
+
require 'ftc_events_client'
|
90
|
+
# setup authorization
|
91
|
+
FtcEventsClient.configure do |config|
|
92
|
+
# Configure HTTP basic authorization: basic
|
93
|
+
config.username = 'YOUR USERNAME'
|
94
|
+
config.password = 'YOUR PASSWORD'
|
95
|
+
end
|
96
|
+
|
97
|
+
api_instance = FtcEventsClient::MatchResultsApi.new
|
98
|
+
season = 56 # Integer | Numeric year of the event from which the match results are requested. Must be 4 digits.
|
99
|
+
event_code = 'event_code_example' # String | Case insensitive alphanumeric eventCode of the event from which the details are requested. Must be at least 3 characters.
|
100
|
+
tournament_level = 'tournament_level_example' # String | Required tournamentLevel of desired score details.
|
101
|
+
opts = {
|
102
|
+
team_number: 56, # Integer | `teamNumber` to search for within the results. Only returns details in which the requested team was a participant.
|
103
|
+
match_number: 56, # Integer | specific single `matchNumber` of result.
|
104
|
+
start: 0, # Integer | `start` match number for subset of results to return (inclusive).
|
105
|
+
_end: 999 # Integer | `end` match number for subset of results to return (inclusive).
|
106
|
+
}
|
107
|
+
|
108
|
+
begin
|
109
|
+
#Score Details
|
110
|
+
result = api_instance.v20_season_scores_event_code_tournament_level_get(season, event_code, tournament_level, opts)
|
111
|
+
p result
|
112
|
+
rescue FtcEventsClient::ApiError => e
|
113
|
+
puts "Exception when calling MatchResultsApi->v20_season_scores_event_code_tournament_level_get: #{e}"
|
114
|
+
end
|
115
|
+
```
|
116
|
+
|
117
|
+
### Parameters
|
118
|
+
|
119
|
+
| Name | Type | Description | Notes |
|
120
|
+
| ---- | ---- | ----------- | ----- |
|
121
|
+
| **season** | **Integer** | Numeric year of the event from which the match results are requested. Must be 4 digits. | |
|
122
|
+
| **event_code** | **String** | Case insensitive alphanumeric eventCode of the event from which the details are requested. Must be at least 3 characters. | |
|
123
|
+
| **tournament_level** | **String** | Required tournamentLevel of desired score details. | |
|
124
|
+
| **team_number** | **Integer** | `teamNumber` to search for within the results. Only returns details in which the requested team was a participant. | [optional] |
|
125
|
+
| **match_number** | **Integer** | specific single `matchNumber` of result. | [optional] |
|
126
|
+
| **start** | **Integer** | `start` match number for subset of results to return (inclusive). | [optional][default to 0] |
|
127
|
+
| **_end** | **Integer** | `end` match number for subset of results to return (inclusive). | [optional][default to 999] |
|
128
|
+
|
129
|
+
### Return type
|
130
|
+
|
131
|
+
[**MatchScoresModel**](MatchScoresModel.md)
|
132
|
+
|
133
|
+
### Authorization
|
134
|
+
|
135
|
+
[basic](../README.md#basic)
|
136
|
+
|
137
|
+
### HTTP request headers
|
138
|
+
|
139
|
+
- **Content-Type**: Not defined
|
140
|
+
- **Accept**: application/json
|
141
|
+
|
@@ -0,0 +1,18 @@
|
|
1
|
+
# FtcEventsClient::MatchScoresModel
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **match_scores** | [**Array<MatchScoresModelMatchScoresOneOf>**](MatchScoresModelMatchScoresOneOf.md) | | [optional] |
|
8
|
+
|
9
|
+
## Code Sample
|
10
|
+
|
11
|
+
```ruby
|
12
|
+
require 'ftc_events_client'
|
13
|
+
|
14
|
+
instance = FtcEventsClient::MatchScoresModel.new(
|
15
|
+
match_scores: null
|
16
|
+
)
|
17
|
+
```
|
18
|
+
|
@@ -0,0 +1,51 @@
|
|
1
|
+
# FtcEventsClient::MatchScoresModelMatchScoresOneOf
|
2
|
+
|
3
|
+
## Class instance methods
|
4
|
+
|
5
|
+
### `openapi_one_of`
|
6
|
+
|
7
|
+
Returns the list of classes defined in oneOf.
|
8
|
+
|
9
|
+
#### Example
|
10
|
+
|
11
|
+
```ruby
|
12
|
+
require 'ftc_events_client'
|
13
|
+
|
14
|
+
FtcEventsClient::MatchScoresModelMatchScoresOneOf.openapi_one_of
|
15
|
+
# =>
|
16
|
+
# [
|
17
|
+
# :'ScoreDetailModel2019',
|
18
|
+
# :'ScoreDetailModel2020',
|
19
|
+
# :'ScoreDetailModelSinglePlayer2020'
|
20
|
+
# ]
|
21
|
+
```
|
22
|
+
|
23
|
+
### build
|
24
|
+
|
25
|
+
Find the appropriate object from the `openapi_one_of` list and casts the data into it.
|
26
|
+
|
27
|
+
#### Example
|
28
|
+
|
29
|
+
```ruby
|
30
|
+
require 'ftc_events_client'
|
31
|
+
|
32
|
+
FtcEventsClient::MatchScoresModelMatchScoresOneOf.build(data)
|
33
|
+
# => #<ScoreDetailModel2019:0x00007fdd4aab02a0>
|
34
|
+
|
35
|
+
FtcEventsClient::MatchScoresModelMatchScoresOneOf.build(data_that_doesnt_match)
|
36
|
+
# => nil
|
37
|
+
```
|
38
|
+
|
39
|
+
#### Parameters
|
40
|
+
|
41
|
+
| Name | Type | Description |
|
42
|
+
| ---- | ---- | ----------- |
|
43
|
+
| **data** | **Mixed** | data to be matched against the list of oneOf items |
|
44
|
+
|
45
|
+
#### Return type
|
46
|
+
|
47
|
+
- `ScoreDetailModel2019`
|
48
|
+
- `ScoreDetailModel2020`
|
49
|
+
- `ScoreDetailModelSinglePlayer2020`
|
50
|
+
- `nil` (if no type matches)
|
51
|
+
|
data/docs/RankingsApi.md
ADDED
@@ -0,0 +1,68 @@
|
|
1
|
+
# FtcEventsClient::RankingsApi
|
2
|
+
|
3
|
+
All URIs are relative to *http://localhost*
|
4
|
+
|
5
|
+
| Method | HTTP request | Description |
|
6
|
+
| ------ | ------------ | ----------- |
|
7
|
+
| [**v20_season_rankings_event_code_get**](RankingsApi.md#v20_season_rankings_event_code_get) | **GET** /v2.0/{season}/rankings/{eventCode} | Event Rankings |
|
8
|
+
|
9
|
+
|
10
|
+
## v20_season_rankings_event_code_get
|
11
|
+
|
12
|
+
> EventRankingsModel v20_season_rankings_event_code_get(season, event_code, opts)
|
13
|
+
|
14
|
+
Event Rankings
|
15
|
+
|
16
|
+
The rankings API returns team ranking detail from a particular event in a particular season. Optionally, the `top` parameter can be added to the query string to request a subset of the rankings based on the highest ranked teams at the time of the request. Alternately, you can specify the `teamNumber` parameter to retrieve the ranking on one specific team. You cannot specify both a `top` and `teamNumber` in the same call.
|
17
|
+
|
18
|
+
### Example
|
19
|
+
|
20
|
+
```ruby
|
21
|
+
# load the gem
|
22
|
+
require 'ftc_events_client'
|
23
|
+
# setup authorization
|
24
|
+
FtcEventsClient.configure do |config|
|
25
|
+
# Configure HTTP basic authorization: basic
|
26
|
+
config.username = 'YOUR USERNAME'
|
27
|
+
config.password = 'YOUR PASSWORD'
|
28
|
+
end
|
29
|
+
|
30
|
+
api_instance = FtcEventsClient::RankingsApi.new
|
31
|
+
season = 56 # Integer | Numeric year of the event from which the rankings are requested. Must be 4 digits
|
32
|
+
event_code = 'event_code_example' # String | Case insensitive alphanumeric `eventCode` of the event from which the rankings are requested. Must be at least 3 characters.
|
33
|
+
opts = {
|
34
|
+
team_number: 0, # Integer | Team number of the team whose ranking is requested.
|
35
|
+
top: 0 # Integer | number of requested `top` ranked teams to return in result.
|
36
|
+
}
|
37
|
+
|
38
|
+
begin
|
39
|
+
#Event Rankings
|
40
|
+
result = api_instance.v20_season_rankings_event_code_get(season, event_code, opts)
|
41
|
+
p result
|
42
|
+
rescue FtcEventsClient::ApiError => e
|
43
|
+
puts "Exception when calling RankingsApi->v20_season_rankings_event_code_get: #{e}"
|
44
|
+
end
|
45
|
+
```
|
46
|
+
|
47
|
+
### Parameters
|
48
|
+
|
49
|
+
| Name | Type | Description | Notes |
|
50
|
+
| ---- | ---- | ----------- | ----- |
|
51
|
+
| **season** | **Integer** | Numeric year of the event from which the rankings are requested. Must be 4 digits | |
|
52
|
+
| **event_code** | **String** | Case insensitive alphanumeric `eventCode` of the event from which the rankings are requested. Must be at least 3 characters. | |
|
53
|
+
| **team_number** | **Integer** | Team number of the team whose ranking is requested. | [optional][default to 0] |
|
54
|
+
| **top** | **Integer** | number of requested `top` ranked teams to return in result. | [optional][default to 0] |
|
55
|
+
|
56
|
+
### Return type
|
57
|
+
|
58
|
+
[**EventRankingsModel**](EventRankingsModel.md)
|
59
|
+
|
60
|
+
### Authorization
|
61
|
+
|
62
|
+
[basic](../README.md#basic)
|
63
|
+
|
64
|
+
### HTTP request headers
|
65
|
+
|
66
|
+
- **Content-Type**: Not defined
|
67
|
+
- **Accept**: application/json
|
68
|
+
|
data/docs/ScheduleApi.md
ADDED
@@ -0,0 +1,135 @@
|
|
1
|
+
# FtcEventsClient::ScheduleApi
|
2
|
+
|
3
|
+
All URIs are relative to *http://localhost*
|
4
|
+
|
5
|
+
| Method | HTTP request | Description |
|
6
|
+
| ------ | ------------ | ----------- |
|
7
|
+
| [**v20_season_schedule_event_code_get**](ScheduleApi.md#v20_season_schedule_event_code_get) | **GET** /v2.0/{season}/schedule/{eventCode} | Event Schedule |
|
8
|
+
| [**v20_season_schedule_event_code_tournament_level_hybrid_get**](ScheduleApi.md#v20_season_schedule_event_code_tournament_level_hybrid_get) | **GET** /v2.0/{season}/schedule/{eventCode}/{tournamentLevel}/hybrid | Hybrid Schedule |
|
9
|
+
|
10
|
+
|
11
|
+
## v20_season_schedule_event_code_get
|
12
|
+
|
13
|
+
> EventScheduleModelVersion2 v20_season_schedule_event_code_get(season, event_code, opts)
|
14
|
+
|
15
|
+
Event Schedule
|
16
|
+
|
17
|
+
The schedule API returns the match schedule for the desired tournament level of a particular event in a particular season. You must also specify a `tournamentLevel` from which to return the results. Alternately, you can specify a `teamNumber` to filter the results to only those in which a particular team is participating. There is no validation that the `teamNumber` you request is actually competing at the event, if they are not, the response will be empty. You can also specify the parameters together, but cannot make a request without at least one of the two.
|
18
|
+
|
19
|
+
### Example
|
20
|
+
|
21
|
+
```ruby
|
22
|
+
# load the gem
|
23
|
+
require 'ftc_events_client'
|
24
|
+
# setup authorization
|
25
|
+
FtcEventsClient.configure do |config|
|
26
|
+
# Configure HTTP basic authorization: basic
|
27
|
+
config.username = 'YOUR USERNAME'
|
28
|
+
config.password = 'YOUR PASSWORD'
|
29
|
+
end
|
30
|
+
|
31
|
+
api_instance = FtcEventsClient::ScheduleApi.new
|
32
|
+
season = 56 # Integer | Numeric year of the event from which the schedule is requested. Must be 4 digits
|
33
|
+
event_code = 'event_code_example' # String | Case insensitive alphanumeric `eventCode` of the event from which the schedule are requested. Must be at least 3 characters.
|
34
|
+
opts = {
|
35
|
+
tournament_level: '0', # String | Required tournamentLevel of desired score details.
|
36
|
+
team_number: 0, # Integer | `teamNumber` to search for within the schedule. Only returns matches in which the requested team participated.
|
37
|
+
start: 0, # Integer | `start` match number for subset of results to return (inclusive).
|
38
|
+
_end: 999 # Integer | `end` match number for subset of results to return (inclusive).
|
39
|
+
}
|
40
|
+
|
41
|
+
begin
|
42
|
+
#Event Schedule
|
43
|
+
result = api_instance.v20_season_schedule_event_code_get(season, event_code, opts)
|
44
|
+
p result
|
45
|
+
rescue FtcEventsClient::ApiError => e
|
46
|
+
puts "Exception when calling ScheduleApi->v20_season_schedule_event_code_get: #{e}"
|
47
|
+
end
|
48
|
+
```
|
49
|
+
|
50
|
+
### Parameters
|
51
|
+
|
52
|
+
| Name | Type | Description | Notes |
|
53
|
+
| ---- | ---- | ----------- | ----- |
|
54
|
+
| **season** | **Integer** | Numeric year of the event from which the schedule is requested. Must be 4 digits | |
|
55
|
+
| **event_code** | **String** | Case insensitive alphanumeric `eventCode` of the event from which the schedule are requested. Must be at least 3 characters. | |
|
56
|
+
| **tournament_level** | **String** | Required tournamentLevel of desired score details. | [optional][default to '0'] |
|
57
|
+
| **team_number** | **Integer** | `teamNumber` to search for within the schedule. Only returns matches in which the requested team participated. | [optional][default to 0] |
|
58
|
+
| **start** | **Integer** | `start` match number for subset of results to return (inclusive). | [optional][default to 0] |
|
59
|
+
| **_end** | **Integer** | `end` match number for subset of results to return (inclusive). | [optional][default to 999] |
|
60
|
+
|
61
|
+
### Return type
|
62
|
+
|
63
|
+
[**EventScheduleModelVersion2**](EventScheduleModelVersion2.md)
|
64
|
+
|
65
|
+
### Authorization
|
66
|
+
|
67
|
+
[basic](../README.md#basic)
|
68
|
+
|
69
|
+
### HTTP request headers
|
70
|
+
|
71
|
+
- **Content-Type**: Not defined
|
72
|
+
- **Accept**: application/json
|
73
|
+
|
74
|
+
|
75
|
+
## v20_season_schedule_event_code_tournament_level_hybrid_get
|
76
|
+
|
77
|
+
> EventScheduleHybridModelVersion2 v20_season_schedule_event_code_tournament_level_hybrid_get(season, event_code, tournament_level, opts)
|
78
|
+
|
79
|
+
Hybrid Schedule
|
80
|
+
|
81
|
+
The schedule API returns the match schedule for the desired tournament level of a particular event in a particular season in the hybrid format. When a match has been played, the match result related details will be filled. When a match has not yet happened, match result related fields will be null. All parameters, except start and end, are required for the hybrid schedule.
|
82
|
+
|
83
|
+
### Example
|
84
|
+
|
85
|
+
```ruby
|
86
|
+
# load the gem
|
87
|
+
require 'ftc_events_client'
|
88
|
+
# setup authorization
|
89
|
+
FtcEventsClient.configure do |config|
|
90
|
+
# Configure HTTP basic authorization: basic
|
91
|
+
config.username = 'YOUR USERNAME'
|
92
|
+
config.password = 'YOUR PASSWORD'
|
93
|
+
end
|
94
|
+
|
95
|
+
api_instance = FtcEventsClient::ScheduleApi.new
|
96
|
+
season = 56 # Integer | Numeric year of the event from which the hybrid schedule is requested. Must be 4 digits
|
97
|
+
event_code = 'event_code_example' # String | Case insensitive alphanumeric eventCode of the event from which the hybrid schedule is requested. Must be at least 3 characters.
|
98
|
+
tournament_level = 'tournament_level_example' # String | Required tournamentLevel of desired score details.
|
99
|
+
opts = {
|
100
|
+
start: 0, # Integer | `start` match number for subset of results to return (inclusive).
|
101
|
+
_end: 999 # Integer | `end` match number for subset of results to return (inclusive).
|
102
|
+
}
|
103
|
+
|
104
|
+
begin
|
105
|
+
#Hybrid Schedule
|
106
|
+
result = api_instance.v20_season_schedule_event_code_tournament_level_hybrid_get(season, event_code, tournament_level, opts)
|
107
|
+
p result
|
108
|
+
rescue FtcEventsClient::ApiError => e
|
109
|
+
puts "Exception when calling ScheduleApi->v20_season_schedule_event_code_tournament_level_hybrid_get: #{e}"
|
110
|
+
end
|
111
|
+
```
|
112
|
+
|
113
|
+
### Parameters
|
114
|
+
|
115
|
+
| Name | Type | Description | Notes |
|
116
|
+
| ---- | ---- | ----------- | ----- |
|
117
|
+
| **season** | **Integer** | Numeric year of the event from which the hybrid schedule is requested. Must be 4 digits | |
|
118
|
+
| **event_code** | **String** | Case insensitive alphanumeric eventCode of the event from which the hybrid schedule is requested. Must be at least 3 characters. | |
|
119
|
+
| **tournament_level** | **String** | Required tournamentLevel of desired score details. | |
|
120
|
+
| **start** | **Integer** | `start` match number for subset of results to return (inclusive). | [optional][default to 0] |
|
121
|
+
| **_end** | **Integer** | `end` match number for subset of results to return (inclusive). | [optional][default to 999] |
|
122
|
+
|
123
|
+
### Return type
|
124
|
+
|
125
|
+
[**EventScheduleHybridModelVersion2**](EventScheduleHybridModelVersion2.md)
|
126
|
+
|
127
|
+
### Authorization
|
128
|
+
|
129
|
+
[basic](../README.md#basic)
|
130
|
+
|
131
|
+
### HTTP request headers
|
132
|
+
|
133
|
+
- **Content-Type**: Not defined
|
134
|
+
- **Accept**: application/json
|
135
|
+
|