ftc_events_client 0.1.0 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (143) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +351 -101
  3. data/Rakefile +0 -2
  4. data/config.json +1 -1
  5. data/docs/AllianceModelVersion2.md +10 -28
  6. data/docs/AllianceScore2020.md +37 -82
  7. data/docs/AllianceSelectionApi.md +14 -14
  8. data/docs/AllianceSelectionModelVersion2.md +4 -16
  9. data/docs/ApiIndexModel.md +11 -30
  10. data/docs/AutoNavigatedStatus.md +6 -0
  11. data/docs/AwardAssignmentModel.md +13 -34
  12. data/docs/AwardsApi.md +47 -49
  13. data/docs/AwardsModel.md +3 -14
  14. data/docs/BarcodeElement.md +6 -0
  15. data/docs/EndgameParkedStatus.md +6 -0
  16. data/docs/EventMatchResultsModelVersion2.md +3 -14
  17. data/docs/EventRankingsModel.md +3 -14
  18. data/docs/EventScheduleHybridModelVersion2.md +3 -14
  19. data/docs/EventScheduleModelVersion2.md +3 -14
  20. data/docs/FTCEventLevel.md +6 -0
  21. data/docs/GeneralApi.md +9 -11
  22. data/docs/LeagueMemberListModel.md +7 -0
  23. data/docs/LeaguesApi.md +179 -0
  24. data/docs/MatchResultModelVersion2.md +16 -40
  25. data/docs/MatchResultTeamModelVersion2.md +6 -18
  26. data/docs/MatchResultsApi.md +33 -35
  27. data/docs/MatchScoresModel.md +3 -14
  28. data/docs/MatchScoresModelMatchScoresOneOf.md +5 -1
  29. data/docs/OneOfMatchScoresModelMatchScoresItems.md +6 -0
  30. data/docs/RankingsApi.md +16 -17
  31. data/docs/ScheduleApi.md +30 -32
  32. data/docs/ScheduleHybridModelTeamVersion2.md +8 -22
  33. data/docs/ScheduleHybridModelVersion2.md +18 -40
  34. data/docs/ScheduledMatchModelVersion2.md +10 -28
  35. data/docs/ScheduledMatchTeamModelVersion2.md +6 -20
  36. data/docs/ScoreDetailAllianceModel2020.md +39 -86
  37. data/docs/ScoreDetailAllianceModel2021.md +48 -0
  38. data/docs/ScoreDetailModel2019.md +6 -18
  39. data/docs/ScoreDetailModel2020.md +6 -18
  40. data/docs/ScoreDetailModel2021.md +10 -0
  41. data/docs/ScoreDetailModelAlliance2019.md +36 -80
  42. data/docs/ScoreDetailModelSinglePlayer2020.md +6 -20
  43. data/docs/ScoreDetailModelSinglePlayer2021.md +10 -0
  44. data/docs/ScoreDetailSinglePlayer2021.md +39 -0
  45. data/docs/SeasonAwardListingsModel.md +3 -14
  46. data/docs/SeasonAwardsModel.md +6 -20
  47. data/docs/SeasonDataApi.md +35 -37
  48. data/docs/SeasonEventListingsModelVersion2.md +4 -16
  49. data/docs/SeasonEventModelVersion2.md +24 -46
  50. data/docs/SeasonLeagueListingsModelVersion2.md +8 -0
  51. data/docs/SeasonLeagueModelVersion2.md +11 -0
  52. data/docs/SeasonSummaryModelChampionship.md +5 -18
  53. data/docs/SeasonSummaryModelVersion2.md +8 -24
  54. data/docs/SeasonTeamListingsModelVersion2.md +7 -22
  55. data/docs/SeasonTeamModelVersion2.md +14 -36
  56. data/docs/Stone.md +2 -11
  57. data/docs/TeamRankingModel.md +17 -42
  58. data/ftc_events_client.gemspec +5 -5
  59. data/git_push.sh +7 -10
  60. data/lib/ftc_events_client/api/alliance_selection_api.rb +17 -22
  61. data/lib/ftc_events_client/api/awards_api.rb +52 -74
  62. data/lib/ftc_events_client/api/general_api.rb +8 -17
  63. data/lib/ftc_events_client/api/leagues_api.rb +218 -0
  64. data/lib/ftc_events_client/api/match_results_api.rb +44 -45
  65. data/lib/ftc_events_client/api/rankings_api.rb +17 -22
  66. data/lib/ftc_events_client/api/schedule_api.rb +44 -45
  67. data/lib/ftc_events_client/api/season_data_api.rb +30 -53
  68. data/lib/ftc_events_client/api_client.rb +52 -54
  69. data/lib/ftc_events_client/api_error.rb +4 -4
  70. data/lib/ftc_events_client/configuration.rb +6 -76
  71. data/lib/ftc_events_client/models/alliance_model_version2.rb +19 -31
  72. data/lib/ftc_events_client/models/{alliance_score2020.rb → alliance_score_2020.rb} +46 -58
  73. data/lib/ftc_events_client/models/alliance_selection_model_version2.rb +13 -25
  74. data/lib/ftc_events_client/models/api_index_model.rb +20 -32
  75. data/lib/ftc_events_client/models/{tournament_level.rb → auto_navigated_status.rb} +11 -21
  76. data/lib/ftc_events_client/models/award_assignment_model.rb +22 -34
  77. data/lib/ftc_events_client/models/awards_model.rb +12 -24
  78. data/lib/ftc_events_client/models/barcode_element.rb +28 -0
  79. data/lib/ftc_events_client/models/endgame_parked_status.rb +29 -0
  80. data/lib/ftc_events_client/models/event_match_results_model_version2.rb +12 -24
  81. data/lib/ftc_events_client/models/event_rankings_model.rb +12 -24
  82. data/lib/ftc_events_client/models/event_schedule_hybrid_model_version2.rb +12 -24
  83. data/lib/ftc_events_client/models/event_schedule_model_version2.rb +12 -24
  84. data/lib/ftc_events_client/models/ftc_event_level.rb +31 -0
  85. data/lib/ftc_events_client/models/league_member_list_model.rb +209 -0
  86. data/lib/ftc_events_client/models/match_result_model_version2.rb +25 -37
  87. data/lib/ftc_events_client/models/match_result_team_model_version2.rb +26 -29
  88. data/lib/ftc_events_client/models/match_scores_model.rb +12 -24
  89. data/lib/ftc_events_client/models/one_of_match_scores_model_match_scores_items.rb +197 -0
  90. data/lib/ftc_events_client/models/schedule_hybrid_model_team_version2.rb +30 -32
  91. data/lib/ftc_events_client/models/schedule_hybrid_model_version2.rb +46 -38
  92. data/lib/ftc_events_client/models/scheduled_match_model_version2.rb +19 -31
  93. data/lib/ftc_events_client/models/scheduled_match_team_model_version2.rb +15 -27
  94. data/lib/ftc_events_client/models/{score_detail_alliance_model2020.rb → score_detail_alliance_model_2020.rb} +48 -60
  95. data/lib/ftc_events_client/models/score_detail_alliance_model_2021.rb +576 -0
  96. data/lib/ftc_events_client/models/{score_detail_model2019.rb → score_detail_model_2019.rb} +24 -27
  97. data/lib/ftc_events_client/models/{score_detail_model2020.rb → score_detail_model_2020.rb} +24 -27
  98. data/lib/ftc_events_client/models/score_detail_model_2021.rb +236 -0
  99. data/lib/ftc_events_client/models/{score_detail_model_alliance2019.rb → score_detail_model_alliance_2019.rb} +45 -57
  100. data/lib/ftc_events_client/models/{score_detail_model_single_player2020.rb → score_detail_model_single_player_2020.rb} +15 -27
  101. data/lib/ftc_events_client/models/score_detail_model_single_player_2021.rb +233 -0
  102. data/lib/ftc_events_client/models/score_detail_single_player_2021.rb +494 -0
  103. data/lib/ftc_events_client/models/season_award_listings_model.rb +12 -24
  104. data/lib/ftc_events_client/models/season_awards_model.rb +22 -34
  105. data/lib/ftc_events_client/models/season_event_listings_model_version2.rb +13 -25
  106. data/lib/ftc_events_client/models/season_event_model_version2.rb +77 -41
  107. data/lib/ftc_events_client/models/season_league_listings_model_version2.rb +218 -0
  108. data/lib/ftc_events_client/models/season_league_model_version2.rb +247 -0
  109. data/lib/ftc_events_client/models/season_summary_model_championship.rb +14 -26
  110. data/lib/ftc_events_client/models/season_summary_model_version2.rb +17 -29
  111. data/lib/ftc_events_client/models/season_team_listings_model_version2.rb +16 -28
  112. data/lib/ftc_events_client/models/season_team_model_version2.rb +23 -35
  113. data/lib/ftc_events_client/models/stone.rb +6 -15
  114. data/lib/ftc_events_client/models/team_ranking_model.rb +26 -38
  115. data/lib/ftc_events_client/version.rb +4 -5
  116. data/lib/ftc_events_client.rb +22 -12
  117. data/spec/api/leagues_api_spec.rb +77 -0
  118. data/spec/base_object_spec.rb +109 -0
  119. data/spec/configuration_spec.rb +3 -3
  120. data/spec/models/alliance_score_2020_spec.rb +244 -0
  121. data/spec/models/auto_navigated_status_spec.rb +28 -0
  122. data/spec/models/barcode_element_spec.rb +28 -0
  123. data/spec/models/endgame_parked_status_spec.rb +28 -0
  124. data/spec/models/ftc_event_level_spec.rb +28 -0
  125. data/spec/models/league_member_list_model_spec.rb +34 -0
  126. data/spec/models/one_of_match_scores_model_match_scores_items_spec.rb +34 -0
  127. data/spec/models/score_detail_alliance_model2021_spec.rb +280 -0
  128. data/spec/models/score_detail_alliance_model_2020_spec.rb +256 -0
  129. data/spec/models/score_detail_alliance_model_2021_spec.rb +286 -0
  130. data/spec/models/score_detail_model2021_spec.rb +52 -0
  131. data/spec/models/score_detail_model_2019_spec.rb +58 -0
  132. data/spec/models/score_detail_model_2020_spec.rb +58 -0
  133. data/spec/models/score_detail_model_2021_spec.rb +58 -0
  134. data/spec/models/score_detail_model_alliance_2019_spec.rb +238 -0
  135. data/spec/models/score_detail_model_single_player2021_spec.rb +52 -0
  136. data/spec/models/score_detail_model_single_player_2020_spec.rb +58 -0
  137. data/spec/models/score_detail_model_single_player_2021_spec.rb +58 -0
  138. data/spec/models/score_detail_single_player2021_spec.rb +226 -0
  139. data/spec/models/score_detail_single_player_2021_spec.rb +232 -0
  140. data/spec/models/season_league_listings_model_version2_spec.rb +40 -0
  141. data/{lib/ftc_events_client/models/match_scores_model_match_scores_one_of.rb → spec/models/season_league_model_version2_spec.rb} +35 -83
  142. data/update.sh +2 -2
  143. metadata +103 -11
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 66e64b1670680b253ac202d968004ca2eba49e563d76548308f33746a8ac7c2f
4
- data.tar.gz: 04f460ca348640417ea5c5f33a9d53ad07e5d0629a73f0b98f07fa3fe45c0efb
3
+ metadata.gz: ebeb6068064fb6e3b0727fd716cdce23be857a675609c8c72196ef66cd7f08aa
4
+ data.tar.gz: '09329e50a3b5543d3a3f24c5af8d59d9a86e5984aded9b4e549923288ee6efab'
5
5
  SHA512:
