pokeapi_client 1.1.0 → 2.0.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 +4 -4
- data/Gemfile.lock +93 -24
- data/README.md +418 -110
- data/bin/byebug +1 -12
- data/bin/coderay +1 -12
- data/bin/htmldiff +1 -12
- data/bin/ldiff +1 -12
- data/bin/pry +1 -12
- data/bin/racc +1 -12
- data/bin/rake +1 -12
- data/bin/rspec +1 -12
- data/bin/rubocop +1 -12
- data/bin/ruby-parse +1 -12
- data/bin/ruby-rewrite +1 -12
- data/docs/AbilityChange.md +20 -0
- data/docs/AbilityChangeEffectText.md +20 -0
- data/docs/AbilityDetail.md +34 -0
- data/docs/AbilityDetailPokemonInner.md +22 -0
- data/docs/AbilityDetailPokemonInnerPokemon.md +20 -0
- data/docs/AbilityEffectText.md +22 -0
- data/docs/AbilityFlavorText.md +22 -0
- data/docs/AbilityName.md +20 -0
- data/docs/AbilitySummary.md +20 -0
- data/docs/BerriesApi.md +481 -0
- data/docs/BerryDetail.md +40 -0
- data/docs/BerryDetailFlavorsInner.md +20 -0
- data/docs/BerryDetailFlavorsInnerFlavor.md +20 -0
- data/docs/BerryFirmnessDetail.md +24 -0
- data/docs/BerryFirmnessName.md +20 -0
- data/docs/BerryFirmnessSummary.md +20 -0
- data/docs/BerryFlavorDetail.md +26 -0
- data/docs/BerryFlavorDetailBerriesInner.md +20 -0
- data/docs/BerryFlavorDetailBerriesInnerBerry.md +20 -0
- data/docs/BerryFlavorName.md +20 -0
- data/docs/BerryFlavorSummary.md +20 -0
- data/docs/BerrySummary.md +20 -0
- data/docs/CharacteristicDescription.md +20 -0
- data/docs/CharacteristicDetail.md +26 -0
- data/docs/CharacteristicSummary.md +18 -0
- data/docs/ContestEffectDetail.md +26 -0
- data/docs/ContestEffectEffectText.md +20 -0
- data/docs/ContestEffectFlavorText.md +20 -0
- data/docs/ContestEffectSummary.md +18 -0
- data/docs/ContestTypeDetail.md +24 -0
- data/docs/ContestTypeName.md +22 -0
- data/docs/ContestTypeSummary.md +20 -0
- data/docs/ContestsApi.md +481 -0
- data/docs/EggGroupDetail.md +24 -0
- data/docs/EggGroupDetailPokemonSpeciesInner.md +20 -0
- data/docs/EggGroupName.md +20 -0
- data/docs/EggGroupSummary.md +20 -0
- data/docs/EncounterConditionDetail.md +24 -0
- data/docs/EncounterConditionName.md +20 -0
- data/docs/EncounterConditionSummary.md +20 -0
- data/docs/EncounterConditionValueDetail.md +24 -0
- data/docs/EncounterConditionValueName.md +20 -0
- data/docs/EncounterConditionValueSummary.md +20 -0
- data/docs/EncounterMethodDetail.md +24 -0
- data/docs/EncounterMethodName.md +20 -0
- data/docs/EncounterMethodSummary.md +20 -0
- data/docs/EncountersApi.md +481 -0
- data/docs/EvolutionApi.md +323 -0
- data/docs/EvolutionChainDetail.md +22 -0
- data/docs/EvolutionChainDetailChain.md +24 -0
- data/docs/EvolutionChainDetailChainEvolvesToInner.md +22 -0
- data/docs/EvolutionChainDetailChainEvolvesToInnerEvolutionDetailsInner.md +52 -0
- data/docs/EvolutionChainDetailChainEvolvesToInnerEvolutionDetailsInnerGender.md +20 -0
- data/docs/EvolutionChainSummary.md +18 -0
- data/docs/EvolutionTriggerDetail.md +24 -0
- data/docs/EvolutionTriggerName.md +20 -0
- data/docs/EvolutionTriggerSummary.md +20 -0
- data/docs/Experience.md +20 -0
- data/docs/GamesApi.md +639 -0
- data/docs/GenderDetail.md +24 -0
- data/docs/GenderDetailPokemonSpeciesDetailsInner.md +20 -0
- data/docs/GenderSummary.md +20 -0
- data/docs/GenerationDetail.md +34 -0
- data/docs/GenerationName.md +20 -0
- data/docs/GenerationSummary.md +20 -0
- data/docs/GrowthRateDescription.md +20 -0
- data/docs/GrowthRateDetail.md +28 -0
- data/docs/GrowthRateSummary.md +20 -0
- data/docs/ItemAttributeDescription.md +20 -0
- data/docs/ItemAttributeDetail.md +26 -0
- data/docs/ItemAttributeName.md +20 -0
- data/docs/ItemAttributeSummary.md +20 -0
- data/docs/ItemCategoryDetail.md +26 -0
- data/docs/ItemCategoryName.md +20 -0
- data/docs/ItemCategorySummary.md +20 -0
- data/docs/ItemDetail.md +46 -0
- data/docs/ItemDetailBabyTriggerFor.md +18 -0
- data/docs/ItemDetailHeldByPokemonInner.md +20 -0
- data/docs/ItemDetailHeldByPokemonInnerVersionDetailsInner.md +20 -0
- data/docs/ItemDetailMachinesInner.md +20 -0
- data/docs/ItemDetailSprites.md +18 -0
- data/docs/ItemEffectText.md +22 -0
- data/docs/ItemFlavorText.md +22 -0
- data/docs/ItemFlingEffectDetail.md +24 -0
- data/docs/ItemFlingEffectEffectText.md +20 -0
- data/docs/ItemFlingEffectSummary.md +20 -0
- data/docs/ItemGameIndex.md +20 -0
- data/docs/ItemName.md +20 -0
- data/docs/ItemPocketDetail.md +24 -0
- data/docs/ItemPocketName.md +20 -0
- data/docs/ItemPocketSummary.md +20 -0
- data/docs/ItemSummary.md +20 -0
- data/docs/ItemsApi.md +797 -0
- data/docs/LanguageDetail.md +28 -0
- data/docs/LanguageName.md +20 -0
- data/docs/LanguageSummary.md +20 -0
- data/docs/LocationApi.md +530 -30
- data/docs/LocationAreaDetail.md +30 -0
- data/docs/LocationAreaDetailEncounterMethodRatesInner.md +20 -0
- data/docs/LocationAreaDetailEncounterMethodRatesInnerVersionDetailsInner.md +20 -0
- data/docs/LocationAreaDetailPokemonEncountersInner.md +20 -0
- data/docs/LocationAreaDetailPokemonEncountersInnerVersionDetailsInner.md +22 -0
- data/docs/LocationAreaDetailPokemonEncountersInnerVersionDetailsInnerEncounterDetails.md +26 -0
- data/docs/LocationAreaName.md +20 -0
- data/docs/LocationAreaSummary.md +20 -0
- data/docs/LocationDetail.md +28 -0
- data/docs/LocationGameIndex.md +20 -0
- data/docs/LocationName.md +20 -0
- data/docs/LocationSummary.md +20 -0
- data/docs/MachineDetail.md +24 -0
- data/docs/MachineSummary.md +18 -0
- data/docs/MachinesApi.md +165 -0
- data/docs/MoveBattleStyleDetail.md +22 -0
- data/docs/MoveBattleStyleName.md +20 -0
- data/docs/MoveBattleStyleSummary.md +20 -0
- data/docs/MoveChange.md +30 -0
- data/docs/MoveChangeEffectEntriesInner.md +22 -0
- data/docs/MoveDamageClassDescription.md +20 -0
- data/docs/MoveDamageClassDetail.md +26 -0
- data/docs/MoveDamageClassName.md +20 -0
- data/docs/MoveDamageClassSummary.md +20 -0
- data/docs/MoveDetail.md +64 -0
- data/docs/MoveDetailContestCombos.md +20 -0
- data/docs/MoveDetailContestCombosNormal.md +20 -0
- data/docs/MoveDetailEffectChangesInner.md +20 -0
- data/docs/MoveDetailEffectChangesInnerEffectEntriesInner.md +20 -0
- data/docs/MoveDetailMachinesInner.md +20 -0
- data/docs/MoveDetailMachinesInnerMachine.md +18 -0
- data/docs/MoveDetailStatChangesInner.md +20 -0
- data/docs/MoveFlavorText.md +22 -0
- data/docs/MoveLearnMethodDescription.md +20 -0
- data/docs/MoveLearnMethodDetail.md +26 -0
- data/docs/MoveLearnMethodName.md +20 -0
- data/docs/MoveLearnMethodSummary.md +20 -0
- data/docs/MoveMeta.md +40 -0
- data/docs/MoveMetaAilmentDetail.md +24 -0
- data/docs/MoveMetaAilmentName.md +20 -0
- data/docs/MoveMetaAilmentSummary.md +20 -0
- data/docs/MoveMetaCategoryDescription.md +20 -0
- data/docs/MoveMetaCategoryDetail.md +24 -0
- data/docs/MoveMetaCategorySummary.md +20 -0
- data/docs/MoveName.md +20 -0
- data/docs/MoveSummary.md +20 -0
- data/docs/MoveTargetDescription.md +20 -0
- data/docs/MoveTargetDetail.md +26 -0
- data/docs/MoveTargetName.md +20 -0
- data/docs/MoveTargetSummary.md +20 -0
- data/docs/MovesApi.md +955 -0
- data/docs/NatureBattleStylePreference.md +22 -0
- data/docs/NatureDetail.md +36 -0
- data/docs/NatureDetailPokeathlonStatChangesInner.md +20 -0
- data/docs/NatureName.md +20 -0
- data/docs/NatureSummary.md +20 -0
- data/docs/PaginatedAbilitySummaryList.md +24 -0
- data/docs/PaginatedBerryFirmnessSummaryList.md +24 -0
- data/docs/PaginatedBerryFlavorSummaryList.md +24 -0
- data/docs/PaginatedBerrySummaryList.md +24 -0
- data/docs/PaginatedCharacteristicSummaryList.md +24 -0
- data/docs/PaginatedContestEffectSummaryList.md +24 -0
- data/docs/PaginatedContestTypeSummaryList.md +24 -0
- data/docs/PaginatedEggGroupSummaryList.md +24 -0
- data/docs/PaginatedEncounterConditionSummaryList.md +24 -0
- data/docs/PaginatedEncounterConditionValueSummaryList.md +24 -0
- data/docs/PaginatedEncounterMethodSummaryList.md +24 -0
- data/docs/PaginatedEvolutionChainSummaryList.md +24 -0
- data/docs/PaginatedEvolutionTriggerSummaryList.md +24 -0
- data/docs/PaginatedGenderSummaryList.md +24 -0
- data/docs/PaginatedGenerationSummaryList.md +24 -0
- data/docs/PaginatedGrowthRateSummaryList.md +24 -0
- data/docs/PaginatedItemAttributeSummaryList.md +24 -0
- data/docs/PaginatedItemCategorySummaryList.md +24 -0
- data/docs/PaginatedItemFlingEffectSummaryList.md +24 -0
- data/docs/PaginatedItemPocketSummaryList.md +24 -0
- data/docs/PaginatedItemSummaryList.md +24 -0
- data/docs/PaginatedLanguageSummaryList.md +24 -0
- data/docs/PaginatedLocationAreaSummaryList.md +24 -0
- data/docs/PaginatedLocationSummaryList.md +24 -0
- data/docs/PaginatedMachineSummaryList.md +24 -0
- data/docs/PaginatedMoveBattleStyleSummaryList.md +24 -0
- data/docs/PaginatedMoveDamageClassSummaryList.md +24 -0
- data/docs/PaginatedMoveLearnMethodSummaryList.md +24 -0
- data/docs/PaginatedMoveMetaAilmentSummaryList.md +24 -0
- data/docs/PaginatedMoveMetaCategorySummaryList.md +24 -0
- data/docs/PaginatedMoveSummaryList.md +24 -0
- data/docs/PaginatedMoveTargetSummaryList.md +24 -0
- data/docs/PaginatedNatureSummaryList.md +24 -0
- data/docs/PaginatedPalParkAreaSummaryList.md +24 -0
- data/docs/PaginatedPokeathlonStatSummaryList.md +24 -0
- data/docs/PaginatedPokedexSummaryList.md +24 -0
- data/docs/PaginatedPokemonColorSummaryList.md +24 -0
- data/docs/PaginatedPokemonFormSummaryList.md +24 -0
- data/docs/PaginatedPokemonHabitatSummaryList.md +24 -0
- data/docs/PaginatedPokemonShapeSummaryList.md +24 -0
- data/docs/PaginatedPokemonSpeciesSummaryList.md +24 -0
- data/docs/PaginatedPokemonSummaryList.md +24 -0
- data/docs/PaginatedRegionSummaryList.md +24 -0
- data/docs/PaginatedStatSummaryList.md +24 -0
- data/docs/PaginatedSuperContestEffectSummaryList.md +24 -0
- data/docs/PaginatedTypeSummaryList.md +24 -0
- data/docs/PaginatedVersionGroupSummaryList.md +24 -0
- data/docs/PaginatedVersionSummaryList.md +24 -0
- data/docs/PalParkAreaDetail.md +24 -0
- data/docs/PalParkAreaDetailPokemonEncountersInner.md +22 -0
- data/docs/PalParkAreaName.md +20 -0
- data/docs/PalParkAreaSummary.md +20 -0
- data/docs/PokeathlonStatDetail.md +24 -0
- data/docs/PokeathlonStatDetailAffectingNatures.md +20 -0
- data/docs/PokeathlonStatDetailAffectingNaturesDecreaseInner.md +20 -0
- data/docs/PokeathlonStatDetailAffectingNaturesIncreaseInner.md +20 -0
- data/docs/PokeathlonStatName.md +20 -0
- data/docs/PokeathlonStatSummary.md +20 -0
- data/docs/PokedexDescription.md +20 -0
- data/docs/PokedexDetail.md +32 -0
- data/docs/PokedexDetailPokemonEntriesInner.md +20 -0
- data/docs/PokedexName.md +20 -0
- data/docs/PokedexSummary.md +20 -0
- data/docs/PokemonApi.md +2430 -32
- data/docs/PokemonColorDetail.md +24 -0
- data/docs/PokemonColorName.md +20 -0
- data/docs/PokemonColorSummary.md +20 -0
- data/docs/PokemonDetail.md +56 -0
- data/docs/PokemonDetailAbilitiesInner.md +22 -0
- data/docs/PokemonDetailCries.md +20 -0
- data/docs/PokemonDetailHeldItems.md +20 -0
- data/docs/PokemonDetailMovesInner.md +20 -0
- data/docs/PokemonDetailMovesInnerVersionGroupDetailsInner.md +22 -0
- data/docs/PokemonDetailPastAbilitiesInner.md +20 -0
- data/docs/PokemonDetailPastTypesInner.md +20 -0
- data/docs/PokemonDetailSprites.md +18 -0
- data/docs/PokemonDetailTypesInner.md +20 -0
- data/docs/PokemonDexEntry.md +20 -0
- data/docs/PokemonFormDetail.md +44 -0
- data/docs/PokemonFormDetailFormNamesInner.md +20 -0
- data/docs/PokemonFormDetailSprites.md +18 -0
- data/docs/PokemonFormSummary.md +20 -0
- data/docs/PokemonGameIndex.md +20 -0
- data/docs/PokemonHabitatDetail.md +24 -0
- data/docs/PokemonHabitatName.md +20 -0
- data/docs/PokemonHabitatSummary.md +20 -0
- data/docs/PokemonShapeDetail.md +26 -0
- data/docs/PokemonShapeDetailAwesomeNamesInner.md +20 -0
- data/docs/PokemonShapeDetailNamesInner.md +20 -0
- data/docs/PokemonShapeSummary.md +20 -0
- data/docs/PokemonSpeciesDescription.md +20 -0
- data/docs/PokemonSpeciesDetail.md +70 -0
- data/docs/PokemonSpeciesDetailGeneraInner.md +20 -0
- data/docs/PokemonSpeciesDetailPalParkEncountersInner.md +22 -0
- data/docs/PokemonSpeciesDetailVarietiesInner.md +20 -0
- data/docs/PokemonSpeciesFlavorText.md +22 -0
- data/docs/PokemonSpeciesSummary.md +20 -0
- data/docs/PokemonStat.md +22 -0
- data/docs/PokemonSummary.md +20 -0
- data/docs/RegionDetail.md +30 -0
- data/docs/RegionName.md +20 -0
- data/docs/RegionSummary.md +20 -0
- data/docs/StatDetail.md +34 -0
- data/docs/StatDetailAffectingMoves.md +20 -0
- data/docs/StatDetailAffectingMovesIncreaseInner.md +20 -0
- data/docs/StatDetailAffectingNatures.md +20 -0
- data/docs/StatName.md +20 -0
- data/docs/StatSummary.md +20 -0
- data/docs/SuperContestEffectDetail.md +24 -0
- data/docs/SuperContestEffectFlavorText.md +20 -0
- data/docs/SuperContestEffectSummary.md +18 -0
- data/docs/TypeDetail.md +38 -0
- data/docs/TypeDetailDamageRelations.md +28 -0
- data/docs/TypeDetailPastDamageRelationsInner.md +20 -0
- data/docs/TypeDetailPastDamageRelationsInnerDamageRelations.md +28 -0
- data/docs/TypeDetailPokemonInner.md +20 -0
- data/docs/TypeDetailPokemonInnerPokemon.md +20 -0
- data/docs/TypeDetailSpritesValueValue.md +18 -0
- data/docs/TypeGameIndex.md +20 -0
- data/docs/TypeSummary.md +20 -0
- data/docs/UtilityApi.md +165 -0
- data/docs/VersionDetail.md +24 -0
- data/docs/VersionGroupDetail.md +32 -0
- data/docs/VersionGroupSummary.md +20 -0
- data/docs/VersionName.md +20 -0
- data/docs/VersionSummary.md +20 -0
- data/lib/pokeapi_client/api/berries_api.rb +409 -0
- data/lib/pokeapi_client/api/contests_api.rb +409 -0
- data/lib/pokeapi_client/api/encounters_api.rb +409 -0
- data/lib/pokeapi_client/api/evolution_api.rb +280 -0
- data/lib/pokeapi_client/api/games_api.rb +538 -0
- data/lib/pokeapi_client/api/items_api.rb +667 -0
- data/lib/pokeapi_client/api/location_api.rb +422 -27
- data/lib/pokeapi_client/api/machines_api.rb +151 -0
- data/lib/pokeapi_client/api/moves_api.rb +796 -0
- data/lib/pokeapi_client/api/pokemon_api.rb +1975 -33
- data/lib/pokeapi_client/api/utility_api.rb +151 -0
- data/lib/pokeapi_client/api_client.rb +18 -14
- data/lib/pokeapi_client/api_error.rb +4 -4
- data/lib/pokeapi_client/api_model_base.rb +88 -0
- data/lib/pokeapi_client/configuration.rb +28 -4
- data/lib/pokeapi_client/models/ability_change.rb +192 -0
- data/lib/pokeapi_client/models/ability_change_effect_text.rb +199 -0
- data/lib/pokeapi_client/models/ability_detail.rb +374 -0
- data/lib/pokeapi_client/models/ability_detail_pokemon_inner.rb +216 -0
- data/lib/pokeapi_client/models/ability_detail_pokemon_inner_pokemon.rb +190 -0
- data/lib/pokeapi_client/models/ability_effect_text.rb +234 -0
- data/lib/pokeapi_client/models/ability_flavor_text.rb +216 -0
- data/lib/pokeapi_client/models/ability_name.rb +199 -0
- data/lib/pokeapi_client/models/ability_summary.rb +199 -0
- data/lib/pokeapi_client/models/berry_detail.rb +461 -0
- data/lib/pokeapi_client/models/berry_detail_flavors_inner.rb +190 -0
- data/lib/pokeapi_client/models/berry_detail_flavors_inner_flavor.rb +158 -0
- data/lib/pokeapi_client/models/berry_firmness_detail.rb +255 -0
- data/lib/pokeapi_client/models/berry_firmness_name.rb +199 -0
- data/lib/pokeapi_client/models/berry_firmness_summary.rb +199 -0
- data/lib/pokeapi_client/models/berry_flavor_detail.rb +281 -0
- data/lib/pokeapi_client/models/berry_flavor_detail_berries_inner.rb +190 -0
- data/lib/pokeapi_client/models/berry_flavor_detail_berries_inner_berry.rb +158 -0
- data/lib/pokeapi_client/models/berry_flavor_name.rb +199 -0
- data/lib/pokeapi_client/models/berry_flavor_summary.rb +199 -0
- data/lib/pokeapi_client/models/berry_summary.rb +199 -0
- data/lib/pokeapi_client/models/characteristic_description.rb +192 -0
- data/lib/pokeapi_client/models/characteristic_detail.rb +272 -0
- data/lib/pokeapi_client/models/characteristic_summary.rb +164 -0
- data/lib/pokeapi_client/models/contest_effect_detail.rb +272 -0
- data/lib/pokeapi_client/models/contest_effect_effect_text.rb +199 -0
- data/lib/pokeapi_client/models/contest_effect_flavor_text.rb +199 -0
- data/lib/pokeapi_client/models/contest_effect_summary.rb +164 -0
- data/lib/pokeapi_client/models/contest_type_detail.rb +253 -0
- data/lib/pokeapi_client/models/contest_type_name.rb +234 -0
- data/lib/pokeapi_client/models/contest_type_summary.rb +199 -0
- data/lib/pokeapi_client/models/egg_group_detail.rb +255 -0
- data/lib/pokeapi_client/models/egg_group_detail_pokemon_species_inner.rb +158 -0
- data/lib/pokeapi_client/models/egg_group_name.rb +199 -0
- data/lib/pokeapi_client/models/egg_group_summary.rb +199 -0
- data/lib/pokeapi_client/models/encounter_condition_detail.rb +255 -0
- data/lib/pokeapi_client/models/encounter_condition_name.rb +199 -0
- data/lib/pokeapi_client/models/encounter_condition_summary.rb +199 -0
- data/lib/pokeapi_client/models/encounter_condition_value_detail.rb +253 -0
- data/lib/pokeapi_client/models/encounter_condition_value_name.rb +199 -0
- data/lib/pokeapi_client/models/encounter_condition_value_summary.rb +199 -0
- data/lib/pokeapi_client/models/encounter_method_detail.rb +237 -0
- data/lib/pokeapi_client/models/encounter_method_name.rb +199 -0
- data/lib/pokeapi_client/models/encounter_method_summary.rb +199 -0
- data/lib/pokeapi_client/models/evolution_chain_detail.rb +216 -0
- data/lib/pokeapi_client/models/evolution_chain_detail_chain.rb +246 -0
- data/lib/pokeapi_client/models/evolution_chain_detail_chain_evolves_to_inner.rb +218 -0
- data/lib/pokeapi_client/models/evolution_chain_detail_chain_evolves_to_inner_evolution_details_inner.rb +606 -0
- data/lib/pokeapi_client/models/evolution_chain_detail_chain_evolves_to_inner_evolution_details_inner_gender.rb +190 -0
- data/lib/pokeapi_client/models/evolution_chain_summary.rb +164 -0
- data/lib/pokeapi_client/models/evolution_trigger_detail.rb +255 -0
- data/lib/pokeapi_client/models/evolution_trigger_name.rb +199 -0
- data/lib/pokeapi_client/models/evolution_trigger_summary.rb +199 -0
- data/lib/pokeapi_client/models/experience.rb +190 -0
- data/lib/pokeapi_client/models/gender_detail.rb +255 -0
- data/lib/pokeapi_client/models/gender_detail_pokemon_species_details_inner.rb +190 -0
- data/lib/pokeapi_client/models/gender_summary.rb +199 -0
- data/lib/pokeapi_client/models/generation_detail.rb +393 -0
- data/lib/pokeapi_client/models/generation_name.rb +199 -0
- data/lib/pokeapi_client/models/generation_summary.rb +199 -0
- data/lib/pokeapi_client/models/growth_rate_description.rb +192 -0
- data/lib/pokeapi_client/models/growth_rate_detail.rb +318 -0
- data/lib/pokeapi_client/models/growth_rate_summary.rb +199 -0
- data/lib/pokeapi_client/models/item_attribute_description.rb +192 -0
- data/lib/pokeapi_client/models/item_attribute_detail.rb +283 -0
- data/lib/pokeapi_client/models/item_attribute_name.rb +199 -0
- data/lib/pokeapi_client/models/item_attribute_summary.rb +199 -0
- data/lib/pokeapi_client/models/item_category_detail.rb +281 -0
- data/lib/pokeapi_client/models/item_category_name.rb +199 -0
- data/lib/pokeapi_client/models/item_category_summary.rb +199 -0
- data/lib/pokeapi_client/models/item_detail.rb +519 -0
- data/lib/pokeapi_client/models/item_detail_baby_trigger_for.rb +164 -0
- data/lib/pokeapi_client/models/item_detail_held_by_pokemon_inner.rb +192 -0
- data/lib/pokeapi_client/models/item_detail_held_by_pokemon_inner_version_details_inner.rb +190 -0
- data/lib/pokeapi_client/models/item_detail_machines_inner.rb +190 -0
- data/lib/pokeapi_client/models/item_detail_sprites.rb +164 -0
- data/lib/pokeapi_client/models/item_effect_text.rb +234 -0
- data/lib/pokeapi_client/models/item_flavor_text.rb +216 -0
- data/lib/pokeapi_client/models/item_fling_effect_detail.rb +255 -0
- data/lib/pokeapi_client/models/item_fling_effect_effect_text.rb +199 -0
- data/lib/pokeapi_client/models/item_fling_effect_summary.rb +199 -0
- data/lib/pokeapi_client/models/item_game_index.rb +190 -0
- data/lib/pokeapi_client/models/item_name.rb +199 -0
- data/lib/pokeapi_client/models/item_pocket_detail.rb +255 -0
- data/lib/pokeapi_client/models/item_pocket_name.rb +199 -0
- data/lib/pokeapi_client/models/item_pocket_summary.rb +199 -0
- data/lib/pokeapi_client/models/item_summary.rb +199 -0
- data/lib/pokeapi_client/models/language_detail.rb +306 -0
- data/lib/pokeapi_client/models/language_name.rb +199 -0
- data/lib/pokeapi_client/models/language_summary.rb +199 -0
- data/lib/pokeapi_client/models/location_area_detail.rb +335 -0
- data/lib/pokeapi_client/models/location_area_detail_encounter_method_rates_inner.rb +192 -0
- data/lib/pokeapi_client/models/location_area_detail_encounter_method_rates_inner_version_details_inner.rb +190 -0
- data/lib/pokeapi_client/models/location_area_detail_pokemon_encounters_inner.rb +192 -0
- data/lib/pokeapi_client/models/location_area_detail_pokemon_encounters_inner_version_details_inner.rb +216 -0
- data/lib/pokeapi_client/models/location_area_detail_pokemon_encounters_inner_version_details_inner_encounter_details.rb +251 -0
- data/lib/pokeapi_client/models/location_area_name.rb +199 -0
- data/lib/pokeapi_client/models/location_area_summary.rb +199 -0
- data/lib/pokeapi_client/models/location_detail.rb +309 -0
- data/lib/pokeapi_client/models/location_game_index.rb +190 -0
- data/lib/pokeapi_client/models/location_name.rb +199 -0
- data/lib/pokeapi_client/models/location_summary.rb +199 -0
- data/lib/pokeapi_client/models/machine_detail.rb +242 -0
- data/lib/pokeapi_client/models/machine_summary.rb +164 -0
- data/lib/pokeapi_client/models/move_battle_style_detail.rb +227 -0
- data/lib/pokeapi_client/models/move_battle_style_name.rb +199 -0
- data/lib/pokeapi_client/models/move_battle_style_summary.rb +199 -0
- data/lib/pokeapi_client/models/move_change.rb +274 -0
- data/lib/pokeapi_client/models/move_change_effect_entries_inner.rb +216 -0
- data/lib/pokeapi_client/models/move_damage_class_description.rb +192 -0
- data/lib/pokeapi_client/models/move_damage_class_detail.rb +283 -0
- data/lib/pokeapi_client/models/move_damage_class_name.rb +199 -0
- data/lib/pokeapi_client/models/move_damage_class_summary.rb +199 -0
- data/lib/pokeapi_client/models/move_detail.rb +723 -0
- data/lib/pokeapi_client/models/move_detail_contest_combos.rb +190 -0
- data/lib/pokeapi_client/models/move_detail_contest_combos_normal.rb +194 -0
- data/lib/pokeapi_client/models/move_detail_effect_changes_inner.rb +192 -0
- data/lib/pokeapi_client/models/move_detail_effect_changes_inner_effect_entries_inner.rb +190 -0
- data/lib/pokeapi_client/models/move_detail_machines_inner.rb +190 -0
- data/lib/pokeapi_client/models/move_detail_machines_inner_machine.rb +164 -0
- data/lib/pokeapi_client/models/move_detail_stat_changes_inner.rb +190 -0
- data/lib/pokeapi_client/models/move_flavor_text.rb +216 -0
- data/lib/pokeapi_client/models/move_learn_method_description.rb +192 -0
- data/lib/pokeapi_client/models/move_learn_method_detail.rb +283 -0
- data/lib/pokeapi_client/models/move_learn_method_name.rb +199 -0
- data/lib/pokeapi_client/models/move_learn_method_summary.rb +199 -0
- data/lib/pokeapi_client/models/move_meta.rb +290 -0
- data/lib/pokeapi_client/models/move_meta_ailment_detail.rb +255 -0
- data/lib/pokeapi_client/models/move_meta_ailment_name.rb +199 -0
- data/lib/pokeapi_client/models/move_meta_ailment_summary.rb +199 -0
- data/lib/pokeapi_client/models/move_meta_category_description.rb +192 -0
- data/lib/pokeapi_client/models/move_meta_category_detail.rb +255 -0
- data/lib/pokeapi_client/models/move_meta_category_summary.rb +199 -0
- data/lib/pokeapi_client/models/move_name.rb +199 -0
- data/lib/pokeapi_client/models/move_summary.rb +199 -0
- data/lib/pokeapi_client/models/move_target_description.rb +192 -0
- data/lib/pokeapi_client/models/move_target_detail.rb +283 -0
- data/lib/pokeapi_client/models/move_target_name.rb +199 -0
- data/lib/pokeapi_client/models/move_target_summary.rb +199 -0
- data/lib/pokeapi_client/models/nature_battle_style_preference.rb +216 -0
- data/lib/pokeapi_client/models/nature_detail.rb +415 -0
- data/lib/pokeapi_client/models/nature_detail_pokeathlon_stat_changes_inner.rb +190 -0
- data/lib/pokeapi_client/models/nature_name.rb +199 -0
- data/lib/pokeapi_client/models/nature_summary.rb +199 -0
- data/lib/pokeapi_client/models/paginated_ability_summary_list.rb +176 -0
- data/lib/pokeapi_client/models/paginated_berry_firmness_summary_list.rb +176 -0
- data/lib/pokeapi_client/models/paginated_berry_flavor_summary_list.rb +176 -0
- data/lib/pokeapi_client/models/paginated_berry_summary_list.rb +176 -0
- data/lib/pokeapi_client/models/paginated_characteristic_summary_list.rb +176 -0
- data/lib/pokeapi_client/models/paginated_contest_effect_summary_list.rb +176 -0
- data/lib/pokeapi_client/models/paginated_contest_type_summary_list.rb +176 -0
- data/lib/pokeapi_client/models/paginated_egg_group_summary_list.rb +176 -0
- data/lib/pokeapi_client/models/paginated_encounter_condition_summary_list.rb +176 -0
- data/lib/pokeapi_client/models/paginated_encounter_condition_value_summary_list.rb +176 -0
- data/lib/pokeapi_client/models/paginated_encounter_method_summary_list.rb +176 -0
- data/lib/pokeapi_client/models/paginated_evolution_chain_summary_list.rb +176 -0
- data/lib/pokeapi_client/models/paginated_evolution_trigger_summary_list.rb +176 -0
- data/lib/pokeapi_client/models/paginated_gender_summary_list.rb +176 -0
- data/lib/pokeapi_client/models/paginated_generation_summary_list.rb +176 -0
- data/lib/pokeapi_client/models/paginated_growth_rate_summary_list.rb +176 -0
- data/lib/pokeapi_client/models/paginated_item_attribute_summary_list.rb +176 -0
- data/lib/pokeapi_client/models/paginated_item_category_summary_list.rb +176 -0
- data/lib/pokeapi_client/models/paginated_item_fling_effect_summary_list.rb +176 -0
- data/lib/pokeapi_client/models/paginated_item_pocket_summary_list.rb +176 -0
- data/lib/pokeapi_client/models/paginated_item_summary_list.rb +176 -0
- data/lib/pokeapi_client/models/paginated_language_summary_list.rb +176 -0
- data/lib/pokeapi_client/models/paginated_location_area_summary_list.rb +176 -0
- data/lib/pokeapi_client/models/paginated_location_summary_list.rb +176 -0
- data/lib/pokeapi_client/models/paginated_machine_summary_list.rb +176 -0
- data/lib/pokeapi_client/models/paginated_move_battle_style_summary_list.rb +176 -0
- data/lib/pokeapi_client/models/paginated_move_damage_class_summary_list.rb +176 -0
- data/lib/pokeapi_client/models/paginated_move_learn_method_summary_list.rb +176 -0
- data/lib/pokeapi_client/models/paginated_move_meta_ailment_summary_list.rb +176 -0
- data/lib/pokeapi_client/models/paginated_move_meta_category_summary_list.rb +176 -0
- data/lib/pokeapi_client/models/paginated_move_summary_list.rb +176 -0
- data/lib/pokeapi_client/models/paginated_move_target_summary_list.rb +176 -0
- data/lib/pokeapi_client/models/paginated_nature_summary_list.rb +176 -0
- data/lib/pokeapi_client/models/paginated_pal_park_area_summary_list.rb +176 -0
- data/lib/pokeapi_client/models/paginated_pokeathlon_stat_summary_list.rb +176 -0
- data/lib/pokeapi_client/models/paginated_pokedex_summary_list.rb +176 -0
- data/lib/pokeapi_client/models/paginated_pokemon_color_summary_list.rb +176 -0
- data/lib/pokeapi_client/models/paginated_pokemon_form_summary_list.rb +176 -0
- data/lib/pokeapi_client/models/paginated_pokemon_habitat_summary_list.rb +176 -0
- data/lib/pokeapi_client/models/paginated_pokemon_shape_summary_list.rb +176 -0
- data/lib/pokeapi_client/models/paginated_pokemon_species_summary_list.rb +176 -0
- data/lib/pokeapi_client/models/paginated_pokemon_summary_list.rb +176 -0
- data/lib/pokeapi_client/models/paginated_region_summary_list.rb +176 -0
- data/lib/pokeapi_client/models/paginated_stat_summary_list.rb +176 -0
- data/lib/pokeapi_client/models/paginated_super_contest_effect_summary_list.rb +176 -0
- data/lib/pokeapi_client/models/paginated_type_summary_list.rb +176 -0
- data/lib/pokeapi_client/models/paginated_version_group_summary_list.rb +176 -0
- data/lib/pokeapi_client/models/paginated_version_summary_list.rb +176 -0
- data/lib/pokeapi_client/models/pal_park_area_detail.rb +255 -0
- data/lib/pokeapi_client/models/pal_park_area_detail_pokemon_encounters_inner.rb +216 -0
- data/lib/pokeapi_client/models/pal_park_area_name.rb +199 -0
- data/lib/pokeapi_client/models/pal_park_area_summary.rb +199 -0
- data/lib/pokeapi_client/models/pokeathlon_stat_detail.rb +253 -0
- data/lib/pokeapi_client/models/pokeathlon_stat_detail_affecting_natures.rb +194 -0
- data/lib/pokeapi_client/models/pokeathlon_stat_detail_affecting_natures_decrease_inner.rb +199 -0
- data/lib/pokeapi_client/models/pokeathlon_stat_detail_affecting_natures_increase_inner.rb +199 -0
- data/lib/pokeapi_client/models/pokeathlon_stat_name.rb +199 -0
- data/lib/pokeapi_client/models/pokeathlon_stat_summary.rb +199 -0
- data/lib/pokeapi_client/models/pokedex_description.rb +192 -0
- data/lib/pokeapi_client/models/pokedex_detail.rb +346 -0
- data/lib/pokeapi_client/models/pokedex_detail_pokemon_entries_inner.rb +190 -0
- data/lib/pokeapi_client/models/pokedex_name.rb +199 -0
- data/lib/pokeapi_client/models/pokedex_summary.rb +199 -0
- data/lib/pokeapi_client/models/pokemon_color_detail.rb +255 -0
- data/lib/pokeapi_client/models/pokemon_color_name.rb +199 -0
- data/lib/pokeapi_client/models/pokemon_color_summary.rb +199 -0
- data/lib/pokeapi_client/models/pokemon_detail.rb +602 -0
- data/lib/pokeapi_client/models/pokemon_detail_abilities_inner.rb +216 -0
- data/lib/pokeapi_client/models/pokemon_detail_cries.rb +190 -0
- data/lib/pokeapi_client/models/pokemon_detail_held_items.rb +192 -0
- data/lib/pokeapi_client/models/pokemon_detail_moves_inner.rb +192 -0
- data/lib/pokeapi_client/models/pokemon_detail_moves_inner_version_group_details_inner.rb +216 -0
- data/lib/pokeapi_client/models/pokemon_detail_past_abilities_inner.rb +192 -0
- data/lib/pokeapi_client/models/pokemon_detail_past_types_inner.rb +192 -0
- data/lib/pokeapi_client/models/pokemon_detail_sprites.rb +147 -0
- data/lib/pokeapi_client/models/pokemon_detail_types_inner.rb +190 -0
- data/lib/pokeapi_client/models/pokemon_dex_entry.rb +190 -0
- data/lib/pokeapi_client/models/pokemon_form_detail.rb +443 -0
- data/lib/pokeapi_client/models/pokemon_form_detail_form_names_inner.rb +190 -0
- data/lib/pokeapi_client/models/pokemon_form_detail_sprites.rb +147 -0
- data/lib/pokeapi_client/models/pokemon_form_summary.rb +199 -0
- data/lib/pokeapi_client/models/pokemon_game_index.rb +190 -0
- data/lib/pokeapi_client/models/pokemon_habitat_detail.rb +255 -0
- data/lib/pokeapi_client/models/pokemon_habitat_name.rb +199 -0
- data/lib/pokeapi_client/models/pokemon_habitat_summary.rb +199 -0
- data/lib/pokeapi_client/models/pokemon_shape_detail.rb +283 -0
- data/lib/pokeapi_client/models/pokemon_shape_detail_awesome_names_inner.rb +190 -0
- data/lib/pokeapi_client/models/pokemon_shape_detail_names_inner.rb +190 -0
- data/lib/pokeapi_client/models/pokemon_shape_summary.rb +199 -0
- data/lib/pokeapi_client/models/pokemon_species_description.rb +192 -0
- data/lib/pokeapi_client/models/pokemon_species_detail.rb +700 -0
- data/lib/pokeapi_client/models/pokemon_species_detail_genera_inner.rb +190 -0
- data/lib/pokeapi_client/models/pokemon_species_detail_pal_park_encounters_inner.rb +216 -0
- data/lib/pokeapi_client/models/pokemon_species_detail_varieties_inner.rb +190 -0
- data/lib/pokeapi_client/models/pokemon_species_flavor_text.rb +216 -0
- data/lib/pokeapi_client/models/pokemon_species_summary.rb +199 -0
- data/lib/pokeapi_client/models/pokemon_stat.rb +216 -0
- data/lib/pokeapi_client/models/pokemon_summary.rb +199 -0
- data/lib/pokeapi_client/models/region_detail.rb +337 -0
- data/lib/pokeapi_client/models/region_name.rb +199 -0
- data/lib/pokeapi_client/models/region_summary.rb +199 -0
- data/lib/pokeapi_client/models/stat_detail.rb +368 -0
- data/lib/pokeapi_client/models/stat_detail_affecting_moves.rb +194 -0
- data/lib/pokeapi_client/models/stat_detail_affecting_moves_increase_inner.rb +190 -0
- data/lib/pokeapi_client/models/stat_detail_affecting_natures.rb +194 -0
- data/lib/pokeapi_client/models/stat_name.rb +199 -0
- data/lib/pokeapi_client/models/stat_summary.rb +199 -0
- data/lib/pokeapi_client/models/super_contest_effect_detail.rb +246 -0
- data/lib/pokeapi_client/models/super_contest_effect_flavor_text.rb +199 -0
- data/lib/pokeapi_client/models/super_contest_effect_summary.rb +164 -0
- data/lib/pokeapi_client/models/type_detail.rb +446 -0
- data/lib/pokeapi_client/models/type_detail_damage_relations.rb +306 -0
- data/lib/pokeapi_client/models/type_detail_past_damage_relations_inner.rb +190 -0
- data/lib/pokeapi_client/models/type_detail_past_damage_relations_inner_damage_relations.rb +306 -0
- data/lib/pokeapi_client/models/type_detail_pokemon_inner.rb +156 -0
- data/lib/pokeapi_client/models/type_detail_pokemon_inner_pokemon.rb +158 -0
- data/lib/pokeapi_client/models/type_detail_sprites_value_value.rb +147 -0
- data/lib/pokeapi_client/models/type_game_index.rb +190 -0
- data/lib/pokeapi_client/models/type_summary.rb +199 -0
- data/lib/pokeapi_client/models/version_detail.rb +254 -0
- data/lib/pokeapi_client/models/version_group_detail.rb +347 -0
- data/lib/pokeapi_client/models/version_group_summary.rb +199 -0
- data/lib/pokeapi_client/models/version_name.rb +199 -0
- data/lib/pokeapi_client/models/version_summary.rb +199 -0
- data/lib/pokeapi_client/version.rb +5 -5
- data/lib/pokeapi_client.rb +282 -50
- data/pokeapi_client.gemspec +6 -6
- data/spec/api/berries_api_spec.rb +113 -0
- data/spec/api/contests_api_spec.rb +113 -0
- data/spec/api/encounters_api_spec.rb +113 -0
- data/spec/api/evolution_api_spec.rb +87 -0
- data/spec/api/games_api_spec.rb +139 -0
- data/spec/api/items_api_spec.rb +165 -0
- data/spec/api/location_api_spec.rb +93 -11
- data/spec/api/machines_api_spec.rb +61 -0
- data/spec/api/moves_api_spec.rb +191 -0
- data/spec/api/pokemon_api_spec.rb +404 -11
- data/spec/api/utility_api_spec.rb +61 -0
- data/spec/models/ability_change_effect_text_spec.rb +42 -0
- data/spec/models/ability_change_spec.rb +42 -0
- data/spec/models/ability_detail_pokemon_inner_pokemon_spec.rb +42 -0
- data/spec/models/ability_detail_pokemon_inner_spec.rb +48 -0
- data/spec/models/ability_detail_spec.rb +84 -0
- data/spec/models/ability_effect_text_spec.rb +48 -0
- data/spec/models/ability_flavor_text_spec.rb +48 -0
- data/spec/models/ability_name_spec.rb +42 -0
- data/spec/models/ability_summary_spec.rb +42 -0
- data/spec/models/berry_detail_flavors_inner_flavor_spec.rb +42 -0
- data/spec/models/berry_detail_flavors_inner_spec.rb +42 -0
- data/spec/models/berry_detail_spec.rb +102 -0
- data/spec/models/berry_firmness_detail_spec.rb +54 -0
- data/spec/models/berry_firmness_name_spec.rb +42 -0
- data/spec/models/berry_firmness_summary_spec.rb +42 -0
- data/spec/models/berry_flavor_detail_berries_inner_berry_spec.rb +42 -0
- data/spec/models/berry_flavor_detail_berries_inner_spec.rb +42 -0
- data/spec/models/berry_flavor_detail_spec.rb +60 -0
- data/spec/models/berry_flavor_name_spec.rb +42 -0
- data/spec/models/berry_flavor_summary_spec.rb +42 -0
- data/spec/models/berry_summary_spec.rb +42 -0
- data/spec/models/characteristic_description_spec.rb +42 -0
- data/spec/models/characteristic_detail_spec.rb +60 -0
- data/spec/models/characteristic_summary_spec.rb +36 -0
- data/spec/models/contest_effect_detail_spec.rb +60 -0
- data/spec/models/contest_effect_effect_text_spec.rb +42 -0
- data/spec/models/contest_effect_flavor_text_spec.rb +42 -0
- data/spec/models/contest_effect_summary_spec.rb +36 -0
- data/spec/models/contest_type_detail_spec.rb +54 -0
- data/spec/models/contest_type_name_spec.rb +48 -0
- data/spec/models/contest_type_summary_spec.rb +42 -0
- data/spec/models/egg_group_detail_pokemon_species_inner_spec.rb +42 -0
- data/spec/models/egg_group_detail_spec.rb +54 -0
- data/spec/models/egg_group_name_spec.rb +42 -0
- data/spec/models/egg_group_summary_spec.rb +42 -0
- data/spec/models/encounter_condition_detail_spec.rb +54 -0
- data/spec/models/encounter_condition_name_spec.rb +42 -0
- data/spec/models/encounter_condition_summary_spec.rb +42 -0
- data/spec/models/encounter_condition_value_detail_spec.rb +54 -0
- data/spec/models/encounter_condition_value_name_spec.rb +42 -0
- data/spec/models/encounter_condition_value_summary_spec.rb +42 -0
- data/spec/models/encounter_method_detail_spec.rb +54 -0
- data/spec/models/encounter_method_name_spec.rb +42 -0
- data/spec/models/encounter_method_summary_spec.rb +42 -0
- data/spec/models/evolution_chain_detail_chain_evolves_to_inner_evolution_details_inner_gender_spec.rb +42 -0
- data/spec/models/evolution_chain_detail_chain_evolves_to_inner_evolution_details_inner_spec.rb +138 -0
- data/spec/models/evolution_chain_detail_chain_evolves_to_inner_spec.rb +48 -0
- data/spec/models/evolution_chain_detail_chain_spec.rb +54 -0
- data/spec/models/evolution_chain_detail_spec.rb +48 -0
- data/spec/models/evolution_chain_summary_spec.rb +36 -0
- data/spec/models/evolution_trigger_detail_spec.rb +54 -0
- data/spec/models/evolution_trigger_name_spec.rb +42 -0
- data/spec/models/evolution_trigger_summary_spec.rb +42 -0
- data/spec/models/experience_spec.rb +42 -0
- data/spec/models/gender_detail_pokemon_species_details_inner_spec.rb +42 -0
- data/spec/models/gender_detail_spec.rb +54 -0
- data/spec/models/gender_summary_spec.rb +42 -0
- data/spec/models/generation_detail_spec.rb +84 -0
- data/spec/models/generation_name_spec.rb +42 -0
- data/spec/models/generation_summary_spec.rb +42 -0
- data/spec/models/growth_rate_description_spec.rb +42 -0
- data/spec/models/growth_rate_detail_spec.rb +66 -0
- data/spec/models/growth_rate_summary_spec.rb +42 -0
- data/spec/models/item_attribute_description_spec.rb +42 -0
- data/spec/models/item_attribute_detail_spec.rb +60 -0
- data/spec/models/item_attribute_name_spec.rb +42 -0
- data/spec/models/item_attribute_summary_spec.rb +42 -0
- data/spec/models/item_category_detail_spec.rb +60 -0
- data/spec/models/item_category_name_spec.rb +42 -0
- data/spec/models/item_category_summary_spec.rb +42 -0
- data/spec/models/item_detail_baby_trigger_for_spec.rb +36 -0
- data/spec/models/item_detail_held_by_pokemon_inner_spec.rb +42 -0
- data/spec/models/item_detail_held_by_pokemon_inner_version_details_inner_spec.rb +42 -0
- data/spec/models/item_detail_machines_inner_spec.rb +42 -0
- data/spec/models/item_detail_spec.rb +120 -0
- data/spec/models/item_detail_sprites_spec.rb +36 -0
- data/spec/models/item_effect_text_spec.rb +48 -0
- data/spec/models/item_flavor_text_spec.rb +48 -0
- data/spec/models/item_fling_effect_detail_spec.rb +54 -0
- data/spec/models/item_fling_effect_effect_text_spec.rb +42 -0
- data/spec/models/item_fling_effect_summary_spec.rb +42 -0
- data/spec/models/item_game_index_spec.rb +42 -0
- data/spec/models/item_name_spec.rb +42 -0
- data/spec/models/item_pocket_detail_spec.rb +54 -0
- data/spec/models/item_pocket_name_spec.rb +42 -0
- data/spec/models/item_pocket_summary_spec.rb +42 -0
- data/spec/models/item_summary_spec.rb +42 -0
- data/spec/models/language_detail_spec.rb +66 -0
- data/spec/models/language_name_spec.rb +42 -0
- data/spec/models/language_summary_spec.rb +42 -0
- data/spec/models/location_area_detail_encounter_method_rates_inner_spec.rb +42 -0
- data/spec/models/location_area_detail_encounter_method_rates_inner_version_details_inner_spec.rb +42 -0
- data/spec/models/location_area_detail_pokemon_encounters_inner_spec.rb +42 -0
- data/spec/models/location_area_detail_pokemon_encounters_inner_version_details_inner_encounter_details_spec.rb +60 -0
- data/spec/models/location_area_detail_pokemon_encounters_inner_version_details_inner_spec.rb +48 -0
- data/spec/models/location_area_detail_spec.rb +72 -0
- data/spec/models/location_area_name_spec.rb +42 -0
- data/spec/models/location_area_summary_spec.rb +42 -0
- data/spec/models/location_detail_spec.rb +66 -0
- data/spec/models/location_game_index_spec.rb +42 -0
- data/spec/models/location_name_spec.rb +42 -0
- data/spec/models/location_summary_spec.rb +42 -0
- data/spec/models/machine_detail_spec.rb +54 -0
- data/spec/models/machine_summary_spec.rb +36 -0
- data/spec/models/move_battle_style_detail_spec.rb +48 -0
- data/spec/models/move_battle_style_name_spec.rb +42 -0
- data/spec/models/move_battle_style_summary_spec.rb +42 -0
- data/spec/models/move_change_effect_entries_inner_spec.rb +48 -0
- data/spec/models/move_change_spec.rb +72 -0
- data/spec/models/move_damage_class_description_spec.rb +42 -0
- data/spec/models/move_damage_class_detail_spec.rb +60 -0
- data/spec/models/move_damage_class_name_spec.rb +42 -0
- data/spec/models/move_damage_class_summary_spec.rb +42 -0
- data/spec/models/move_detail_contest_combos_normal_spec.rb +42 -0
- data/spec/models/move_detail_contest_combos_spec.rb +42 -0
- data/spec/models/move_detail_effect_changes_inner_effect_entries_inner_spec.rb +42 -0
- data/spec/models/move_detail_effect_changes_inner_spec.rb +42 -0
- data/spec/models/move_detail_machines_inner_machine_spec.rb +36 -0
- data/spec/models/move_detail_machines_inner_spec.rb +42 -0
- data/spec/models/move_detail_spec.rb +174 -0
- data/spec/models/move_detail_stat_changes_inner_spec.rb +42 -0
- data/spec/models/move_flavor_text_spec.rb +48 -0
- data/spec/models/move_learn_method_description_spec.rb +42 -0
- data/spec/models/move_learn_method_detail_spec.rb +60 -0
- data/spec/models/move_learn_method_name_spec.rb +42 -0
- data/spec/models/move_learn_method_summary_spec.rb +42 -0
- data/spec/models/move_meta_ailment_detail_spec.rb +54 -0
- data/spec/models/move_meta_ailment_name_spec.rb +42 -0
- data/spec/models/move_meta_ailment_summary_spec.rb +42 -0
- data/spec/models/move_meta_category_description_spec.rb +42 -0
- data/spec/models/move_meta_category_detail_spec.rb +54 -0
- data/spec/models/move_meta_category_summary_spec.rb +42 -0
- data/spec/models/move_meta_spec.rb +102 -0
- data/spec/models/move_name_spec.rb +42 -0
- data/spec/models/move_summary_spec.rb +42 -0
- data/spec/models/move_target_description_spec.rb +42 -0
- data/spec/models/move_target_detail_spec.rb +60 -0
- data/spec/models/move_target_name_spec.rb +42 -0
- data/spec/models/move_target_summary_spec.rb +42 -0
- data/spec/models/nature_battle_style_preference_spec.rb +48 -0
- data/spec/models/nature_detail_pokeathlon_stat_changes_inner_spec.rb +42 -0
- data/spec/models/nature_detail_spec.rb +90 -0
- data/spec/models/nature_name_spec.rb +42 -0
- data/spec/models/nature_summary_spec.rb +42 -0
- data/spec/models/paginated_ability_summary_list_spec.rb +54 -0
- data/spec/models/paginated_berry_firmness_summary_list_spec.rb +54 -0
- data/spec/models/paginated_berry_flavor_summary_list_spec.rb +54 -0
- data/spec/models/paginated_berry_summary_list_spec.rb +54 -0
- data/spec/models/paginated_characteristic_summary_list_spec.rb +54 -0
- data/spec/models/paginated_contest_effect_summary_list_spec.rb +54 -0
- data/spec/models/paginated_contest_type_summary_list_spec.rb +54 -0
- data/spec/models/paginated_egg_group_summary_list_spec.rb +54 -0
- data/spec/models/paginated_encounter_condition_summary_list_spec.rb +54 -0
- data/spec/models/paginated_encounter_condition_value_summary_list_spec.rb +54 -0
- data/spec/models/paginated_encounter_method_summary_list_spec.rb +54 -0
- data/spec/models/paginated_evolution_chain_summary_list_spec.rb +54 -0
- data/spec/models/paginated_evolution_trigger_summary_list_spec.rb +54 -0
- data/spec/models/paginated_gender_summary_list_spec.rb +54 -0
- data/spec/models/paginated_generation_summary_list_spec.rb +54 -0
- data/spec/models/paginated_growth_rate_summary_list_spec.rb +54 -0
- data/spec/models/paginated_item_attribute_summary_list_spec.rb +54 -0
- data/spec/models/paginated_item_category_summary_list_spec.rb +54 -0
- data/spec/models/paginated_item_fling_effect_summary_list_spec.rb +54 -0
- data/spec/models/paginated_item_pocket_summary_list_spec.rb +54 -0
- data/spec/models/paginated_item_summary_list_spec.rb +54 -0
- data/spec/models/paginated_language_summary_list_spec.rb +54 -0
- data/spec/models/paginated_location_area_summary_list_spec.rb +54 -0
- data/spec/models/paginated_location_summary_list_spec.rb +54 -0
- data/spec/models/paginated_machine_summary_list_spec.rb +54 -0
- data/spec/models/paginated_move_battle_style_summary_list_spec.rb +54 -0
- data/spec/models/paginated_move_damage_class_summary_list_spec.rb +54 -0
- data/spec/models/paginated_move_learn_method_summary_list_spec.rb +54 -0
- data/spec/models/paginated_move_meta_ailment_summary_list_spec.rb +54 -0
- data/spec/models/paginated_move_meta_category_summary_list_spec.rb +54 -0
- data/spec/models/paginated_move_summary_list_spec.rb +54 -0
- data/spec/models/paginated_move_target_summary_list_spec.rb +54 -0
- data/spec/models/paginated_nature_summary_list_spec.rb +54 -0
- data/spec/models/paginated_pal_park_area_summary_list_spec.rb +54 -0
- data/spec/models/paginated_pokeathlon_stat_summary_list_spec.rb +54 -0
- data/spec/models/paginated_pokedex_summary_list_spec.rb +54 -0
- data/spec/models/paginated_pokemon_color_summary_list_spec.rb +54 -0
- data/spec/models/paginated_pokemon_form_summary_list_spec.rb +54 -0
- data/spec/models/paginated_pokemon_habitat_summary_list_spec.rb +54 -0
- data/spec/models/paginated_pokemon_shape_summary_list_spec.rb +54 -0
- data/spec/models/paginated_pokemon_species_summary_list_spec.rb +54 -0
- data/spec/models/paginated_pokemon_summary_list_spec.rb +54 -0
- data/spec/models/paginated_region_summary_list_spec.rb +54 -0
- data/spec/models/paginated_stat_summary_list_spec.rb +54 -0
- data/spec/models/paginated_super_contest_effect_summary_list_spec.rb +54 -0
- data/spec/models/paginated_type_summary_list_spec.rb +54 -0
- data/spec/models/paginated_version_group_summary_list_spec.rb +54 -0
- data/spec/models/paginated_version_summary_list_spec.rb +54 -0
- data/spec/models/pal_park_area_detail_pokemon_encounters_inner_spec.rb +48 -0
- data/spec/models/pal_park_area_detail_spec.rb +54 -0
- data/spec/models/pal_park_area_name_spec.rb +42 -0
- data/spec/models/pal_park_area_summary_spec.rb +42 -0
- data/spec/models/pokeathlon_stat_detail_affecting_natures_decrease_inner_spec.rb +42 -0
- data/spec/models/pokeathlon_stat_detail_affecting_natures_increase_inner_spec.rb +42 -0
- data/spec/models/pokeathlon_stat_detail_affecting_natures_spec.rb +42 -0
- data/spec/models/pokeathlon_stat_detail_spec.rb +54 -0
- data/spec/models/pokeathlon_stat_name_spec.rb +42 -0
- data/spec/models/pokeathlon_stat_summary_spec.rb +42 -0
- data/spec/models/pokedex_description_spec.rb +42 -0
- data/spec/models/pokedex_detail_pokemon_entries_inner_spec.rb +42 -0
- data/spec/models/pokedex_detail_spec.rb +78 -0
- data/spec/models/pokedex_name_spec.rb +42 -0
- data/spec/models/pokedex_summary_spec.rb +42 -0
- data/spec/models/pokemon_color_detail_spec.rb +54 -0
- data/spec/models/pokemon_color_name_spec.rb +42 -0
- data/spec/models/pokemon_color_summary_spec.rb +42 -0
- data/spec/models/pokemon_detail_abilities_inner_spec.rb +48 -0
- data/spec/models/pokemon_detail_cries_spec.rb +42 -0
- data/spec/models/pokemon_detail_held_items_spec.rb +42 -0
- data/spec/models/pokemon_detail_moves_inner_spec.rb +42 -0
- data/spec/models/pokemon_detail_moves_inner_version_group_details_inner_spec.rb +48 -0
- data/spec/models/pokemon_detail_past_abilities_inner_spec.rb +42 -0
- data/spec/models/pokemon_detail_past_types_inner_spec.rb +42 -0
- data/spec/models/pokemon_detail_spec.rb +150 -0
- data/spec/models/pokemon_detail_sprites_spec.rb +36 -0
- data/spec/models/pokemon_detail_types_inner_spec.rb +42 -0
- data/spec/models/pokemon_dex_entry_spec.rb +42 -0
- data/spec/models/pokemon_form_detail_form_names_inner_spec.rb +42 -0
- data/spec/models/pokemon_form_detail_spec.rb +114 -0
- data/spec/models/pokemon_form_detail_sprites_spec.rb +36 -0
- data/spec/models/pokemon_form_summary_spec.rb +42 -0
- data/spec/models/pokemon_game_index_spec.rb +42 -0
- data/spec/models/pokemon_habitat_detail_spec.rb +54 -0
- data/spec/models/pokemon_habitat_name_spec.rb +42 -0
- data/spec/models/pokemon_habitat_summary_spec.rb +42 -0
- data/spec/models/pokemon_shape_detail_awesome_names_inner_spec.rb +42 -0
- data/spec/models/pokemon_shape_detail_names_inner_spec.rb +42 -0
- data/spec/models/pokemon_shape_detail_spec.rb +60 -0
- data/spec/models/pokemon_shape_summary_spec.rb +42 -0
- data/spec/models/pokemon_species_description_spec.rb +42 -0
- data/spec/models/pokemon_species_detail_genera_inner_spec.rb +42 -0
- data/spec/models/pokemon_species_detail_pal_park_encounters_inner_spec.rb +48 -0
- data/spec/models/pokemon_species_detail_spec.rb +192 -0
- data/spec/models/pokemon_species_detail_varieties_inner_spec.rb +42 -0
- data/spec/models/pokemon_species_flavor_text_spec.rb +48 -0
- data/spec/models/pokemon_species_summary_spec.rb +42 -0
- data/spec/models/pokemon_stat_spec.rb +48 -0
- data/spec/models/pokemon_summary_spec.rb +42 -0
- data/spec/models/region_detail_spec.rb +72 -0
- data/spec/models/region_name_spec.rb +42 -0
- data/spec/models/region_summary_spec.rb +42 -0
- data/spec/models/stat_detail_affecting_moves_increase_inner_spec.rb +42 -0
- data/spec/models/stat_detail_affecting_moves_spec.rb +42 -0
- data/spec/models/stat_detail_affecting_natures_spec.rb +42 -0
- data/spec/models/stat_detail_spec.rb +84 -0
- data/spec/models/stat_name_spec.rb +42 -0
- data/spec/models/stat_summary_spec.rb +42 -0
- data/spec/models/super_contest_effect_detail_spec.rb +54 -0
- data/spec/models/super_contest_effect_flavor_text_spec.rb +42 -0
- data/spec/models/super_contest_effect_summary_spec.rb +36 -0
- data/spec/models/type_detail_damage_relations_spec.rb +66 -0
- data/spec/models/type_detail_past_damage_relations_inner_damage_relations_spec.rb +66 -0
- data/spec/models/type_detail_past_damage_relations_inner_spec.rb +42 -0
- data/spec/models/type_detail_pokemon_inner_pokemon_spec.rb +42 -0
- data/spec/models/type_detail_pokemon_inner_spec.rb +42 -0
- data/spec/models/type_detail_spec.rb +96 -0
- data/spec/models/type_detail_sprites_value_value_spec.rb +36 -0
- data/spec/models/type_game_index_spec.rb +42 -0
- data/spec/models/type_summary_spec.rb +42 -0
- data/spec/models/version_detail_spec.rb +54 -0
- data/spec/models/version_group_detail_spec.rb +78 -0
- data/spec/models/version_group_summary_spec.rb +42 -0
- data/spec/models/version_name_spec.rb +42 -0
- data/spec/models/version_summary_spec.rb +42 -0
- data/spec/spec_helper.rb +4 -4
- metadata +1125 -193
- data/bin/bundle +0 -109
- data/docs/AbilityApi.md +0 -137
- data/docs/BerryApi.md +0 -137
- data/docs/BerryFirmnessApi.md +0 -137
- data/docs/BerryFlavorApi.md +0 -137
- data/docs/CharacteristicApi.md +0 -137
- data/docs/ContestEffectApi.md +0 -137
- data/docs/ContestTypeApi.md +0 -137
- data/docs/EggGroupApi.md +0 -137
- data/docs/EncounterConditionApi.md +0 -137
- data/docs/EncounterConditionValueApi.md +0 -137
- data/docs/EncounterMethodApi.md +0 -137
- data/docs/EvolutionChainApi.md +0 -137
- data/docs/EvolutionTriggerApi.md +0 -137
- data/docs/GenderApi.md +0 -137
- data/docs/GenerationApi.md +0 -137
- data/docs/GrowthRateApi.md +0 -137
- data/docs/ItemApi.md +0 -137
- data/docs/ItemAttributeApi.md +0 -137
- data/docs/ItemCategoryApi.md +0 -137
- data/docs/ItemFlingEffectApi.md +0 -137
- data/docs/ItemPocketApi.md +0 -137
- data/docs/LanguageApi.md +0 -137
- data/docs/LocationAreaApi.md +0 -137
- data/docs/MachineApi.md +0 -137
- data/docs/MoveAilmentApi.md +0 -137
- data/docs/MoveApi.md +0 -137
- data/docs/MoveBattleStyleApi.md +0 -137
- data/docs/MoveCategoryApi.md +0 -137
- data/docs/MoveDamageClassApi.md +0 -137
- data/docs/MoveLearnMethodApi.md +0 -137
- data/docs/MoveTargetApi.md +0 -137
- data/docs/NatureApi.md +0 -137
- data/docs/PalParkAreaApi.md +0 -137
- data/docs/PokeathlonStatApi.md +0 -137
- data/docs/PokedexApi.md +0 -137
- data/docs/PokemonColorApi.md +0 -137
- data/docs/PokemonFormApi.md +0 -137
- data/docs/PokemonHabitatApi.md +0 -137
- data/docs/PokemonShapeApi.md +0 -137
- data/docs/PokemonSpeciesApi.md +0 -137
- data/docs/RegionApi.md +0 -137
- data/docs/StatApi.md +0 -137
- data/docs/SuperContestEffectApi.md +0 -137
- data/docs/TypeApi.md +0 -137
- data/docs/VersionApi.md +0 -137
- data/docs/VersionGroupApi.md +0 -137
- data/lib/pokeapi_client/api/ability_api.rb +0 -140
- data/lib/pokeapi_client/api/berry_api.rb +0 -140
- data/lib/pokeapi_client/api/berry_firmness_api.rb +0 -140
- data/lib/pokeapi_client/api/berry_flavor_api.rb +0 -140
- data/lib/pokeapi_client/api/characteristic_api.rb +0 -140
- data/lib/pokeapi_client/api/contest_effect_api.rb +0 -140
- data/lib/pokeapi_client/api/contest_type_api.rb +0 -140
- data/lib/pokeapi_client/api/egg_group_api.rb +0 -140
- data/lib/pokeapi_client/api/encounter_condition_api.rb +0 -140
- data/lib/pokeapi_client/api/encounter_condition_value_api.rb +0 -140
- data/lib/pokeapi_client/api/encounter_method_api.rb +0 -140
- data/lib/pokeapi_client/api/evolution_chain_api.rb +0 -140
- data/lib/pokeapi_client/api/evolution_trigger_api.rb +0 -140
- data/lib/pokeapi_client/api/gender_api.rb +0 -140
- data/lib/pokeapi_client/api/generation_api.rb +0 -140
- data/lib/pokeapi_client/api/growth_rate_api.rb +0 -140
- data/lib/pokeapi_client/api/item_api.rb +0 -140
- data/lib/pokeapi_client/api/item_attribute_api.rb +0 -140
- data/lib/pokeapi_client/api/item_category_api.rb +0 -140
- data/lib/pokeapi_client/api/item_fling_effect_api.rb +0 -140
- data/lib/pokeapi_client/api/item_pocket_api.rb +0 -140
- data/lib/pokeapi_client/api/language_api.rb +0 -140
- data/lib/pokeapi_client/api/location_area_api.rb +0 -140
- data/lib/pokeapi_client/api/machine_api.rb +0 -140
- data/lib/pokeapi_client/api/move_ailment_api.rb +0 -140
- data/lib/pokeapi_client/api/move_api.rb +0 -140
- data/lib/pokeapi_client/api/move_battle_style_api.rb +0 -140
- data/lib/pokeapi_client/api/move_category_api.rb +0 -140
- data/lib/pokeapi_client/api/move_damage_class_api.rb +0 -140
- data/lib/pokeapi_client/api/move_learn_method_api.rb +0 -140
- data/lib/pokeapi_client/api/move_target_api.rb +0 -140
- data/lib/pokeapi_client/api/nature_api.rb +0 -140
- data/lib/pokeapi_client/api/pal_park_area_api.rb +0 -140
- data/lib/pokeapi_client/api/pokeathlon_stat_api.rb +0 -140
- data/lib/pokeapi_client/api/pokedex_api.rb +0 -140
- data/lib/pokeapi_client/api/pokemon_color_api.rb +0 -140
- data/lib/pokeapi_client/api/pokemon_form_api.rb +0 -140
- data/lib/pokeapi_client/api/pokemon_habitat_api.rb +0 -140
- data/lib/pokeapi_client/api/pokemon_shape_api.rb +0 -140
- data/lib/pokeapi_client/api/pokemon_species_api.rb +0 -140
- data/lib/pokeapi_client/api/region_api.rb +0 -140
- data/lib/pokeapi_client/api/stat_api.rb +0 -140
- data/lib/pokeapi_client/api/super_contest_effect_api.rb +0 -140
- data/lib/pokeapi_client/api/type_api.rb +0 -140
- data/lib/pokeapi_client/api/version_api.rb +0 -140
- data/lib/pokeapi_client/api/version_group_api.rb +0 -140
- data/spec/api/ability_api_spec.rb +0 -56
- data/spec/api/berry_api_spec.rb +0 -56
- data/spec/api/berry_firmness_api_spec.rb +0 -56
- data/spec/api/berry_flavor_api_spec.rb +0 -56
- data/spec/api/characteristic_api_spec.rb +0 -56
- data/spec/api/contest_effect_api_spec.rb +0 -56
- data/spec/api/contest_type_api_spec.rb +0 -56
- data/spec/api/egg_group_api_spec.rb +0 -56
- data/spec/api/encounter_condition_api_spec.rb +0 -56
- data/spec/api/encounter_condition_value_api_spec.rb +0 -56
- data/spec/api/encounter_method_api_spec.rb +0 -56
- data/spec/api/evolution_chain_api_spec.rb +0 -56
- data/spec/api/evolution_trigger_api_spec.rb +0 -56
- data/spec/api/gender_api_spec.rb +0 -56
- data/spec/api/generation_api_spec.rb +0 -56
- data/spec/api/growth_rate_api_spec.rb +0 -56
- data/spec/api/item_api_spec.rb +0 -56
- data/spec/api/item_attribute_api_spec.rb +0 -56
- data/spec/api/item_category_api_spec.rb +0 -56
- data/spec/api/item_fling_effect_api_spec.rb +0 -56
- data/spec/api/item_pocket_api_spec.rb +0 -56
- data/spec/api/language_api_spec.rb +0 -56
- data/spec/api/location_area_api_spec.rb +0 -56
- data/spec/api/machine_api_spec.rb +0 -56
- data/spec/api/move_ailment_api_spec.rb +0 -56
- data/spec/api/move_api_spec.rb +0 -56
- data/spec/api/move_battle_style_api_spec.rb +0 -56
- data/spec/api/move_category_api_spec.rb +0 -56
- data/spec/api/move_damage_class_api_spec.rb +0 -56
- data/spec/api/move_learn_method_api_spec.rb +0 -56
- data/spec/api/move_target_api_spec.rb +0 -56
- data/spec/api/nature_api_spec.rb +0 -56
- data/spec/api/pal_park_area_api_spec.rb +0 -56
- data/spec/api/pokeathlon_stat_api_spec.rb +0 -56
- data/spec/api/pokedex_api_spec.rb +0 -56
- data/spec/api/pokemon_color_api_spec.rb +0 -56
- data/spec/api/pokemon_form_api_spec.rb +0 -56
- data/spec/api/pokemon_habitat_api_spec.rb +0 -56
- data/spec/api/pokemon_shape_api_spec.rb +0 -56
- data/spec/api/pokemon_species_api_spec.rb +0 -56
- data/spec/api/region_api_spec.rb +0 -56
- data/spec/api/stat_api_spec.rb +0 -56
- data/spec/api/super_contest_effect_api_spec.rb +0 -56
- data/spec/api/type_api_spec.rb +0 -56
- data/spec/api/version_api_spec.rb +0 -56
- data/spec/api/version_group_api_spec.rb +0 -56
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
=begin
|
|
2
|
-
#
|
|
2
|
+
#PokéAPI
|
|
3
3
|
|
|
4
|
-
#
|
|
4
|
+
#All the Pokémon data you'll ever need in one place, easily accessible through a modern free open-source RESTful API. ## What is this? This is a full RESTful API linked to an extensive database detailing everything about the Pokémon main game series. We've covered everything from Pokémon to Berry Flavors. ## Where do I start? We have awesome [documentation](https://pokeapi.co/docs/v2) on how to use this API. It takes minutes to get started. This API will always be publicly available and will never require any extensive setup process to consume. Created by [**Paul Hallett**(]https://github.com/phalt) and other [**PokéAPI contributors***](https://github.com/PokeAPI/pokeapi#contributing) around the world. Pokémon and Pokémon character names are trademarks of Nintendo.
|
|
5
5
|
|
|
6
|
-
The version of the OpenAPI document:
|
|
6
|
+
The version of the OpenAPI document: 2.7.0
|
|
7
7
|
Contact: blah+oapicf@cliffano.com
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
|
-
Generator version: 7.
|
|
9
|
+
Generator version: 7.18.0
|
|
10
10
|
|
|
11
11
|
=end
|
|
12
12
|
|
|
@@ -19,35 +19,1715 @@ module PokeApiClient
|
|
|
19
19
|
def initialize(api_client = ApiClient.default)
|
|
20
20
|
@api_client = api_client
|
|
21
21
|
end
|
|
22
|
+
# Abilities provide passive effects for Pokémon in battle or in the overworld. Pokémon have multiple possible abilities but can have only one ability at a time. Check out [Bulbapedia](http://bulbapedia.bulbagarden.net/wiki/Ability) for greater detail.
|
|
22
23
|
# @param [Hash] opts the optional parameters
|
|
23
|
-
# @option opts [Integer] :limit
|
|
24
|
-
# @option opts [Integer] :offset
|
|
25
|
-
# @
|
|
24
|
+
# @option opts [Integer] :limit Number of results to return per page.
|
|
25
|
+
# @option opts [Integer] :offset The initial index from which to return the results.
|
|
26
|
+
# @option opts [String] :q > Only available locally and not at [pokeapi.co](https://pokeapi.co/docs/v2) Case-insensitive query applied on the `name` property.
|
|
27
|
+
# @return [PaginatedAbilitySummaryList]
|
|
28
|
+
def ability_list(opts = {})
|
|
29
|
+
data, _status_code, _headers = ability_list_with_http_info(opts)
|
|
30
|
+
data
|
|
31
|
+
end
|
|
32
|
+
|
|
33
|
+
# Abilities provide passive effects for Pokémon in battle or in the overworld. Pokémon have multiple possible abilities but can have only one ability at a time. Check out [Bulbapedia](http://bulbapedia.bulbagarden.net/wiki/Ability) for greater detail.
|
|
34
|
+
# @param [Hash] opts the optional parameters
|
|
35
|
+
# @option opts [Integer] :limit Number of results to return per page.
|
|
36
|
+
# @option opts [Integer] :offset The initial index from which to return the results.
|
|
37
|
+
# @option opts [String] :q > Only available locally and not at [pokeapi.co](https://pokeapi.co/docs/v2) Case-insensitive query applied on the `name` property.
|
|
38
|
+
# @return [Array<(PaginatedAbilitySummaryList, Integer, Hash)>] PaginatedAbilitySummaryList data, response status code and response headers
|
|
39
|
+
def ability_list_with_http_info(opts = {})
|
|
40
|
+
if @api_client.config.debugging
|
|
41
|
+
@api_client.config.logger.debug 'Calling API: PokemonApi.ability_list ...'
|
|
42
|
+
end
|
|
43
|
+
# resource path
|
|
44
|
+
local_var_path = '/api/v2/ability/'
|
|
45
|
+
|
|
46
|
+
# query parameters
|
|
47
|
+
query_params = opts[:query_params] || {}
|
|
48
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
|
49
|
+
query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
|
|
50
|
+
query_params[:'q'] = opts[:'q'] if !opts[:'q'].nil?
|
|
51
|
+
|
|
52
|
+
# header parameters
|
|
53
|
+
header_params = opts[:header_params] || {}
|
|
54
|
+
# HTTP header 'Accept' (if needed)
|
|
55
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
56
|
+
|
|
57
|
+
# form parameters
|
|
58
|
+
form_params = opts[:form_params] || {}
|
|
59
|
+
|
|
60
|
+
# http body (model)
|
|
61
|
+
post_body = opts[:debug_body]
|
|
62
|
+
|
|
63
|
+
# return_type
|
|
64
|
+
return_type = opts[:debug_return_type] || 'PaginatedAbilitySummaryList'
|
|
65
|
+
|
|
66
|
+
# auth_names
|
|
67
|
+
auth_names = opts[:debug_auth_names] || ['basicAuth', 'cookieAuth']
|
|
68
|
+
|
|
69
|
+
new_options = opts.merge(
|
|
70
|
+
:operation => :"PokemonApi.ability_list",
|
|
71
|
+
:header_params => header_params,
|
|
72
|
+
:query_params => query_params,
|
|
73
|
+
:form_params => form_params,
|
|
74
|
+
:body => post_body,
|
|
75
|
+
:auth_names => auth_names,
|
|
76
|
+
:return_type => return_type
|
|
77
|
+
)
|
|
78
|
+
|
|
79
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
80
|
+
if @api_client.config.debugging
|
|
81
|
+
@api_client.config.logger.debug "API called: PokemonApi#ability_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
82
|
+
end
|
|
83
|
+
return data, status_code, headers
|
|
84
|
+
end
|
|
85
|
+
|
|
86
|
+
# Abilities provide passive effects for Pokémon in battle or in the overworld. Pokémon have multiple possible abilities but can have only one ability at a time. Check out [Bulbapedia](http://bulbapedia.bulbagarden.net/wiki/Ability) for greater detail.
|
|
87
|
+
# @param id [String] This parameter can be a string or an integer.
|
|
88
|
+
# @param [Hash] opts the optional parameters
|
|
89
|
+
# @return [AbilityDetail]
|
|
90
|
+
def ability_retrieve(id, opts = {})
|
|
91
|
+
data, _status_code, _headers = ability_retrieve_with_http_info(id, opts)
|
|
92
|
+
data
|
|
93
|
+
end
|
|
94
|
+
|
|
95
|
+
# Abilities provide passive effects for Pokémon in battle or in the overworld. Pokémon have multiple possible abilities but can have only one ability at a time. Check out [Bulbapedia](http://bulbapedia.bulbagarden.net/wiki/Ability) for greater detail.
|
|
96
|
+
# @param id [String] This parameter can be a string or an integer.
|
|
97
|
+
# @param [Hash] opts the optional parameters
|
|
98
|
+
# @return [Array<(AbilityDetail, Integer, Hash)>] AbilityDetail data, response status code and response headers
|
|
99
|
+
def ability_retrieve_with_http_info(id, opts = {})
|
|
100
|
+
if @api_client.config.debugging
|
|
101
|
+
@api_client.config.logger.debug 'Calling API: PokemonApi.ability_retrieve ...'
|
|
102
|
+
end
|
|
103
|
+
# verify the required parameter 'id' is set
|
|
104
|
+
if @api_client.config.client_side_validation && id.nil?
|
|
105
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling PokemonApi.ability_retrieve"
|
|
106
|
+
end
|
|
107
|
+
# resource path
|
|
108
|
+
local_var_path = '/api/v2/ability/{id}/'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
|
109
|
+
|
|
110
|
+
# query parameters
|
|
111
|
+
query_params = opts[:query_params] || {}
|
|
112
|
+
|
|
113
|
+
# header parameters
|
|
114
|
+
header_params = opts[:header_params] || {}
|
|
115
|
+
# HTTP header 'Accept' (if needed)
|
|
116
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
117
|
+
|
|
118
|
+
# form parameters
|
|
119
|
+
form_params = opts[:form_params] || {}
|
|
120
|
+
|
|
121
|
+
# http body (model)
|
|
122
|
+
post_body = opts[:debug_body]
|
|
123
|
+
|
|
124
|
+
# return_type
|
|
125
|
+
return_type = opts[:debug_return_type] || 'AbilityDetail'
|
|
126
|
+
|
|
127
|
+
# auth_names
|
|
128
|
+
auth_names = opts[:debug_auth_names] || ['basicAuth', 'cookieAuth']
|
|
129
|
+
|
|
130
|
+
new_options = opts.merge(
|
|
131
|
+
:operation => :"PokemonApi.ability_retrieve",
|
|
132
|
+
:header_params => header_params,
|
|
133
|
+
:query_params => query_params,
|
|
134
|
+
:form_params => form_params,
|
|
135
|
+
:body => post_body,
|
|
136
|
+
:auth_names => auth_names,
|
|
137
|
+
:return_type => return_type
|
|
138
|
+
)
|
|
139
|
+
|
|
140
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
141
|
+
if @api_client.config.debugging
|
|
142
|
+
@api_client.config.logger.debug "API called: PokemonApi#ability_retrieve\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
143
|
+
end
|
|
144
|
+
return data, status_code, headers
|
|
145
|
+
end
|
|
146
|
+
|
|
147
|
+
# List charecterictics
|
|
148
|
+
# Characteristics indicate which stat contains a Pokémon's highest IV. A Pokémon's Characteristic is determined by the remainder of its highest IV divided by 5 (gene_modulo). Check out [Bulbapedia](http://bulbapedia.bulbagarden.net/wiki/Characteristic) for greater detail.
|
|
149
|
+
# @param [Hash] opts the optional parameters
|
|
150
|
+
# @option opts [Integer] :limit Number of results to return per page.
|
|
151
|
+
# @option opts [Integer] :offset The initial index from which to return the results.
|
|
152
|
+
# @option opts [String] :q > Only available locally and not at [pokeapi.co](https://pokeapi.co/docs/v2) Case-insensitive query applied on the `name` property.
|
|
153
|
+
# @return [PaginatedCharacteristicSummaryList]
|
|
154
|
+
def characteristic_list(opts = {})
|
|
155
|
+
data, _status_code, _headers = characteristic_list_with_http_info(opts)
|
|
156
|
+
data
|
|
157
|
+
end
|
|
158
|
+
|
|
159
|
+
# List charecterictics
|
|
160
|
+
# Characteristics indicate which stat contains a Pokémon's highest IV. A Pokémon's Characteristic is determined by the remainder of its highest IV divided by 5 (gene_modulo). Check out [Bulbapedia](http://bulbapedia.bulbagarden.net/wiki/Characteristic) for greater detail.
|
|
161
|
+
# @param [Hash] opts the optional parameters
|
|
162
|
+
# @option opts [Integer] :limit Number of results to return per page.
|
|
163
|
+
# @option opts [Integer] :offset The initial index from which to return the results.
|
|
164
|
+
# @option opts [String] :q > Only available locally and not at [pokeapi.co](https://pokeapi.co/docs/v2) Case-insensitive query applied on the `name` property.
|
|
165
|
+
# @return [Array<(PaginatedCharacteristicSummaryList, Integer, Hash)>] PaginatedCharacteristicSummaryList data, response status code and response headers
|
|
166
|
+
def characteristic_list_with_http_info(opts = {})
|
|
167
|
+
if @api_client.config.debugging
|
|
168
|
+
@api_client.config.logger.debug 'Calling API: PokemonApi.characteristic_list ...'
|
|
169
|
+
end
|
|
170
|
+
# resource path
|
|
171
|
+
local_var_path = '/api/v2/characteristic/'
|
|
172
|
+
|
|
173
|
+
# query parameters
|
|
174
|
+
query_params = opts[:query_params] || {}
|
|
175
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
|
176
|
+
query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
|
|
177
|
+
query_params[:'q'] = opts[:'q'] if !opts[:'q'].nil?
|
|
178
|
+
|
|
179
|
+
# header parameters
|
|
180
|
+
header_params = opts[:header_params] || {}
|
|
181
|
+
# HTTP header 'Accept' (if needed)
|
|
182
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
183
|
+
|
|
184
|
+
# form parameters
|
|
185
|
+
form_params = opts[:form_params] || {}
|
|
186
|
+
|
|
187
|
+
# http body (model)
|
|
188
|
+
post_body = opts[:debug_body]
|
|
189
|
+
|
|
190
|
+
# return_type
|
|
191
|
+
return_type = opts[:debug_return_type] || 'PaginatedCharacteristicSummaryList'
|
|
192
|
+
|
|
193
|
+
# auth_names
|
|
194
|
+
auth_names = opts[:debug_auth_names] || ['basicAuth', 'cookieAuth']
|
|
195
|
+
|
|
196
|
+
new_options = opts.merge(
|
|
197
|
+
:operation => :"PokemonApi.characteristic_list",
|
|
198
|
+
:header_params => header_params,
|
|
199
|
+
:query_params => query_params,
|
|
200
|
+
:form_params => form_params,
|
|
201
|
+
:body => post_body,
|
|
202
|
+
:auth_names => auth_names,
|
|
203
|
+
:return_type => return_type
|
|
204
|
+
)
|
|
205
|
+
|
|
206
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
207
|
+
if @api_client.config.debugging
|
|
208
|
+
@api_client.config.logger.debug "API called: PokemonApi#characteristic_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
209
|
+
end
|
|
210
|
+
return data, status_code, headers
|
|
211
|
+
end
|
|
212
|
+
|
|
213
|
+
# Get characteristic
|
|
214
|
+
# Characteristics indicate which stat contains a Pokémon's highest IV. A Pokémon's Characteristic is determined by the remainder of its highest IV divided by 5 (gene_modulo). Check out [Bulbapedia](http://bulbapedia.bulbagarden.net/wiki/Characteristic) for greater detail.
|
|
215
|
+
# @param id [String] This parameter can be a string or an integer.
|
|
216
|
+
# @param [Hash] opts the optional parameters
|
|
217
|
+
# @return [CharacteristicDetail]
|
|
218
|
+
def characteristic_retrieve(id, opts = {})
|
|
219
|
+
data, _status_code, _headers = characteristic_retrieve_with_http_info(id, opts)
|
|
220
|
+
data
|
|
221
|
+
end
|
|
222
|
+
|
|
223
|
+
# Get characteristic
|
|
224
|
+
# Characteristics indicate which stat contains a Pokémon's highest IV. A Pokémon's Characteristic is determined by the remainder of its highest IV divided by 5 (gene_modulo). Check out [Bulbapedia](http://bulbapedia.bulbagarden.net/wiki/Characteristic) for greater detail.
|
|
225
|
+
# @param id [String] This parameter can be a string or an integer.
|
|
226
|
+
# @param [Hash] opts the optional parameters
|
|
227
|
+
# @return [Array<(CharacteristicDetail, Integer, Hash)>] CharacteristicDetail data, response status code and response headers
|
|
228
|
+
def characteristic_retrieve_with_http_info(id, opts = {})
|
|
229
|
+
if @api_client.config.debugging
|
|
230
|
+
@api_client.config.logger.debug 'Calling API: PokemonApi.characteristic_retrieve ...'
|
|
231
|
+
end
|
|
232
|
+
# verify the required parameter 'id' is set
|
|
233
|
+
if @api_client.config.client_side_validation && id.nil?
|
|
234
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling PokemonApi.characteristic_retrieve"
|
|
235
|
+
end
|
|
236
|
+
# resource path
|
|
237
|
+
local_var_path = '/api/v2/characteristic/{id}/'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
|
238
|
+
|
|
239
|
+
# query parameters
|
|
240
|
+
query_params = opts[:query_params] || {}
|
|
241
|
+
|
|
242
|
+
# header parameters
|
|
243
|
+
header_params = opts[:header_params] || {}
|
|
244
|
+
# HTTP header 'Accept' (if needed)
|
|
245
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
246
|
+
|
|
247
|
+
# form parameters
|
|
248
|
+
form_params = opts[:form_params] || {}
|
|
249
|
+
|
|
250
|
+
# http body (model)
|
|
251
|
+
post_body = opts[:debug_body]
|
|
252
|
+
|
|
253
|
+
# return_type
|
|
254
|
+
return_type = opts[:debug_return_type] || 'CharacteristicDetail'
|
|
255
|
+
|
|
256
|
+
# auth_names
|
|
257
|
+
auth_names = opts[:debug_auth_names] || ['basicAuth', 'cookieAuth']
|
|
258
|
+
|
|
259
|
+
new_options = opts.merge(
|
|
260
|
+
:operation => :"PokemonApi.characteristic_retrieve",
|
|
261
|
+
:header_params => header_params,
|
|
262
|
+
:query_params => query_params,
|
|
263
|
+
:form_params => form_params,
|
|
264
|
+
:body => post_body,
|
|
265
|
+
:auth_names => auth_names,
|
|
266
|
+
:return_type => return_type
|
|
267
|
+
)
|
|
268
|
+
|
|
269
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
270
|
+
if @api_client.config.debugging
|
|
271
|
+
@api_client.config.logger.debug "API called: PokemonApi#characteristic_retrieve\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
272
|
+
end
|
|
273
|
+
return data, status_code, headers
|
|
274
|
+
end
|
|
275
|
+
|
|
276
|
+
# List egg groups
|
|
277
|
+
# Egg Groups are categories which determine which Pokémon are able to interbreed. Pokémon may belong to either one or two Egg Groups. Check out [Bulbapedia](http://bulbapedia.bulbagarden.net/wiki/Egg_Group) for greater detail.
|
|
278
|
+
# @param [Hash] opts the optional parameters
|
|
279
|
+
# @option opts [Integer] :limit Number of results to return per page.
|
|
280
|
+
# @option opts [Integer] :offset The initial index from which to return the results.
|
|
281
|
+
# @option opts [String] :q > Only available locally and not at [pokeapi.co](https://pokeapi.co/docs/v2) Case-insensitive query applied on the `name` property.
|
|
282
|
+
# @return [PaginatedEggGroupSummaryList]
|
|
283
|
+
def egg_group_list(opts = {})
|
|
284
|
+
data, _status_code, _headers = egg_group_list_with_http_info(opts)
|
|
285
|
+
data
|
|
286
|
+
end
|
|
287
|
+
|
|
288
|
+
# List egg groups
|
|
289
|
+
# Egg Groups are categories which determine which Pokémon are able to interbreed. Pokémon may belong to either one or two Egg Groups. Check out [Bulbapedia](http://bulbapedia.bulbagarden.net/wiki/Egg_Group) for greater detail.
|
|
290
|
+
# @param [Hash] opts the optional parameters
|
|
291
|
+
# @option opts [Integer] :limit Number of results to return per page.
|
|
292
|
+
# @option opts [Integer] :offset The initial index from which to return the results.
|
|
293
|
+
# @option opts [String] :q > Only available locally and not at [pokeapi.co](https://pokeapi.co/docs/v2) Case-insensitive query applied on the `name` property.
|
|
294
|
+
# @return [Array<(PaginatedEggGroupSummaryList, Integer, Hash)>] PaginatedEggGroupSummaryList data, response status code and response headers
|
|
295
|
+
def egg_group_list_with_http_info(opts = {})
|
|
296
|
+
if @api_client.config.debugging
|
|
297
|
+
@api_client.config.logger.debug 'Calling API: PokemonApi.egg_group_list ...'
|
|
298
|
+
end
|
|
299
|
+
# resource path
|
|
300
|
+
local_var_path = '/api/v2/egg-group/'
|
|
301
|
+
|
|
302
|
+
# query parameters
|
|
303
|
+
query_params = opts[:query_params] || {}
|
|
304
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
|
305
|
+
query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
|
|
306
|
+
query_params[:'q'] = opts[:'q'] if !opts[:'q'].nil?
|
|
307
|
+
|
|
308
|
+
# header parameters
|
|
309
|
+
header_params = opts[:header_params] || {}
|
|
310
|
+
# HTTP header 'Accept' (if needed)
|
|
311
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
312
|
+
|
|
313
|
+
# form parameters
|
|
314
|
+
form_params = opts[:form_params] || {}
|
|
315
|
+
|
|
316
|
+
# http body (model)
|
|
317
|
+
post_body = opts[:debug_body]
|
|
318
|
+
|
|
319
|
+
# return_type
|
|
320
|
+
return_type = opts[:debug_return_type] || 'PaginatedEggGroupSummaryList'
|
|
321
|
+
|
|
322
|
+
# auth_names
|
|
323
|
+
auth_names = opts[:debug_auth_names] || ['basicAuth', 'cookieAuth']
|
|
324
|
+
|
|
325
|
+
new_options = opts.merge(
|
|
326
|
+
:operation => :"PokemonApi.egg_group_list",
|
|
327
|
+
:header_params => header_params,
|
|
328
|
+
:query_params => query_params,
|
|
329
|
+
:form_params => form_params,
|
|
330
|
+
:body => post_body,
|
|
331
|
+
:auth_names => auth_names,
|
|
332
|
+
:return_type => return_type
|
|
333
|
+
)
|
|
334
|
+
|
|
335
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
336
|
+
if @api_client.config.debugging
|
|
337
|
+
@api_client.config.logger.debug "API called: PokemonApi#egg_group_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
338
|
+
end
|
|
339
|
+
return data, status_code, headers
|
|
340
|
+
end
|
|
341
|
+
|
|
342
|
+
# Get egg group
|
|
343
|
+
# Egg Groups are categories which determine which Pokémon are able to interbreed. Pokémon may belong to either one or two Egg Groups. Check out [Bulbapedia](http://bulbapedia.bulbagarden.net/wiki/Egg_Group) for greater detail.
|
|
344
|
+
# @param id [String] This parameter can be a string or an integer.
|
|
345
|
+
# @param [Hash] opts the optional parameters
|
|
346
|
+
# @return [EggGroupDetail]
|
|
347
|
+
def egg_group_retrieve(id, opts = {})
|
|
348
|
+
data, _status_code, _headers = egg_group_retrieve_with_http_info(id, opts)
|
|
349
|
+
data
|
|
350
|
+
end
|
|
351
|
+
|
|
352
|
+
# Get egg group
|
|
353
|
+
# Egg Groups are categories which determine which Pokémon are able to interbreed. Pokémon may belong to either one or two Egg Groups. Check out [Bulbapedia](http://bulbapedia.bulbagarden.net/wiki/Egg_Group) for greater detail.
|
|
354
|
+
# @param id [String] This parameter can be a string or an integer.
|
|
355
|
+
# @param [Hash] opts the optional parameters
|
|
356
|
+
# @return [Array<(EggGroupDetail, Integer, Hash)>] EggGroupDetail data, response status code and response headers
|
|
357
|
+
def egg_group_retrieve_with_http_info(id, opts = {})
|
|
358
|
+
if @api_client.config.debugging
|
|
359
|
+
@api_client.config.logger.debug 'Calling API: PokemonApi.egg_group_retrieve ...'
|
|
360
|
+
end
|
|
361
|
+
# verify the required parameter 'id' is set
|
|
362
|
+
if @api_client.config.client_side_validation && id.nil?
|
|
363
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling PokemonApi.egg_group_retrieve"
|
|
364
|
+
end
|
|
365
|
+
# resource path
|
|
366
|
+
local_var_path = '/api/v2/egg-group/{id}/'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
|
367
|
+
|
|
368
|
+
# query parameters
|
|
369
|
+
query_params = opts[:query_params] || {}
|
|
370
|
+
|
|
371
|
+
# header parameters
|
|
372
|
+
header_params = opts[:header_params] || {}
|
|
373
|
+
# HTTP header 'Accept' (if needed)
|
|
374
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
375
|
+
|
|
376
|
+
# form parameters
|
|
377
|
+
form_params = opts[:form_params] || {}
|
|
378
|
+
|
|
379
|
+
# http body (model)
|
|
380
|
+
post_body = opts[:debug_body]
|
|
381
|
+
|
|
382
|
+
# return_type
|
|
383
|
+
return_type = opts[:debug_return_type] || 'EggGroupDetail'
|
|
384
|
+
|
|
385
|
+
# auth_names
|
|
386
|
+
auth_names = opts[:debug_auth_names] || ['basicAuth', 'cookieAuth']
|
|
387
|
+
|
|
388
|
+
new_options = opts.merge(
|
|
389
|
+
:operation => :"PokemonApi.egg_group_retrieve",
|
|
390
|
+
:header_params => header_params,
|
|
391
|
+
:query_params => query_params,
|
|
392
|
+
:form_params => form_params,
|
|
393
|
+
:body => post_body,
|
|
394
|
+
:auth_names => auth_names,
|
|
395
|
+
:return_type => return_type
|
|
396
|
+
)
|
|
397
|
+
|
|
398
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
399
|
+
if @api_client.config.debugging
|
|
400
|
+
@api_client.config.logger.debug "API called: PokemonApi#egg_group_retrieve\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
401
|
+
end
|
|
402
|
+
return data, status_code, headers
|
|
403
|
+
end
|
|
404
|
+
|
|
405
|
+
# List genders
|
|
406
|
+
# Genders were introduced in Generation II for the purposes of breeding Pokémon but can also result in visual differences or even different evolutionary lines. Check out [Bulbapedia](http://bulbapedia.bulbagarden.net/wiki/Gender) for greater detail.
|
|
407
|
+
# @param [Hash] opts the optional parameters
|
|
408
|
+
# @option opts [Integer] :limit Number of results to return per page.
|
|
409
|
+
# @option opts [Integer] :offset The initial index from which to return the results.
|
|
410
|
+
# @option opts [String] :q > Only available locally and not at [pokeapi.co](https://pokeapi.co/docs/v2) Case-insensitive query applied on the `name` property.
|
|
411
|
+
# @return [PaginatedGenderSummaryList]
|
|
412
|
+
def gender_list(opts = {})
|
|
413
|
+
data, _status_code, _headers = gender_list_with_http_info(opts)
|
|
414
|
+
data
|
|
415
|
+
end
|
|
416
|
+
|
|
417
|
+
# List genders
|
|
418
|
+
# Genders were introduced in Generation II for the purposes of breeding Pokémon but can also result in visual differences or even different evolutionary lines. Check out [Bulbapedia](http://bulbapedia.bulbagarden.net/wiki/Gender) for greater detail.
|
|
419
|
+
# @param [Hash] opts the optional parameters
|
|
420
|
+
# @option opts [Integer] :limit Number of results to return per page.
|
|
421
|
+
# @option opts [Integer] :offset The initial index from which to return the results.
|
|
422
|
+
# @option opts [String] :q > Only available locally and not at [pokeapi.co](https://pokeapi.co/docs/v2) Case-insensitive query applied on the `name` property.
|
|
423
|
+
# @return [Array<(PaginatedGenderSummaryList, Integer, Hash)>] PaginatedGenderSummaryList data, response status code and response headers
|
|
424
|
+
def gender_list_with_http_info(opts = {})
|
|
425
|
+
if @api_client.config.debugging
|
|
426
|
+
@api_client.config.logger.debug 'Calling API: PokemonApi.gender_list ...'
|
|
427
|
+
end
|
|
428
|
+
# resource path
|
|
429
|
+
local_var_path = '/api/v2/gender/'
|
|
430
|
+
|
|
431
|
+
# query parameters
|
|
432
|
+
query_params = opts[:query_params] || {}
|
|
433
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
|
434
|
+
query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
|
|
435
|
+
query_params[:'q'] = opts[:'q'] if !opts[:'q'].nil?
|
|
436
|
+
|
|
437
|
+
# header parameters
|
|
438
|
+
header_params = opts[:header_params] || {}
|
|
439
|
+
# HTTP header 'Accept' (if needed)
|
|
440
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
441
|
+
|
|
442
|
+
# form parameters
|
|
443
|
+
form_params = opts[:form_params] || {}
|
|
444
|
+
|
|
445
|
+
# http body (model)
|
|
446
|
+
post_body = opts[:debug_body]
|
|
447
|
+
|
|
448
|
+
# return_type
|
|
449
|
+
return_type = opts[:debug_return_type] || 'PaginatedGenderSummaryList'
|
|
450
|
+
|
|
451
|
+
# auth_names
|
|
452
|
+
auth_names = opts[:debug_auth_names] || ['basicAuth', 'cookieAuth']
|
|
453
|
+
|
|
454
|
+
new_options = opts.merge(
|
|
455
|
+
:operation => :"PokemonApi.gender_list",
|
|
456
|
+
:header_params => header_params,
|
|
457
|
+
:query_params => query_params,
|
|
458
|
+
:form_params => form_params,
|
|
459
|
+
:body => post_body,
|
|
460
|
+
:auth_names => auth_names,
|
|
461
|
+
:return_type => return_type
|
|
462
|
+
)
|
|
463
|
+
|
|
464
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
465
|
+
if @api_client.config.debugging
|
|
466
|
+
@api_client.config.logger.debug "API called: PokemonApi#gender_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
467
|
+
end
|
|
468
|
+
return data, status_code, headers
|
|
469
|
+
end
|
|
470
|
+
|
|
471
|
+
# Get gender
|
|
472
|
+
# Genders were introduced in Generation II for the purposes of breeding Pokémon but can also result in visual differences or even different evolutionary lines. Check out [Bulbapedia](http://bulbapedia.bulbagarden.net/wiki/Gender) for greater detail.
|
|
473
|
+
# @param id [String] This parameter can be a string or an integer.
|
|
474
|
+
# @param [Hash] opts the optional parameters
|
|
475
|
+
# @return [GenderDetail]
|
|
476
|
+
def gender_retrieve(id, opts = {})
|
|
477
|
+
data, _status_code, _headers = gender_retrieve_with_http_info(id, opts)
|
|
478
|
+
data
|
|
479
|
+
end
|
|
480
|
+
|
|
481
|
+
# Get gender
|
|
482
|
+
# Genders were introduced in Generation II for the purposes of breeding Pokémon but can also result in visual differences or even different evolutionary lines. Check out [Bulbapedia](http://bulbapedia.bulbagarden.net/wiki/Gender) for greater detail.
|
|
483
|
+
# @param id [String] This parameter can be a string or an integer.
|
|
484
|
+
# @param [Hash] opts the optional parameters
|
|
485
|
+
# @return [Array<(GenderDetail, Integer, Hash)>] GenderDetail data, response status code and response headers
|
|
486
|
+
def gender_retrieve_with_http_info(id, opts = {})
|
|
487
|
+
if @api_client.config.debugging
|
|
488
|
+
@api_client.config.logger.debug 'Calling API: PokemonApi.gender_retrieve ...'
|
|
489
|
+
end
|
|
490
|
+
# verify the required parameter 'id' is set
|
|
491
|
+
if @api_client.config.client_side_validation && id.nil?
|
|
492
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling PokemonApi.gender_retrieve"
|
|
493
|
+
end
|
|
494
|
+
# resource path
|
|
495
|
+
local_var_path = '/api/v2/gender/{id}/'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
|
496
|
+
|
|
497
|
+
# query parameters
|
|
498
|
+
query_params = opts[:query_params] || {}
|
|
499
|
+
|
|
500
|
+
# header parameters
|
|
501
|
+
header_params = opts[:header_params] || {}
|
|
502
|
+
# HTTP header 'Accept' (if needed)
|
|
503
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
504
|
+
|
|
505
|
+
# form parameters
|
|
506
|
+
form_params = opts[:form_params] || {}
|
|
507
|
+
|
|
508
|
+
# http body (model)
|
|
509
|
+
post_body = opts[:debug_body]
|
|
510
|
+
|
|
511
|
+
# return_type
|
|
512
|
+
return_type = opts[:debug_return_type] || 'GenderDetail'
|
|
513
|
+
|
|
514
|
+
# auth_names
|
|
515
|
+
auth_names = opts[:debug_auth_names] || ['basicAuth', 'cookieAuth']
|
|
516
|
+
|
|
517
|
+
new_options = opts.merge(
|
|
518
|
+
:operation => :"PokemonApi.gender_retrieve",
|
|
519
|
+
:header_params => header_params,
|
|
520
|
+
:query_params => query_params,
|
|
521
|
+
:form_params => form_params,
|
|
522
|
+
:body => post_body,
|
|
523
|
+
:auth_names => auth_names,
|
|
524
|
+
:return_type => return_type
|
|
525
|
+
)
|
|
526
|
+
|
|
527
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
528
|
+
if @api_client.config.debugging
|
|
529
|
+
@api_client.config.logger.debug "API called: PokemonApi#gender_retrieve\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
530
|
+
end
|
|
531
|
+
return data, status_code, headers
|
|
532
|
+
end
|
|
533
|
+
|
|
534
|
+
# List growth rates
|
|
535
|
+
# Growth rates are the speed with which Pokémon gain levels through experience. Check out [Bulbapedia](http://bulbapedia.bulbagarden.net/wiki/Experience) for greater detail.
|
|
536
|
+
# @param [Hash] opts the optional parameters
|
|
537
|
+
# @option opts [Integer] :limit Number of results to return per page.
|
|
538
|
+
# @option opts [Integer] :offset The initial index from which to return the results.
|
|
539
|
+
# @option opts [String] :q > Only available locally and not at [pokeapi.co](https://pokeapi.co/docs/v2) Case-insensitive query applied on the `name` property.
|
|
540
|
+
# @return [PaginatedGrowthRateSummaryList]
|
|
541
|
+
def growth_rate_list(opts = {})
|
|
542
|
+
data, _status_code, _headers = growth_rate_list_with_http_info(opts)
|
|
543
|
+
data
|
|
544
|
+
end
|
|
545
|
+
|
|
546
|
+
# List growth rates
|
|
547
|
+
# Growth rates are the speed with which Pokémon gain levels through experience. Check out [Bulbapedia](http://bulbapedia.bulbagarden.net/wiki/Experience) for greater detail.
|
|
548
|
+
# @param [Hash] opts the optional parameters
|
|
549
|
+
# @option opts [Integer] :limit Number of results to return per page.
|
|
550
|
+
# @option opts [Integer] :offset The initial index from which to return the results.
|
|
551
|
+
# @option opts [String] :q > Only available locally and not at [pokeapi.co](https://pokeapi.co/docs/v2) Case-insensitive query applied on the `name` property.
|
|
552
|
+
# @return [Array<(PaginatedGrowthRateSummaryList, Integer, Hash)>] PaginatedGrowthRateSummaryList data, response status code and response headers
|
|
553
|
+
def growth_rate_list_with_http_info(opts = {})
|
|
554
|
+
if @api_client.config.debugging
|
|
555
|
+
@api_client.config.logger.debug 'Calling API: PokemonApi.growth_rate_list ...'
|
|
556
|
+
end
|
|
557
|
+
# resource path
|
|
558
|
+
local_var_path = '/api/v2/growth-rate/'
|
|
559
|
+
|
|
560
|
+
# query parameters
|
|
561
|
+
query_params = opts[:query_params] || {}
|
|
562
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
|
563
|
+
query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
|
|
564
|
+
query_params[:'q'] = opts[:'q'] if !opts[:'q'].nil?
|
|
565
|
+
|
|
566
|
+
# header parameters
|
|
567
|
+
header_params = opts[:header_params] || {}
|
|
568
|
+
# HTTP header 'Accept' (if needed)
|
|
569
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
570
|
+
|
|
571
|
+
# form parameters
|
|
572
|
+
form_params = opts[:form_params] || {}
|
|
573
|
+
|
|
574
|
+
# http body (model)
|
|
575
|
+
post_body = opts[:debug_body]
|
|
576
|
+
|
|
577
|
+
# return_type
|
|
578
|
+
return_type = opts[:debug_return_type] || 'PaginatedGrowthRateSummaryList'
|
|
579
|
+
|
|
580
|
+
# auth_names
|
|
581
|
+
auth_names = opts[:debug_auth_names] || ['basicAuth', 'cookieAuth']
|
|
582
|
+
|
|
583
|
+
new_options = opts.merge(
|
|
584
|
+
:operation => :"PokemonApi.growth_rate_list",
|
|
585
|
+
:header_params => header_params,
|
|
586
|
+
:query_params => query_params,
|
|
587
|
+
:form_params => form_params,
|
|
588
|
+
:body => post_body,
|
|
589
|
+
:auth_names => auth_names,
|
|
590
|
+
:return_type => return_type
|
|
591
|
+
)
|
|
592
|
+
|
|
593
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
594
|
+
if @api_client.config.debugging
|
|
595
|
+
@api_client.config.logger.debug "API called: PokemonApi#growth_rate_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
596
|
+
end
|
|
597
|
+
return data, status_code, headers
|
|
598
|
+
end
|
|
599
|
+
|
|
600
|
+
# Get growth rate
|
|
601
|
+
# Growth rates are the speed with which Pokémon gain levels through experience. Check out [Bulbapedia](http://bulbapedia.bulbagarden.net/wiki/Experience) for greater detail.
|
|
602
|
+
# @param id [String] This parameter can be a string or an integer.
|
|
603
|
+
# @param [Hash] opts the optional parameters
|
|
604
|
+
# @return [GrowthRateDetail]
|
|
605
|
+
def growth_rate_retrieve(id, opts = {})
|
|
606
|
+
data, _status_code, _headers = growth_rate_retrieve_with_http_info(id, opts)
|
|
607
|
+
data
|
|
608
|
+
end
|
|
609
|
+
|
|
610
|
+
# Get growth rate
|
|
611
|
+
# Growth rates are the speed with which Pokémon gain levels through experience. Check out [Bulbapedia](http://bulbapedia.bulbagarden.net/wiki/Experience) for greater detail.
|
|
612
|
+
# @param id [String] This parameter can be a string or an integer.
|
|
613
|
+
# @param [Hash] opts the optional parameters
|
|
614
|
+
# @return [Array<(GrowthRateDetail, Integer, Hash)>] GrowthRateDetail data, response status code and response headers
|
|
615
|
+
def growth_rate_retrieve_with_http_info(id, opts = {})
|
|
616
|
+
if @api_client.config.debugging
|
|
617
|
+
@api_client.config.logger.debug 'Calling API: PokemonApi.growth_rate_retrieve ...'
|
|
618
|
+
end
|
|
619
|
+
# verify the required parameter 'id' is set
|
|
620
|
+
if @api_client.config.client_side_validation && id.nil?
|
|
621
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling PokemonApi.growth_rate_retrieve"
|
|
622
|
+
end
|
|
623
|
+
# resource path
|
|
624
|
+
local_var_path = '/api/v2/growth-rate/{id}/'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
|
625
|
+
|
|
626
|
+
# query parameters
|
|
627
|
+
query_params = opts[:query_params] || {}
|
|
628
|
+
|
|
629
|
+
# header parameters
|
|
630
|
+
header_params = opts[:header_params] || {}
|
|
631
|
+
# HTTP header 'Accept' (if needed)
|
|
632
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
633
|
+
|
|
634
|
+
# form parameters
|
|
635
|
+
form_params = opts[:form_params] || {}
|
|
636
|
+
|
|
637
|
+
# http body (model)
|
|
638
|
+
post_body = opts[:debug_body]
|
|
639
|
+
|
|
640
|
+
# return_type
|
|
641
|
+
return_type = opts[:debug_return_type] || 'GrowthRateDetail'
|
|
642
|
+
|
|
643
|
+
# auth_names
|
|
644
|
+
auth_names = opts[:debug_auth_names] || ['basicAuth', 'cookieAuth']
|
|
645
|
+
|
|
646
|
+
new_options = opts.merge(
|
|
647
|
+
:operation => :"PokemonApi.growth_rate_retrieve",
|
|
648
|
+
:header_params => header_params,
|
|
649
|
+
:query_params => query_params,
|
|
650
|
+
:form_params => form_params,
|
|
651
|
+
:body => post_body,
|
|
652
|
+
:auth_names => auth_names,
|
|
653
|
+
:return_type => return_type
|
|
654
|
+
)
|
|
655
|
+
|
|
656
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
657
|
+
if @api_client.config.debugging
|
|
658
|
+
@api_client.config.logger.debug "API called: PokemonApi#growth_rate_retrieve\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
659
|
+
end
|
|
660
|
+
return data, status_code, headers
|
|
661
|
+
end
|
|
662
|
+
|
|
663
|
+
# List move damage classes
|
|
664
|
+
# Damage classes moves can have, e.g. physical, special, or non-damaging.
|
|
665
|
+
# @param [Hash] opts the optional parameters
|
|
666
|
+
# @option opts [Integer] :limit Number of results to return per page.
|
|
667
|
+
# @option opts [Integer] :offset The initial index from which to return the results.
|
|
668
|
+
# @option opts [String] :q > Only available locally and not at [pokeapi.co](https://pokeapi.co/docs/v2) Case-insensitive query applied on the `name` property.
|
|
669
|
+
# @return [PaginatedMoveDamageClassSummaryList]
|
|
670
|
+
def move_damage_class_list(opts = {})
|
|
671
|
+
data, _status_code, _headers = move_damage_class_list_with_http_info(opts)
|
|
672
|
+
data
|
|
673
|
+
end
|
|
674
|
+
|
|
675
|
+
# List move damage classes
|
|
676
|
+
# Damage classes moves can have, e.g. physical, special, or non-damaging.
|
|
677
|
+
# @param [Hash] opts the optional parameters
|
|
678
|
+
# @option opts [Integer] :limit Number of results to return per page.
|
|
679
|
+
# @option opts [Integer] :offset The initial index from which to return the results.
|
|
680
|
+
# @option opts [String] :q > Only available locally and not at [pokeapi.co](https://pokeapi.co/docs/v2) Case-insensitive query applied on the `name` property.
|
|
681
|
+
# @return [Array<(PaginatedMoveDamageClassSummaryList, Integer, Hash)>] PaginatedMoveDamageClassSummaryList data, response status code and response headers
|
|
682
|
+
def move_damage_class_list_with_http_info(opts = {})
|
|
683
|
+
if @api_client.config.debugging
|
|
684
|
+
@api_client.config.logger.debug 'Calling API: PokemonApi.move_damage_class_list ...'
|
|
685
|
+
end
|
|
686
|
+
# resource path
|
|
687
|
+
local_var_path = '/api/v2/move-damage-class/'
|
|
688
|
+
|
|
689
|
+
# query parameters
|
|
690
|
+
query_params = opts[:query_params] || {}
|
|
691
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
|
692
|
+
query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
|
|
693
|
+
query_params[:'q'] = opts[:'q'] if !opts[:'q'].nil?
|
|
694
|
+
|
|
695
|
+
# header parameters
|
|
696
|
+
header_params = opts[:header_params] || {}
|
|
697
|
+
# HTTP header 'Accept' (if needed)
|
|
698
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
699
|
+
|
|
700
|
+
# form parameters
|
|
701
|
+
form_params = opts[:form_params] || {}
|
|
702
|
+
|
|
703
|
+
# http body (model)
|
|
704
|
+
post_body = opts[:debug_body]
|
|
705
|
+
|
|
706
|
+
# return_type
|
|
707
|
+
return_type = opts[:debug_return_type] || 'PaginatedMoveDamageClassSummaryList'
|
|
708
|
+
|
|
709
|
+
# auth_names
|
|
710
|
+
auth_names = opts[:debug_auth_names] || ['basicAuth', 'cookieAuth']
|
|
711
|
+
|
|
712
|
+
new_options = opts.merge(
|
|
713
|
+
:operation => :"PokemonApi.move_damage_class_list",
|
|
714
|
+
:header_params => header_params,
|
|
715
|
+
:query_params => query_params,
|
|
716
|
+
:form_params => form_params,
|
|
717
|
+
:body => post_body,
|
|
718
|
+
:auth_names => auth_names,
|
|
719
|
+
:return_type => return_type
|
|
720
|
+
)
|
|
721
|
+
|
|
722
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
723
|
+
if @api_client.config.debugging
|
|
724
|
+
@api_client.config.logger.debug "API called: PokemonApi#move_damage_class_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
725
|
+
end
|
|
726
|
+
return data, status_code, headers
|
|
727
|
+
end
|
|
728
|
+
|
|
729
|
+
# Get move damage class
|
|
730
|
+
# Damage classes moves can have, e.g. physical, special, or non-damaging.
|
|
731
|
+
# @param id [String] This parameter can be a string or an integer.
|
|
732
|
+
# @param [Hash] opts the optional parameters
|
|
733
|
+
# @return [MoveDamageClassDetail]
|
|
734
|
+
def move_damage_class_retrieve(id, opts = {})
|
|
735
|
+
data, _status_code, _headers = move_damage_class_retrieve_with_http_info(id, opts)
|
|
736
|
+
data
|
|
737
|
+
end
|
|
738
|
+
|
|
739
|
+
# Get move damage class
|
|
740
|
+
# Damage classes moves can have, e.g. physical, special, or non-damaging.
|
|
741
|
+
# @param id [String] This parameter can be a string or an integer.
|
|
742
|
+
# @param [Hash] opts the optional parameters
|
|
743
|
+
# @return [Array<(MoveDamageClassDetail, Integer, Hash)>] MoveDamageClassDetail data, response status code and response headers
|
|
744
|
+
def move_damage_class_retrieve_with_http_info(id, opts = {})
|
|
745
|
+
if @api_client.config.debugging
|
|
746
|
+
@api_client.config.logger.debug 'Calling API: PokemonApi.move_damage_class_retrieve ...'
|
|
747
|
+
end
|
|
748
|
+
# verify the required parameter 'id' is set
|
|
749
|
+
if @api_client.config.client_side_validation && id.nil?
|
|
750
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling PokemonApi.move_damage_class_retrieve"
|
|
751
|
+
end
|
|
752
|
+
# resource path
|
|
753
|
+
local_var_path = '/api/v2/move-damage-class/{id}/'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
|
754
|
+
|
|
755
|
+
# query parameters
|
|
756
|
+
query_params = opts[:query_params] || {}
|
|
757
|
+
|
|
758
|
+
# header parameters
|
|
759
|
+
header_params = opts[:header_params] || {}
|
|
760
|
+
# HTTP header 'Accept' (if needed)
|
|
761
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
762
|
+
|
|
763
|
+
# form parameters
|
|
764
|
+
form_params = opts[:form_params] || {}
|
|
765
|
+
|
|
766
|
+
# http body (model)
|
|
767
|
+
post_body = opts[:debug_body]
|
|
768
|
+
|
|
769
|
+
# return_type
|
|
770
|
+
return_type = opts[:debug_return_type] || 'MoveDamageClassDetail'
|
|
771
|
+
|
|
772
|
+
# auth_names
|
|
773
|
+
auth_names = opts[:debug_auth_names] || ['basicAuth', 'cookieAuth']
|
|
774
|
+
|
|
775
|
+
new_options = opts.merge(
|
|
776
|
+
:operation => :"PokemonApi.move_damage_class_retrieve",
|
|
777
|
+
:header_params => header_params,
|
|
778
|
+
:query_params => query_params,
|
|
779
|
+
:form_params => form_params,
|
|
780
|
+
:body => post_body,
|
|
781
|
+
:auth_names => auth_names,
|
|
782
|
+
:return_type => return_type
|
|
783
|
+
)
|
|
784
|
+
|
|
785
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
786
|
+
if @api_client.config.debugging
|
|
787
|
+
@api_client.config.logger.debug "API called: PokemonApi#move_damage_class_retrieve\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
788
|
+
end
|
|
789
|
+
return data, status_code, headers
|
|
790
|
+
end
|
|
791
|
+
|
|
792
|
+
# List natures
|
|
793
|
+
# Natures influence how a Pokémon's stats grow. See [Bulbapedia](http://bulbapedia.bulbagarden.net/wiki/Nature) for greater detail.
|
|
794
|
+
# @param [Hash] opts the optional parameters
|
|
795
|
+
# @option opts [Integer] :limit Number of results to return per page.
|
|
796
|
+
# @option opts [Integer] :offset The initial index from which to return the results.
|
|
797
|
+
# @option opts [String] :q > Only available locally and not at [pokeapi.co](https://pokeapi.co/docs/v2) Case-insensitive query applied on the `name` property.
|
|
798
|
+
# @return [PaginatedNatureSummaryList]
|
|
799
|
+
def nature_list(opts = {})
|
|
800
|
+
data, _status_code, _headers = nature_list_with_http_info(opts)
|
|
801
|
+
data
|
|
802
|
+
end
|
|
803
|
+
|
|
804
|
+
# List natures
|
|
805
|
+
# Natures influence how a Pokémon's stats grow. See [Bulbapedia](http://bulbapedia.bulbagarden.net/wiki/Nature) for greater detail.
|
|
806
|
+
# @param [Hash] opts the optional parameters
|
|
807
|
+
# @option opts [Integer] :limit Number of results to return per page.
|
|
808
|
+
# @option opts [Integer] :offset The initial index from which to return the results.
|
|
809
|
+
# @option opts [String] :q > Only available locally and not at [pokeapi.co](https://pokeapi.co/docs/v2) Case-insensitive query applied on the `name` property.
|
|
810
|
+
# @return [Array<(PaginatedNatureSummaryList, Integer, Hash)>] PaginatedNatureSummaryList data, response status code and response headers
|
|
811
|
+
def nature_list_with_http_info(opts = {})
|
|
812
|
+
if @api_client.config.debugging
|
|
813
|
+
@api_client.config.logger.debug 'Calling API: PokemonApi.nature_list ...'
|
|
814
|
+
end
|
|
815
|
+
# resource path
|
|
816
|
+
local_var_path = '/api/v2/nature/'
|
|
817
|
+
|
|
818
|
+
# query parameters
|
|
819
|
+
query_params = opts[:query_params] || {}
|
|
820
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
|
821
|
+
query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
|
|
822
|
+
query_params[:'q'] = opts[:'q'] if !opts[:'q'].nil?
|
|
823
|
+
|
|
824
|
+
# header parameters
|
|
825
|
+
header_params = opts[:header_params] || {}
|
|
826
|
+
# HTTP header 'Accept' (if needed)
|
|
827
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
828
|
+
|
|
829
|
+
# form parameters
|
|
830
|
+
form_params = opts[:form_params] || {}
|
|
831
|
+
|
|
832
|
+
# http body (model)
|
|
833
|
+
post_body = opts[:debug_body]
|
|
834
|
+
|
|
835
|
+
# return_type
|
|
836
|
+
return_type = opts[:debug_return_type] || 'PaginatedNatureSummaryList'
|
|
837
|
+
|
|
838
|
+
# auth_names
|
|
839
|
+
auth_names = opts[:debug_auth_names] || ['basicAuth', 'cookieAuth']
|
|
840
|
+
|
|
841
|
+
new_options = opts.merge(
|
|
842
|
+
:operation => :"PokemonApi.nature_list",
|
|
843
|
+
:header_params => header_params,
|
|
844
|
+
:query_params => query_params,
|
|
845
|
+
:form_params => form_params,
|
|
846
|
+
:body => post_body,
|
|
847
|
+
:auth_names => auth_names,
|
|
848
|
+
:return_type => return_type
|
|
849
|
+
)
|
|
850
|
+
|
|
851
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
852
|
+
if @api_client.config.debugging
|
|
853
|
+
@api_client.config.logger.debug "API called: PokemonApi#nature_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
854
|
+
end
|
|
855
|
+
return data, status_code, headers
|
|
856
|
+
end
|
|
857
|
+
|
|
858
|
+
# Get nature
|
|
859
|
+
# Natures influence how a Pokémon's stats grow. See [Bulbapedia](http://bulbapedia.bulbagarden.net/wiki/Nature) for greater detail.
|
|
860
|
+
# @param id [String] This parameter can be a string or an integer.
|
|
861
|
+
# @param [Hash] opts the optional parameters
|
|
862
|
+
# @return [NatureDetail]
|
|
863
|
+
def nature_retrieve(id, opts = {})
|
|
864
|
+
data, _status_code, _headers = nature_retrieve_with_http_info(id, opts)
|
|
865
|
+
data
|
|
866
|
+
end
|
|
867
|
+
|
|
868
|
+
# Get nature
|
|
869
|
+
# Natures influence how a Pokémon's stats grow. See [Bulbapedia](http://bulbapedia.bulbagarden.net/wiki/Nature) for greater detail.
|
|
870
|
+
# @param id [String] This parameter can be a string or an integer.
|
|
871
|
+
# @param [Hash] opts the optional parameters
|
|
872
|
+
# @return [Array<(NatureDetail, Integer, Hash)>] NatureDetail data, response status code and response headers
|
|
873
|
+
def nature_retrieve_with_http_info(id, opts = {})
|
|
874
|
+
if @api_client.config.debugging
|
|
875
|
+
@api_client.config.logger.debug 'Calling API: PokemonApi.nature_retrieve ...'
|
|
876
|
+
end
|
|
877
|
+
# verify the required parameter 'id' is set
|
|
878
|
+
if @api_client.config.client_side_validation && id.nil?
|
|
879
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling PokemonApi.nature_retrieve"
|
|
880
|
+
end
|
|
881
|
+
# resource path
|
|
882
|
+
local_var_path = '/api/v2/nature/{id}/'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
|
883
|
+
|
|
884
|
+
# query parameters
|
|
885
|
+
query_params = opts[:query_params] || {}
|
|
886
|
+
|
|
887
|
+
# header parameters
|
|
888
|
+
header_params = opts[:header_params] || {}
|
|
889
|
+
# HTTP header 'Accept' (if needed)
|
|
890
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
891
|
+
|
|
892
|
+
# form parameters
|
|
893
|
+
form_params = opts[:form_params] || {}
|
|
894
|
+
|
|
895
|
+
# http body (model)
|
|
896
|
+
post_body = opts[:debug_body]
|
|
897
|
+
|
|
898
|
+
# return_type
|
|
899
|
+
return_type = opts[:debug_return_type] || 'NatureDetail'
|
|
900
|
+
|
|
901
|
+
# auth_names
|
|
902
|
+
auth_names = opts[:debug_auth_names] || ['basicAuth', 'cookieAuth']
|
|
903
|
+
|
|
904
|
+
new_options = opts.merge(
|
|
905
|
+
:operation => :"PokemonApi.nature_retrieve",
|
|
906
|
+
:header_params => header_params,
|
|
907
|
+
:query_params => query_params,
|
|
908
|
+
:form_params => form_params,
|
|
909
|
+
:body => post_body,
|
|
910
|
+
:auth_names => auth_names,
|
|
911
|
+
:return_type => return_type
|
|
912
|
+
)
|
|
913
|
+
|
|
914
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
915
|
+
if @api_client.config.debugging
|
|
916
|
+
@api_client.config.logger.debug "API called: PokemonApi#nature_retrieve\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
917
|
+
end
|
|
918
|
+
return data, status_code, headers
|
|
919
|
+
end
|
|
920
|
+
|
|
921
|
+
# List pokeathlon stats
|
|
922
|
+
# Pokeathlon Stats are different attributes of a Pokémon's performance in Pokéathlons. In Pokéathlons, competitions happen on different courses; one for each of the different Pokéathlon stats. See [Bulbapedia](http://bulbapedia.bulbagarden.net/wiki/Pok%C3%A9athlon) for greater detail.
|
|
923
|
+
# @param [Hash] opts the optional parameters
|
|
924
|
+
# @option opts [Integer] :limit Number of results to return per page.
|
|
925
|
+
# @option opts [Integer] :offset The initial index from which to return the results.
|
|
926
|
+
# @option opts [String] :q > Only available locally and not at [pokeapi.co](https://pokeapi.co/docs/v2) Case-insensitive query applied on the `name` property.
|
|
927
|
+
# @return [PaginatedPokeathlonStatSummaryList]
|
|
928
|
+
def pokeathlon_stat_list(opts = {})
|
|
929
|
+
data, _status_code, _headers = pokeathlon_stat_list_with_http_info(opts)
|
|
930
|
+
data
|
|
931
|
+
end
|
|
932
|
+
|
|
933
|
+
# List pokeathlon stats
|
|
934
|
+
# Pokeathlon Stats are different attributes of a Pokémon's performance in Pokéathlons. In Pokéathlons, competitions happen on different courses; one for each of the different Pokéathlon stats. See [Bulbapedia](http://bulbapedia.bulbagarden.net/wiki/Pok%C3%A9athlon) for greater detail.
|
|
935
|
+
# @param [Hash] opts the optional parameters
|
|
936
|
+
# @option opts [Integer] :limit Number of results to return per page.
|
|
937
|
+
# @option opts [Integer] :offset The initial index from which to return the results.
|
|
938
|
+
# @option opts [String] :q > Only available locally and not at [pokeapi.co](https://pokeapi.co/docs/v2) Case-insensitive query applied on the `name` property.
|
|
939
|
+
# @return [Array<(PaginatedPokeathlonStatSummaryList, Integer, Hash)>] PaginatedPokeathlonStatSummaryList data, response status code and response headers
|
|
940
|
+
def pokeathlon_stat_list_with_http_info(opts = {})
|
|
941
|
+
if @api_client.config.debugging
|
|
942
|
+
@api_client.config.logger.debug 'Calling API: PokemonApi.pokeathlon_stat_list ...'
|
|
943
|
+
end
|
|
944
|
+
# resource path
|
|
945
|
+
local_var_path = '/api/v2/pokeathlon-stat/'
|
|
946
|
+
|
|
947
|
+
# query parameters
|
|
948
|
+
query_params = opts[:query_params] || {}
|
|
949
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
|
950
|
+
query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
|
|
951
|
+
query_params[:'q'] = opts[:'q'] if !opts[:'q'].nil?
|
|
952
|
+
|
|
953
|
+
# header parameters
|
|
954
|
+
header_params = opts[:header_params] || {}
|
|
955
|
+
# HTTP header 'Accept' (if needed)
|
|
956
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
957
|
+
|
|
958
|
+
# form parameters
|
|
959
|
+
form_params = opts[:form_params] || {}
|
|
960
|
+
|
|
961
|
+
# http body (model)
|
|
962
|
+
post_body = opts[:debug_body]
|
|
963
|
+
|
|
964
|
+
# return_type
|
|
965
|
+
return_type = opts[:debug_return_type] || 'PaginatedPokeathlonStatSummaryList'
|
|
966
|
+
|
|
967
|
+
# auth_names
|
|
968
|
+
auth_names = opts[:debug_auth_names] || ['basicAuth', 'cookieAuth']
|
|
969
|
+
|
|
970
|
+
new_options = opts.merge(
|
|
971
|
+
:operation => :"PokemonApi.pokeathlon_stat_list",
|
|
972
|
+
:header_params => header_params,
|
|
973
|
+
:query_params => query_params,
|
|
974
|
+
:form_params => form_params,
|
|
975
|
+
:body => post_body,
|
|
976
|
+
:auth_names => auth_names,
|
|
977
|
+
:return_type => return_type
|
|
978
|
+
)
|
|
979
|
+
|
|
980
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
981
|
+
if @api_client.config.debugging
|
|
982
|
+
@api_client.config.logger.debug "API called: PokemonApi#pokeathlon_stat_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
983
|
+
end
|
|
984
|
+
return data, status_code, headers
|
|
985
|
+
end
|
|
986
|
+
|
|
987
|
+
# Get pokeathlon stat
|
|
988
|
+
# Pokeathlon Stats are different attributes of a Pokémon's performance in Pokéathlons. In Pokéathlons, competitions happen on different courses; one for each of the different Pokéathlon stats. See [Bulbapedia](http://bulbapedia.bulbagarden.net/wiki/Pok%C3%A9athlon) for greater detail.
|
|
989
|
+
# @param id [String] This parameter can be a string or an integer.
|
|
990
|
+
# @param [Hash] opts the optional parameters
|
|
991
|
+
# @return [PokeathlonStatDetail]
|
|
992
|
+
def pokeathlon_stat_retrieve(id, opts = {})
|
|
993
|
+
data, _status_code, _headers = pokeathlon_stat_retrieve_with_http_info(id, opts)
|
|
994
|
+
data
|
|
995
|
+
end
|
|
996
|
+
|
|
997
|
+
# Get pokeathlon stat
|
|
998
|
+
# Pokeathlon Stats are different attributes of a Pokémon's performance in Pokéathlons. In Pokéathlons, competitions happen on different courses; one for each of the different Pokéathlon stats. See [Bulbapedia](http://bulbapedia.bulbagarden.net/wiki/Pok%C3%A9athlon) for greater detail.
|
|
999
|
+
# @param id [String] This parameter can be a string or an integer.
|
|
1000
|
+
# @param [Hash] opts the optional parameters
|
|
1001
|
+
# @return [Array<(PokeathlonStatDetail, Integer, Hash)>] PokeathlonStatDetail data, response status code and response headers
|
|
1002
|
+
def pokeathlon_stat_retrieve_with_http_info(id, opts = {})
|
|
1003
|
+
if @api_client.config.debugging
|
|
1004
|
+
@api_client.config.logger.debug 'Calling API: PokemonApi.pokeathlon_stat_retrieve ...'
|
|
1005
|
+
end
|
|
1006
|
+
# verify the required parameter 'id' is set
|
|
1007
|
+
if @api_client.config.client_side_validation && id.nil?
|
|
1008
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling PokemonApi.pokeathlon_stat_retrieve"
|
|
1009
|
+
end
|
|
1010
|
+
# resource path
|
|
1011
|
+
local_var_path = '/api/v2/pokeathlon-stat/{id}/'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
|
1012
|
+
|
|
1013
|
+
# query parameters
|
|
1014
|
+
query_params = opts[:query_params] || {}
|
|
1015
|
+
|
|
1016
|
+
# header parameters
|
|
1017
|
+
header_params = opts[:header_params] || {}
|
|
1018
|
+
# HTTP header 'Accept' (if needed)
|
|
1019
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
1020
|
+
|
|
1021
|
+
# form parameters
|
|
1022
|
+
form_params = opts[:form_params] || {}
|
|
1023
|
+
|
|
1024
|
+
# http body (model)
|
|
1025
|
+
post_body = opts[:debug_body]
|
|
1026
|
+
|
|
1027
|
+
# return_type
|
|
1028
|
+
return_type = opts[:debug_return_type] || 'PokeathlonStatDetail'
|
|
1029
|
+
|
|
1030
|
+
# auth_names
|
|
1031
|
+
auth_names = opts[:debug_auth_names] || ['basicAuth', 'cookieAuth']
|
|
1032
|
+
|
|
1033
|
+
new_options = opts.merge(
|
|
1034
|
+
:operation => :"PokemonApi.pokeathlon_stat_retrieve",
|
|
1035
|
+
:header_params => header_params,
|
|
1036
|
+
:query_params => query_params,
|
|
1037
|
+
:form_params => form_params,
|
|
1038
|
+
:body => post_body,
|
|
1039
|
+
:auth_names => auth_names,
|
|
1040
|
+
:return_type => return_type
|
|
1041
|
+
)
|
|
1042
|
+
|
|
1043
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
1044
|
+
if @api_client.config.debugging
|
|
1045
|
+
@api_client.config.logger.debug "API called: PokemonApi#pokeathlon_stat_retrieve\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1046
|
+
end
|
|
1047
|
+
return data, status_code, headers
|
|
1048
|
+
end
|
|
1049
|
+
|
|
1050
|
+
# List pokemon colors
|
|
1051
|
+
# Colors used for sorting Pokémon in a Pokédex. The color listed in the Pokédex is usually the color most apparent or covering each Pokémon's body. No orange category exists; Pokémon that are primarily orange are listed as red or brown.
|
|
1052
|
+
# @param [Hash] opts the optional parameters
|
|
1053
|
+
# @option opts [Integer] :limit Number of results to return per page.
|
|
1054
|
+
# @option opts [Integer] :offset The initial index from which to return the results.
|
|
1055
|
+
# @option opts [String] :q > Only available locally and not at [pokeapi.co](https://pokeapi.co/docs/v2) Case-insensitive query applied on the `name` property.
|
|
1056
|
+
# @return [PaginatedPokemonColorSummaryList]
|
|
1057
|
+
def pokemon_color_list(opts = {})
|
|
1058
|
+
data, _status_code, _headers = pokemon_color_list_with_http_info(opts)
|
|
1059
|
+
data
|
|
1060
|
+
end
|
|
1061
|
+
|
|
1062
|
+
# List pokemon colors
|
|
1063
|
+
# Colors used for sorting Pokémon in a Pokédex. The color listed in the Pokédex is usually the color most apparent or covering each Pokémon's body. No orange category exists; Pokémon that are primarily orange are listed as red or brown.
|
|
1064
|
+
# @param [Hash] opts the optional parameters
|
|
1065
|
+
# @option opts [Integer] :limit Number of results to return per page.
|
|
1066
|
+
# @option opts [Integer] :offset The initial index from which to return the results.
|
|
1067
|
+
# @option opts [String] :q > Only available locally and not at [pokeapi.co](https://pokeapi.co/docs/v2) Case-insensitive query applied on the `name` property.
|
|
1068
|
+
# @return [Array<(PaginatedPokemonColorSummaryList, Integer, Hash)>] PaginatedPokemonColorSummaryList data, response status code and response headers
|
|
1069
|
+
def pokemon_color_list_with_http_info(opts = {})
|
|
1070
|
+
if @api_client.config.debugging
|
|
1071
|
+
@api_client.config.logger.debug 'Calling API: PokemonApi.pokemon_color_list ...'
|
|
1072
|
+
end
|
|
1073
|
+
# resource path
|
|
1074
|
+
local_var_path = '/api/v2/pokemon-color/'
|
|
1075
|
+
|
|
1076
|
+
# query parameters
|
|
1077
|
+
query_params = opts[:query_params] || {}
|
|
1078
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
|
1079
|
+
query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
|
|
1080
|
+
query_params[:'q'] = opts[:'q'] if !opts[:'q'].nil?
|
|
1081
|
+
|
|
1082
|
+
# header parameters
|
|
1083
|
+
header_params = opts[:header_params] || {}
|
|
1084
|
+
# HTTP header 'Accept' (if needed)
|
|
1085
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
1086
|
+
|
|
1087
|
+
# form parameters
|
|
1088
|
+
form_params = opts[:form_params] || {}
|
|
1089
|
+
|
|
1090
|
+
# http body (model)
|
|
1091
|
+
post_body = opts[:debug_body]
|
|
1092
|
+
|
|
1093
|
+
# return_type
|
|
1094
|
+
return_type = opts[:debug_return_type] || 'PaginatedPokemonColorSummaryList'
|
|
1095
|
+
|
|
1096
|
+
# auth_names
|
|
1097
|
+
auth_names = opts[:debug_auth_names] || ['basicAuth', 'cookieAuth']
|
|
1098
|
+
|
|
1099
|
+
new_options = opts.merge(
|
|
1100
|
+
:operation => :"PokemonApi.pokemon_color_list",
|
|
1101
|
+
:header_params => header_params,
|
|
1102
|
+
:query_params => query_params,
|
|
1103
|
+
:form_params => form_params,
|
|
1104
|
+
:body => post_body,
|
|
1105
|
+
:auth_names => auth_names,
|
|
1106
|
+
:return_type => return_type
|
|
1107
|
+
)
|
|
1108
|
+
|
|
1109
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
1110
|
+
if @api_client.config.debugging
|
|
1111
|
+
@api_client.config.logger.debug "API called: PokemonApi#pokemon_color_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1112
|
+
end
|
|
1113
|
+
return data, status_code, headers
|
|
1114
|
+
end
|
|
1115
|
+
|
|
1116
|
+
# Get pokemon color
|
|
1117
|
+
# Colors used for sorting Pokémon in a Pokédex. The color listed in the Pokédex is usually the color most apparent or covering each Pokémon's body. No orange category exists; Pokémon that are primarily orange are listed as red or brown.
|
|
1118
|
+
# @param id [String] This parameter can be a string or an integer.
|
|
1119
|
+
# @param [Hash] opts the optional parameters
|
|
1120
|
+
# @return [PokemonColorDetail]
|
|
1121
|
+
def pokemon_color_retrieve(id, opts = {})
|
|
1122
|
+
data, _status_code, _headers = pokemon_color_retrieve_with_http_info(id, opts)
|
|
1123
|
+
data
|
|
1124
|
+
end
|
|
1125
|
+
|
|
1126
|
+
# Get pokemon color
|
|
1127
|
+
# Colors used for sorting Pokémon in a Pokédex. The color listed in the Pokédex is usually the color most apparent or covering each Pokémon's body. No orange category exists; Pokémon that are primarily orange are listed as red or brown.
|
|
1128
|
+
# @param id [String] This parameter can be a string or an integer.
|
|
1129
|
+
# @param [Hash] opts the optional parameters
|
|
1130
|
+
# @return [Array<(PokemonColorDetail, Integer, Hash)>] PokemonColorDetail data, response status code and response headers
|
|
1131
|
+
def pokemon_color_retrieve_with_http_info(id, opts = {})
|
|
1132
|
+
if @api_client.config.debugging
|
|
1133
|
+
@api_client.config.logger.debug 'Calling API: PokemonApi.pokemon_color_retrieve ...'
|
|
1134
|
+
end
|
|
1135
|
+
# verify the required parameter 'id' is set
|
|
1136
|
+
if @api_client.config.client_side_validation && id.nil?
|
|
1137
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling PokemonApi.pokemon_color_retrieve"
|
|
1138
|
+
end
|
|
1139
|
+
# resource path
|
|
1140
|
+
local_var_path = '/api/v2/pokemon-color/{id}/'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
|
1141
|
+
|
|
1142
|
+
# query parameters
|
|
1143
|
+
query_params = opts[:query_params] || {}
|
|
1144
|
+
|
|
1145
|
+
# header parameters
|
|
1146
|
+
header_params = opts[:header_params] || {}
|
|
1147
|
+
# HTTP header 'Accept' (if needed)
|
|
1148
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
1149
|
+
|
|
1150
|
+
# form parameters
|
|
1151
|
+
form_params = opts[:form_params] || {}
|
|
1152
|
+
|
|
1153
|
+
# http body (model)
|
|
1154
|
+
post_body = opts[:debug_body]
|
|
1155
|
+
|
|
1156
|
+
# return_type
|
|
1157
|
+
return_type = opts[:debug_return_type] || 'PokemonColorDetail'
|
|
1158
|
+
|
|
1159
|
+
# auth_names
|
|
1160
|
+
auth_names = opts[:debug_auth_names] || ['basicAuth', 'cookieAuth']
|
|
1161
|
+
|
|
1162
|
+
new_options = opts.merge(
|
|
1163
|
+
:operation => :"PokemonApi.pokemon_color_retrieve",
|
|
1164
|
+
:header_params => header_params,
|
|
1165
|
+
:query_params => query_params,
|
|
1166
|
+
:form_params => form_params,
|
|
1167
|
+
:body => post_body,
|
|
1168
|
+
:auth_names => auth_names,
|
|
1169
|
+
:return_type => return_type
|
|
1170
|
+
)
|
|
1171
|
+
|
|
1172
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
1173
|
+
if @api_client.config.debugging
|
|
1174
|
+
@api_client.config.logger.debug "API called: PokemonApi#pokemon_color_retrieve\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1175
|
+
end
|
|
1176
|
+
return data, status_code, headers
|
|
1177
|
+
end
|
|
1178
|
+
|
|
1179
|
+
# List pokemon forms
|
|
1180
|
+
# Some Pokémon may appear in one of multiple, visually different forms. These differences are purely cosmetic. For variations within a Pokémon species, which do differ in more than just visuals, the 'Pokémon' entity is used to represent such a variety.
|
|
1181
|
+
# @param [Hash] opts the optional parameters
|
|
1182
|
+
# @option opts [Integer] :limit Number of results to return per page.
|
|
1183
|
+
# @option opts [Integer] :offset The initial index from which to return the results.
|
|
1184
|
+
# @option opts [String] :q > Only available locally and not at [pokeapi.co](https://pokeapi.co/docs/v2) Case-insensitive query applied on the `name` property.
|
|
1185
|
+
# @return [PaginatedPokemonFormSummaryList]
|
|
1186
|
+
def pokemon_form_list(opts = {})
|
|
1187
|
+
data, _status_code, _headers = pokemon_form_list_with_http_info(opts)
|
|
1188
|
+
data
|
|
1189
|
+
end
|
|
1190
|
+
|
|
1191
|
+
# List pokemon forms
|
|
1192
|
+
# Some Pokémon may appear in one of multiple, visually different forms. These differences are purely cosmetic. For variations within a Pokémon species, which do differ in more than just visuals, the 'Pokémon' entity is used to represent such a variety.
|
|
1193
|
+
# @param [Hash] opts the optional parameters
|
|
1194
|
+
# @option opts [Integer] :limit Number of results to return per page.
|
|
1195
|
+
# @option opts [Integer] :offset The initial index from which to return the results.
|
|
1196
|
+
# @option opts [String] :q > Only available locally and not at [pokeapi.co](https://pokeapi.co/docs/v2) Case-insensitive query applied on the `name` property.
|
|
1197
|
+
# @return [Array<(PaginatedPokemonFormSummaryList, Integer, Hash)>] PaginatedPokemonFormSummaryList data, response status code and response headers
|
|
1198
|
+
def pokemon_form_list_with_http_info(opts = {})
|
|
1199
|
+
if @api_client.config.debugging
|
|
1200
|
+
@api_client.config.logger.debug 'Calling API: PokemonApi.pokemon_form_list ...'
|
|
1201
|
+
end
|
|
1202
|
+
# resource path
|
|
1203
|
+
local_var_path = '/api/v2/pokemon-form/'
|
|
1204
|
+
|
|
1205
|
+
# query parameters
|
|
1206
|
+
query_params = opts[:query_params] || {}
|
|
1207
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
|
1208
|
+
query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
|
|
1209
|
+
query_params[:'q'] = opts[:'q'] if !opts[:'q'].nil?
|
|
1210
|
+
|
|
1211
|
+
# header parameters
|
|
1212
|
+
header_params = opts[:header_params] || {}
|
|
1213
|
+
# HTTP header 'Accept' (if needed)
|
|
1214
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
1215
|
+
|
|
1216
|
+
# form parameters
|
|
1217
|
+
form_params = opts[:form_params] || {}
|
|
1218
|
+
|
|
1219
|
+
# http body (model)
|
|
1220
|
+
post_body = opts[:debug_body]
|
|
1221
|
+
|
|
1222
|
+
# return_type
|
|
1223
|
+
return_type = opts[:debug_return_type] || 'PaginatedPokemonFormSummaryList'
|
|
1224
|
+
|
|
1225
|
+
# auth_names
|
|
1226
|
+
auth_names = opts[:debug_auth_names] || ['basicAuth', 'cookieAuth']
|
|
1227
|
+
|
|
1228
|
+
new_options = opts.merge(
|
|
1229
|
+
:operation => :"PokemonApi.pokemon_form_list",
|
|
1230
|
+
:header_params => header_params,
|
|
1231
|
+
:query_params => query_params,
|
|
1232
|
+
:form_params => form_params,
|
|
1233
|
+
:body => post_body,
|
|
1234
|
+
:auth_names => auth_names,
|
|
1235
|
+
:return_type => return_type
|
|
1236
|
+
)
|
|
1237
|
+
|
|
1238
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
1239
|
+
if @api_client.config.debugging
|
|
1240
|
+
@api_client.config.logger.debug "API called: PokemonApi#pokemon_form_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1241
|
+
end
|
|
1242
|
+
return data, status_code, headers
|
|
1243
|
+
end
|
|
1244
|
+
|
|
1245
|
+
# Get pokemon form
|
|
1246
|
+
# Some Pokémon may appear in one of multiple, visually different forms. These differences are purely cosmetic. For variations within a Pokémon species, which do differ in more than just visuals, the 'Pokémon' entity is used to represent such a variety.
|
|
1247
|
+
# @param id [String] This parameter can be a string or an integer.
|
|
1248
|
+
# @param [Hash] opts the optional parameters
|
|
1249
|
+
# @return [PokemonFormDetail]
|
|
1250
|
+
def pokemon_form_retrieve(id, opts = {})
|
|
1251
|
+
data, _status_code, _headers = pokemon_form_retrieve_with_http_info(id, opts)
|
|
1252
|
+
data
|
|
1253
|
+
end
|
|
1254
|
+
|
|
1255
|
+
# Get pokemon form
|
|
1256
|
+
# Some Pokémon may appear in one of multiple, visually different forms. These differences are purely cosmetic. For variations within a Pokémon species, which do differ in more than just visuals, the 'Pokémon' entity is used to represent such a variety.
|
|
1257
|
+
# @param id [String] This parameter can be a string or an integer.
|
|
1258
|
+
# @param [Hash] opts the optional parameters
|
|
1259
|
+
# @return [Array<(PokemonFormDetail, Integer, Hash)>] PokemonFormDetail data, response status code and response headers
|
|
1260
|
+
def pokemon_form_retrieve_with_http_info(id, opts = {})
|
|
1261
|
+
if @api_client.config.debugging
|
|
1262
|
+
@api_client.config.logger.debug 'Calling API: PokemonApi.pokemon_form_retrieve ...'
|
|
1263
|
+
end
|
|
1264
|
+
# verify the required parameter 'id' is set
|
|
1265
|
+
if @api_client.config.client_side_validation && id.nil?
|
|
1266
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling PokemonApi.pokemon_form_retrieve"
|
|
1267
|
+
end
|
|
1268
|
+
# resource path
|
|
1269
|
+
local_var_path = '/api/v2/pokemon-form/{id}/'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
|
1270
|
+
|
|
1271
|
+
# query parameters
|
|
1272
|
+
query_params = opts[:query_params] || {}
|
|
1273
|
+
|
|
1274
|
+
# header parameters
|
|
1275
|
+
header_params = opts[:header_params] || {}
|
|
1276
|
+
# HTTP header 'Accept' (if needed)
|
|
1277
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
1278
|
+
|
|
1279
|
+
# form parameters
|
|
1280
|
+
form_params = opts[:form_params] || {}
|
|
1281
|
+
|
|
1282
|
+
# http body (model)
|
|
1283
|
+
post_body = opts[:debug_body]
|
|
1284
|
+
|
|
1285
|
+
# return_type
|
|
1286
|
+
return_type = opts[:debug_return_type] || 'PokemonFormDetail'
|
|
1287
|
+
|
|
1288
|
+
# auth_names
|
|
1289
|
+
auth_names = opts[:debug_auth_names] || ['basicAuth', 'cookieAuth']
|
|
1290
|
+
|
|
1291
|
+
new_options = opts.merge(
|
|
1292
|
+
:operation => :"PokemonApi.pokemon_form_retrieve",
|
|
1293
|
+
:header_params => header_params,
|
|
1294
|
+
:query_params => query_params,
|
|
1295
|
+
:form_params => form_params,
|
|
1296
|
+
:body => post_body,
|
|
1297
|
+
:auth_names => auth_names,
|
|
1298
|
+
:return_type => return_type
|
|
1299
|
+
)
|
|
1300
|
+
|
|
1301
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
1302
|
+
if @api_client.config.debugging
|
|
1303
|
+
@api_client.config.logger.debug "API called: PokemonApi#pokemon_form_retrieve\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1304
|
+
end
|
|
1305
|
+
return data, status_code, headers
|
|
1306
|
+
end
|
|
1307
|
+
|
|
1308
|
+
# List pokemom habitas
|
|
1309
|
+
# Habitats are generally different terrain Pokémon can be found in but can also be areas designated for rare or legendary Pokémon.
|
|
1310
|
+
# @param [Hash] opts the optional parameters
|
|
1311
|
+
# @option opts [Integer] :limit Number of results to return per page.
|
|
1312
|
+
# @option opts [Integer] :offset The initial index from which to return the results.
|
|
1313
|
+
# @option opts [String] :q > Only available locally and not at [pokeapi.co](https://pokeapi.co/docs/v2) Case-insensitive query applied on the `name` property.
|
|
1314
|
+
# @return [PaginatedPokemonHabitatSummaryList]
|
|
1315
|
+
def pokemon_habitat_list(opts = {})
|
|
1316
|
+
data, _status_code, _headers = pokemon_habitat_list_with_http_info(opts)
|
|
1317
|
+
data
|
|
1318
|
+
end
|
|
1319
|
+
|
|
1320
|
+
# List pokemom habitas
|
|
1321
|
+
# Habitats are generally different terrain Pokémon can be found in but can also be areas designated for rare or legendary Pokémon.
|
|
1322
|
+
# @param [Hash] opts the optional parameters
|
|
1323
|
+
# @option opts [Integer] :limit Number of results to return per page.
|
|
1324
|
+
# @option opts [Integer] :offset The initial index from which to return the results.
|
|
1325
|
+
# @option opts [String] :q > Only available locally and not at [pokeapi.co](https://pokeapi.co/docs/v2) Case-insensitive query applied on the `name` property.
|
|
1326
|
+
# @return [Array<(PaginatedPokemonHabitatSummaryList, Integer, Hash)>] PaginatedPokemonHabitatSummaryList data, response status code and response headers
|
|
1327
|
+
def pokemon_habitat_list_with_http_info(opts = {})
|
|
1328
|
+
if @api_client.config.debugging
|
|
1329
|
+
@api_client.config.logger.debug 'Calling API: PokemonApi.pokemon_habitat_list ...'
|
|
1330
|
+
end
|
|
1331
|
+
# resource path
|
|
1332
|
+
local_var_path = '/api/v2/pokemon-habitat/'
|
|
1333
|
+
|
|
1334
|
+
# query parameters
|
|
1335
|
+
query_params = opts[:query_params] || {}
|
|
1336
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
|
1337
|
+
query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
|
|
1338
|
+
query_params[:'q'] = opts[:'q'] if !opts[:'q'].nil?
|
|
1339
|
+
|
|
1340
|
+
# header parameters
|
|
1341
|
+
header_params = opts[:header_params] || {}
|
|
1342
|
+
# HTTP header 'Accept' (if needed)
|
|
1343
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
1344
|
+
|
|
1345
|
+
# form parameters
|
|
1346
|
+
form_params = opts[:form_params] || {}
|
|
1347
|
+
|
|
1348
|
+
# http body (model)
|
|
1349
|
+
post_body = opts[:debug_body]
|
|
1350
|
+
|
|
1351
|
+
# return_type
|
|
1352
|
+
return_type = opts[:debug_return_type] || 'PaginatedPokemonHabitatSummaryList'
|
|
1353
|
+
|
|
1354
|
+
# auth_names
|
|
1355
|
+
auth_names = opts[:debug_auth_names] || ['basicAuth', 'cookieAuth']
|
|
1356
|
+
|
|
1357
|
+
new_options = opts.merge(
|
|
1358
|
+
:operation => :"PokemonApi.pokemon_habitat_list",
|
|
1359
|
+
:header_params => header_params,
|
|
1360
|
+
:query_params => query_params,
|
|
1361
|
+
:form_params => form_params,
|
|
1362
|
+
:body => post_body,
|
|
1363
|
+
:auth_names => auth_names,
|
|
1364
|
+
:return_type => return_type
|
|
1365
|
+
)
|
|
1366
|
+
|
|
1367
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
1368
|
+
if @api_client.config.debugging
|
|
1369
|
+
@api_client.config.logger.debug "API called: PokemonApi#pokemon_habitat_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1370
|
+
end
|
|
1371
|
+
return data, status_code, headers
|
|
1372
|
+
end
|
|
1373
|
+
|
|
1374
|
+
# Get pokemom habita
|
|
1375
|
+
# Habitats are generally different terrain Pokémon can be found in but can also be areas designated for rare or legendary Pokémon.
|
|
1376
|
+
# @param id [String] This parameter can be a string or an integer.
|
|
1377
|
+
# @param [Hash] opts the optional parameters
|
|
1378
|
+
# @return [PokemonHabitatDetail]
|
|
1379
|
+
def pokemon_habitat_retrieve(id, opts = {})
|
|
1380
|
+
data, _status_code, _headers = pokemon_habitat_retrieve_with_http_info(id, opts)
|
|
1381
|
+
data
|
|
1382
|
+
end
|
|
1383
|
+
|
|
1384
|
+
# Get pokemom habita
|
|
1385
|
+
# Habitats are generally different terrain Pokémon can be found in but can also be areas designated for rare or legendary Pokémon.
|
|
1386
|
+
# @param id [String] This parameter can be a string or an integer.
|
|
1387
|
+
# @param [Hash] opts the optional parameters
|
|
1388
|
+
# @return [Array<(PokemonHabitatDetail, Integer, Hash)>] PokemonHabitatDetail data, response status code and response headers
|
|
1389
|
+
def pokemon_habitat_retrieve_with_http_info(id, opts = {})
|
|
1390
|
+
if @api_client.config.debugging
|
|
1391
|
+
@api_client.config.logger.debug 'Calling API: PokemonApi.pokemon_habitat_retrieve ...'
|
|
1392
|
+
end
|
|
1393
|
+
# verify the required parameter 'id' is set
|
|
1394
|
+
if @api_client.config.client_side_validation && id.nil?
|
|
1395
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling PokemonApi.pokemon_habitat_retrieve"
|
|
1396
|
+
end
|
|
1397
|
+
# resource path
|
|
1398
|
+
local_var_path = '/api/v2/pokemon-habitat/{id}/'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
|
1399
|
+
|
|
1400
|
+
# query parameters
|
|
1401
|
+
query_params = opts[:query_params] || {}
|
|
1402
|
+
|
|
1403
|
+
# header parameters
|
|
1404
|
+
header_params = opts[:header_params] || {}
|
|
1405
|
+
# HTTP header 'Accept' (if needed)
|
|
1406
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
1407
|
+
|
|
1408
|
+
# form parameters
|
|
1409
|
+
form_params = opts[:form_params] || {}
|
|
1410
|
+
|
|
1411
|
+
# http body (model)
|
|
1412
|
+
post_body = opts[:debug_body]
|
|
1413
|
+
|
|
1414
|
+
# return_type
|
|
1415
|
+
return_type = opts[:debug_return_type] || 'PokemonHabitatDetail'
|
|
1416
|
+
|
|
1417
|
+
# auth_names
|
|
1418
|
+
auth_names = opts[:debug_auth_names] || ['basicAuth', 'cookieAuth']
|
|
1419
|
+
|
|
1420
|
+
new_options = opts.merge(
|
|
1421
|
+
:operation => :"PokemonApi.pokemon_habitat_retrieve",
|
|
1422
|
+
:header_params => header_params,
|
|
1423
|
+
:query_params => query_params,
|
|
1424
|
+
:form_params => form_params,
|
|
1425
|
+
:body => post_body,
|
|
1426
|
+
:auth_names => auth_names,
|
|
1427
|
+
:return_type => return_type
|
|
1428
|
+
)
|
|
1429
|
+
|
|
1430
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
1431
|
+
if @api_client.config.debugging
|
|
1432
|
+
@api_client.config.logger.debug "API called: PokemonApi#pokemon_habitat_retrieve\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1433
|
+
end
|
|
1434
|
+
return data, status_code, headers
|
|
1435
|
+
end
|
|
1436
|
+
|
|
1437
|
+
# List pokemon
|
|
1438
|
+
# Pokémon are the creatures that inhabit the world of the Pokémon games. They can be caught using Pokéballs and trained by battling with other Pokémon. Each Pokémon belongs to a specific species but may take on a variant which makes it differ from other Pokémon of the same species, such as base stats, available abilities and typings. See [Bulbapedia](http://bulbapedia.bulbagarden.net/wiki/Pok%C3%A9mon_(species)) for greater detail.
|
|
1439
|
+
# @param [Hash] opts the optional parameters
|
|
1440
|
+
# @option opts [Integer] :limit Number of results to return per page.
|
|
1441
|
+
# @option opts [Integer] :offset The initial index from which to return the results.
|
|
1442
|
+
# @option opts [String] :q > Only available locally and not at [pokeapi.co](https://pokeapi.co/docs/v2) Case-insensitive query applied on the `name` property.
|
|
1443
|
+
# @return [PaginatedPokemonSummaryList]
|
|
26
1444
|
def pokemon_list(opts = {})
|
|
27
1445
|
data, _status_code, _headers = pokemon_list_with_http_info(opts)
|
|
28
1446
|
data
|
|
29
1447
|
end
|
|
30
1448
|
|
|
1449
|
+
# List pokemon
|
|
1450
|
+
# Pokémon are the creatures that inhabit the world of the Pokémon games. They can be caught using Pokéballs and trained by battling with other Pokémon. Each Pokémon belongs to a specific species but may take on a variant which makes it differ from other Pokémon of the same species, such as base stats, available abilities and typings. See [Bulbapedia](http://bulbapedia.bulbagarden.net/wiki/Pok%C3%A9mon_(species)) for greater detail.
|
|
1451
|
+
# @param [Hash] opts the optional parameters
|
|
1452
|
+
# @option opts [Integer] :limit Number of results to return per page.
|
|
1453
|
+
# @option opts [Integer] :offset The initial index from which to return the results.
|
|
1454
|
+
# @option opts [String] :q > Only available locally and not at [pokeapi.co](https://pokeapi.co/docs/v2) Case-insensitive query applied on the `name` property.
|
|
1455
|
+
# @return [Array<(PaginatedPokemonSummaryList, Integer, Hash)>] PaginatedPokemonSummaryList data, response status code and response headers
|
|
1456
|
+
def pokemon_list_with_http_info(opts = {})
|
|
1457
|
+
if @api_client.config.debugging
|
|
1458
|
+
@api_client.config.logger.debug 'Calling API: PokemonApi.pokemon_list ...'
|
|
1459
|
+
end
|
|
1460
|
+
# resource path
|
|
1461
|
+
local_var_path = '/api/v2/pokemon/'
|
|
1462
|
+
|
|
1463
|
+
# query parameters
|
|
1464
|
+
query_params = opts[:query_params] || {}
|
|
1465
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
|
1466
|
+
query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
|
|
1467
|
+
query_params[:'q'] = opts[:'q'] if !opts[:'q'].nil?
|
|
1468
|
+
|
|
1469
|
+
# header parameters
|
|
1470
|
+
header_params = opts[:header_params] || {}
|
|
1471
|
+
# HTTP header 'Accept' (if needed)
|
|
1472
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
1473
|
+
|
|
1474
|
+
# form parameters
|
|
1475
|
+
form_params = opts[:form_params] || {}
|
|
1476
|
+
|
|
1477
|
+
# http body (model)
|
|
1478
|
+
post_body = opts[:debug_body]
|
|
1479
|
+
|
|
1480
|
+
# return_type
|
|
1481
|
+
return_type = opts[:debug_return_type] || 'PaginatedPokemonSummaryList'
|
|
1482
|
+
|
|
1483
|
+
# auth_names
|
|
1484
|
+
auth_names = opts[:debug_auth_names] || ['basicAuth', 'cookieAuth']
|
|
1485
|
+
|
|
1486
|
+
new_options = opts.merge(
|
|
1487
|
+
:operation => :"PokemonApi.pokemon_list",
|
|
1488
|
+
:header_params => header_params,
|
|
1489
|
+
:query_params => query_params,
|
|
1490
|
+
:form_params => form_params,
|
|
1491
|
+
:body => post_body,
|
|
1492
|
+
:auth_names => auth_names,
|
|
1493
|
+
:return_type => return_type
|
|
1494
|
+
)
|
|
1495
|
+
|
|
1496
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
1497
|
+
if @api_client.config.debugging
|
|
1498
|
+
@api_client.config.logger.debug "API called: PokemonApi#pokemon_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1499
|
+
end
|
|
1500
|
+
return data, status_code, headers
|
|
1501
|
+
end
|
|
1502
|
+
|
|
1503
|
+
# Get pokemon
|
|
1504
|
+
# Pokémon are the creatures that inhabit the world of the Pokémon games. They can be caught using Pokéballs and trained by battling with other Pokémon. Each Pokémon belongs to a specific species but may take on a variant which makes it differ from other Pokémon of the same species, such as base stats, available abilities and typings. See [Bulbapedia](http://bulbapedia.bulbagarden.net/wiki/Pok%C3%A9mon_(species)) for greater detail.
|
|
1505
|
+
# @param id [String] This parameter can be a string or an integer.
|
|
1506
|
+
# @param [Hash] opts the optional parameters
|
|
1507
|
+
# @return [PokemonDetail]
|
|
1508
|
+
def pokemon_retrieve(id, opts = {})
|
|
1509
|
+
data, _status_code, _headers = pokemon_retrieve_with_http_info(id, opts)
|
|
1510
|
+
data
|
|
1511
|
+
end
|
|
1512
|
+
|
|
1513
|
+
# Get pokemon
|
|
1514
|
+
# Pokémon are the creatures that inhabit the world of the Pokémon games. They can be caught using Pokéballs and trained by battling with other Pokémon. Each Pokémon belongs to a specific species but may take on a variant which makes it differ from other Pokémon of the same species, such as base stats, available abilities and typings. See [Bulbapedia](http://bulbapedia.bulbagarden.net/wiki/Pok%C3%A9mon_(species)) for greater detail.
|
|
1515
|
+
# @param id [String] This parameter can be a string or an integer.
|
|
1516
|
+
# @param [Hash] opts the optional parameters
|
|
1517
|
+
# @return [Array<(PokemonDetail, Integer, Hash)>] PokemonDetail data, response status code and response headers
|
|
1518
|
+
def pokemon_retrieve_with_http_info(id, opts = {})
|
|
1519
|
+
if @api_client.config.debugging
|
|
1520
|
+
@api_client.config.logger.debug 'Calling API: PokemonApi.pokemon_retrieve ...'
|
|
1521
|
+
end
|
|
1522
|
+
# verify the required parameter 'id' is set
|
|
1523
|
+
if @api_client.config.client_side_validation && id.nil?
|
|
1524
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling PokemonApi.pokemon_retrieve"
|
|
1525
|
+
end
|
|
1526
|
+
# resource path
|
|
1527
|
+
local_var_path = '/api/v2/pokemon/{id}/'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
|
1528
|
+
|
|
1529
|
+
# query parameters
|
|
1530
|
+
query_params = opts[:query_params] || {}
|
|
1531
|
+
|
|
1532
|
+
# header parameters
|
|
1533
|
+
header_params = opts[:header_params] || {}
|
|
1534
|
+
# HTTP header 'Accept' (if needed)
|
|
1535
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
1536
|
+
|
|
1537
|
+
# form parameters
|
|
1538
|
+
form_params = opts[:form_params] || {}
|
|
1539
|
+
|
|
1540
|
+
# http body (model)
|
|
1541
|
+
post_body = opts[:debug_body]
|
|
1542
|
+
|
|
1543
|
+
# return_type
|
|
1544
|
+
return_type = opts[:debug_return_type] || 'PokemonDetail'
|
|
1545
|
+
|
|
1546
|
+
# auth_names
|
|
1547
|
+
auth_names = opts[:debug_auth_names] || ['basicAuth', 'cookieAuth']
|
|
1548
|
+
|
|
1549
|
+
new_options = opts.merge(
|
|
1550
|
+
:operation => :"PokemonApi.pokemon_retrieve",
|
|
1551
|
+
:header_params => header_params,
|
|
1552
|
+
:query_params => query_params,
|
|
1553
|
+
:form_params => form_params,
|
|
1554
|
+
:body => post_body,
|
|
1555
|
+
:auth_names => auth_names,
|
|
1556
|
+
:return_type => return_type
|
|
1557
|
+
)
|
|
1558
|
+
|
|
1559
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
1560
|
+
if @api_client.config.debugging
|
|
1561
|
+
@api_client.config.logger.debug "API called: PokemonApi#pokemon_retrieve\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1562
|
+
end
|
|
1563
|
+
return data, status_code, headers
|
|
1564
|
+
end
|
|
1565
|
+
|
|
1566
|
+
# List pokemon shapes
|
|
1567
|
+
# Shapes used for sorting Pokémon in a Pokédex.
|
|
1568
|
+
# @param [Hash] opts the optional parameters
|
|
1569
|
+
# @option opts [Integer] :limit Number of results to return per page.
|
|
1570
|
+
# @option opts [Integer] :offset The initial index from which to return the results.
|
|
1571
|
+
# @option opts [String] :q > Only available locally and not at [pokeapi.co](https://pokeapi.co/docs/v2) Case-insensitive query applied on the `name` property.
|
|
1572
|
+
# @return [PaginatedPokemonShapeSummaryList]
|
|
1573
|
+
def pokemon_shape_list(opts = {})
|
|
1574
|
+
data, _status_code, _headers = pokemon_shape_list_with_http_info(opts)
|
|
1575
|
+
data
|
|
1576
|
+
end
|
|
1577
|
+
|
|
1578
|
+
# List pokemon shapes
|
|
1579
|
+
# Shapes used for sorting Pokémon in a Pokédex.
|
|
1580
|
+
# @param [Hash] opts the optional parameters
|
|
1581
|
+
# @option opts [Integer] :limit Number of results to return per page.
|
|
1582
|
+
# @option opts [Integer] :offset The initial index from which to return the results.
|
|
1583
|
+
# @option opts [String] :q > Only available locally and not at [pokeapi.co](https://pokeapi.co/docs/v2) Case-insensitive query applied on the `name` property.
|
|
1584
|
+
# @return [Array<(PaginatedPokemonShapeSummaryList, Integer, Hash)>] PaginatedPokemonShapeSummaryList data, response status code and response headers
|
|
1585
|
+
def pokemon_shape_list_with_http_info(opts = {})
|
|
1586
|
+
if @api_client.config.debugging
|
|
1587
|
+
@api_client.config.logger.debug 'Calling API: PokemonApi.pokemon_shape_list ...'
|
|
1588
|
+
end
|
|
1589
|
+
# resource path
|
|
1590
|
+
local_var_path = '/api/v2/pokemon-shape/'
|
|
1591
|
+
|
|
1592
|
+
# query parameters
|
|
1593
|
+
query_params = opts[:query_params] || {}
|
|
1594
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
|
1595
|
+
query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
|
|
1596
|
+
query_params[:'q'] = opts[:'q'] if !opts[:'q'].nil?
|
|
1597
|
+
|
|
1598
|
+
# header parameters
|
|
1599
|
+
header_params = opts[:header_params] || {}
|
|
1600
|
+
# HTTP header 'Accept' (if needed)
|
|
1601
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
1602
|
+
|
|
1603
|
+
# form parameters
|
|
1604
|
+
form_params = opts[:form_params] || {}
|
|
1605
|
+
|
|
1606
|
+
# http body (model)
|
|
1607
|
+
post_body = opts[:debug_body]
|
|
1608
|
+
|
|
1609
|
+
# return_type
|
|
1610
|
+
return_type = opts[:debug_return_type] || 'PaginatedPokemonShapeSummaryList'
|
|
1611
|
+
|
|
1612
|
+
# auth_names
|
|
1613
|
+
auth_names = opts[:debug_auth_names] || ['basicAuth', 'cookieAuth']
|
|
1614
|
+
|
|
1615
|
+
new_options = opts.merge(
|
|
1616
|
+
:operation => :"PokemonApi.pokemon_shape_list",
|
|
1617
|
+
:header_params => header_params,
|
|
1618
|
+
:query_params => query_params,
|
|
1619
|
+
:form_params => form_params,
|
|
1620
|
+
:body => post_body,
|
|
1621
|
+
:auth_names => auth_names,
|
|
1622
|
+
:return_type => return_type
|
|
1623
|
+
)
|
|
1624
|
+
|
|
1625
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
1626
|
+
if @api_client.config.debugging
|
|
1627
|
+
@api_client.config.logger.debug "API called: PokemonApi#pokemon_shape_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1628
|
+
end
|
|
1629
|
+
return data, status_code, headers
|
|
1630
|
+
end
|
|
1631
|
+
|
|
1632
|
+
# Get pokemon shape
|
|
1633
|
+
# Shapes used for sorting Pokémon in a Pokédex.
|
|
1634
|
+
# @param id [String] This parameter can be a string or an integer.
|
|
1635
|
+
# @param [Hash] opts the optional parameters
|
|
1636
|
+
# @return [PokemonShapeDetail]
|
|
1637
|
+
def pokemon_shape_retrieve(id, opts = {})
|
|
1638
|
+
data, _status_code, _headers = pokemon_shape_retrieve_with_http_info(id, opts)
|
|
1639
|
+
data
|
|
1640
|
+
end
|
|
1641
|
+
|
|
1642
|
+
# Get pokemon shape
|
|
1643
|
+
# Shapes used for sorting Pokémon in a Pokédex.
|
|
1644
|
+
# @param id [String] This parameter can be a string or an integer.
|
|
31
1645
|
# @param [Hash] opts the optional parameters
|
|
32
|
-
# @
|
|
33
|
-
|
|
34
|
-
# @return [Array<(String, Integer, Hash)>] String data, response status code and response headers
|
|
35
|
-
def pokemon_list_with_http_info(opts = {})
|
|
1646
|
+
# @return [Array<(PokemonShapeDetail, Integer, Hash)>] PokemonShapeDetail data, response status code and response headers
|
|
1647
|
+
def pokemon_shape_retrieve_with_http_info(id, opts = {})
|
|
36
1648
|
if @api_client.config.debugging
|
|
37
|
-
@api_client.config.logger.debug 'Calling API: PokemonApi.
|
|
1649
|
+
@api_client.config.logger.debug 'Calling API: PokemonApi.pokemon_shape_retrieve ...'
|
|
1650
|
+
end
|
|
1651
|
+
# verify the required parameter 'id' is set
|
|
1652
|
+
if @api_client.config.client_side_validation && id.nil?
|
|
1653
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling PokemonApi.pokemon_shape_retrieve"
|
|
38
1654
|
end
|
|
39
1655
|
# resource path
|
|
40
|
-
local_var_path = '/api/v2/pokemon/'
|
|
1656
|
+
local_var_path = '/api/v2/pokemon-shape/{id}/'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
|
1657
|
+
|
|
1658
|
+
# query parameters
|
|
1659
|
+
query_params = opts[:query_params] || {}
|
|
1660
|
+
|
|
1661
|
+
# header parameters
|
|
1662
|
+
header_params = opts[:header_params] || {}
|
|
1663
|
+
# HTTP header 'Accept' (if needed)
|
|
1664
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
1665
|
+
|
|
1666
|
+
# form parameters
|
|
1667
|
+
form_params = opts[:form_params] || {}
|
|
1668
|
+
|
|
1669
|
+
# http body (model)
|
|
1670
|
+
post_body = opts[:debug_body]
|
|
1671
|
+
|
|
1672
|
+
# return_type
|
|
1673
|
+
return_type = opts[:debug_return_type] || 'PokemonShapeDetail'
|
|
1674
|
+
|
|
1675
|
+
# auth_names
|
|
1676
|
+
auth_names = opts[:debug_auth_names] || ['basicAuth', 'cookieAuth']
|
|
1677
|
+
|
|
1678
|
+
new_options = opts.merge(
|
|
1679
|
+
:operation => :"PokemonApi.pokemon_shape_retrieve",
|
|
1680
|
+
:header_params => header_params,
|
|
1681
|
+
:query_params => query_params,
|
|
1682
|
+
:form_params => form_params,
|
|
1683
|
+
:body => post_body,
|
|
1684
|
+
:auth_names => auth_names,
|
|
1685
|
+
:return_type => return_type
|
|
1686
|
+
)
|
|
1687
|
+
|
|
1688
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
1689
|
+
if @api_client.config.debugging
|
|
1690
|
+
@api_client.config.logger.debug "API called: PokemonApi#pokemon_shape_retrieve\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1691
|
+
end
|
|
1692
|
+
return data, status_code, headers
|
|
1693
|
+
end
|
|
1694
|
+
|
|
1695
|
+
# List pokemon species
|
|
1696
|
+
# A Pokémon Species forms the basis for at least one Pokémon. Attributes of a Pokémon species are shared across all varieties of Pokémon within the species. A good example is Wormadam; Wormadam is the species which can be found in three different varieties, Wormadam-Trash, Wormadam-Sandy and Wormadam-Plant.
|
|
1697
|
+
# @param [Hash] opts the optional parameters
|
|
1698
|
+
# @option opts [Integer] :limit Number of results to return per page.
|
|
1699
|
+
# @option opts [Integer] :offset The initial index from which to return the results.
|
|
1700
|
+
# @option opts [String] :q > Only available locally and not at [pokeapi.co](https://pokeapi.co/docs/v2) Case-insensitive query applied on the `name` property.
|
|
1701
|
+
# @return [PaginatedPokemonSpeciesSummaryList]
|
|
1702
|
+
def pokemon_species_list(opts = {})
|
|
1703
|
+
data, _status_code, _headers = pokemon_species_list_with_http_info(opts)
|
|
1704
|
+
data
|
|
1705
|
+
end
|
|
1706
|
+
|
|
1707
|
+
# List pokemon species
|
|
1708
|
+
# A Pokémon Species forms the basis for at least one Pokémon. Attributes of a Pokémon species are shared across all varieties of Pokémon within the species. A good example is Wormadam; Wormadam is the species which can be found in three different varieties, Wormadam-Trash, Wormadam-Sandy and Wormadam-Plant.
|
|
1709
|
+
# @param [Hash] opts the optional parameters
|
|
1710
|
+
# @option opts [Integer] :limit Number of results to return per page.
|
|
1711
|
+
# @option opts [Integer] :offset The initial index from which to return the results.
|
|
1712
|
+
# @option opts [String] :q > Only available locally and not at [pokeapi.co](https://pokeapi.co/docs/v2) Case-insensitive query applied on the `name` property.
|
|
1713
|
+
# @return [Array<(PaginatedPokemonSpeciesSummaryList, Integer, Hash)>] PaginatedPokemonSpeciesSummaryList data, response status code and response headers
|
|
1714
|
+
def pokemon_species_list_with_http_info(opts = {})
|
|
1715
|
+
if @api_client.config.debugging
|
|
1716
|
+
@api_client.config.logger.debug 'Calling API: PokemonApi.pokemon_species_list ...'
|
|
1717
|
+
end
|
|
1718
|
+
# resource path
|
|
1719
|
+
local_var_path = '/api/v2/pokemon-species/'
|
|
41
1720
|
|
|
42
1721
|
# query parameters
|
|
43
1722
|
query_params = opts[:query_params] || {}
|
|
44
1723
|
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
|
45
1724
|
query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
|
|
1725
|
+
query_params[:'q'] = opts[:'q'] if !opts[:'q'].nil?
|
|
46
1726
|
|
|
47
1727
|
# header parameters
|
|
48
1728
|
header_params = opts[:header_params] || {}
|
|
49
1729
|
# HTTP header 'Accept' (if needed)
|
|
50
|
-
header_params['Accept'] = @api_client.select_header_accept(['
|
|
1730
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
51
1731
|
|
|
52
1732
|
# form parameters
|
|
53
1733
|
form_params = opts[:form_params] || {}
|
|
@@ -56,13 +1736,13 @@ module PokeApiClient
|
|
|
56
1736
|
post_body = opts[:debug_body]
|
|
57
1737
|
|
|
58
1738
|
# return_type
|
|
59
|
-
return_type = opts[:debug_return_type] || '
|
|
1739
|
+
return_type = opts[:debug_return_type] || 'PaginatedPokemonSpeciesSummaryList'
|
|
60
1740
|
|
|
61
1741
|
# auth_names
|
|
62
|
-
auth_names = opts[:debug_auth_names] || []
|
|
1742
|
+
auth_names = opts[:debug_auth_names] || ['basicAuth', 'cookieAuth']
|
|
63
1743
|
|
|
64
1744
|
new_options = opts.merge(
|
|
65
|
-
:operation => :"PokemonApi.
|
|
1745
|
+
:operation => :"PokemonApi.pokemon_species_list",
|
|
66
1746
|
:header_params => header_params,
|
|
67
1747
|
:query_params => query_params,
|
|
68
1748
|
:form_params => form_params,
|
|
@@ -73,32 +1753,294 @@ module PokeApiClient
|
|
|
73
1753
|
|
|
74
1754
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
75
1755
|
if @api_client.config.debugging
|
|
76
|
-
@api_client.config.logger.debug "API called: PokemonApi#
|
|
1756
|
+
@api_client.config.logger.debug "API called: PokemonApi#pokemon_species_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
77
1757
|
end
|
|
78
1758
|
return data, status_code, headers
|
|
79
1759
|
end
|
|
80
1760
|
|
|
81
|
-
#
|
|
1761
|
+
# Get pokemon species
|
|
1762
|
+
# A Pokémon Species forms the basis for at least one Pokémon. Attributes of a Pokémon species are shared across all varieties of Pokémon within the species. A good example is Wormadam; Wormadam is the species which can be found in three different varieties, Wormadam-Trash, Wormadam-Sandy and Wormadam-Plant.
|
|
1763
|
+
# @param id [String] This parameter can be a string or an integer.
|
|
82
1764
|
# @param [Hash] opts the optional parameters
|
|
83
|
-
# @return [
|
|
84
|
-
def
|
|
85
|
-
data, _status_code, _headers =
|
|
1765
|
+
# @return [PokemonSpeciesDetail]
|
|
1766
|
+
def pokemon_species_retrieve(id, opts = {})
|
|
1767
|
+
data, _status_code, _headers = pokemon_species_retrieve_with_http_info(id, opts)
|
|
86
1768
|
data
|
|
87
1769
|
end
|
|
88
1770
|
|
|
89
|
-
#
|
|
1771
|
+
# Get pokemon species
|
|
1772
|
+
# A Pokémon Species forms the basis for at least one Pokémon. Attributes of a Pokémon species are shared across all varieties of Pokémon within the species. A good example is Wormadam; Wormadam is the species which can be found in three different varieties, Wormadam-Trash, Wormadam-Sandy and Wormadam-Plant.
|
|
1773
|
+
# @param id [String] This parameter can be a string or an integer.
|
|
90
1774
|
# @param [Hash] opts the optional parameters
|
|
91
|
-
# @return [Array<(
|
|
92
|
-
def
|
|
1775
|
+
# @return [Array<(PokemonSpeciesDetail, Integer, Hash)>] PokemonSpeciesDetail data, response status code and response headers
|
|
1776
|
+
def pokemon_species_retrieve_with_http_info(id, opts = {})
|
|
93
1777
|
if @api_client.config.debugging
|
|
94
|
-
@api_client.config.logger.debug 'Calling API: PokemonApi.
|
|
1778
|
+
@api_client.config.logger.debug 'Calling API: PokemonApi.pokemon_species_retrieve ...'
|
|
95
1779
|
end
|
|
96
1780
|
# verify the required parameter 'id' is set
|
|
97
1781
|
if @api_client.config.client_side_validation && id.nil?
|
|
98
|
-
fail ArgumentError, "Missing the required parameter 'id' when calling PokemonApi.
|
|
1782
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling PokemonApi.pokemon_species_retrieve"
|
|
99
1783
|
end
|
|
100
1784
|
# resource path
|
|
101
|
-
local_var_path = '/api/v2/pokemon/{id}/'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
|
1785
|
+
local_var_path = '/api/v2/pokemon-species/{id}/'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
|
1786
|
+
|
|
1787
|
+
# query parameters
|
|
1788
|
+
query_params = opts[:query_params] || {}
|
|
1789
|
+
|
|
1790
|
+
# header parameters
|
|
1791
|
+
header_params = opts[:header_params] || {}
|
|
1792
|
+
# HTTP header 'Accept' (if needed)
|
|
1793
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
1794
|
+
|
|
1795
|
+
# form parameters
|
|
1796
|
+
form_params = opts[:form_params] || {}
|
|
1797
|
+
|
|
1798
|
+
# http body (model)
|
|
1799
|
+
post_body = opts[:debug_body]
|
|
1800
|
+
|
|
1801
|
+
# return_type
|
|
1802
|
+
return_type = opts[:debug_return_type] || 'PokemonSpeciesDetail'
|
|
1803
|
+
|
|
1804
|
+
# auth_names
|
|
1805
|
+
auth_names = opts[:debug_auth_names] || ['basicAuth', 'cookieAuth']
|
|
1806
|
+
|
|
1807
|
+
new_options = opts.merge(
|
|
1808
|
+
:operation => :"PokemonApi.pokemon_species_retrieve",
|
|
1809
|
+
:header_params => header_params,
|
|
1810
|
+
:query_params => query_params,
|
|
1811
|
+
:form_params => form_params,
|
|
1812
|
+
:body => post_body,
|
|
1813
|
+
:auth_names => auth_names,
|
|
1814
|
+
:return_type => return_type
|
|
1815
|
+
)
|
|
1816
|
+
|
|
1817
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
1818
|
+
if @api_client.config.debugging
|
|
1819
|
+
@api_client.config.logger.debug "API called: PokemonApi#pokemon_species_retrieve\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1820
|
+
end
|
|
1821
|
+
return data, status_code, headers
|
|
1822
|
+
end
|
|
1823
|
+
|
|
1824
|
+
# List stats
|
|
1825
|
+
# Stats determine certain aspects of battles. Each Pokémon has a value for each stat which grows as they gain levels and can be altered momentarily by effects in battles.
|
|
1826
|
+
# @param [Hash] opts the optional parameters
|
|
1827
|
+
# @option opts [Integer] :limit Number of results to return per page.
|
|
1828
|
+
# @option opts [Integer] :offset The initial index from which to return the results.
|
|
1829
|
+
# @option opts [String] :q > Only available locally and not at [pokeapi.co](https://pokeapi.co/docs/v2) Case-insensitive query applied on the `name` property.
|
|
1830
|
+
# @return [PaginatedStatSummaryList]
|
|
1831
|
+
def stat_list(opts = {})
|
|
1832
|
+
data, _status_code, _headers = stat_list_with_http_info(opts)
|
|
1833
|
+
data
|
|
1834
|
+
end
|
|
1835
|
+
|
|
1836
|
+
# List stats
|
|
1837
|
+
# Stats determine certain aspects of battles. Each Pokémon has a value for each stat which grows as they gain levels and can be altered momentarily by effects in battles.
|
|
1838
|
+
# @param [Hash] opts the optional parameters
|
|
1839
|
+
# @option opts [Integer] :limit Number of results to return per page.
|
|
1840
|
+
# @option opts [Integer] :offset The initial index from which to return the results.
|
|
1841
|
+
# @option opts [String] :q > Only available locally and not at [pokeapi.co](https://pokeapi.co/docs/v2) Case-insensitive query applied on the `name` property.
|
|
1842
|
+
# @return [Array<(PaginatedStatSummaryList, Integer, Hash)>] PaginatedStatSummaryList data, response status code and response headers
|
|
1843
|
+
def stat_list_with_http_info(opts = {})
|
|
1844
|
+
if @api_client.config.debugging
|
|
1845
|
+
@api_client.config.logger.debug 'Calling API: PokemonApi.stat_list ...'
|
|
1846
|
+
end
|
|
1847
|
+
# resource path
|
|
1848
|
+
local_var_path = '/api/v2/stat/'
|
|
1849
|
+
|
|
1850
|
+
# query parameters
|
|
1851
|
+
query_params = opts[:query_params] || {}
|
|
1852
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
|
1853
|
+
query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
|
|
1854
|
+
query_params[:'q'] = opts[:'q'] if !opts[:'q'].nil?
|
|
1855
|
+
|
|
1856
|
+
# header parameters
|
|
1857
|
+
header_params = opts[:header_params] || {}
|
|
1858
|
+
# HTTP header 'Accept' (if needed)
|
|
1859
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
1860
|
+
|
|
1861
|
+
# form parameters
|
|
1862
|
+
form_params = opts[:form_params] || {}
|
|
1863
|
+
|
|
1864
|
+
# http body (model)
|
|
1865
|
+
post_body = opts[:debug_body]
|
|
1866
|
+
|
|
1867
|
+
# return_type
|
|
1868
|
+
return_type = opts[:debug_return_type] || 'PaginatedStatSummaryList'
|
|
1869
|
+
|
|
1870
|
+
# auth_names
|
|
1871
|
+
auth_names = opts[:debug_auth_names] || ['basicAuth', 'cookieAuth']
|
|
1872
|
+
|
|
1873
|
+
new_options = opts.merge(
|
|
1874
|
+
:operation => :"PokemonApi.stat_list",
|
|
1875
|
+
:header_params => header_params,
|
|
1876
|
+
:query_params => query_params,
|
|
1877
|
+
:form_params => form_params,
|
|
1878
|
+
:body => post_body,
|
|
1879
|
+
:auth_names => auth_names,
|
|
1880
|
+
:return_type => return_type
|
|
1881
|
+
)
|
|
1882
|
+
|
|
1883
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
1884
|
+
if @api_client.config.debugging
|
|
1885
|
+
@api_client.config.logger.debug "API called: PokemonApi#stat_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1886
|
+
end
|
|
1887
|
+
return data, status_code, headers
|
|
1888
|
+
end
|
|
1889
|
+
|
|
1890
|
+
# Get stat
|
|
1891
|
+
# Stats determine certain aspects of battles. Each Pokémon has a value for each stat which grows as they gain levels and can be altered momentarily by effects in battles.
|
|
1892
|
+
# @param id [String] This parameter can be a string or an integer.
|
|
1893
|
+
# @param [Hash] opts the optional parameters
|
|
1894
|
+
# @return [StatDetail]
|
|
1895
|
+
def stat_retrieve(id, opts = {})
|
|
1896
|
+
data, _status_code, _headers = stat_retrieve_with_http_info(id, opts)
|
|
1897
|
+
data
|
|
1898
|
+
end
|
|
1899
|
+
|
|
1900
|
+
# Get stat
|
|
1901
|
+
# Stats determine certain aspects of battles. Each Pokémon has a value for each stat which grows as they gain levels and can be altered momentarily by effects in battles.
|
|
1902
|
+
# @param id [String] This parameter can be a string or an integer.
|
|
1903
|
+
# @param [Hash] opts the optional parameters
|
|
1904
|
+
# @return [Array<(StatDetail, Integer, Hash)>] StatDetail data, response status code and response headers
|
|
1905
|
+
def stat_retrieve_with_http_info(id, opts = {})
|
|
1906
|
+
if @api_client.config.debugging
|
|
1907
|
+
@api_client.config.logger.debug 'Calling API: PokemonApi.stat_retrieve ...'
|
|
1908
|
+
end
|
|
1909
|
+
# verify the required parameter 'id' is set
|
|
1910
|
+
if @api_client.config.client_side_validation && id.nil?
|
|
1911
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling PokemonApi.stat_retrieve"
|
|
1912
|
+
end
|
|
1913
|
+
# resource path
|
|
1914
|
+
local_var_path = '/api/v2/stat/{id}/'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
|
1915
|
+
|
|
1916
|
+
# query parameters
|
|
1917
|
+
query_params = opts[:query_params] || {}
|
|
1918
|
+
|
|
1919
|
+
# header parameters
|
|
1920
|
+
header_params = opts[:header_params] || {}
|
|
1921
|
+
# HTTP header 'Accept' (if needed)
|
|
1922
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
1923
|
+
|
|
1924
|
+
# form parameters
|
|
1925
|
+
form_params = opts[:form_params] || {}
|
|
1926
|
+
|
|
1927
|
+
# http body (model)
|
|
1928
|
+
post_body = opts[:debug_body]
|
|
1929
|
+
|
|
1930
|
+
# return_type
|
|
1931
|
+
return_type = opts[:debug_return_type] || 'StatDetail'
|
|
1932
|
+
|
|
1933
|
+
# auth_names
|
|
1934
|
+
auth_names = opts[:debug_auth_names] || ['basicAuth', 'cookieAuth']
|
|
1935
|
+
|
|
1936
|
+
new_options = opts.merge(
|
|
1937
|
+
:operation => :"PokemonApi.stat_retrieve",
|
|
1938
|
+
:header_params => header_params,
|
|
1939
|
+
:query_params => query_params,
|
|
1940
|
+
:form_params => form_params,
|
|
1941
|
+
:body => post_body,
|
|
1942
|
+
:auth_names => auth_names,
|
|
1943
|
+
:return_type => return_type
|
|
1944
|
+
)
|
|
1945
|
+
|
|
1946
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
1947
|
+
if @api_client.config.debugging
|
|
1948
|
+
@api_client.config.logger.debug "API called: PokemonApi#stat_retrieve\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1949
|
+
end
|
|
1950
|
+
return data, status_code, headers
|
|
1951
|
+
end
|
|
1952
|
+
|
|
1953
|
+
# List types
|
|
1954
|
+
# Types are properties for Pokémon and their moves. Each type has three properties: which types of Pokémon it is super effective against, which types of Pokémon it is not very effective against, and which types of Pokémon it is completely ineffective against.
|
|
1955
|
+
# @param [Hash] opts the optional parameters
|
|
1956
|
+
# @option opts [Integer] :limit Number of results to return per page.
|
|
1957
|
+
# @option opts [Integer] :offset The initial index from which to return the results.
|
|
1958
|
+
# @option opts [String] :q > Only available locally and not at [pokeapi.co](https://pokeapi.co/docs/v2) Case-insensitive query applied on the `name` property.
|
|
1959
|
+
# @return [PaginatedTypeSummaryList]
|
|
1960
|
+
def type_list(opts = {})
|
|
1961
|
+
data, _status_code, _headers = type_list_with_http_info(opts)
|
|
1962
|
+
data
|
|
1963
|
+
end
|
|
1964
|
+
|
|
1965
|
+
# List types
|
|
1966
|
+
# Types are properties for Pokémon and their moves. Each type has three properties: which types of Pokémon it is super effective against, which types of Pokémon it is not very effective against, and which types of Pokémon it is completely ineffective against.
|
|
1967
|
+
# @param [Hash] opts the optional parameters
|
|
1968
|
+
# @option opts [Integer] :limit Number of results to return per page.
|
|
1969
|
+
# @option opts [Integer] :offset The initial index from which to return the results.
|
|
1970
|
+
# @option opts [String] :q > Only available locally and not at [pokeapi.co](https://pokeapi.co/docs/v2) Case-insensitive query applied on the `name` property.
|
|
1971
|
+
# @return [Array<(PaginatedTypeSummaryList, Integer, Hash)>] PaginatedTypeSummaryList data, response status code and response headers
|
|
1972
|
+
def type_list_with_http_info(opts = {})
|
|
1973
|
+
if @api_client.config.debugging
|
|
1974
|
+
@api_client.config.logger.debug 'Calling API: PokemonApi.type_list ...'
|
|
1975
|
+
end
|
|
1976
|
+
# resource path
|
|
1977
|
+
local_var_path = '/api/v2/type/'
|
|
1978
|
+
|
|
1979
|
+
# query parameters
|
|
1980
|
+
query_params = opts[:query_params] || {}
|
|
1981
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
|
1982
|
+
query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
|
|
1983
|
+
query_params[:'q'] = opts[:'q'] if !opts[:'q'].nil?
|
|
1984
|
+
|
|
1985
|
+
# header parameters
|
|
1986
|
+
header_params = opts[:header_params] || {}
|
|
1987
|
+
# HTTP header 'Accept' (if needed)
|
|
1988
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
1989
|
+
|
|
1990
|
+
# form parameters
|
|
1991
|
+
form_params = opts[:form_params] || {}
|
|
1992
|
+
|
|
1993
|
+
# http body (model)
|
|
1994
|
+
post_body = opts[:debug_body]
|
|
1995
|
+
|
|
1996
|
+
# return_type
|
|
1997
|
+
return_type = opts[:debug_return_type] || 'PaginatedTypeSummaryList'
|
|
1998
|
+
|
|
1999
|
+
# auth_names
|
|
2000
|
+
auth_names = opts[:debug_auth_names] || ['basicAuth', 'cookieAuth']
|
|
2001
|
+
|
|
2002
|
+
new_options = opts.merge(
|
|
2003
|
+
:operation => :"PokemonApi.type_list",
|
|
2004
|
+
:header_params => header_params,
|
|
2005
|
+
:query_params => query_params,
|
|
2006
|
+
:form_params => form_params,
|
|
2007
|
+
:body => post_body,
|
|
2008
|
+
:auth_names => auth_names,
|
|
2009
|
+
:return_type => return_type
|
|
2010
|
+
)
|
|
2011
|
+
|
|
2012
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
2013
|
+
if @api_client.config.debugging
|
|
2014
|
+
@api_client.config.logger.debug "API called: PokemonApi#type_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
2015
|
+
end
|
|
2016
|
+
return data, status_code, headers
|
|
2017
|
+
end
|
|
2018
|
+
|
|
2019
|
+
# Get types
|
|
2020
|
+
# Types are properties for Pokémon and their moves. Each type has three properties: which types of Pokémon it is super effective against, which types of Pokémon it is not very effective against, and which types of Pokémon it is completely ineffective against.
|
|
2021
|
+
# @param id [String] This parameter can be a string or an integer.
|
|
2022
|
+
# @param [Hash] opts the optional parameters
|
|
2023
|
+
# @return [TypeDetail]
|
|
2024
|
+
def type_retrieve(id, opts = {})
|
|
2025
|
+
data, _status_code, _headers = type_retrieve_with_http_info(id, opts)
|
|
2026
|
+
data
|
|
2027
|
+
end
|
|
2028
|
+
|
|
2029
|
+
# Get types
|
|
2030
|
+
# Types are properties for Pokémon and their moves. Each type has three properties: which types of Pokémon it is super effective against, which types of Pokémon it is not very effective against, and which types of Pokémon it is completely ineffective against.
|
|
2031
|
+
# @param id [String] This parameter can be a string or an integer.
|
|
2032
|
+
# @param [Hash] opts the optional parameters
|
|
2033
|
+
# @return [Array<(TypeDetail, Integer, Hash)>] TypeDetail data, response status code and response headers
|
|
2034
|
+
def type_retrieve_with_http_info(id, opts = {})
|
|
2035
|
+
if @api_client.config.debugging
|
|
2036
|
+
@api_client.config.logger.debug 'Calling API: PokemonApi.type_retrieve ...'
|
|
2037
|
+
end
|
|
2038
|
+
# verify the required parameter 'id' is set
|
|
2039
|
+
if @api_client.config.client_side_validation && id.nil?
|
|
2040
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling PokemonApi.type_retrieve"
|
|
2041
|
+
end
|
|
2042
|
+
# resource path
|
|
2043
|
+
local_var_path = '/api/v2/type/{id}/'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
|
102
2044
|
|
|
103
2045
|
# query parameters
|
|
104
2046
|
query_params = opts[:query_params] || {}
|
|
@@ -106,7 +2048,7 @@ module PokeApiClient
|
|
|
106
2048
|
# header parameters
|
|
107
2049
|
header_params = opts[:header_params] || {}
|
|
108
2050
|
# HTTP header 'Accept' (if needed)
|
|
109
|
-
header_params['Accept'] = @api_client.select_header_accept(['
|
|
2051
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
110
2052
|
|
|
111
2053
|
# form parameters
|
|
112
2054
|
form_params = opts[:form_params] || {}
|
|
@@ -115,13 +2057,13 @@ module PokeApiClient
|
|
|
115
2057
|
post_body = opts[:debug_body]
|
|
116
2058
|
|
|
117
2059
|
# return_type
|
|
118
|
-
return_type = opts[:debug_return_type] || '
|
|
2060
|
+
return_type = opts[:debug_return_type] || 'TypeDetail'
|
|
119
2061
|
|
|
120
2062
|
# auth_names
|
|
121
|
-
auth_names = opts[:debug_auth_names] || []
|
|
2063
|
+
auth_names = opts[:debug_auth_names] || ['basicAuth', 'cookieAuth']
|
|
122
2064
|
|
|
123
2065
|
new_options = opts.merge(
|
|
124
|
-
:operation => :"PokemonApi.
|
|
2066
|
+
:operation => :"PokemonApi.type_retrieve",
|
|
125
2067
|
:header_params => header_params,
|
|
126
2068
|
:query_params => query_params,
|
|
127
2069
|
:form_params => form_params,
|
|
@@ -132,7 +2074,7 @@ module PokeApiClient
|
|
|
132
2074
|
|
|
133
2075
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
134
2076
|
if @api_client.config.debugging
|
|
135
|
-
@api_client.config.logger.debug "API called: PokemonApi#
|
|
2077
|
+
@api_client.config.logger.debug "API called: PokemonApi#type_retrieve\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
136
2078
|
end
|
|
137
2079
|
return data, status_code, headers
|
|
138
2080
|
end
|