ftc_api_v3_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 +283 -0
- data/Rakefile +10 -0
- data/config.json +8 -0
- data/docs/ApiV3AdvancementFrom.md +22 -0
- data/docs/ApiV3AdvancementFromSlot.md +24 -0
- data/docs/ApiV3AdvancementStatus.md +15 -0
- data/docs/ApiV3AllianceColor.md +15 -0
- data/docs/ApiV3AllianceDescription.md +82 -0
- data/docs/ApiV3AllianceMatch.md +44 -0
- data/docs/ApiV3AllianceMatchDetails.md +46 -0
- data/docs/ApiV3AllianceMatchParticipants.md +79 -0
- data/docs/ApiV3AllianceMatchResults.md +22 -0
- data/docs/ApiV3AllianceMatchResultsDetails.md +20 -0
- data/docs/ApiV3AlliancePlayoffMatchParticipants.md +22 -0
- data/docs/ApiV3AllianceSelection.md +20 -0
- data/docs/ApiV3AllianceSelections.md +18 -0
- data/docs/ApiV3AllianceSimpleMatchParticipants.md +22 -0
- data/docs/ApiV3Award.md +30 -0
- data/docs/ApiV3AwardRecipient.md +24 -0
- data/docs/ApiV3AwardType.md +15 -0
- data/docs/ApiV3Awards.md +18 -0
- data/docs/ApiV3BasePlayoffSeriesDescription.md +79 -0
- data/docs/ApiV3BasicAllianceDescription.md +20 -0
- data/docs/ApiV3CenterStageRemoteScoreDetail.md +22 -0
- data/docs/ApiV3CenterStageScoreDetail.md +22 -0
- data/docs/ApiV3CompetingType.md +15 -0
- data/docs/ApiV3Coordinates.md +20 -0
- data/docs/ApiV3CsAchievementsDetail.md +56 -0
- data/docs/ApiV3CsEndLocation.md +15 -0
- data/docs/ApiV3CsPointsDetail.md +48 -0
- data/docs/ApiV3CsRemoteAchievementsDetail.md +44 -0
- data/docs/ApiV3CsRemotePointsDetail.md +46 -0
- data/docs/ApiV3DecodeAchievementsDetail.md +42 -0
- data/docs/ApiV3DecodeArtifactType.md +15 -0
- data/docs/ApiV3DecodePointsDetail.md +46 -0
- data/docs/ApiV3DecodeScoreDetail.md +22 -0
- data/docs/ApiV3DecodeTeleopBaseLocation.md +15 -0
- data/docs/ApiV3Division.md +20 -0
- data/docs/ApiV3DoubleEliminationSeriesDescription.md +36 -0
- data/docs/ApiV3DoubleElimsBracketHalf.md +15 -0
- data/docs/ApiV3Event.md +62 -0
- data/docs/ApiV3EventFormat.md +15 -0
- data/docs/ApiV3EventLiveStream.md +22 -0
- data/docs/ApiV3EventParticipant.md +22 -0
- data/docs/ApiV3EventParticipants.md +18 -0
- data/docs/ApiV3EventType.md +15 -0
- data/docs/ApiV3Events.md +18 -0
- data/docs/ApiV3FFAchievementsDetail.md +64 -0
- data/docs/ApiV3FFAutoLocation.md +15 -0
- data/docs/ApiV3FFEndLocation.md +15 -0
- data/docs/ApiV3FFPointsDetail.md +54 -0
- data/docs/ApiV3FFRemoteAchievementsDetail.md +52 -0
- data/docs/ApiV3FFRemotePointsDetail.md +48 -0
- data/docs/ApiV3FreightFrenzyRemoteScoreDetail.md +22 -0
- data/docs/ApiV3FreightFrenzyScoreDetail.md +22 -0
- data/docs/ApiV3IntoTheDeepScoreDetail.md +22 -0
- data/docs/ApiV3ItdAchievementsDetail.md +48 -0
- data/docs/ApiV3ItdAutoLocation.md +15 -0
- data/docs/ApiV3ItdPointsDetail.md +42 -0
- data/docs/ApiV3ItdTeleopLocation.md +15 -0
- data/docs/ApiV3JunctionElement.md +15 -0
- data/docs/ApiV3League.md +26 -0
- data/docs/ApiV3LeagueDetails.md +28 -0
- data/docs/ApiV3LeagueMembershipDetails.md +20 -0
- data/docs/ApiV3Leagues.md +18 -0
- data/docs/ApiV3Match.md +79 -0
- data/docs/ApiV3MatchAlliance.md +18 -0
- data/docs/ApiV3MatchDetails.md +79 -0
- data/docs/ApiV3MatchTeam.md +24 -0
- data/docs/ApiV3Matches.md +18 -0
- data/docs/ApiV3PitMap.md +30 -0
- data/docs/ApiV3PitMapCellType.md +15 -0
- data/docs/ApiV3PitMapElement.md +40 -0
- data/docs/ApiV3PitMapLabelOrientation.md +15 -0
- data/docs/ApiV3PlayoffAlliance.md +24 -0
- data/docs/ApiV3PlayoffAlliances.md +18 -0
- data/docs/ApiV3PlayoffMatchAlliance.md +20 -0
- data/docs/ApiV3PlayoffRanking.md +32 -0
- data/docs/ApiV3PlayoffRankings.md +18 -0
- data/docs/ApiV3PlayoffSeriesDescription.md +32 -0
- data/docs/ApiV3PlayoffStructure.md +22 -0
- data/docs/ApiV3PlayoffType.md +15 -0
- data/docs/ApiV3PowerPlayAchievementsDetail.md +52 -0
- data/docs/ApiV3PowerPlayAutoLocation.md +15 -0
- data/docs/ApiV3PowerPlayPointsDetail.md +46 -0
- data/docs/ApiV3PowerPlayRemoteAchievementsDetail.md +48 -0
- data/docs/ApiV3PowerPlayRemotePointsDetail.md +44 -0
- data/docs/ApiV3PowerPlayRemoteScoreDetail.md +22 -0
- data/docs/ApiV3PowerPlayScoreDetail.md +22 -0
- data/docs/ApiV3Ranking.md +32 -0
- data/docs/ApiV3Rankings.md +18 -0
- data/docs/ApiV3Region.md +20 -0
- data/docs/ApiV3Regions.md +18 -0
- data/docs/ApiV3RemoteJunctionElement.md +15 -0
- data/docs/ApiV3RemoteScoreDetail.md +85 -0
- data/docs/ApiV3RoundRobinAllianceDescription.md +20 -0
- data/docs/ApiV3ScoreDetail.md +94 -0
- data/docs/ApiV3Season.md +24 -0
- data/docs/ApiV3Seasons.md +20 -0
- data/docs/ApiV3SelectionOperation.md +15 -0
- data/docs/ApiV3SeriesAllianceDescription.md +22 -0
- data/docs/ApiV3SeriesAllianceState.md +15 -0
- data/docs/ApiV3SimpleEvent.md +48 -0
- data/docs/ApiV3SimpleTeam.md +22 -0
- data/docs/ApiV3SingleAwardRecipient.md +30 -0
- data/docs/ApiV3SingleTeamMatch.md +44 -0
- data/docs/ApiV3SingleTeamMatchDetails.md +46 -0
- data/docs/ApiV3SingleTeamMatchParticipants.md +18 -0
- data/docs/ApiV3SingleTeamMatchResults.md +18 -0
- data/docs/ApiV3SingleTeamMatchResultsDetails.md +18 -0
- data/docs/ApiV3SkystoneAchievementsDetail.md +54 -0
- data/docs/ApiV3SkystonePointsDetail.md +46 -0
- data/docs/ApiV3SkystoneScoreDetail.md +22 -0
- data/docs/ApiV3Stone.md +15 -0
- data/docs/ApiV3Team.md +38 -0
- data/docs/ApiV3TeamAvatar.md +20 -0
- data/docs/ApiV3TeamAvatars.md +18 -0
- data/docs/ApiV3TeamDetails.md +24 -0
- data/docs/ApiV3TeamEventParticipation.md +20 -0
- data/docs/ApiV3TeamEventParticipationDetails.md +26 -0
- data/docs/ApiV3TeamHistory.md +36 -0
- data/docs/ApiV3TeamSeasonHistory.md +20 -0
- data/docs/ApiV3Teams.md +18 -0
- data/docs/ApiV3TournamentLevel.md +15 -0
- data/docs/ApiV3UgAchievementsDetail.md +60 -0
- data/docs/ApiV3UgPointsDetail.md +44 -0
- data/docs/ApiV3UgRemoteAchievementsDetail.md +58 -0
- data/docs/ApiV3UgRemotePointsDetail.md +44 -0
- data/docs/ApiV3UgWobbleLocation.md +15 -0
- data/docs/ApiV3UltimateGoalRemoteScoreDetail.md +22 -0
- data/docs/ApiV3UltimateGoalScoreDetail.md +22 -0
- data/docs/EventsApi.md +977 -0
- data/docs/LeaguesApi.md +385 -0
- data/docs/RegionsApi.md +301 -0
- data/docs/SeasonsApi.md +148 -0
- data/docs/TeamsApi.md +371 -0
- data/ftc_api_v3_client.gemspec +39 -0
- data/git_push.sh +57 -0
- data/lib/ftc_api_v3_client/api/events_api.rb +934 -0
- data/lib/ftc_api_v3_client/api/leagues_api.rb +391 -0
- data/lib/ftc_api_v3_client/api/regions_api.rb +292 -0
- data/lib/ftc_api_v3_client/api/seasons_api.rb +142 -0
- data/lib/ftc_api_v3_client/api/teams_api.rb +349 -0
- data/lib/ftc_api_v3_client/api_client.rb +397 -0
- data/lib/ftc_api_v3_client/api_error.rb +58 -0
- data/lib/ftc_api_v3_client/api_model_base.rb +88 -0
- data/lib/ftc_api_v3_client/configuration.rb +308 -0
- data/lib/ftc_api_v3_client/models/api_v3_advancement_from.rb +202 -0
- data/lib/ftc_api_v3_client/models/api_v3_advancement_from_slot.rb +234 -0
- data/lib/ftc_api_v3_client/models/api_v3_advancement_status.rb +44 -0
- data/lib/ftc_api_v3_client/models/api_v3_alliance_color.rb +40 -0
- data/lib/ftc_api_v3_client/models/api_v3_alliance_description.rb +57 -0
- data/lib/ftc_api_v3_client/models/api_v3_alliance_match.rb +427 -0
- data/lib/ftc_api_v3_client/models/api_v3_alliance_match_details.rb +436 -0
- data/lib/ftc_api_v3_client/models/api_v3_alliance_match_participants.rb +55 -0
- data/lib/ftc_api_v3_client/models/api_v3_alliance_match_results.rb +221 -0
- data/lib/ftc_api_v3_client/models/api_v3_alliance_match_results_details.rb +190 -0
- data/lib/ftc_api_v3_client/models/api_v3_alliance_playoff_match_participants.rb +217 -0
- data/lib/ftc_api_v3_client/models/api_v3_alliance_selection.rb +212 -0
- data/lib/ftc_api_v3_client/models/api_v3_alliance_selections.rb +166 -0
- data/lib/ftc_api_v3_client/models/api_v3_alliance_simple_match_participants.rb +217 -0
- data/lib/ftc_api_v3_client/models/api_v3_award.rb +311 -0
- data/lib/ftc_api_v3_client/models/api_v3_award_recipient.rb +177 -0
- data/lib/ftc_api_v3_client/models/api_v3_award_type.rb +59 -0
- data/lib/ftc_api_v3_client/models/api_v3_awards.rb +166 -0
- data/lib/ftc_api_v3_client/models/api_v3_base_playoff_series_description.rb +55 -0
- data/lib/ftc_api_v3_client/models/api_v3_basic_alliance_description.rb +191 -0
- data/lib/ftc_api_v3_client/models/api_v3_center_stage_remote_score_detail.rb +217 -0
- data/lib/ftc_api_v3_client/models/api_v3_center_stage_score_detail.rb +217 -0
- data/lib/ftc_api_v3_client/models/api_v3_competing_type.rb +40 -0
- data/lib/ftc_api_v3_client/models/api_v3_coordinates.rb +191 -0
- data/lib/ftc_api_v3_client/models/api_v3_cs_achievements_detail.rb +680 -0
- data/lib/ftc_api_v3_client/models/api_v3_cs_end_location.rb +41 -0
- data/lib/ftc_api_v3_client/models/api_v3_cs_points_detail.rb +555 -0
- data/lib/ftc_api_v3_client/models/api_v3_cs_remote_achievements_detail.rb +524 -0
- data/lib/ftc_api_v3_client/models/api_v3_cs_remote_points_detail.rb +528 -0
- data/lib/ftc_api_v3_client/models/api_v3_decode_achievements_detail.rb +502 -0
- data/lib/ftc_api_v3_client/models/api_v3_decode_artifact_type.rb +41 -0
- data/lib/ftc_api_v3_client/models/api_v3_decode_points_detail.rb +529 -0
- data/lib/ftc_api_v3_client/models/api_v3_decode_score_detail.rb +217 -0
- data/lib/ftc_api_v3_client/models/api_v3_decode_teleop_base_location.rb +41 -0
- data/lib/ftc_api_v3_client/models/api_v3_division.rb +190 -0
- data/lib/ftc_api_v3_client/models/api_v3_double_elimination_series_description.rb +405 -0
- data/lib/ftc_api_v3_client/models/api_v3_double_elims_bracket_half.rb +40 -0
- data/lib/ftc_api_v3_client/models/api_v3_event.rb +559 -0
- data/lib/ftc_api_v3_client/models/api_v3_event_format.rb +41 -0
- data/lib/ftc_api_v3_client/models/api_v3_event_live_stream.rb +182 -0
- data/lib/ftc_api_v3_client/models/api_v3_event_participant.rb +221 -0
- data/lib/ftc_api_v3_client/models/api_v3_event_participants.rb +166 -0
- data/lib/ftc_api_v3_client/models/api_v3_event_type.rb +50 -0
- data/lib/ftc_api_v3_client/models/api_v3_events.rb +166 -0
- data/lib/ftc_api_v3_client/models/api_v3_ff_achievements_detail.rb +787 -0
- data/lib/ftc_api_v3_client/models/api_v3_ff_auto_location.rb +43 -0
- data/lib/ftc_api_v3_client/models/api_v3_ff_end_location.rb +41 -0
- data/lib/ftc_api_v3_client/models/api_v3_ff_points_detail.rb +633 -0
- data/lib/ftc_api_v3_client/models/api_v3_ff_remote_achievements_detail.rb +629 -0
- data/lib/ftc_api_v3_client/models/api_v3_ff_remote_points_detail.rb +554 -0
- data/lib/ftc_api_v3_client/models/api_v3_freight_frenzy_remote_score_detail.rb +217 -0
- data/lib/ftc_api_v3_client/models/api_v3_freight_frenzy_score_detail.rb +217 -0
- data/lib/ftc_api_v3_client/models/api_v3_into_the_deep_score_detail.rb +217 -0
- data/lib/ftc_api_v3_client/models/api_v3_itd_achievements_detail.rb +576 -0
- data/lib/ftc_api_v3_client/models/api_v3_itd_auto_location.rb +41 -0
- data/lib/ftc_api_v3_client/models/api_v3_itd_points_detail.rb +477 -0
- data/lib/ftc_api_v3_client/models/api_v3_itd_teleop_location.rb +43 -0
- data/lib/ftc_api_v3_client/models/api_v3_junction_element.rb +44 -0
- data/lib/ftc_api_v3_client/models/api_v3_league.rb +217 -0
- data/lib/ftc_api_v3_client/models/api_v3_league_details.rb +245 -0
- data/lib/ftc_api_v3_client/models/api_v3_league_membership_details.rb +190 -0
- data/lib/ftc_api_v3_client/models/api_v3_leagues.rb +166 -0
- data/lib/ftc_api_v3_client/models/api_v3_match.rb +55 -0
- data/lib/ftc_api_v3_client/models/api_v3_match_alliance.rb +166 -0
- data/lib/ftc_api_v3_client/models/api_v3_match_details.rb +55 -0
- data/lib/ftc_api_v3_client/models/api_v3_match_team.rb +209 -0
- data/lib/ftc_api_v3_client/models/api_v3_matches.rb +166 -0
- data/lib/ftc_api_v3_client/models/api_v3_pit_map.rb +322 -0
- data/lib/ftc_api_v3_client/models/api_v3_pit_map_cell_type.rb +45 -0
- data/lib/ftc_api_v3_client/models/api_v3_pit_map_element.rb +336 -0
- data/lib/ftc_api_v3_client/models/api_v3_pit_map_label_orientation.rb +40 -0
- data/lib/ftc_api_v3_client/models/api_v3_playoff_alliance.rb +212 -0
- data/lib/ftc_api_v3_client/models/api_v3_playoff_alliances.rb +166 -0
- data/lib/ftc_api_v3_client/models/api_v3_playoff_match_alliance.rb +192 -0
- data/lib/ftc_api_v3_client/models/api_v3_playoff_ranking.rb +348 -0
- data/lib/ftc_api_v3_client/models/api_v3_playoff_rankings.rb +166 -0
- data/lib/ftc_api_v3_client/models/api_v3_playoff_series_description.rb +347 -0
- data/lib/ftc_api_v3_client/models/api_v3_playoff_structure.rb +241 -0
- data/lib/ftc_api_v3_client/models/api_v3_playoff_type.rb +42 -0
- data/lib/ftc_api_v3_client/models/api_v3_power_play_achievements_detail.rb +576 -0
- data/lib/ftc_api_v3_client/models/api_v3_power_play_auto_location.rb +41 -0
- data/lib/ftc_api_v3_client/models/api_v3_power_play_points_detail.rb +529 -0
- data/lib/ftc_api_v3_client/models/api_v3_power_play_remote_achievements_detail.rb +538 -0
- data/lib/ftc_api_v3_client/models/api_v3_power_play_remote_points_detail.rb +502 -0
- data/lib/ftc_api_v3_client/models/api_v3_power_play_remote_score_detail.rb +217 -0
- data/lib/ftc_api_v3_client/models/api_v3_power_play_score_detail.rb +217 -0
- data/lib/ftc_api_v3_client/models/api_v3_ranking.rb +348 -0
- data/lib/ftc_api_v3_client/models/api_v3_rankings.rb +166 -0
- data/lib/ftc_api_v3_client/models/api_v3_region.rb +190 -0
- data/lib/ftc_api_v3_client/models/api_v3_regions.rb +166 -0
- data/lib/ftc_api_v3_client/models/api_v3_remote_junction_element.rb +40 -0
- data/lib/ftc_api_v3_client/models/api_v3_remote_score_detail.rb +59 -0
- data/lib/ftc_api_v3_client/models/api_v3_round_robin_alliance_description.rb +191 -0
- data/lib/ftc_api_v3_client/models/api_v3_score_detail.rb +65 -0
- data/lib/ftc_api_v3_client/models/api_v3_season.rb +242 -0
- data/lib/ftc_api_v3_client/models/api_v3_seasons.rb +192 -0
- data/lib/ftc_api_v3_client/models/api_v3_selection_operation.rb +43 -0
- data/lib/ftc_api_v3_client/models/api_v3_series_alliance_description.rb +239 -0
- data/lib/ftc_api_v3_client/models/api_v3_series_alliance_state.rb +40 -0
- data/lib/ftc_api_v3_client/models/api_v3_simple_event.rb +458 -0
- data/lib/ftc_api_v3_client/models/api_v3_simple_team.rb +217 -0
- data/lib/ftc_api_v3_client/models/api_v3_single_award_recipient.rb +293 -0
- data/lib/ftc_api_v3_client/models/api_v3_single_team_match.rb +427 -0
- data/lib/ftc_api_v3_client/models/api_v3_single_team_match_details.rb +436 -0
- data/lib/ftc_api_v3_client/models/api_v3_single_team_match_participants.rb +164 -0
- data/lib/ftc_api_v3_client/models/api_v3_single_team_match_results.rb +164 -0
- data/lib/ftc_api_v3_client/models/api_v3_single_team_match_results_details.rb +164 -0
- data/lib/ftc_api_v3_client/models/api_v3_skystone_achievements_detail.rb +634 -0
- data/lib/ftc_api_v3_client/models/api_v3_skystone_points_detail.rb +529 -0
- data/lib/ftc_api_v3_client/models/api_v3_skystone_score_detail.rb +217 -0
- data/lib/ftc_api_v3_client/models/api_v3_stone.rb +41 -0
- data/lib/ftc_api_v3_client/models/api_v3_team.rb +324 -0
- data/lib/ftc_api_v3_client/models/api_v3_team_avatar.rb +190 -0
- data/lib/ftc_api_v3_client/models/api_v3_team_avatars.rb +166 -0
- data/lib/ftc_api_v3_client/models/api_v3_team_details.rb +247 -0
- data/lib/ftc_api_v3_client/models/api_v3_team_event_participation.rb +192 -0
- data/lib/ftc_api_v3_client/models/api_v3_team_event_participation_details.rb +238 -0
- data/lib/ftc_api_v3_client/models/api_v3_team_history.rb +334 -0
- data/lib/ftc_api_v3_client/models/api_v3_team_season_history.rb +192 -0
- data/lib/ftc_api_v3_client/models/api_v3_teams.rb +166 -0
- data/lib/ftc_api_v3_client/models/api_v3_tournament_level.rb +43 -0
- data/lib/ftc_api_v3_client/models/api_v3_ug_achievements_detail.rb +732 -0
- data/lib/ftc_api_v3_client/models/api_v3_ug_points_detail.rb +503 -0
- data/lib/ftc_api_v3_client/models/api_v3_ug_remote_achievements_detail.rb +706 -0
- data/lib/ftc_api_v3_client/models/api_v3_ug_remote_points_detail.rb +503 -0
- data/lib/ftc_api_v3_client/models/api_v3_ug_wobble_location.rb +41 -0
- data/lib/ftc_api_v3_client/models/api_v3_ultimate_goal_remote_score_detail.rb +217 -0
- data/lib/ftc_api_v3_client/models/api_v3_ultimate_goal_score_detail.rb +217 -0
- data/lib/ftc_api_v3_client/version.rb +15 -0
- data/lib/ftc_api_v3_client.rb +173 -0
- data/spec/api/events_api_spec.rb +207 -0
- data/spec/api/leagues_api_spec.rb +104 -0
- data/spec/api/regions_api_spec.rb +86 -0
- data/spec/api/seasons_api_spec.rb +58 -0
- data/spec/api/teams_api_spec.rb +97 -0
- data/spec/models/api_v3_advancement_from_slot_spec.rb +54 -0
- data/spec/models/api_v3_advancement_from_spec.rb +48 -0
- data/spec/models/api_v3_advancement_status_spec.rb +30 -0
- data/spec/models/api_v3_alliance_color_spec.rb +30 -0
- data/spec/models/api_v3_alliance_description_spec.rb +44 -0
- data/spec/models/api_v3_alliance_match_details_spec.rb +120 -0
- data/spec/models/api_v3_alliance_match_participants_spec.rb +44 -0
- data/spec/models/api_v3_alliance_match_results_details_spec.rb +42 -0
- data/spec/models/api_v3_alliance_match_results_spec.rb +48 -0
- data/spec/models/api_v3_alliance_match_spec.rb +114 -0
- data/spec/models/api_v3_alliance_playoff_match_participants_spec.rb +48 -0
- data/spec/models/api_v3_alliance_selection_spec.rb +42 -0
- data/spec/models/api_v3_alliance_selections_spec.rb +36 -0
- data/spec/models/api_v3_alliance_simple_match_participants_spec.rb +48 -0
- data/spec/models/api_v3_award_recipient_spec.rb +54 -0
- data/spec/models/api_v3_award_spec.rb +72 -0
- data/spec/models/api_v3_award_type_spec.rb +30 -0
- data/spec/models/api_v3_awards_spec.rb +36 -0
- data/spec/models/api_v3_base_playoff_series_description_spec.rb +44 -0
- data/spec/models/api_v3_basic_alliance_description_spec.rb +42 -0
- data/spec/models/api_v3_center_stage_remote_score_detail_spec.rb +48 -0
- data/spec/models/api_v3_center_stage_score_detail_spec.rb +48 -0
- data/spec/models/api_v3_competing_type_spec.rb +30 -0
- data/spec/models/api_v3_coordinates_spec.rb +42 -0
- data/spec/models/api_v3_cs_achievements_detail_spec.rb +150 -0
- data/spec/models/api_v3_cs_end_location_spec.rb +30 -0
- data/spec/models/api_v3_cs_points_detail_spec.rb +126 -0
- data/spec/models/api_v3_cs_remote_achievements_detail_spec.rb +114 -0
- data/spec/models/api_v3_cs_remote_points_detail_spec.rb +120 -0
- data/spec/models/api_v3_decode_achievements_detail_spec.rb +108 -0
- data/spec/models/api_v3_decode_artifact_type_spec.rb +30 -0
- data/spec/models/api_v3_decode_points_detail_spec.rb +120 -0
- data/spec/models/api_v3_decode_score_detail_spec.rb +48 -0
- data/spec/models/api_v3_decode_teleop_base_location_spec.rb +30 -0
- data/spec/models/api_v3_division_spec.rb +42 -0
- data/spec/models/api_v3_double_elimination_series_description_spec.rb +90 -0
- data/spec/models/api_v3_double_elims_bracket_half_spec.rb +30 -0
- data/spec/models/api_v3_event_format_spec.rb +30 -0
- data/spec/models/api_v3_event_live_stream_spec.rb +48 -0
- data/spec/models/api_v3_event_participant_spec.rb +48 -0
- data/spec/models/api_v3_event_participants_spec.rb +36 -0
- data/spec/models/api_v3_event_spec.rb +168 -0
- data/spec/models/api_v3_event_type_spec.rb +30 -0
- data/spec/models/api_v3_events_spec.rb +36 -0
- data/spec/models/api_v3_ff_achievements_detail_spec.rb +174 -0
- data/spec/models/api_v3_ff_auto_location_spec.rb +30 -0
- data/spec/models/api_v3_ff_end_location_spec.rb +30 -0
- data/spec/models/api_v3_ff_points_detail_spec.rb +144 -0
- data/spec/models/api_v3_ff_remote_achievements_detail_spec.rb +138 -0
- data/spec/models/api_v3_ff_remote_points_detail_spec.rb +126 -0
- data/spec/models/api_v3_freight_frenzy_remote_score_detail_spec.rb +48 -0
- data/spec/models/api_v3_freight_frenzy_score_detail_spec.rb +48 -0
- data/spec/models/api_v3_into_the_deep_score_detail_spec.rb +48 -0
- data/spec/models/api_v3_itd_achievements_detail_spec.rb +126 -0
- data/spec/models/api_v3_itd_auto_location_spec.rb +30 -0
- data/spec/models/api_v3_itd_points_detail_spec.rb +108 -0
- data/spec/models/api_v3_itd_teleop_location_spec.rb +30 -0
- data/spec/models/api_v3_junction_element_spec.rb +30 -0
- data/spec/models/api_v3_league_details_spec.rb +66 -0
- data/spec/models/api_v3_league_membership_details_spec.rb +42 -0
- data/spec/models/api_v3_league_spec.rb +60 -0
- data/spec/models/api_v3_leagues_spec.rb +36 -0
- data/spec/models/api_v3_match_alliance_spec.rb +36 -0
- data/spec/models/api_v3_match_details_spec.rb +44 -0
- data/spec/models/api_v3_match_spec.rb +44 -0
- data/spec/models/api_v3_match_team_spec.rb +54 -0
- data/spec/models/api_v3_matches_spec.rb +36 -0
- data/spec/models/api_v3_pit_map_cell_type_spec.rb +30 -0
- data/spec/models/api_v3_pit_map_element_spec.rb +102 -0
- data/spec/models/api_v3_pit_map_label_orientation_spec.rb +30 -0
- data/spec/models/api_v3_pit_map_spec.rb +72 -0
- data/spec/models/api_v3_playoff_alliance_spec.rb +54 -0
- data/spec/models/api_v3_playoff_alliances_spec.rb +36 -0
- data/spec/models/api_v3_playoff_match_alliance_spec.rb +42 -0
- data/spec/models/api_v3_playoff_ranking_spec.rb +78 -0
- data/spec/models/api_v3_playoff_rankings_spec.rb +36 -0
- data/spec/models/api_v3_playoff_series_description_spec.rb +78 -0
- data/spec/models/api_v3_playoff_structure_spec.rb +48 -0
- data/spec/models/api_v3_playoff_type_spec.rb +30 -0
- data/spec/models/api_v3_power_play_achievements_detail_spec.rb +138 -0
- data/spec/models/api_v3_power_play_auto_location_spec.rb +30 -0
- data/spec/models/api_v3_power_play_points_detail_spec.rb +120 -0
- data/spec/models/api_v3_power_play_remote_achievements_detail_spec.rb +126 -0
- data/spec/models/api_v3_power_play_remote_points_detail_spec.rb +114 -0
- data/spec/models/api_v3_power_play_remote_score_detail_spec.rb +48 -0
- data/spec/models/api_v3_power_play_score_detail_spec.rb +48 -0
- data/spec/models/api_v3_ranking_spec.rb +78 -0
- data/spec/models/api_v3_rankings_spec.rb +36 -0
- data/spec/models/api_v3_region_spec.rb +42 -0
- data/spec/models/api_v3_regions_spec.rb +36 -0
- data/spec/models/api_v3_remote_junction_element_spec.rb +30 -0
- data/spec/models/api_v3_remote_score_detail_spec.rb +44 -0
- data/spec/models/api_v3_round_robin_alliance_description_spec.rb +42 -0
- data/spec/models/api_v3_score_detail_spec.rb +44 -0
- data/spec/models/api_v3_season_spec.rb +54 -0
- data/spec/models/api_v3_seasons_spec.rb +42 -0
- data/spec/models/api_v3_selection_operation_spec.rb +30 -0
- data/spec/models/api_v3_series_alliance_description_spec.rb +48 -0
- data/spec/models/api_v3_series_alliance_state_spec.rb +30 -0
- data/spec/models/api_v3_simple_event_spec.rb +126 -0
- data/spec/models/api_v3_simple_team_spec.rb +48 -0
- data/spec/models/api_v3_single_award_recipient_spec.rb +72 -0
- data/spec/models/api_v3_single_team_match_details_spec.rb +120 -0
- data/spec/models/api_v3_single_team_match_participants_spec.rb +36 -0
- data/spec/models/api_v3_single_team_match_results_details_spec.rb +36 -0
- data/spec/models/api_v3_single_team_match_results_spec.rb +36 -0
- data/spec/models/api_v3_single_team_match_spec.rb +114 -0
- data/spec/models/api_v3_skystone_achievements_detail_spec.rb +144 -0
- data/spec/models/api_v3_skystone_points_detail_spec.rb +120 -0
- data/spec/models/api_v3_skystone_score_detail_spec.rb +48 -0
- data/spec/models/api_v3_stone_spec.rb +30 -0
- data/spec/models/api_v3_team_avatar_spec.rb +42 -0
- data/spec/models/api_v3_team_avatars_spec.rb +36 -0
- data/spec/models/api_v3_team_details_spec.rb +54 -0
- data/spec/models/api_v3_team_event_participation_details_spec.rb +60 -0
- data/spec/models/api_v3_team_event_participation_spec.rb +42 -0
- data/spec/models/api_v3_team_history_spec.rb +90 -0
- data/spec/models/api_v3_team_season_history_spec.rb +42 -0
- data/spec/models/api_v3_team_spec.rb +96 -0
- data/spec/models/api_v3_teams_spec.rb +36 -0
- data/spec/models/api_v3_tournament_level_spec.rb +30 -0
- data/spec/models/api_v3_ug_achievements_detail_spec.rb +162 -0
- data/spec/models/api_v3_ug_points_detail_spec.rb +114 -0
- data/spec/models/api_v3_ug_remote_achievements_detail_spec.rb +156 -0
- data/spec/models/api_v3_ug_remote_points_detail_spec.rb +114 -0
- data/spec/models/api_v3_ug_wobble_location_spec.rb +30 -0
- data/spec/models/api_v3_ultimate_goal_remote_score_detail_spec.rb +48 -0
- data/spec/models/api_v3_ultimate_goal_score_detail_spec.rb +48 -0
- data/spec/spec_helper.rb +111 -0
- data/update.sh +1 -0
- metadata +630 -0
data/docs/LeaguesApi.md
ADDED
|
@@ -0,0 +1,385 @@
|
|
|
1
|
+
# FtcApiV3Client::LeaguesApi
|
|
2
|
+
|
|
3
|
+
All URIs are relative to *https://ftc-api.firstinspires.org*
|
|
4
|
+
|
|
5
|
+
| Method | HTTP request | Description |
|
|
6
|
+
| ------ | ------------ | ----------- |
|
|
7
|
+
| [**get_league**](LeaguesApi.md#get_league) | **GET** /api/v3/seasons/{cmpYear}/regions/{regionCode}/leagues/{leagueCode} | Gets a single league from a region |
|
|
8
|
+
| [**get_league_rankings**](LeaguesApi.md#get_league_rankings) | **GET** /api/v3/seasons/{cmpYear}/regions/{regionCode}/leagues/{leagueCode}/rankings | Get rankings for a league |
|
|
9
|
+
| [**list_league_events**](LeaguesApi.md#list_league_events) | **GET** /api/v3/seasons/{cmpYear}/regions/{regionCode}/leagues/{leagueCode}/events | List events for a league |
|
|
10
|
+
| [**list_league_teams**](LeaguesApi.md#list_league_teams) | **GET** /api/v3/seasons/{cmpYear}/regions/{regionCode}/leagues/{leagueCode}/teams | List teams for a league |
|
|
11
|
+
| [**list_leagues**](LeaguesApi.md#list_leagues) | **GET** /api/v3/seasons/{cmpYear}/regions/{regionCode}/leagues | Lists leagues for a region |
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
## get_league
|
|
15
|
+
|
|
16
|
+
> <ApiV3LeagueDetails> get_league(cmp_year, region_code, league_code)
|
|
17
|
+
|
|
18
|
+
Gets a single league from a region
|
|
19
|
+
|
|
20
|
+
Gets a leagues for a region in a season, including any children
|
|
21
|
+
|
|
22
|
+
### Examples
|
|
23
|
+
|
|
24
|
+
```ruby
|
|
25
|
+
require 'time'
|
|
26
|
+
require 'ftc_api_v3_client'
|
|
27
|
+
# setup authorization
|
|
28
|
+
FtcApiV3Client.configure do |config|
|
|
29
|
+
# Configure API key authorization: ApiKeyAuth
|
|
30
|
+
config.api_key['api_key'] = 'YOUR API KEY'
|
|
31
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
|
32
|
+
# config.api_key_prefix['api_key'] = 'Bearer'
|
|
33
|
+
end
|
|
34
|
+
|
|
35
|
+
api_instance = FtcApiV3Client::LeaguesApi.new
|
|
36
|
+
cmp_year = 'cmp_year_example' # String | The year of the FIRST Championship for the requested season
|
|
37
|
+
region_code = 'region_code_example' # String | The code (abbreviation) for the region
|
|
38
|
+
league_code = 'league_code_example' # String | The code (abbreviation) for the league
|
|
39
|
+
|
|
40
|
+
begin
|
|
41
|
+
# Gets a single league from a region
|
|
42
|
+
result = api_instance.get_league(cmp_year, region_code, league_code)
|
|
43
|
+
p result
|
|
44
|
+
rescue FtcApiV3Client::ApiError => e
|
|
45
|
+
puts "Error when calling LeaguesApi->get_league: #{e}"
|
|
46
|
+
end
|
|
47
|
+
```
|
|
48
|
+
|
|
49
|
+
#### Using the get_league_with_http_info variant
|
|
50
|
+
|
|
51
|
+
This returns an Array which contains the response data, status code and headers.
|
|
52
|
+
|
|
53
|
+
> <Array(<ApiV3LeagueDetails>, Integer, Hash)> get_league_with_http_info(cmp_year, region_code, league_code)
|
|
54
|
+
|
|
55
|
+
```ruby
|
|
56
|
+
begin
|
|
57
|
+
# Gets a single league from a region
|
|
58
|
+
data, status_code, headers = api_instance.get_league_with_http_info(cmp_year, region_code, league_code)
|
|
59
|
+
p status_code # => 2xx
|
|
60
|
+
p headers # => { ... }
|
|
61
|
+
p data # => <ApiV3LeagueDetails>
|
|
62
|
+
rescue FtcApiV3Client::ApiError => e
|
|
63
|
+
puts "Error when calling LeaguesApi->get_league_with_http_info: #{e}"
|
|
64
|
+
end
|
|
65
|
+
```
|
|
66
|
+
|
|
67
|
+
### Parameters
|
|
68
|
+
|
|
69
|
+
| Name | Type | Description | Notes |
|
|
70
|
+
| ---- | ---- | ----------- | ----- |
|
|
71
|
+
| **cmp_year** | **String** | The year of the FIRST Championship for the requested season | |
|
|
72
|
+
| **region_code** | **String** | The code (abbreviation) for the region | |
|
|
73
|
+
| **league_code** | **String** | The code (abbreviation) for the league | |
|
|
74
|
+
|
|
75
|
+
### Return type
|
|
76
|
+
|
|
77
|
+
[**ApiV3LeagueDetails**](ApiV3LeagueDetails.md)
|
|
78
|
+
|
|
79
|
+
### Authorization
|
|
80
|
+
|
|
81
|
+
[ApiKeyAuth](../README.md#ApiKeyAuth)
|
|
82
|
+
|
|
83
|
+
### HTTP request headers
|
|
84
|
+
|
|
85
|
+
- **Content-Type**: Not defined
|
|
86
|
+
- **Accept**: application/json
|
|
87
|
+
|
|
88
|
+
|
|
89
|
+
## get_league_rankings
|
|
90
|
+
|
|
91
|
+
> <ApiV3Rankings> get_league_rankings(cmp_year, region_code, league_code)
|
|
92
|
+
|
|
93
|
+
Get rankings for a league
|
|
94
|
+
|
|
95
|
+
Gets league rankings for a given league. This only includes matches played in League Meets. For rankings including the League Tournament, use the tournament event's rankings endpoint instead. Each sort order field is season-specific: see the season's competition manual for definitions. The last non-zero sort order is the scoring system randomly generated tiebreaker value.
|
|
96
|
+
|
|
97
|
+
### Examples
|
|
98
|
+
|
|
99
|
+
```ruby
|
|
100
|
+
require 'time'
|
|
101
|
+
require 'ftc_api_v3_client'
|
|
102
|
+
# setup authorization
|
|
103
|
+
FtcApiV3Client.configure do |config|
|
|
104
|
+
# Configure API key authorization: ApiKeyAuth
|
|
105
|
+
config.api_key['api_key'] = 'YOUR API KEY'
|
|
106
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
|
107
|
+
# config.api_key_prefix['api_key'] = 'Bearer'
|
|
108
|
+
end
|
|
109
|
+
|
|
110
|
+
api_instance = FtcApiV3Client::LeaguesApi.new
|
|
111
|
+
cmp_year = 'cmp_year_example' # String | The year of the FIRST Championship for the requested season
|
|
112
|
+
region_code = 'region_code_example' # String | The code (abbreviation) for the region
|
|
113
|
+
league_code = 'league_code_example' # String | The code (abbreviation) for the league
|
|
114
|
+
|
|
115
|
+
begin
|
|
116
|
+
# Get rankings for a league
|
|
117
|
+
result = api_instance.get_league_rankings(cmp_year, region_code, league_code)
|
|
118
|
+
p result
|
|
119
|
+
rescue FtcApiV3Client::ApiError => e
|
|
120
|
+
puts "Error when calling LeaguesApi->get_league_rankings: #{e}"
|
|
121
|
+
end
|
|
122
|
+
```
|
|
123
|
+
|
|
124
|
+
#### Using the get_league_rankings_with_http_info variant
|
|
125
|
+
|
|
126
|
+
This returns an Array which contains the response data, status code and headers.
|
|
127
|
+
|
|
128
|
+
> <Array(<ApiV3Rankings>, Integer, Hash)> get_league_rankings_with_http_info(cmp_year, region_code, league_code)
|
|
129
|
+
|
|
130
|
+
```ruby
|
|
131
|
+
begin
|
|
132
|
+
# Get rankings for a league
|
|
133
|
+
data, status_code, headers = api_instance.get_league_rankings_with_http_info(cmp_year, region_code, league_code)
|
|
134
|
+
p status_code # => 2xx
|
|
135
|
+
p headers # => { ... }
|
|
136
|
+
p data # => <ApiV3Rankings>
|
|
137
|
+
rescue FtcApiV3Client::ApiError => e
|
|
138
|
+
puts "Error when calling LeaguesApi->get_league_rankings_with_http_info: #{e}"
|
|
139
|
+
end
|
|
140
|
+
```
|
|
141
|
+
|
|
142
|
+
### Parameters
|
|
143
|
+
|
|
144
|
+
| Name | Type | Description | Notes |
|
|
145
|
+
| ---- | ---- | ----------- | ----- |
|
|
146
|
+
| **cmp_year** | **String** | The year of the FIRST Championship for the requested season | |
|
|
147
|
+
| **region_code** | **String** | The code (abbreviation) for the region | |
|
|
148
|
+
| **league_code** | **String** | The code (abbreviation) for the league | |
|
|
149
|
+
|
|
150
|
+
### Return type
|
|
151
|
+
|
|
152
|
+
[**ApiV3Rankings**](ApiV3Rankings.md)
|
|
153
|
+
|
|
154
|
+
### Authorization
|
|
155
|
+
|
|
156
|
+
[ApiKeyAuth](../README.md#ApiKeyAuth)
|
|
157
|
+
|
|
158
|
+
### HTTP request headers
|
|
159
|
+
|
|
160
|
+
- **Content-Type**: Not defined
|
|
161
|
+
- **Accept**: application/json
|
|
162
|
+
|
|
163
|
+
|
|
164
|
+
## list_league_events
|
|
165
|
+
|
|
166
|
+
> <ApiV3Events> list_league_events(cmp_year, region_code, league_code)
|
|
167
|
+
|
|
168
|
+
List events for a league
|
|
169
|
+
|
|
170
|
+
Lists all events in a league, including events in child leagues.
|
|
171
|
+
|
|
172
|
+
### Examples
|
|
173
|
+
|
|
174
|
+
```ruby
|
|
175
|
+
require 'time'
|
|
176
|
+
require 'ftc_api_v3_client'
|
|
177
|
+
# setup authorization
|
|
178
|
+
FtcApiV3Client.configure do |config|
|
|
179
|
+
# Configure API key authorization: ApiKeyAuth
|
|
180
|
+
config.api_key['api_key'] = 'YOUR API KEY'
|
|
181
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
|
182
|
+
# config.api_key_prefix['api_key'] = 'Bearer'
|
|
183
|
+
end
|
|
184
|
+
|
|
185
|
+
api_instance = FtcApiV3Client::LeaguesApi.new
|
|
186
|
+
cmp_year = 'cmp_year_example' # String | The year of the FIRST Championship for the requested season
|
|
187
|
+
region_code = 'region_code_example' # String | The code (abbreviation) for the region
|
|
188
|
+
league_code = 'league_code_example' # String | The code (abbreviation) for the league
|
|
189
|
+
|
|
190
|
+
begin
|
|
191
|
+
# List events for a league
|
|
192
|
+
result = api_instance.list_league_events(cmp_year, region_code, league_code)
|
|
193
|
+
p result
|
|
194
|
+
rescue FtcApiV3Client::ApiError => e
|
|
195
|
+
puts "Error when calling LeaguesApi->list_league_events: #{e}"
|
|
196
|
+
end
|
|
197
|
+
```
|
|
198
|
+
|
|
199
|
+
#### Using the list_league_events_with_http_info variant
|
|
200
|
+
|
|
201
|
+
This returns an Array which contains the response data, status code and headers.
|
|
202
|
+
|
|
203
|
+
> <Array(<ApiV3Events>, Integer, Hash)> list_league_events_with_http_info(cmp_year, region_code, league_code)
|
|
204
|
+
|
|
205
|
+
```ruby
|
|
206
|
+
begin
|
|
207
|
+
# List events for a league
|
|
208
|
+
data, status_code, headers = api_instance.list_league_events_with_http_info(cmp_year, region_code, league_code)
|
|
209
|
+
p status_code # => 2xx
|
|
210
|
+
p headers # => { ... }
|
|
211
|
+
p data # => <ApiV3Events>
|
|
212
|
+
rescue FtcApiV3Client::ApiError => e
|
|
213
|
+
puts "Error when calling LeaguesApi->list_league_events_with_http_info: #{e}"
|
|
214
|
+
end
|
|
215
|
+
```
|
|
216
|
+
|
|
217
|
+
### Parameters
|
|
218
|
+
|
|
219
|
+
| Name | Type | Description | Notes |
|
|
220
|
+
| ---- | ---- | ----------- | ----- |
|
|
221
|
+
| **cmp_year** | **String** | The year of the FIRST Championship for the requested season | |
|
|
222
|
+
| **region_code** | **String** | The code (abbreviation) for the region | |
|
|
223
|
+
| **league_code** | **String** | The code (abbreviation) for the league | |
|
|
224
|
+
|
|
225
|
+
### Return type
|
|
226
|
+
|
|
227
|
+
[**ApiV3Events**](ApiV3Events.md)
|
|
228
|
+
|
|
229
|
+
### Authorization
|
|
230
|
+
|
|
231
|
+
[ApiKeyAuth](../README.md#ApiKeyAuth)
|
|
232
|
+
|
|
233
|
+
### HTTP request headers
|
|
234
|
+
|
|
235
|
+
- **Content-Type**: Not defined
|
|
236
|
+
- **Accept**: application/json
|
|
237
|
+
|
|
238
|
+
|
|
239
|
+
## list_league_teams
|
|
240
|
+
|
|
241
|
+
> <ApiV3Teams> list_league_teams(cmp_year, region_code, league_code)
|
|
242
|
+
|
|
243
|
+
List teams for a league
|
|
244
|
+
|
|
245
|
+
Lists all teams assigned to the given league.
|
|
246
|
+
|
|
247
|
+
### Examples
|
|
248
|
+
|
|
249
|
+
```ruby
|
|
250
|
+
require 'time'
|
|
251
|
+
require 'ftc_api_v3_client'
|
|
252
|
+
# setup authorization
|
|
253
|
+
FtcApiV3Client.configure do |config|
|
|
254
|
+
# Configure API key authorization: ApiKeyAuth
|
|
255
|
+
config.api_key['api_key'] = 'YOUR API KEY'
|
|
256
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
|
257
|
+
# config.api_key_prefix['api_key'] = 'Bearer'
|
|
258
|
+
end
|
|
259
|
+
|
|
260
|
+
api_instance = FtcApiV3Client::LeaguesApi.new
|
|
261
|
+
cmp_year = 'cmp_year_example' # String | The year of the FIRST Championship for the requested season
|
|
262
|
+
region_code = 'region_code_example' # String | The code (abbreviation) for the region
|
|
263
|
+
league_code = 'league_code_example' # String | The code (abbreviation) for the league
|
|
264
|
+
|
|
265
|
+
begin
|
|
266
|
+
# List teams for a league
|
|
267
|
+
result = api_instance.list_league_teams(cmp_year, region_code, league_code)
|
|
268
|
+
p result
|
|
269
|
+
rescue FtcApiV3Client::ApiError => e
|
|
270
|
+
puts "Error when calling LeaguesApi->list_league_teams: #{e}"
|
|
271
|
+
end
|
|
272
|
+
```
|
|
273
|
+
|
|
274
|
+
#### Using the list_league_teams_with_http_info variant
|
|
275
|
+
|
|
276
|
+
This returns an Array which contains the response data, status code and headers.
|
|
277
|
+
|
|
278
|
+
> <Array(<ApiV3Teams>, Integer, Hash)> list_league_teams_with_http_info(cmp_year, region_code, league_code)
|
|
279
|
+
|
|
280
|
+
```ruby
|
|
281
|
+
begin
|
|
282
|
+
# List teams for a league
|
|
283
|
+
data, status_code, headers = api_instance.list_league_teams_with_http_info(cmp_year, region_code, league_code)
|
|
284
|
+
p status_code # => 2xx
|
|
285
|
+
p headers # => { ... }
|
|
286
|
+
p data # => <ApiV3Teams>
|
|
287
|
+
rescue FtcApiV3Client::ApiError => e
|
|
288
|
+
puts "Error when calling LeaguesApi->list_league_teams_with_http_info: #{e}"
|
|
289
|
+
end
|
|
290
|
+
```
|
|
291
|
+
|
|
292
|
+
### Parameters
|
|
293
|
+
|
|
294
|
+
| Name | Type | Description | Notes |
|
|
295
|
+
| ---- | ---- | ----------- | ----- |
|
|
296
|
+
| **cmp_year** | **String** | The year of the FIRST Championship for the requested season | |
|
|
297
|
+
| **region_code** | **String** | The code (abbreviation) for the region | |
|
|
298
|
+
| **league_code** | **String** | The code (abbreviation) for the league | |
|
|
299
|
+
|
|
300
|
+
### Return type
|
|
301
|
+
|
|
302
|
+
[**ApiV3Teams**](ApiV3Teams.md)
|
|
303
|
+
|
|
304
|
+
### Authorization
|
|
305
|
+
|
|
306
|
+
[ApiKeyAuth](../README.md#ApiKeyAuth)
|
|
307
|
+
|
|
308
|
+
### HTTP request headers
|
|
309
|
+
|
|
310
|
+
- **Content-Type**: Not defined
|
|
311
|
+
- **Accept**: application/json
|
|
312
|
+
|
|
313
|
+
|
|
314
|
+
## list_leagues
|
|
315
|
+
|
|
316
|
+
> <ApiV3Leagues> list_leagues(cmp_year, region_code)
|
|
317
|
+
|
|
318
|
+
Lists leagues for a region
|
|
319
|
+
|
|
320
|
+
Lists all leagues for a region in a season. Parent/child relationships can be determined from the `parentCode` field of each league. League parents are guaranteed to be in the same region as their children.
|
|
321
|
+
|
|
322
|
+
### Examples
|
|
323
|
+
|
|
324
|
+
```ruby
|
|
325
|
+
require 'time'
|
|
326
|
+
require 'ftc_api_v3_client'
|
|
327
|
+
# setup authorization
|
|
328
|
+
FtcApiV3Client.configure do |config|
|
|
329
|
+
# Configure API key authorization: ApiKeyAuth
|
|
330
|
+
config.api_key['api_key'] = 'YOUR API KEY'
|
|
331
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
|
332
|
+
# config.api_key_prefix['api_key'] = 'Bearer'
|
|
333
|
+
end
|
|
334
|
+
|
|
335
|
+
api_instance = FtcApiV3Client::LeaguesApi.new
|
|
336
|
+
cmp_year = 'cmp_year_example' # String | The year of the FIRST Championship for the requested season
|
|
337
|
+
region_code = 'region_code_example' # String | The code (abbreviation) for the region
|
|
338
|
+
|
|
339
|
+
begin
|
|
340
|
+
# Lists leagues for a region
|
|
341
|
+
result = api_instance.list_leagues(cmp_year, region_code)
|
|
342
|
+
p result
|
|
343
|
+
rescue FtcApiV3Client::ApiError => e
|
|
344
|
+
puts "Error when calling LeaguesApi->list_leagues: #{e}"
|
|
345
|
+
end
|
|
346
|
+
```
|
|
347
|
+
|
|
348
|
+
#### Using the list_leagues_with_http_info variant
|
|
349
|
+
|
|
350
|
+
This returns an Array which contains the response data, status code and headers.
|
|
351
|
+
|
|
352
|
+
> <Array(<ApiV3Leagues>, Integer, Hash)> list_leagues_with_http_info(cmp_year, region_code)
|
|
353
|
+
|
|
354
|
+
```ruby
|
|
355
|
+
begin
|
|
356
|
+
# Lists leagues for a region
|
|
357
|
+
data, status_code, headers = api_instance.list_leagues_with_http_info(cmp_year, region_code)
|
|
358
|
+
p status_code # => 2xx
|
|
359
|
+
p headers # => { ... }
|
|
360
|
+
p data # => <ApiV3Leagues>
|
|
361
|
+
rescue FtcApiV3Client::ApiError => e
|
|
362
|
+
puts "Error when calling LeaguesApi->list_leagues_with_http_info: #{e}"
|
|
363
|
+
end
|
|
364
|
+
```
|
|
365
|
+
|
|
366
|
+
### Parameters
|
|
367
|
+
|
|
368
|
+
| Name | Type | Description | Notes |
|
|
369
|
+
| ---- | ---- | ----------- | ----- |
|
|
370
|
+
| **cmp_year** | **String** | The year of the FIRST Championship for the requested season | |
|
|
371
|
+
| **region_code** | **String** | The code (abbreviation) for the region | |
|
|
372
|
+
|
|
373
|
+
### Return type
|
|
374
|
+
|
|
375
|
+
[**ApiV3Leagues**](ApiV3Leagues.md)
|
|
376
|
+
|
|
377
|
+
### Authorization
|
|
378
|
+
|
|
379
|
+
[ApiKeyAuth](../README.md#ApiKeyAuth)
|
|
380
|
+
|
|
381
|
+
### HTTP request headers
|
|
382
|
+
|
|
383
|
+
- **Content-Type**: Not defined
|
|
384
|
+
- **Accept**: application/json
|
|
385
|
+
|
data/docs/RegionsApi.md
ADDED
|
@@ -0,0 +1,301 @@
|
|
|
1
|
+
# FtcApiV3Client::RegionsApi
|
|
2
|
+
|
|
3
|
+
All URIs are relative to *https://ftc-api.firstinspires.org*
|
|
4
|
+
|
|
5
|
+
| Method | HTTP request | Description |
|
|
6
|
+
| ------ | ------------ | ----------- |
|
|
7
|
+
| [**get_region**](RegionsApi.md#get_region) | **GET** /api/v3/seasons/{cmpYear}/regions/{regionCode} | Get region from a season |
|
|
8
|
+
| [**list_region_events**](RegionsApi.md#list_region_events) | **GET** /api/v3/seasons/{cmpYear}/regions/{regionCode}/events | List events for a regions |
|
|
9
|
+
| [**list_region_teams**](RegionsApi.md#list_region_teams) | **GET** /api/v3/seasons/{cmpYear}/regions/{regionCode}/teams | List teams for a region |
|
|
10
|
+
| [**list_regions**](RegionsApi.md#list_regions) | **GET** /api/v3/seasons/{cmpYear}/regions | List regions for a season |
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
## get_region
|
|
14
|
+
|
|
15
|
+
> <ApiV3Region> get_region(cmp_year, region_code)
|
|
16
|
+
|
|
17
|
+
Get region from a season
|
|
18
|
+
|
|
19
|
+
Gets details for a single region for a season.
|
|
20
|
+
|
|
21
|
+
### Examples
|
|
22
|
+
|
|
23
|
+
```ruby
|
|
24
|
+
require 'time'
|
|
25
|
+
require 'ftc_api_v3_client'
|
|
26
|
+
# setup authorization
|
|
27
|
+
FtcApiV3Client.configure do |config|
|
|
28
|
+
# Configure API key authorization: ApiKeyAuth
|
|
29
|
+
config.api_key['api_key'] = 'YOUR API KEY'
|
|
30
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
|
31
|
+
# config.api_key_prefix['api_key'] = 'Bearer'
|
|
32
|
+
end
|
|
33
|
+
|
|
34
|
+
api_instance = FtcApiV3Client::RegionsApi.new
|
|
35
|
+
cmp_year = 'cmp_year_example' # String | The year of the FIRST Championship for the requested season
|
|
36
|
+
region_code = 'region_code_example' # String | The code (abbreviation) for the region
|
|
37
|
+
|
|
38
|
+
begin
|
|
39
|
+
# Get region from a season
|
|
40
|
+
result = api_instance.get_region(cmp_year, region_code)
|
|
41
|
+
p result
|
|
42
|
+
rescue FtcApiV3Client::ApiError => e
|
|
43
|
+
puts "Error when calling RegionsApi->get_region: #{e}"
|
|
44
|
+
end
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
#### Using the get_region_with_http_info variant
|
|
48
|
+
|
|
49
|
+
This returns an Array which contains the response data, status code and headers.
|
|
50
|
+
|
|
51
|
+
> <Array(<ApiV3Region>, Integer, Hash)> get_region_with_http_info(cmp_year, region_code)
|
|
52
|
+
|
|
53
|
+
```ruby
|
|
54
|
+
begin
|
|
55
|
+
# Get region from a season
|
|
56
|
+
data, status_code, headers = api_instance.get_region_with_http_info(cmp_year, region_code)
|
|
57
|
+
p status_code # => 2xx
|
|
58
|
+
p headers # => { ... }
|
|
59
|
+
p data # => <ApiV3Region>
|
|
60
|
+
rescue FtcApiV3Client::ApiError => e
|
|
61
|
+
puts "Error when calling RegionsApi->get_region_with_http_info: #{e}"
|
|
62
|
+
end
|
|
63
|
+
```
|
|
64
|
+
|
|
65
|
+
### Parameters
|
|
66
|
+
|
|
67
|
+
| Name | Type | Description | Notes |
|
|
68
|
+
| ---- | ---- | ----------- | ----- |
|
|
69
|
+
| **cmp_year** | **String** | The year of the FIRST Championship for the requested season | |
|
|
70
|
+
| **region_code** | **String** | The code (abbreviation) for the region | |
|
|
71
|
+
|
|
72
|
+
### Return type
|
|
73
|
+
|
|
74
|
+
[**ApiV3Region**](ApiV3Region.md)
|
|
75
|
+
|
|
76
|
+
### Authorization
|
|
77
|
+
|
|
78
|
+
[ApiKeyAuth](../README.md#ApiKeyAuth)
|
|
79
|
+
|
|
80
|
+
### HTTP request headers
|
|
81
|
+
|
|
82
|
+
- **Content-Type**: Not defined
|
|
83
|
+
- **Accept**: application/json
|
|
84
|
+
|
|
85
|
+
|
|
86
|
+
## list_region_events
|
|
87
|
+
|
|
88
|
+
> <ApiV3Events> list_region_events(cmp_year, region_code)
|
|
89
|
+
|
|
90
|
+
List events for a regions
|
|
91
|
+
|
|
92
|
+
Lists all events in a region
|
|
93
|
+
|
|
94
|
+
### Examples
|
|
95
|
+
|
|
96
|
+
```ruby
|
|
97
|
+
require 'time'
|
|
98
|
+
require 'ftc_api_v3_client'
|
|
99
|
+
# setup authorization
|
|
100
|
+
FtcApiV3Client.configure do |config|
|
|
101
|
+
# Configure API key authorization: ApiKeyAuth
|
|
102
|
+
config.api_key['api_key'] = 'YOUR API KEY'
|
|
103
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
|
104
|
+
# config.api_key_prefix['api_key'] = 'Bearer'
|
|
105
|
+
end
|
|
106
|
+
|
|
107
|
+
api_instance = FtcApiV3Client::RegionsApi.new
|
|
108
|
+
cmp_year = 'cmp_year_example' # String | The year of the FIRST Championship for the requested season
|
|
109
|
+
region_code = 'region_code_example' # String | The code (abbreviation) for the region
|
|
110
|
+
|
|
111
|
+
begin
|
|
112
|
+
# List events for a regions
|
|
113
|
+
result = api_instance.list_region_events(cmp_year, region_code)
|
|
114
|
+
p result
|
|
115
|
+
rescue FtcApiV3Client::ApiError => e
|
|
116
|
+
puts "Error when calling RegionsApi->list_region_events: #{e}"
|
|
117
|
+
end
|
|
118
|
+
```
|
|
119
|
+
|
|
120
|
+
#### Using the list_region_events_with_http_info variant
|
|
121
|
+
|
|
122
|
+
This returns an Array which contains the response data, status code and headers.
|
|
123
|
+
|
|
124
|
+
> <Array(<ApiV3Events>, Integer, Hash)> list_region_events_with_http_info(cmp_year, region_code)
|
|
125
|
+
|
|
126
|
+
```ruby
|
|
127
|
+
begin
|
|
128
|
+
# List events for a regions
|
|
129
|
+
data, status_code, headers = api_instance.list_region_events_with_http_info(cmp_year, region_code)
|
|
130
|
+
p status_code # => 2xx
|
|
131
|
+
p headers # => { ... }
|
|
132
|
+
p data # => <ApiV3Events>
|
|
133
|
+
rescue FtcApiV3Client::ApiError => e
|
|
134
|
+
puts "Error when calling RegionsApi->list_region_events_with_http_info: #{e}"
|
|
135
|
+
end
|
|
136
|
+
```
|
|
137
|
+
|
|
138
|
+
### Parameters
|
|
139
|
+
|
|
140
|
+
| Name | Type | Description | Notes |
|
|
141
|
+
| ---- | ---- | ----------- | ----- |
|
|
142
|
+
| **cmp_year** | **String** | The year of the FIRST Championship for the requested season | |
|
|
143
|
+
| **region_code** | **String** | The code (abbreviation) for the region | |
|
|
144
|
+
|
|
145
|
+
### Return type
|
|
146
|
+
|
|
147
|
+
[**ApiV3Events**](ApiV3Events.md)
|
|
148
|
+
|
|
149
|
+
### Authorization
|
|
150
|
+
|
|
151
|
+
[ApiKeyAuth](../README.md#ApiKeyAuth)
|
|
152
|
+
|
|
153
|
+
### HTTP request headers
|
|
154
|
+
|
|
155
|
+
- **Content-Type**: Not defined
|
|
156
|
+
- **Accept**: application/json
|
|
157
|
+
|
|
158
|
+
|
|
159
|
+
## list_region_teams
|
|
160
|
+
|
|
161
|
+
> <ApiV3Teams> list_region_teams(cmp_year, region_code)
|
|
162
|
+
|
|
163
|
+
List teams for a region
|
|
164
|
+
|
|
165
|
+
Lists all registered teams assigned to the given region.
|
|
166
|
+
|
|
167
|
+
### Examples
|
|
168
|
+
|
|
169
|
+
```ruby
|
|
170
|
+
require 'time'
|
|
171
|
+
require 'ftc_api_v3_client'
|
|
172
|
+
# setup authorization
|
|
173
|
+
FtcApiV3Client.configure do |config|
|
|
174
|
+
# Configure API key authorization: ApiKeyAuth
|
|
175
|
+
config.api_key['api_key'] = 'YOUR API KEY'
|
|
176
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
|
177
|
+
# config.api_key_prefix['api_key'] = 'Bearer'
|
|
178
|
+
end
|
|
179
|
+
|
|
180
|
+
api_instance = FtcApiV3Client::RegionsApi.new
|
|
181
|
+
cmp_year = 'cmp_year_example' # String | The year of the FIRST Championship for the requested season
|
|
182
|
+
region_code = 'region_code_example' # String | The code (abbreviation) for the region
|
|
183
|
+
|
|
184
|
+
begin
|
|
185
|
+
# List teams for a region
|
|
186
|
+
result = api_instance.list_region_teams(cmp_year, region_code)
|
|
187
|
+
p result
|
|
188
|
+
rescue FtcApiV3Client::ApiError => e
|
|
189
|
+
puts "Error when calling RegionsApi->list_region_teams: #{e}"
|
|
190
|
+
end
|
|
191
|
+
```
|
|
192
|
+
|
|
193
|
+
#### Using the list_region_teams_with_http_info variant
|
|
194
|
+
|
|
195
|
+
This returns an Array which contains the response data, status code and headers.
|
|
196
|
+
|
|
197
|
+
> <Array(<ApiV3Teams>, Integer, Hash)> list_region_teams_with_http_info(cmp_year, region_code)
|
|
198
|
+
|
|
199
|
+
```ruby
|
|
200
|
+
begin
|
|
201
|
+
# List teams for a region
|
|
202
|
+
data, status_code, headers = api_instance.list_region_teams_with_http_info(cmp_year, region_code)
|
|
203
|
+
p status_code # => 2xx
|
|
204
|
+
p headers # => { ... }
|
|
205
|
+
p data # => <ApiV3Teams>
|
|
206
|
+
rescue FtcApiV3Client::ApiError => e
|
|
207
|
+
puts "Error when calling RegionsApi->list_region_teams_with_http_info: #{e}"
|
|
208
|
+
end
|
|
209
|
+
```
|
|
210
|
+
|
|
211
|
+
### Parameters
|
|
212
|
+
|
|
213
|
+
| Name | Type | Description | Notes |
|
|
214
|
+
| ---- | ---- | ----------- | ----- |
|
|
215
|
+
| **cmp_year** | **String** | The year of the FIRST Championship for the requested season | |
|
|
216
|
+
| **region_code** | **String** | The code (abbreviation) for the region | |
|
|
217
|
+
|
|
218
|
+
### Return type
|
|
219
|
+
|
|
220
|
+
[**ApiV3Teams**](ApiV3Teams.md)
|
|
221
|
+
|
|
222
|
+
### Authorization
|
|
223
|
+
|
|
224
|
+
[ApiKeyAuth](../README.md#ApiKeyAuth)
|
|
225
|
+
|
|
226
|
+
### HTTP request headers
|
|
227
|
+
|
|
228
|
+
- **Content-Type**: Not defined
|
|
229
|
+
- **Accept**: application/json
|
|
230
|
+
|
|
231
|
+
|
|
232
|
+
## list_regions
|
|
233
|
+
|
|
234
|
+
> <ApiV3Regions> list_regions(cmp_year)
|
|
235
|
+
|
|
236
|
+
List regions for a season
|
|
237
|
+
|
|
238
|
+
Lists all active regions for a season.
|
|
239
|
+
|
|
240
|
+
### Examples
|
|
241
|
+
|
|
242
|
+
```ruby
|
|
243
|
+
require 'time'
|
|
244
|
+
require 'ftc_api_v3_client'
|
|
245
|
+
# setup authorization
|
|
246
|
+
FtcApiV3Client.configure do |config|
|
|
247
|
+
# Configure API key authorization: ApiKeyAuth
|
|
248
|
+
config.api_key['api_key'] = 'YOUR API KEY'
|
|
249
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
|
250
|
+
# config.api_key_prefix['api_key'] = 'Bearer'
|
|
251
|
+
end
|
|
252
|
+
|
|
253
|
+
api_instance = FtcApiV3Client::RegionsApi.new
|
|
254
|
+
cmp_year = 'cmp_year_example' # String | The year of the FIRST Championship for the requested season
|
|
255
|
+
|
|
256
|
+
begin
|
|
257
|
+
# List regions for a season
|
|
258
|
+
result = api_instance.list_regions(cmp_year)
|
|
259
|
+
p result
|
|
260
|
+
rescue FtcApiV3Client::ApiError => e
|
|
261
|
+
puts "Error when calling RegionsApi->list_regions: #{e}"
|
|
262
|
+
end
|
|
263
|
+
```
|
|
264
|
+
|
|
265
|
+
#### Using the list_regions_with_http_info variant
|
|
266
|
+
|
|
267
|
+
This returns an Array which contains the response data, status code and headers.
|
|
268
|
+
|
|
269
|
+
> <Array(<ApiV3Regions>, Integer, Hash)> list_regions_with_http_info(cmp_year)
|
|
270
|
+
|
|
271
|
+
```ruby
|
|
272
|
+
begin
|
|
273
|
+
# List regions for a season
|
|
274
|
+
data, status_code, headers = api_instance.list_regions_with_http_info(cmp_year)
|
|
275
|
+
p status_code # => 2xx
|
|
276
|
+
p headers # => { ... }
|
|
277
|
+
p data # => <ApiV3Regions>
|
|
278
|
+
rescue FtcApiV3Client::ApiError => e
|
|
279
|
+
puts "Error when calling RegionsApi->list_regions_with_http_info: #{e}"
|
|
280
|
+
end
|
|
281
|
+
```
|
|
282
|
+
|
|
283
|
+
### Parameters
|
|
284
|
+
|
|
285
|
+
| Name | Type | Description | Notes |
|
|
286
|
+
| ---- | ---- | ----------- | ----- |
|
|
287
|
+
| **cmp_year** | **String** | The year of the FIRST Championship for the requested season | |
|
|
288
|
+
|
|
289
|
+
### Return type
|
|
290
|
+
|
|
291
|
+
[**ApiV3Regions**](ApiV3Regions.md)
|
|
292
|
+
|
|
293
|
+
### Authorization
|
|
294
|
+
|
|
295
|
+
[ApiKeyAuth](../README.md#ApiKeyAuth)
|
|
296
|
+
|
|
297
|
+
### HTTP request headers
|
|
298
|
+
|
|
299
|
+
- **Content-Type**: Not defined
|
|
300
|
+
- **Accept**: application/json
|
|
301
|
+
|