6
- metadata.gz: f0a105fe8721cab67e2c93eb84c828f1f7bda8fb7c13e0874501c18a4d1907d7949b7dc113f730410c86dd9eb527b6c340f771e522c8aeec0f2a64d670463782
7
- data.tar.gz: e7e1142b3cdd595c55fc7ee7002a37fc9d68863d00b28b073e65a476dd72a40dfbace56e8275de656f7a7aa8ffc4a6fc5e01b0a9cfa97b2d5defa09147a8a442
6
+ metadata.gz: 4829b67fb75dcb256d17789824bc38347af84309adde7898816e069fe3f61b37f61951f1bffe10919b856e32eaf90fb63ec2c563a85852734e136135ebbd0e69
7
+ data.tar.gz: 801174a6ac8dc8119bb3ec96b31208c6bd368589f5d3c898fb689f33d45af53c63171199d65012aba7c00e72d9c1c27ef10968168a67577d7dd7a64e37b6e312
data/README.md CHANGED
@@ -2,174 +2,413 @@
2
2
 
3
3
  FtcEventsClient - the Ruby gem for the FTC Events API
4
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
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 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. ## Documentation Notes ### Timezones All times are listed in the local time to the event venue. HTTP-date values will show their timezone. ### Query Parameters 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. 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. 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. ### Experimenting with the API 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). [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) has a feature that allows you try out endpoints from within the page. 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 such as [Postman](https://www.postman.com) for experimentation as well. ### Last-Modified, FMS-OnlyModifiedSince, and If-Modified-Since Headers 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). 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). 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. 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. ## Response Codes 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. ### HTTP 200 - \"OK\" 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) ### HTTP 304 - \"Not Modified\" When utilizing a Header that allows filtered data returns, such as `If-Modified-Since`, this response indicates that no data meets the request. ### HTTP 400 - \"Invalid Season Requested\"/\"Malformed Parameter Format In Request\"/\"Missing Parameter In Request\"/\"Invalid API Version Requested\": 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. ### HTTP 401 - \"Unauthorized\" 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. ### HTTP 404 - \"Invalid Event Requested\" 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). ### HTTP 500 - \"Internal Server Error\" 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. ### HTTP 501 - \"Request Did Not Match Any Current API Pattern\" 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. ### HTTP 503 - \"Service Unavailable\" 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. ## Authorization 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: ``` Authorization: Basic 000000000000000000000000000000000000000000000000000000000000 ``` 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: ``` sampleuser:7eaa6338-a097-4221-ac04-b6120fcc4d49 ``` 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: ``` c2FtcGxldXNlcjo3ZWFhNjMzOC1hMDk3LTQyMjEtYWMwNC1iNjEyMGZjYzRkNDk= ``` Most API client libraries can handle computing the authorization header using a username and password for you 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. 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.
6
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.
7
+ This SDK is automatically generated by the [Swagger Codegen](https://github.com/swagger-api/swagger-codegen) project:
8
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.
9
+ - API version: v2.0
10
+ - Package version: 0.2.0
11
+ - Build package: io.swagger.codegen.v3.generators.ruby.RubyClientCodegen
14
12
 
15
- ### Query Parameters
13
+ ## Installation
16
14
 
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.
15
+ ### Build a gem
18
16
 
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.
17
+ To build the Ruby code into a gem:
20
18
 
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.
19
+ ```shell
20
+ gem build ftc_events_client.gemspec
21
+ ```
22
22
 
23
- ### Experimenting with the API
23
+ Then either install the gem locally:
24
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).
25
+ ```shell
26
+ gem install ./ftc_events_client-0.2.0.gem
27
+ ```
28
+ (for development, run `gem install --dev ./ftc_events_client-0.2.0.gem` to install the development dependencies)
26
29
 
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.
30
+ or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/).
29
31
 
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
+ Finally add this to the Gemfile:
32
33
 
