ftc_events_client 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (140) hide show
  1. checksums.yaml +7 -0
  2. data/Gemfile +9 -0
  3. data/README.md +236 -0
  4. data/Rakefile +10 -0
  5. data/config.json +8 -0
  6. data/docs/AllianceModelVersion2.md +32 -0
  7. data/docs/AllianceScore2020.md +86 -0
  8. data/docs/AllianceSelectionApi.md +62 -0
  9. data/docs/AllianceSelectionModelVersion2.md +20 -0
  10. data/docs/ApiIndexModel.md +34 -0
  11. data/docs/AwardAssignmentModel.md +38 -0
  12. data/docs/AwardsApi.md +235 -0
  13. data/docs/AwardsModel.md +18 -0
  14. data/docs/EventMatchResultsModelVersion2.md +18 -0
  15. data/docs/EventRankingsModel.md +18 -0
  16. data/docs/EventScheduleHybridModelVersion2.md +18 -0
  17. data/docs/EventScheduleModelVersion2.md +18 -0
  18. data/docs/GeneralApi.md +51 -0
  19. data/docs/MatchResultModelVersion2.md +44 -0
  20. data/docs/MatchResultTeamModelVersion2.md +22 -0
  21. data/docs/MatchResultsApi.md +141 -0
  22. data/docs/MatchScoresModel.md +18 -0
  23. data/docs/MatchScoresModelMatchScoresOneOf.md +51 -0
  24. data/docs/RankingsApi.md +68 -0
  25. data/docs/ScheduleApi.md +135 -0
  26. data/docs/ScheduleHybridModelTeamVersion2.md +26 -0
  27. data/docs/ScheduleHybridModelVersion2.md +44 -0
  28. data/docs/ScheduledMatchModelVersion2.md +32 -0
  29. data/docs/ScheduledMatchTeamModelVersion2.md +24 -0
  30. data/docs/ScoreDetailAllianceModel2020.md +90 -0
  31. data/docs/ScoreDetailModel2019.md +22 -0
  32. data/docs/ScoreDetailModel2020.md +22 -0
  33. data/docs/ScoreDetailModelAlliance2019.md +84 -0
  34. data/docs/ScoreDetailModelSinglePlayer2020.md +24 -0
  35. data/docs/SeasonAwardListingsModel.md +18 -0
  36. data/docs/SeasonAwardsModel.md +24 -0
  37. data/docs/SeasonDataApi.md +182 -0
  38. data/docs/SeasonEventListingsModelVersion2.md +20 -0
  39. data/docs/SeasonEventModelVersion2.md +50 -0
  40. data/docs/SeasonSummaryModelChampionship.md +22 -0
  41. data/docs/SeasonSummaryModelVersion2.md +28 -0
  42. data/docs/SeasonTeamListingsModelVersion2.md +26 -0
  43. data/docs/SeasonTeamModelVersion2.md +40 -0
  44. data/docs/Stone.md +15 -0
  45. data/docs/TeamRankingModel.md +46 -0
  46. data/docs/TournamentLevel.md +15 -0
  47. data/ftc_events_client.gemspec +38 -0
  48. data/git_push.sh +58 -0
  49. data/lib/ftc_events_client.rb +80 -0
  50. data/lib/ftc_events_client/api/alliance_selection_api.rb +87 -0
  51. data/lib/ftc_events_client/api/awards_api.rb +296 -0
  52. data/lib/ftc_events_client/api/general_api.rb +79 -0
  53. data/lib/ftc_events_client/api/match_results_api.rb +185 -0
  54. data/lib/ftc_events_client/api/rankings_api.rb +93 -0
  55. data/lib/ftc_events_client/api/schedule_api.rb +176 -0
  56. data/lib/ftc_events_client/api/season_data_api.rb +229 -0
  57. data/lib/ftc_events_client/api_client.rb +390 -0
  58. data/lib/ftc_events_client/api_error.rb +57 -0
  59. data/lib/ftc_events_client/configuration.rb +275 -0
  60. data/lib/ftc_events_client/models/alliance_model_version2.rb +288 -0
  61. data/lib/ftc_events_client/models/alliance_score2020.rb +524 -0
  62. data/lib/ftc_events_client/models/alliance_selection_model_version2.rb +230 -0
  63. data/lib/ftc_events_client/models/api_index_model.rb +301 -0
  64. data/lib/ftc_events_client/models/award_assignment_model.rb +317 -0
  65. data/lib/ftc_events_client/models/awards_model.rb +221 -0
  66. data/lib/ftc_events_client/models/event_match_results_model_version2.rb +221 -0
  67. data/lib/ftc_events_client/models/event_rankings_model.rb +221 -0
  68. data/lib/ftc_events_client/models/event_schedule_hybrid_model_version2.rb +221 -0
  69. data/lib/ftc_events_client/models/event_schedule_model_version2.rb +221 -0
  70. data/lib/ftc_events_client/models/match_result_model_version2.rb +343 -0
  71. data/lib/ftc_events_client/models/match_result_team_model_version2.rb +237 -0
  72. data/lib/ftc_events_client/models/match_scores_model.rb +221 -0
  73. data/lib/ftc_events_client/models/match_scores_model_match_scores_one_of.rb +106 -0
  74. data/lib/ftc_events_client/models/schedule_hybrid_model_team_version2.rb +257 -0
  75. data/lib/ftc_events_client/models/schedule_hybrid_model_version2.rb +349 -0
  76. data/lib/ftc_events_client/models/scheduled_match_model_version2.rb +289 -0
  77. data/lib/ftc_events_client/models/scheduled_match_team_model_version2.rb +247 -0
  78. data/lib/ftc_events_client/models/score_detail_alliance_model2020.rb +543 -0
  79. data/lib/ftc_events_client/models/score_detail_model2019.rb +239 -0
  80. data/lib/ftc_events_client/models/score_detail_model2020.rb +239 -0
  81. data/lib/ftc_events_client/models/score_detail_model_alliance2019.rb +519 -0
  82. data/lib/ftc_events_client/models/score_detail_model_single_player2020.rb +245 -0
  83. data/lib/ftc_events_client/models/season_award_listings_model.rb +221 -0
  84. data/lib/ftc_events_client/models/season_awards_model.rb +247 -0
  85. data/lib/ftc_events_client/models/season_event_listings_model_version2.rb +230 -0
  86. data/lib/ftc_events_client/models/season_event_model_version2.rb +377 -0
  87. data/lib/ftc_events_client/models/season_summary_model_championship.rb +239 -0
  88. data/lib/ftc_events_client/models/season_summary_model_version2.rb +268 -0
  89. data/lib/ftc_events_client/models/season_team_listings_model_version2.rb +257 -0
  90. data/lib/ftc_events_client/models/season_team_model_version2.rb +328 -0
  91. data/lib/ftc_events_client/models/stone.rb +38 -0
  92. data/lib/ftc_events_client/models/team_ranking_model.rb +344 -0
  93. data/lib/ftc_events_client/models/tournament_level.rb +41 -0
  94. data/lib/ftc_events_client/version.rb +15 -0
  95. data/spec/api/alliance_selection_api_spec.rb +48 -0
  96. data/spec/api/awards_api_spec.rb +89 -0
  97. data/spec/api/general_api_spec.rb +46 -0
  98. data/spec/api/match_results_api_spec.rb +71 -0
  99. data/spec/api/rankings_api_spec.rb +50 -0
  100. data/spec/api/schedule_api_spec.rb +68 -0
  101. data/spec/api/season_data_api_spec.rb +77 -0
  102. data/spec/api_client_spec.rb +226 -0
  103. data/spec/configuration_spec.rb +42 -0
  104. data/spec/models/alliance_model_version2_spec.rb +76 -0
  105. data/spec/models/alliance_score2020_spec.rb +238 -0
  106. data/spec/models/alliance_selection_model_version2_spec.rb +40 -0
  107. data/spec/models/api_index_model_spec.rb +82 -0
  108. data/spec/models/award_assignment_model_spec.rb +94 -0
  109. data/spec/models/awards_model_spec.rb +34 -0
  110. data/spec/models/event_match_results_model_version2_spec.rb +34 -0
  111. data/spec/models/event_rankings_model_spec.rb +34 -0
  112. data/spec/models/event_schedule_hybrid_model_version2_spec.rb +34 -0
  113. data/spec/models/event_schedule_model_version2_spec.rb +34 -0
  114. data/spec/models/match_result_model_version2_spec.rb +112 -0
  115. data/spec/models/match_result_team_model_version2_spec.rb +46 -0
  116. data/spec/models/match_scores_model_match_scores_one_of_spec.rb +31 -0
  117. data/spec/models/match_scores_model_spec.rb +34 -0
  118. data/spec/models/schedule_hybrid_model_team_version2_spec.rb +58 -0
  119. data/spec/models/schedule_hybrid_model_version2_spec.rb +112 -0
  120. data/spec/models/scheduled_match_model_version2_spec.rb +76 -0
  121. data/spec/models/scheduled_match_team_model_version2_spec.rb +52 -0
  122. data/spec/models/score_detail_alliance_model2020_spec.rb +250 -0
  123. data/spec/models/score_detail_model2019_spec.rb +46 -0
  124. data/spec/models/score_detail_model2020_spec.rb +46 -0
  125. data/spec/models/score_detail_model_alliance2019_spec.rb +232 -0
  126. data/spec/models/score_detail_model_single_player2020_spec.rb +52 -0
  127. data/spec/models/season_award_listings_model_spec.rb +34 -0
  128. data/spec/models/season_awards_model_spec.rb +52 -0
  129. data/spec/models/season_event_listings_model_version2_spec.rb +40 -0
  130. data/spec/models/season_event_model_version2_spec.rb +130 -0
  131. data/spec/models/season_summary_model_championship_spec.rb +46 -0
  132. data/spec/models/season_summary_model_version2_spec.rb +64 -0
  133. data/spec/models/season_team_listings_model_version2_spec.rb +58 -0
  134. data/spec/models/season_team_model_version2_spec.rb +100 -0
  135. data/spec/models/stone_spec.rb +28 -0
  136. data/spec/models/team_ranking_model_spec.rb +118 -0
  137. data/spec/models/tournament_level_spec.rb +28 -0
  138. data/spec/spec_helper.rb +111 -0
  139. data/update.sh +8 -0
  140. metadata +265 -0
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 66e64b1670680b253ac202d968004ca2eba49e563d76548308f33746a8ac7c2f
4
+ data.tar.gz: 04f460ca348640417ea5c5f33a9d53ad07e5d0629a73f0b98f07fa3fe45c0efb
5
+ SHA512:
6
+ metadata.gz: f0a105fe8721cab67e2c93eb84c828f1f7bda8fb7c13e0874501c18a4d1907d7949b7dc113f730410c86dd9eb527b6c340f771e522c8aeec0f2a64d670463782
7
+ data.tar.gz: e7e1142b3cdd595c55fc7ee7002a37fc9d68863d00b28b073e65a476dd72a40dfbace56e8275de656f7a7aa8ffc4a6fc5e01b0a9cfa97b2d5defa09147a8a442
data/Gemfile ADDED
@@ -0,0 +1,9 @@
1
+ source 'https://rubygems.org'
2
+
3
+ gemspec
4
+
5
+ group :development, :test do
6
+ gem 'rake', '~> 13.0.1'
7
+ gem 'pry-byebug'
8
+ gem 'rubocop', '~> 0.66.0'
9
+ end
@@ -0,0 +1,236 @@
1
+ # ftc_events_client
2
+
3
+ FtcEventsClient - the Ruby gem for the FTC Events API
4
+
5
+ FTC Events API is a service to return relevant information about the _FIRST_ Tech Challenge (FTC). Information is made available from events operating around the world
6
+
7
+ Information is currently made available after the conclusion of the tournament. The API will provide data as soon as it has synced, and we do not add any artificial delays.
8
+
9
+ ## Documentation Notes
10
+
11
+ ### Timezones
12
+
13
+ All times are listed in the local time to the event venue. HTTP-date values will show their timezone.
14
+
15
+ ### Query Parameters
16
+
17
+ If you specify a parameter, but no value for that parameter, it will be ignored. For example, if you request `URL?teamNumber=` the `teamNumber` parameter would be ignored.
18
+
19
+ For all APIs that accept a query string in addition to the base URI, the order of parameters do not matter, but the name shown in the documentation must match exactly, as does the associated value format as described in details.
20
+
21
+ For response codes that are not HTTP 200 (OK), the documentation will show a body message that represents a possible response value. While the \"title\" of the HTTP Status Code will match those shown in the response codes documentation section exactly, the body of the response will be a more detailed explanation of why that status code is being returned and may not always be exactly as shown in the examples.
22
+
23
+ ### Experimenting with the API
24
+
25
+ This documentation is rendered at both [api-docs](https://ftc-events.firstinspires.org/api-docs) and [try-it-out](https://ftc-events.firstinspires.org/try-it-out).
26
+
27
+ [api-docs](https://ftc-events.firstinspires.org/api-docs) has a three panel, easy to read layout, while [try-it-out](https://ftc-events.firstinspires.org/try-it-out)
28
+ has a feature that allows you try out endpoints from within the page.
29
+
30
+ Additionally, the Open API Json is availabe at [Open API](https://ftc-events.firstinspires.org/swagger/v2.0/swagger.json). This can be imported into a tool
31
+ such as [Postman](https://www.postman.com) for experimentation as well.
32
+
33
+
34
+ ### Last-Modified, FMS-OnlyModifiedSince, and If-Modified-Since Headers
35
+ The FTC Events API utilizes the `Last-Modified` and `If-Modified-Since` Headers to communicate with consumers regarding the age of the data they are requesting. With a couple of exceptions, all calls will return a `Last-Modified` Header set with the time at which the data at that endpoint was last modified. The Header will always be set in the HTTP-date format, as described in the HTTP Protocol. There are two exceptions: the `Last-Modified` Header is not set if the endpoint returns no results (such as a request for a schedule with no matches).
36
+
37
+ Consumers should keep track of the `Last-Modified` Header, and return it on subsequent calls to the same endpoint as the If-Modified-Since. The server will recognize this request, and will only return a result if the data has been modified since the last request. If no changes have been made, an HTTP 304 will be returned. If data has been modified, ALL data on that call will be returned (for \"only modified\" data, see below).
38
+
39
+ The FTC Events API also allows a custom header used to filter the return data to a specific subset. This is done by specifying a `FMS-OnlyModifiedSince` header with each call. As with the `If-Modified-Since` header, consumers should keep track of the Last-Modified Header, and return it on subsequent calls to the same endpoint as the `FMS-OnlyModifiedSince` Header. The server will recognize this request, and will only return a result if the data has been modified since the last request, and, if returned, the data will only be those portions modified since the included date. If no changes, have been made, an HTTP 304 will be returned. Using this method, the server and consumer save processing time by only receiving modified data that is in need of update on the consumer side.
40
+
41
+ If the Headers are improperly passed (such as the wrong Day of Week for the matching date, or a date in the future), the endpoint will simply ignore the Header and return all results. If both headers are specified, the request will be denied.
42
+
43
+ ## Response Codes
44
+
45
+ The FTC Events API HTTP Status Codes correspond with the [common codes](http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html), but occasionally with different \"titles\". The \"title\" used by the API is shown next to each of the below possible response HTTP Status Codes. Throughout the documentation, Apiary may automatically show the common \"title\" in example returns (like \"Not Found\" for 404) but on the production server, the \"title\" will instead match those listed below.
46
+
47
+ ### HTTP 200 - \"OK\"
48
+ The request has succeeded. An entity corresponding to the requested resource is sent in the response. This will be returned as the HTTP Status Code for all request that succeed, even if the body is empty (such as an event that has no rankings, but with a valid season and event code were used)
49
+
50
+ ### HTTP 304 - \"Not Modified\"
51
+ When utilizing a Header that allows filtered data returns, such as `If-Modified-Since`, this response indicates that no data meets the request.
52
+
53
+ ### HTTP 400 - \"Invalid Season Requested\"/\"Malformed Parameter Format In Request\"/\"Missing Parameter In Request\"/\"Invalid API Version Requested\":
54
+ The request could not be understood by the server due to malformed syntax. The client SHOULD NOT repeat the request without modifications. Specifically for this API, a 400 response indicates that the requested URI matches with a valid API, but one or more required parameter was malformed or invalid. Examples include an event code that is too short or team number that contains a letter.
55
+
56
+ ### HTTP 401 - \"Unauthorized\"
57
+ All requests against the API require authentication via a valid user token. Failing to provide one, or providing an invalid one, will warrant a 401 response. The client MAY repeat the request with a suitable Authorization header field.
58
+
59
+ ### HTTP 404 - \"Invalid Event Requested\"
60
+ Even though the 404 code usually indicates any not found status, a 404 will only be issued in this API when an event cannot be found for the requested season and event code. If the request didn't match a valid API or there were malformed parameters, the response would not receive a 404 but rather a 400 or 501. If this HTTP code is received, the season was a valid season and the event code matched the acceptable style of an event code, but there were no records of an event matching the combination of that season and event code. For example, HTTP 404 would be issued when the event had a different code in the requested season (the codes can change year to year based on event location).
61
+
62
+ ### HTTP 500 - \"Internal Server Error\"
63
+ The server encountered an unexpected condition which prevented it from fulfilling the request. This is a code sent directly by the server, and has no special alternate definition specific to this API.
64
+
65
+ ### HTTP 501 - \"Request Did Not Match Any Current API Pattern\"
66
+ The server does not support the functionality required to fulfill the request. Specifically, the request pattern did not match any of the possible APIs, and thus processing was discontinued. This code is also issued when too many optional parameters were included in a single request and fulfilling it would make the result confusing or misleading. Each API will specify which parameters or combination of parameters can be used at the same time.
67
+
68
+ ### HTTP 503 - \"Service Unavailable\"
69
+ The server is currently unable to handle the request due to a temporary overloading or maintenance of the server. The implication is that this is a temporary condition which will be alleviated after some delay. If known, the length of the delay MAY be indicated in a `Retry-After` header. This code will not always appear, sometimes the server may outright refuse the connection instead. This is a code sent directly by the server, and has no special alternate definition specific to this API.
70
+
71
+ ## Authorization
72
+ In order to make calls against the FTC Events API, you must include an HTTP Header called `Authorization` with the value set as specified below. If a request is made without this header, processing stops and an HTTP 401 is issued. All `Authorization` headers follow the same format:
73
+
74
+ ```
75
+ Authorization: Basic 000000000000000000000000000000000000000000000000000000000000
76
+ ```
77
+
78
+ Where the Zeros are replaced by your Token. The Token can be formed by taking your username and your AuthorizationKey and adding a colon. For example, if your username is `sampleuser` and your AuthorizationKey is `7eaa6338-a097-4221-ac04-b6120fcc4d49` you would have this string:
79
+
80
+ ```
81
+ sampleuser:7eaa6338-a097-4221-ac04-b6120fcc4d49
82
+ ```
83
+
84
+ This string must then be encoded using Base64 Encoded to form the Token, which will be the same length as the example above, but include letters and numbers. For our example, we would have:
85
+
86
+ ```
87
+ c2FtcGxldXNlcjo3ZWFhNjMzOC1hMDk3LTQyMjEtYWMwNC1iNjEyMGZjYzRkNDk=
88
+ ```
89
+
90
+ Most API client libraries can handle computing the authorization header using a username and password for you
91
+
92
+ NOTICE: Publicly distributing an application, code snippet, etc, that has your username and token in it, encoded or not, WILL result in your token being blocked from the API. Each user should apply for their own token.
93
+
94
+ If you wish to acquire a token for your development, you may do so by requesting a token through our automated system on this website.
95
+
96
+
97
+ This SDK is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
98
+
99
+ - API version: v2.0
100
+ - Package version: 0.1.0
101
+ - Build package: org.openapitools.codegen.languages.RubyClientCodegen
102
+
103
+ ## Installation
104
+
105
+ ### Build a gem
106
+
107
+ To build the Ruby code into a gem:
108
+
109
+ ```shell
110
+ gem build ftc_events_client.gemspec
111
+ ```
112
+
113
+ Then either install the gem locally:
114
+
115
+ ```shell
116
+ gem install ./ftc_events_client-0.1.0.gem
117
+ ```
118
+
119
+ (for development, run `gem install --dev ./ftc_events_client-0.1.0.gem` to install the development dependencies)
120
+
121
+ or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/).
122
+
123
+ Finally add this to the Gemfile:
124
+
125
+ gem 'ftc_events_client', '~> 0.1.0'
126
+
127
+ ### Install from Git
128
+
129
+ If the Ruby gem is hosted at a git repository: https://github.com/GIT_USER_ID/GIT_REPO_ID, then add the following in the Gemfile:
130
+
131
+ gem 'ftc_events_client', :git => 'https://github.com/GIT_USER_ID/GIT_REPO_ID.git'
132
+
133
+ ### Include the Ruby code directly
134
+
135
+ Include the Ruby code directly using `-I` as follows:
136
+
137
+ ```shell
138
+ ruby -Ilib script.rb
139
+ ```
140
+
141
+ ## Getting Started
142
+
143
+ Please follow the [installation](#installation) procedure and then run the following code:
144
+
145
+ ```ruby
146
+ # Load the gem
147
+ require 'ftc_events_client'
148
+
149
+ # Setup authorization
150
+ FtcEventsClient.configure do |config|
151
+ # Configure HTTP basic authorization: basic
152
+ config.username = 'YOUR_USERNAME'
153
+ config.password = 'YOUR_PASSWORD'
154
+ end
155
+
156
+ api_instance = FtcEventsClient::AllianceSelectionApi.new
157
+ season = 56 # Integer | Numeric year of the event from which the event alliances are requested. Must be 4 digits.
158
+ event_code = 'event_code_example' # String | Case insensitive alphanumeric `eventCode` of the event from which the alliance selection results are requested. Must be at least 3 characters.
159
+
160
+ begin
161
+ #Event Alliances
162
+ result = api_instance.v20_season_alliances_event_code_get(season, event_code)
163
+ p result
164
+ rescue FtcEventsClient::ApiError => e
165
+ puts "Exception when calling AllianceSelectionApi->v20_season_alliances_event_code_get: #{e}"
166
+ end
167
+
168
+ ```
169
+
170
+ ## Documentation for API Endpoints
171
+
172
+ All URIs are relative to *http://localhost*
173
+
174
+ Class | Method | HTTP request | Description
175
+ ------------ | ------------- | ------------- | -------------
176
+ *FtcEventsClient::AllianceSelectionApi* | [**v20_season_alliances_event_code_get**](docs/AllianceSelectionApi.md#v20_season_alliances_event_code_get) | **GET** /v2.0/{season}/alliances/{eventCode} | Event Alliances
177
+ *FtcEventsClient::AwardsApi* | [**v20_season_awards_event_code_get**](docs/AwardsApi.md#v20_season_awards_event_code_get) | **GET** /v2.0/{season}/awards/{eventCode} | Event Awards
178
+ *FtcEventsClient::AwardsApi* | [**v20_season_awards_event_code_team_number_get**](docs/AwardsApi.md#v20_season_awards_event_code_team_number_get) | **GET** /v2.0/{season}/awards/{eventCode}/{teamNumber} | Event Awards
179
+ *FtcEventsClient::AwardsApi* | [**v20_season_awards_list_get**](docs/AwardsApi.md#v20_season_awards_list_get) | **GET** /v2.0/{season}/awards/list | Award Listings
180
+ *FtcEventsClient::AwardsApi* | [**v20_season_awards_team_number_get**](docs/AwardsApi.md#v20_season_awards_team_number_get) | **GET** /v2.0/{season}/awards/{teamNumber} | Event Awards
181
+ *FtcEventsClient::GeneralApi* | [**v20_get**](docs/GeneralApi.md#v20_get) | **GET** /v2.0 | API Index
182
+ *FtcEventsClient::MatchResultsApi* | [**v20_season_matches_event_code_get**](docs/MatchResultsApi.md#v20_season_matches_event_code_get) | **GET** /v2.0/{season}/matches/{eventCode} | Event Match Results
183
+ *FtcEventsClient::MatchResultsApi* | [**v20_season_scores_event_code_tournament_level_get**](docs/MatchResultsApi.md#v20_season_scores_event_code_tournament_level_get) | **GET** /v2.0/{season}/scores/{eventCode}/{tournamentLevel} | Score Details
184
+ *FtcEventsClient::RankingsApi* | [**v20_season_rankings_event_code_get**](docs/RankingsApi.md#v20_season_rankings_event_code_get) | **GET** /v2.0/{season}/rankings/{eventCode} | Event Rankings
185
+ *FtcEventsClient::ScheduleApi* | [**v20_season_schedule_event_code_get**](docs/ScheduleApi.md#v20_season_schedule_event_code_get) | **GET** /v2.0/{season}/schedule/{eventCode} | Event Schedule
186
+ *FtcEventsClient::ScheduleApi* | [**v20_season_schedule_event_code_tournament_level_hybrid_get**](docs/ScheduleApi.md#v20_season_schedule_event_code_tournament_level_hybrid_get) | **GET** /v2.0/{season}/schedule/{eventCode}/{tournamentLevel}/hybrid | Hybrid Schedule
187
+ *FtcEventsClient::SeasonDataApi* | [**v20_season_events_get**](docs/SeasonDataApi.md#v20_season_events_get) | **GET** /v2.0/{season}/events | Event Listings
188
+ *FtcEventsClient::SeasonDataApi* | [**v20_season_get**](docs/SeasonDataApi.md#v20_season_get) | **GET** /v2.0/{season} | Season Summary
189
+ *FtcEventsClient::SeasonDataApi* | [**v20_season_teams_get**](docs/SeasonDataApi.md#v20_season_teams_get) | **GET** /v2.0/{season}/teams | Team Listings
190
+
191
+
192
+ ## Documentation for Models
193
+
194
+ - [FtcEventsClient::AllianceModelVersion2](docs/AllianceModelVersion2.md)
195
+ - [FtcEventsClient::AllianceScore2020](docs/AllianceScore2020.md)
196
+ - [FtcEventsClient::AllianceSelectionModelVersion2](docs/AllianceSelectionModelVersion2.md)
197
+ - [FtcEventsClient::ApiIndexModel](docs/ApiIndexModel.md)
198
+ - [FtcEventsClient::AwardAssignmentModel](docs/AwardAssignmentModel.md)
199
+ - [FtcEventsClient::AwardsModel](docs/AwardsModel.md)
200
+ - [FtcEventsClient::EventMatchResultsModelVersion2](docs/EventMatchResultsModelVersion2.md)
201
+ - [FtcEventsClient::EventRankingsModel](docs/EventRankingsModel.md)
202
+ - [FtcEventsClient::EventScheduleHybridModelVersion2](docs/EventScheduleHybridModelVersion2.md)
203
+ - [FtcEventsClient::EventScheduleModelVersion2](docs/EventScheduleModelVersion2.md)
204
+ - [FtcEventsClient::MatchResultModelVersion2](docs/MatchResultModelVersion2.md)
205
+ - [FtcEventsClient::MatchResultTeamModelVersion2](docs/MatchResultTeamModelVersion2.md)
206
+ - [FtcEventsClient::MatchScoresModel](docs/MatchScoresModel.md)
207
+ - [FtcEventsClient::MatchScoresModelMatchScoresOneOf](docs/MatchScoresModelMatchScoresOneOf.md)
208
+ - [FtcEventsClient::ScheduleHybridModelTeamVersion2](docs/ScheduleHybridModelTeamVersion2.md)
209
+ - [FtcEventsClient::ScheduleHybridModelVersion2](docs/ScheduleHybridModelVersion2.md)
210
+ - [FtcEventsClient::ScheduledMatchModelVersion2](docs/ScheduledMatchModelVersion2.md)
211
+ - [FtcEventsClient::ScheduledMatchTeamModelVersion2](docs/ScheduledMatchTeamModelVersion2.md)
212
+ - [FtcEventsClient::ScoreDetailAllianceModel2020](docs/ScoreDetailAllianceModel2020.md)
213
+ - [FtcEventsClient::ScoreDetailModel2019](docs/ScoreDetailModel2019.md)
214
+ - [FtcEventsClient::ScoreDetailModel2020](docs/ScoreDetailModel2020.md)
215
+ - [FtcEventsClient::ScoreDetailModelAlliance2019](docs/ScoreDetailModelAlliance2019.md)
216
+ - [FtcEventsClient::ScoreDetailModelSinglePlayer2020](docs/ScoreDetailModelSinglePlayer2020.md)
217
+ - [FtcEventsClient::SeasonAwardListingsModel](docs/SeasonAwardListingsModel.md)
218
+ - [FtcEventsClient::SeasonAwardsModel](docs/SeasonAwardsModel.md)
219
+ - [FtcEventsClient::SeasonEventListingsModelVersion2](docs/SeasonEventListingsModelVersion2.md)
220
+ - [FtcEventsClient::SeasonEventModelVersion2](docs/SeasonEventModelVersion2.md)
221
+ - [FtcEventsClient::SeasonSummaryModelChampionship](docs/SeasonSummaryModelChampionship.md)
222
+ - [FtcEventsClient::SeasonSummaryModelVersion2](docs/SeasonSummaryModelVersion2.md)
223
+ - [FtcEventsClient::SeasonTeamListingsModelVersion2](docs/SeasonTeamListingsModelVersion2.md)
224
+ - [FtcEventsClient::SeasonTeamModelVersion2](docs/SeasonTeamModelVersion2.md)
225
+ - [FtcEventsClient::Stone](docs/Stone.md)
226
+ - [FtcEventsClient::TeamRankingModel](docs/TeamRankingModel.md)
227
+ - [FtcEventsClient::TournamentLevel](docs/TournamentLevel.md)
228
+
229
+
230
+ ## Documentation for Authorization
231
+
232
+
233
+ ### basic
234
+
235
+ - **Type**: HTTP basic authentication
236
+
@@ -0,0 +1,10 @@
1
+ require "bundler/gem_tasks"
2
+
3
+ begin
4
+ require 'rspec/core/rake_task'
5
+
6
+ RSpec::Core::RakeTask.new(:spec)
7
+ task default: :spec
8
+ rescue LoadError
9
+ # no rspec available
10
+ end
@@ -0,0 +1,8 @@
1
+ {
2
+ "gemVersion": "0.1.0",
3
+ "gemName": "ftc_events_client",
4
+ "moduleName": "FtcEventsClient",
5
+ "gemRequiredRubyVersion": ">= 2.4",
6
+ "gemHomepage": "https://github.com/maths22/ftc-events-client-ruby",
7
+ "gemDescription": "API Client for the FTC Events library"
8
+ }
@@ -0,0 +1,32 @@
1
+ # FtcEventsClient::AllianceModelVersion2
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **number** | **Integer** | | [optional] |
8
+ | **name** | **String** | | [optional] |
9
+ | **captain** | **Integer** | | [optional] |
10
+ | **round1** | **Integer** | | [optional] |
11
+ | **round2** | **Integer** | | [optional] |
12
+ | **round3** | **Integer** | | [optional] |
13
+ | **backup** | **Integer** | | [optional] |
14
+ | **backup_replaced** | **Integer** | | [optional] |
15
+
16
+ ## Code Sample
17
+
18
+ ```ruby
19
+ require 'ftc_events_client'
20
+
21
+ instance = FtcEventsClient::AllianceModelVersion2.new(
22
+ number: null,
23
+ name: null,
24
+ captain: null,
25
+ round1: null,
26
+ round2: null,
27
+ round3: null,
28
+ backup: null,
29
+ backup_replaced: null
30
+ )
31
+ ```
32
+
@@ -0,0 +1,86 @@
1
+ # FtcEventsClient::AllianceScore2020
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **adjust** | **Integer** | | [optional] |
8
+ | **dc_points** | **Integer** | | [optional] |
9
+ | **auto_points** | **Integer** | | [optional] |
10
+ | **dc_tower_low** | **Integer** | | [optional] |
11
+ | **dc_tower_mid** | **Integer** | | [optional] |
12
+ | **dc_tower_high** | **Integer** | | [optional] |
13
+ | **navigated1** | **Boolean** | | [optional] |
14
+ | **navigated2** | **Boolean** | | [optional] |
15
+ | **wobble_delivered1** | **Boolean** | | [optional] |
16
+ | **wobble_delivered2** | **Boolean** | | [optional] |
17
+ | **auto_tower_low** | **Integer** | | [optional] |
18
+ | **auto_tower_mid** | **Integer** | | [optional] |
19
+ | **auto_tower_high** | **Integer** | | [optional] |
20
+ | **auto_tower_points** | **Integer** | | [optional] |
21
+ | **auto_power_shot_left** | **Boolean** | | [optional] |
22
+ | **auto_power_shot_center** | **Boolean** | | [optional] |
23
+ | **auto_power_shot_right** | **Boolean** | | [optional] |
24
+ | **auto_power_shot_points** | **Integer** | | [optional] |
25
+ | **wobble_rings1** | **Integer** | | [optional] |
26
+ | **wobble_rings2** | **Integer** | | [optional] |
27
+ | **wobble_end1** | **Integer** | | [optional] |
28
+ | **wobble_end2** | **Integer** | | [optional] |
29
+ | **wobble_end_points** | **Integer** | | [optional] |
30
+ | **wobble_ring_points** | **Integer** | | [optional] |
31
+ | **auto_wobble_points** | **Integer** | | [optional] |
32
+ | **end_power_shot_left** | **Boolean** | | [optional] |
33
+ | **end_power_shot_center** | **Boolean** | | [optional] |
34
+ | **end_power_shot_right** | **Boolean** | | [optional] |
35
+ | **end_power_shot_points** | **Integer** | | [optional] |
36
+ | **penalty_points** | **Integer** | | [optional] |
37
+ | **major_penalties** | **Integer** | | [optional] |
38
+ | **minor_penalties** | **Integer** | | [optional] |
39
+ | **navigation_points** | **Integer** | | [optional] |
40
+ | **endgame_points** | **Integer** | | [optional] |
41
+ | **total_points** | **Integer** | | [optional] |
42
+
43
+ ## Code Sample
44
+
45
+ ```ruby
46
+ require 'ftc_events_client'
47
+
48
+ instance = FtcEventsClient::AllianceScore2020.new(
49
+ adjust: null,
50
+ dc_points: null,
51
+ auto_points: null,
52
+ dc_tower_low: null,
53
+ dc_tower_mid: null,
54
+ dc_tower_high: null,
55
+ navigated1: null,
56
+ navigated2: null,
57
+ wobble_delivered1: null,
58
+ wobble_delivered2: null,
59
+ auto_tower_low: null,
60
+ auto_tower_mid: null,
61
+ auto_tower_high: null,
62
+ auto_tower_points: null,
63
+ auto_power_shot_left: null,
64
+ auto_power_shot_center: null,
65
+ auto_power_shot_right: null,
66
+ auto_power_shot_points: null,
67
+ wobble_rings1: null,
68
+ wobble_rings2: null,
69
+ wobble_end1: null,
70
+ wobble_end2: null,
71
+ wobble_end_points: null,
72
+ wobble_ring_points: null,
73
+ auto_wobble_points: null,
74
+ end_power_shot_left: null,
75
+ end_power_shot_center: null,
76
+ end_power_shot_right: null,
77
+ end_power_shot_points: null,
78
+ penalty_points: null,
79
+ major_penalties: null,
80
+ minor_penalties: null,
81
+ navigation_points: null,
82
+ endgame_points: null,
83
+ total_points: null
84
+ )
85
+ ```
86
+
@@ -0,0 +1,62 @@
1
+ # FtcEventsClient::AllianceSelectionApi
2
+
3
+ All URIs are relative to *http://localhost*
4
+
5
+ | Method | HTTP request | Description |
6
+ | ------ | ------------ | ----------- |
7
+ | [**v20_season_alliances_event_code_get**](AllianceSelectionApi.md#v20_season_alliances_event_code_get) | **GET** /v2.0/{season}/alliances/{eventCode} | Event Alliances |
8
+
9
+
10
+ ## v20_season_alliances_event_code_get
11
+
12
+ > AllianceSelectionModelVersion2 v20_season_alliances_event_code_get(season, event_code)
13
+
14
+ Event Alliances
15
+
16
+ The alliances API returns details about alliance selection at a particular event in a particular season.
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::AllianceSelectionApi.new
31
+ season = 56 # Integer | Numeric year of the event from which the event alliances are requested. Must be 4 digits.
32
+ event_code = 'event_code_example' # String | Case insensitive alphanumeric `eventCode` of the event from which the alliance selection results are requested. Must be at least 3 characters.
33
+
34
+ begin
35
+ #Event Alliances
36
+ result = api_instance.v20_season_alliances_event_code_get(season, event_code)
37
+ p result
38
+ rescue FtcEventsClient::ApiError => e
39
+ puts "Exception when calling AllianceSelectionApi->v20_season_alliances_event_code_get: #{e}"
40
+ end
41
+ ```
42
+
43
+ ### Parameters
44
+
45
+ | Name | Type | Description | Notes |
46
+ | ---- | ---- | ----------- | ----- |
47
+ | **season** | **Integer** | Numeric year of the event from which the event alliances are requested. Must be 4 digits. | |
48
+ | **event_code** | **String** | Case insensitive alphanumeric `eventCode` of the event from which the alliance selection results are requested. Must be at least 3 characters. | |
49
+
50
+ ### Return type
51
+
52
+ [**AllianceSelectionModelVersion2**](AllianceSelectionModelVersion2.md)
53
+
54
+ ### Authorization
55
+
56
+ [basic](../README.md#basic)
57
+
58
+ ### HTTP request headers
59
+
60
+ - **Content-Type**: Not defined
61
+ - **Accept**: application/json
62
+