34
+ gem 'ftc_events_client', '~> 0.2.0'
33
35
 
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
+ ### Install from Git
36
37
 
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
+ 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:
38
39
 
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
+ gem 'ftc_events_client', :git => 'https://github.com/GIT_USER_ID/GIT_REPO_ID.git'
40
41
 
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
+ ### Include the Ruby code directly
42
43
 
43
- ## Response Codes
44
+ Include the Ruby code directly using `-I` as follows:
44
45
 
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
+ ```shell
47
+ ruby -Ilib script.rb
48
+ ```
46
49
 
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)
50
+ ## Getting Started
49
51
 
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
+ Please follow the [installation](#installation) procedure and then run the following code:
53
+ ```ruby
54
+ # Load the gem
55
+ require 'ftc_events_client'
56
+ # Setup authorization
57
+ FtcEventsClient.configure do |config|
58
+ # Configure HTTP basic authorization: basic
59
+ config.username = 'YOUR USERNAME'
60
+ config.password = 'YOUR PASSWORD'
61
+ end
52
62
 
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.
63
+ api_instance = FtcEventsClient::AllianceSelectionApi.new
64
+ season = 56 # Integer | Numeric year of the event from which the event alliances are requested. Must be 4 digits.
65
+ 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.
55
66
 
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
67
 
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).
68
+ begin
69
+ #Event Alliances
70
+ result = api_instance.v20_season_alliances_event_code_get(season, event_code)
71
+ p result
72
+ rescue FtcEventsClient::ApiError => e
73
+ puts "Exception when calling AllianceSelectionApi->v20_season_alliances_event_code_get: #{e}"
74
+ end
75
+ # Setup authorization
76
+ FtcEventsClient.configure do |config|
77
+ # Configure HTTP basic authorization: basic
78
+ config.username = 'YOUR USERNAME'
79
+ config.password = 'YOUR PASSWORD'
80
+ end
61
81
 
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.
82
+ api_instance = FtcEventsClient::AwardsApi.new
83
+ season = 56 # Integer | Numeric year of the event from which the award listings are requested. Must be 4 digits
84
+ event_code = 'event_code_example' # String | Case insensitive alphanumeric `eventCode` of the event from which the awards are requested.
85
+ opts = {
86
+ team_number: 0 # Integer | `teamNumber` to search for within the results.
87
+ }
64
88
 
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.
89
+ begin
90
+ #Event Awards
91
+ result = api_instance.v20_season_awards_event_code_get(season, event_code, opts)
92
+ p result
93
+ rescue FtcEventsClient::ApiError => e
94
+ puts "Exception when calling AwardsApi->v20_season_awards_event_code_get: #{e}"
95
+ end
96
+ # Setup authorization
97
+ FtcEventsClient.configure do |config|
98
+ # Configure HTTP basic authorization: basic
99
+ config.username = 'YOUR USERNAME'
100
+ config.password = 'YOUR PASSWORD'
101
+ end
67
102
 
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.
103
+ api_instance = FtcEventsClient::AwardsApi.new
104
+ season = 56 # Integer | Numeric year of the event from which the award listings are requested. Must be 4 digits
105
+ event_code = 'event_code_example' # String | Case insensitive alphanumeric `eventCode` of the event from which the awards are requested.
106
+ team_number = 56 # Integer | `teamNumber` to search for within the results.
70
107
 
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
108
 
74
- ```
75
- Authorization: Basic 000000000000000000000000000000000000000000000000000000000000
76
- ```
109
+ begin
110
+ #Event Awards
111
+ result = api_instance.v20_season_awards_event_code_team_number_get(season, event_code, team_number)
112
+ p result
113
+ rescue FtcEventsClient::ApiError => e
114
+ puts "Exception when calling AwardsApi->v20_season_awards_event_code_team_number_get: #{e}"
115
+ end
116
+ # Setup authorization
117
+ FtcEventsClient.configure do |config|
118
+ # Configure HTTP basic authorization: basic
119
+ config.username = 'YOUR USERNAME'
120
+ config.password = 'YOUR PASSWORD'
121
+ end
77
122
 
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:
123
+ api_instance = FtcEventsClient::AwardsApi.new
124
+ season = 56 # Integer | Numeric year of the event from which the award listings are requested. Must be 4 digits
79
125
 
80
- ```
81
- sampleuser:7eaa6338-a097-4221-ac04-b6120fcc4d49
82
- ```
83
126
 
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:
127
+ begin
128
+ #Award Listings
129
+ result = api_instance.v20_season_awards_list_get(season)
130
+ p result
131
+ rescue FtcEventsClient::ApiError => e
132
+ puts "Exception when calling AwardsApi->v20_season_awards_list_get: #{e}"
133
+ end
134
+ # Setup authorization
135
+ FtcEventsClient.configure do |config|
136
+ # Configure HTTP basic authorization: basic
137
+ config.username = 'YOUR USERNAME'
138
+ config.password = 'YOUR PASSWORD'
139
+ end
85
140
 
86
- ```
87
- c2FtcGxldXNlcjo3ZWFhNjMzOC1hMDk3LTQyMjEtYWMwNC1iNjEyMGZjYzRkNDk=
88
- ```
141
+ api_instance = FtcEventsClient::AwardsApi.new
142
+ season = 56 # Integer | Numeric year of the event from which the award listings are requested. Must be 4 digits
143
+ team_number = 56 # Integer | `teamNumber` to search for within the results.
144
+ opts = {
145
+ event_code: '' # String | Case insensitive alphanumeric `eventCode` of the event from which the awards are requested.
146
+ }
89
147
 
90
- Most API client libraries can handle computing the authorization header using a username and password for you
148
+ begin
149
+ #Event Awards
150
+ result = api_instance.v20_season_awards_team_number_get(season, team_number, opts)
151
+ p result
152
+ rescue FtcEventsClient::ApiError => e
153
+ puts "Exception when calling AwardsApi->v20_season_awards_team_number_get: #{e}"
154
+ end
91
155
 
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.
156
+ api_instance = FtcEventsClient::GeneralApi.new
93
157
 
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.
158
+ begin
159
+ #API Index
160
+ result = api_instance.v20_get
161
+ p result
162
+ rescue FtcEventsClient::ApiError => e
163
+ puts "Exception when calling GeneralApi->v20_get: #{e}"
164
+ end
165
+ # Setup authorization
166
+ FtcEventsClient.configure do |config|
167
+ # Configure HTTP basic authorization: basic
168
+ config.username = 'YOUR USERNAME'
169
+ config.password = 'YOUR PASSWORD'
170
+ end
95
171
 
172
+ api_instance = FtcEventsClient::LeaguesApi.new
173
+ season = 56 # Integer | Numeric year from which the league listings are requested. Must be 4 digits
174
+ opts = {
175
+ region_code: 'region_code_example', # String | Case-sensitive alphanumeric `regionCode` of a region to filter for.
176
+ league_code: 'league_code_example' # String | Case-sensitive alphanumeric `leagueCode` of the league within the specified region to query.
177
+ }
96
178
 
97
- This SDK is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
179
+ begin
180
+ #League Listings
181
+ result = api_instance.v20_season_leagues_get(season, opts)
182
+ p result
183
+ rescue FtcEventsClient::ApiError => e
184
+ puts "Exception when calling LeaguesApi->v20_season_leagues_get: #{e}"
185
+ end
186
+ # Setup authorization
187
+ FtcEventsClient.configure do |config|
188
+ # Configure HTTP basic authorization: basic
189
+ config.username = 'YOUR USERNAME'
190
+ config.password = 'YOUR PASSWORD'
191
+ end
98
192
 
99
- - API version: v2.0
100
- - Package version: 0.1.0
101
- - Build package: org.openapitools.codegen.languages.RubyClientCodegen
193
+ api_instance = FtcEventsClient::LeaguesApi.new
194
+ season = 56 # Integer | Numeric year. Must be 4 digits
195
+ region_code = 'region_code_example' # String | Case sensitive alphanumeric `regionCode` of the region the league belongs to.
196
+ league_code = 'league_code_example' # String | Case sensitive alphanumeric `leagueCode` of the league.
102
197
 
103
- ## Installation
104
198
 
105
- ### Build a gem
199
+ begin
200
+ #League Membership
201
+ result = api_instance.v20_season_leagues_members_region_code_league_code_get(season, region_code, league_code)
202
+ p result
203
+ rescue FtcEventsClient::ApiError => e
204
+ puts "Exception when calling LeaguesApi->v20_season_leagues_members_region_code_league_code_get: #{e}"
205
+ end
206
+ # Setup authorization
207
+ FtcEventsClient.configure do |config|
208
+ # Configure HTTP basic authorization: basic
209
+ config.username = 'YOUR USERNAME'
210
+ config.password = 'YOUR PASSWORD'
211
+ end
106
212
 
107
- To build the Ruby code into a gem:
213
+ api_instance = FtcEventsClient::LeaguesApi.new
214
+ season = 56 # Integer | Numeric year. Must be 4 digits
215
+ region_code = 'region_code_example' # String | Case sensitive alphanumeric `regionCode` of the region the league belongs to.
216
+ league_code = 'league_code_example' # String | Case sensitive alphanumeric `leagueCode` of the league.
108
217
 
109
- ```shell
110
- gem build ftc_events_client.gemspec
111
- ```
112
218
 
113
- Then either install the gem locally:
219
+ begin
220
+ #League Rankings
221
+ result = api_instance.v20_season_leagues_rankings_region_code_league_code_get(season, region_code, league_code)
222
+ p result
223
+ rescue FtcEventsClient::ApiError => e
224
+ puts "Exception when calling LeaguesApi->v20_season_leagues_rankings_region_code_league_code_get: #{e}"
225
+ end
226
+ # Setup authorization
227
+ FtcEventsClient.configure do |config|
228
+ # Configure HTTP basic authorization: basic
229
+ config.username = 'YOUR USERNAME'
230
+ config.password = 'YOUR PASSWORD'
231
+ end
114
232
 
115
- ```shell
116
- gem install ./ftc_events_client-0.1.0.gem
117
- ```
233
+ api_instance = FtcEventsClient::MatchResultsApi.new
234
+ season = 56 # Integer | Numeric year of the event from which the match results are requested. Must be 4 digits.
235
+ 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.
236
+ opts = {
237
+ tournament_level: '0', # String | Required tournamentLevel of desired score details.
238
+ team_number: 56, # Integer | `teamNumber` to search for within the results. Only returns match results in which the requested team was a participant.
239
+ match_number: 56, # Integer | specific single `matchNumber` of result.
240
+ start: 0, # Integer | `start` match number for subset of results to return.
241
+ _end: 999 # Integer | `end` match number for subset of results to return (inclusive).
242
+ }
118
243
 
119
- (for development, run `gem install --dev ./ftc_events_client-0.1.0.gem` to install the development dependencies)
244
+ begin
245
+ #Event Match Results
246
+ result = api_instance.v20_season_matches_event_code_get(season, event_code, opts)
247
+ p result
248
+ rescue FtcEventsClient::ApiError => e
249
+ puts "Exception when calling MatchResultsApi->v20_season_matches_event_code_get: #{e}"
250
+ end
251
+ # Setup authorization
252
+ FtcEventsClient.configure do |config|
253
+ # Configure HTTP basic authorization: basic
254
+ config.username = 'YOUR USERNAME'
255
+ config.password = 'YOUR PASSWORD'
256
+ end
120
257
 
121
- or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/).
258
+ api_instance = FtcEventsClient::MatchResultsApi.new
259
+ season = 56 # Integer | Numeric year of the event from which the match results are requested. Must be 4 digits.
260
+ 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.
261
+ tournament_level = 'tournament_level_example' # String | Required tournamentLevel of desired score details.
262
+ opts = {
263
+ team_number: 56, # Integer | `teamNumber` to search for within the results. Only returns details in which the requested team was a participant.
264
+ match_number: 56, # Integer | specific single `matchNumber` of result.
265
+ start: 0, # Integer | `start` match number for subset of results to return (inclusive).
266
+ _end: 999 # Integer | `end` match number for subset of results to return (inclusive).
267
+ }
122
268
 
123
- Finally add this to the Gemfile:
269
+ begin
270
+ #Score Details
271
+ result = api_instance.v20_season_scores_event_code_tournament_level_get(season, event_code, tournament_level, opts)
272
+ p result
273
+ rescue FtcEventsClient::ApiError => e
274
+ puts "Exception when calling MatchResultsApi->v20_season_scores_event_code_tournament_level_get: #{e}"
275
+ end
276
+ # Setup authorization
277
+ FtcEventsClient.configure do |config|
278
+ # Configure HTTP basic authorization: basic
279
+ config.username = 'YOUR USERNAME'
280
+ config.password = 'YOUR PASSWORD'
281
+ end
124
282
 
125
- gem 'ftc_events_client', '~> 0.1.0'
283
+ api_instance = FtcEventsClient::RankingsApi.new
284
+ season = 56 # Integer | Numeric year of the event from which the rankings are requested. Must be 4 digits
285
+ 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.
286
+ opts = {
287
+ team_number: 0, # Integer | Team number of the team whose ranking is requested.
288
+ top: 0 # Integer | number of requested `top` ranked teams to return in result.
289
+ }
126
290
 
127
- ### Install from Git
291
+ begin
292
+ #Event Rankings
293
+ result = api_instance.v20_season_rankings_event_code_get(season, event_code, opts)
294
+ p result
295
+ rescue FtcEventsClient::ApiError => e
296
+ puts "Exception when calling RankingsApi->v20_season_rankings_event_code_get: #{e}"
297
+ end
298
+ # Setup authorization
299
+ FtcEventsClient.configure do |config|
300
+ # Configure HTTP basic authorization: basic
301
+ config.username = 'YOUR USERNAME'
302
+ config.password = 'YOUR PASSWORD'
303
+ end
128
304
 
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:
305
+ api_instance = FtcEventsClient::ScheduleApi.new
306
+ season = 56 # Integer | Numeric year of the event from which the schedule is requested. Must be 4 digits
307
+ 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.
308
+ opts = {
309
+ tournament_level: '0', # String | Required tournamentLevel of desired score details.
310
+ team_number: 0, # Integer | `teamNumber` to search for within the schedule. Only returns matches in which the requested team participated.
311
+ start: 0, # Integer | `start` match number for subset of results to return (inclusive).
312
+ _end: 999 # Integer | `end` match number for subset of results to return (inclusive).
313
+ }
130
314
 
131
- gem 'ftc_events_client', :git => 'https://github.com/GIT_USER_ID/GIT_REPO_ID.git'
315
+ begin
316
+ #Event Schedule
317
+ result = api_instance.v20_season_schedule_event_code_get(season, event_code, opts)
318
+ p result
319
+ rescue FtcEventsClient::ApiError => e
320
+ puts "Exception when calling ScheduleApi->v20_season_schedule_event_code_get: #{e}"
321
+ end
322
+ # Setup authorization
323
+ FtcEventsClient.configure do |config|
324
+ # Configure HTTP basic authorization: basic
325
+ config.username = 'YOUR USERNAME'
326
+ config.password = 'YOUR PASSWORD'
327
+ end
132
328
 
133
- ### Include the Ruby code directly
329
+ api_instance = FtcEventsClient::ScheduleApi.new
330
+ season = 56 # Integer | Numeric year of the event from which the hybrid schedule is requested. Must be 4 digits
331
+ 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.
332
+ tournament_level = 'tournament_level_example' # String | Required tournamentLevel of desired score details.
333
+ opts = {
334
+ start: 0, # Integer | `start` match number for subset of results to return (inclusive).
335
+ _end: 999 # Integer | `end` match number for subset of results to return (inclusive).
336
+ }
134
337
 
135
- Include the Ruby code directly using `-I` as follows:
338
+ begin
339
+ #Hybrid Schedule
340
+ result = api_instance.v20_season_schedule_event_code_tournament_level_hybrid_get(season, event_code, tournament_level, opts)
341
+ p result
342
+ rescue FtcEventsClient::ApiError => e
343
+ puts "Exception when calling ScheduleApi->v20_season_schedule_event_code_tournament_level_hybrid_get: #{e}"
344
+ end
345
+ # Setup authorization
346
+ FtcEventsClient.configure do |config|
347
+ # Configure HTTP basic authorization: basic
348
+ config.username = 'YOUR USERNAME'
349
+ config.password = 'YOUR PASSWORD'
350
+ end
136
351
 
137
- ```shell
138
- ruby -Ilib script.rb
139
- ```
352
+ api_instance = FtcEventsClient::SeasonDataApi.new
353
+ season = 56 # Integer | Numeric year from which the event listings are requested. Must be 4 digits
354
+ opts = {
355
+ event_code: '0', # String | Case insensitive alphanumeric `eventCode` of the event about which details are requested.
356
+ team_number: 0 # Integer | Numeric `teamNumber` of the team from which the attending event listings are requested.
357
+ }
140
358
 
141
- ## Getting Started
359
+ begin
360
+ #Event Listings
361
+ result = api_instance.v20_season_events_get(season, opts)
362
+ p result
363
+ rescue FtcEventsClient::ApiError => e
364
+ puts "Exception when calling SeasonDataApi->v20_season_events_get: #{e}"
365
+ end
366
+ # Setup authorization
367
+ FtcEventsClient.configure do |config|
368
+ # Configure HTTP basic authorization: basic
369
+ config.username = 'YOUR USERNAME'
370
+ config.password = 'YOUR PASSWORD'
371
+ end
142
372
 
143
- Please follow the [installation](#installation) procedure and then run the following code:
373
+ api_instance = FtcEventsClient::SeasonDataApi.new
374
+ season = 56 # Integer | Numeric year of the event from which the season summary is requested. Must be 4 digits.
144
375
 
145
- ```ruby
146
- # Load the gem
147
- require 'ftc_events_client'
148
376
 
377
+ begin
378
+ #Season Summary
379
+ result = api_instance.v20_season_get(season)
380
+ p result
381
+ rescue FtcEventsClient::ApiError => e
382
+ puts "Exception when calling SeasonDataApi->v20_season_get: #{e}"
383
+ end
149
384
  # Setup authorization
150
385
  FtcEventsClient.configure do |config|
151
386
  # Configure HTTP basic authorization: basic
152
- config.username = 'YOUR_USERNAME'
153
- config.password = 'YOUR_PASSWORD'
387
+ config.username = 'YOUR USERNAME'
388
+ config.password = 'YOUR PASSWORD'
154
389
  end
155
390
 
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.
391
+ api_instance = FtcEventsClient::SeasonDataApi.new
392
+ season = 56 # Integer | Numeric year from which the team listings are requested. Must be 4 digits.
393
+ opts = {
394
+ team_number: 0, # Integer | Numeric `teamNumber` of the team about which information is requested. Must be 1 to 5 digits.
395
+ event_code: '0', # String | Case insensitive alphanumeric `eventCode` of the event from which details are requested.
396
+ state: '', # String | Full legal name of the US state or international state/prov
397
+ page: 1 # Integer | Numeric page of results to return.
398
+ }
159
399
 
160
400
  begin
161
- #Event Alliances
162
- result = api_instance.v20_season_alliances_event_code_get(season, event_code)
401
+ #Team Listings
402
+ result = api_instance.v20_season_teams_get(season, opts)
163
403
  p result
164
404
  rescue FtcEventsClient::ApiError => e
165
- puts "Exception when calling AllianceSelectionApi->v20_season_alliances_event_code_get: #{e}"
405
+ puts "Exception when calling SeasonDataApi->v20_season_teams_get: #{e}"
166
406
  end
167
-
168
407
  ```
169
408
 
170
409
  ## Documentation for API Endpoints
171
410
 
172
- All URIs are relative to *http://localhost*
411
+ All URIs are relative to *http://ftc-api.firstinspires.org*
173
412
 
174
413
  Class | Method | HTTP request | Description
175
414
  ------------ | ------------- | ------------- | -------------
@@ -179,6 +418,9 @@ Class | Method | HTTP request | Description
179
418
  *FtcEventsClient::AwardsApi* | [**v20_season_awards_list_get**](docs/AwardsApi.md#v20_season_awards_list_get) | **GET** /v2.0/{season}/awards/list | Award Listings
180
419
  *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
420
  *FtcEventsClient::GeneralApi* | [**v20_get**](docs/GeneralApi.md#v20_get) | **GET** /v2.0 | API Index
421
+ *FtcEventsClient::LeaguesApi* | [**v20_season_leagues_get**](docs/LeaguesApi.md#v20_season_leagues_get) | **GET** /v2.0/{season}/leagues | League Listings
422
+ *FtcEventsClient::LeaguesApi* | [**v20_season_leagues_members_region_code_league_code_get**](docs/LeaguesApi.md#v20_season_leagues_members_region_code_league_code_get) | **GET** /v2.0/{season}/leagues/members/{regionCode}/{leagueCode} | League Membership
423
+ *FtcEventsClient::LeaguesApi* | [**v20_season_leagues_rankings_region_code_league_code_get**](docs/LeaguesApi.md#v20_season_leagues_rankings_region_code_league_code_get) | **GET** /v2.0/{season}/leagues/rankings/{regionCode}/{leagueCode} | League Rankings
182
424
  *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
425
  *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
426
  *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
@@ -188,44 +430,52 @@ Class | Method | HTTP request | Description
188
430
  *FtcEventsClient::SeasonDataApi* | [**v20_season_get**](docs/SeasonDataApi.md#v20_season_get) | **GET** /v2.0/{season} | Season Summary
189
431
  *FtcEventsClient::SeasonDataApi* | [**v20_season_teams_get**](docs/SeasonDataApi.md#v20_season_teams_get) | **GET** /v2.0/{season}/teams | Team Listings
190
432
 
191
-
192
433
  ## Documentation for Models
193
434
 
194
435
  - [FtcEventsClient::AllianceModelVersion2](docs/AllianceModelVersion2.md)
195
436
  - [FtcEventsClient::AllianceScore2020](docs/AllianceScore2020.md)
196
437
  - [FtcEventsClient::AllianceSelectionModelVersion2](docs/AllianceSelectionModelVersion2.md)
197
438
  - [FtcEventsClient::ApiIndexModel](docs/ApiIndexModel.md)
439
+ - [FtcEventsClient::AutoNavigatedStatus](docs/AutoNavigatedStatus.md)
198
440
  - [FtcEventsClient::AwardAssignmentModel](docs/AwardAssignmentModel.md)
199
441
  - [FtcEventsClient::AwardsModel](docs/AwardsModel.md)
442
+ - [FtcEventsClient::BarcodeElement](docs/BarcodeElement.md)
443
+ - [FtcEventsClient::EndgameParkedStatus](docs/EndgameParkedStatus.md)
200
444
  - [FtcEventsClient::EventMatchResultsModelVersion2](docs/EventMatchResultsModelVersion2.md)
201
445
  - [FtcEventsClient::EventRankingsModel](docs/EventRankingsModel.md)
202
446
  - [FtcEventsClient::EventScheduleHybridModelVersion2](docs/EventScheduleHybridModelVersion2.md)
203
447
  - [FtcEventsClient::EventScheduleModelVersion2](docs/EventScheduleModelVersion2.md)
448
+ - [FtcEventsClient::FTCEventLevel](docs/FTCEventLevel.md)
449
+ - [FtcEventsClient::LeagueMemberListModel](docs/LeagueMemberListModel.md)
204
450
  - [FtcEventsClient::MatchResultModelVersion2](docs/MatchResultModelVersion2.md)
205
451
  - [FtcEventsClient::MatchResultTeamModelVersion2](docs/MatchResultTeamModelVersion2.md)
206
452
  - [FtcEventsClient::MatchScoresModel](docs/MatchScoresModel.md)
207
- - [FtcEventsClient::MatchScoresModelMatchScoresOneOf](docs/MatchScoresModelMatchScoresOneOf.md)
453
+ - [FtcEventsClient::OneOfMatchScoresModelMatchScoresItems](docs/OneOfMatchScoresModelMatchScoresItems.md)
208
454
  - [FtcEventsClient::ScheduleHybridModelTeamVersion2](docs/ScheduleHybridModelTeamVersion2.md)
209
455
  - [FtcEventsClient::ScheduleHybridModelVersion2](docs/ScheduleHybridModelVersion2.md)
210
456
  - [FtcEventsClient::ScheduledMatchModelVersion2](docs/ScheduledMatchModelVersion2.md)
211
457
  - [FtcEventsClient::ScheduledMatchTeamModelVersion2](docs/ScheduledMatchTeamModelVersion2.md)
212
458
  - [FtcEventsClient::ScoreDetailAllianceModel2020](docs/ScoreDetailAllianceModel2020.md)
459
+ - [FtcEventsClient::ScoreDetailAllianceModel2021](docs/ScoreDetailAllianceModel2021.md)
213
460
  - [FtcEventsClient::ScoreDetailModel2019](docs/ScoreDetailModel2019.md)
214
461
  - [FtcEventsClient::ScoreDetailModel2020](docs/ScoreDetailModel2020.md)
462
+ - [FtcEventsClient::ScoreDetailModel2021](docs/ScoreDetailModel2021.md)
215
463
  - [FtcEventsClient::ScoreDetailModelAlliance2019](docs/ScoreDetailModelAlliance2019.md)
216
464
  - [FtcEventsClient::ScoreDetailModelSinglePlayer2020](docs/ScoreDetailModelSinglePlayer2020.md)
465
+ - [FtcEventsClient::ScoreDetailModelSinglePlayer2021](docs/ScoreDetailModelSinglePlayer2021.md)
466
+ - [FtcEventsClient::ScoreDetailSinglePlayer2021](docs/ScoreDetailSinglePlayer2021.md)
217
467
  - [FtcEventsClient::SeasonAwardListingsModel](docs/SeasonAwardListingsModel.md)
218
468
  - [FtcEventsClient::SeasonAwardsModel](docs/SeasonAwardsModel.md)
219
469
  - [FtcEventsClient::SeasonEventListingsModelVersion2](docs/SeasonEventListingsModelVersion2.md)
220
470
  - [FtcEventsClient::SeasonEventModelVersion2](docs/SeasonEventModelVersion2.md)
471
+ - [FtcEventsClient::SeasonLeagueListingsModelVersion2](docs/SeasonLeagueListingsModelVersion2.md)
472
+ - [FtcEventsClient::SeasonLeagueModelVersion2](docs/SeasonLeagueModelVersion2.md)
221
473
  - [FtcEventsClient::SeasonSummaryModelChampionship](docs/SeasonSummaryModelChampionship.md)
222
474
  - [FtcEventsClient::SeasonSummaryModelVersion2](docs/SeasonSummaryModelVersion2.md)
223
475
  - [FtcEventsClient::SeasonTeamListingsModelVersion2](docs/SeasonTeamListingsModelVersion2.md)
224
476
  - [FtcEventsClient::SeasonTeamModelVersion2](docs/SeasonTeamModelVersion2.md)
225
477
  - [FtcEventsClient::Stone](docs/Stone.md)
226
478
  - [FtcEventsClient::TeamRankingModel](docs/TeamRankingModel.md)
227
- - [FtcEventsClient::TournamentLevel](docs/TournamentLevel.md)
228
-
229
479
 
230
480
  ## Documentation for Authorization
231
481
 
data/Rakefile CHANGED
@@ -1,5 +1,3 @@
1
- require "bundler/gem_tasks"
2
-
3
1
  begin
4
2
  require 'rspec/core/rake_task'
5
3
 
data/config.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "gemVersion": "0.1.0",
2
+ "gemVersion": "0.2.0",
3
3
  "gemName": "ftc_events_client",
4
4
  "moduleName": "FtcEventsClient",
5
5
  "gemRequiredRubyVersion": ">= 2.4",