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
data/docs/PokemonApi.md
CHANGED
|
@@ -4,52 +4,96 @@ All URIs are relative to *https://pokeapi.co*
|
|
|
4
4
|
|
|
5
5
|
| Method | HTTP request | Description |
|
|
6
6
|
| ------ | ------------ | ----------- |
|
|
7
|
-
| [**
|
|
8
|
-
| [**
|
|
7
|
+
| [**ability_list**](PokemonApi.md#ability_list) | **GET** /api/v2/ability/ | |
|
|
8
|
+
| [**ability_retrieve**](PokemonApi.md#ability_retrieve) | **GET** /api/v2/ability/{id}/ | |
|
|
9
|
+
| [**characteristic_list**](PokemonApi.md#characteristic_list) | **GET** /api/v2/characteristic/ | List charecterictics |
|
|
10
|
+
| [**characteristic_retrieve**](PokemonApi.md#characteristic_retrieve) | **GET** /api/v2/characteristic/{id}/ | Get characteristic |
|
|
11
|
+
| [**egg_group_list**](PokemonApi.md#egg_group_list) | **GET** /api/v2/egg-group/ | List egg groups |
|
|
12
|
+
| [**egg_group_retrieve**](PokemonApi.md#egg_group_retrieve) | **GET** /api/v2/egg-group/{id}/ | Get egg group |
|
|
13
|
+
| [**gender_list**](PokemonApi.md#gender_list) | **GET** /api/v2/gender/ | List genders |
|
|
14
|
+
| [**gender_retrieve**](PokemonApi.md#gender_retrieve) | **GET** /api/v2/gender/{id}/ | Get gender |
|
|
15
|
+
| [**growth_rate_list**](PokemonApi.md#growth_rate_list) | **GET** /api/v2/growth-rate/ | List growth rates |
|
|
16
|
+
| [**growth_rate_retrieve**](PokemonApi.md#growth_rate_retrieve) | **GET** /api/v2/growth-rate/{id}/ | Get growth rate |
|
|
17
|
+
| [**move_damage_class_list**](PokemonApi.md#move_damage_class_list) | **GET** /api/v2/move-damage-class/ | List move damage classes |
|
|
18
|
+
| [**move_damage_class_retrieve**](PokemonApi.md#move_damage_class_retrieve) | **GET** /api/v2/move-damage-class/{id}/ | Get move damage class |
|
|
19
|
+
| [**nature_list**](PokemonApi.md#nature_list) | **GET** /api/v2/nature/ | List natures |
|
|
20
|
+
| [**nature_retrieve**](PokemonApi.md#nature_retrieve) | **GET** /api/v2/nature/{id}/ | Get nature |
|
|
21
|
+
| [**pokeathlon_stat_list**](PokemonApi.md#pokeathlon_stat_list) | **GET** /api/v2/pokeathlon-stat/ | List pokeathlon stats |
|
|
22
|
+
| [**pokeathlon_stat_retrieve**](PokemonApi.md#pokeathlon_stat_retrieve) | **GET** /api/v2/pokeathlon-stat/{id}/ | Get pokeathlon stat |
|
|
23
|
+
| [**pokemon_color_list**](PokemonApi.md#pokemon_color_list) | **GET** /api/v2/pokemon-color/ | List pokemon colors |
|
|
24
|
+
| [**pokemon_color_retrieve**](PokemonApi.md#pokemon_color_retrieve) | **GET** /api/v2/pokemon-color/{id}/ | Get pokemon color |
|
|
25
|
+
| [**pokemon_form_list**](PokemonApi.md#pokemon_form_list) | **GET** /api/v2/pokemon-form/ | List pokemon forms |
|
|
26
|
+
| [**pokemon_form_retrieve**](PokemonApi.md#pokemon_form_retrieve) | **GET** /api/v2/pokemon-form/{id}/ | Get pokemon form |
|
|
27
|
+
| [**pokemon_habitat_list**](PokemonApi.md#pokemon_habitat_list) | **GET** /api/v2/pokemon-habitat/ | List pokemom habitas |
|
|
28
|
+
| [**pokemon_habitat_retrieve**](PokemonApi.md#pokemon_habitat_retrieve) | **GET** /api/v2/pokemon-habitat/{id}/ | Get pokemom habita |
|
|
29
|
+
| [**pokemon_list**](PokemonApi.md#pokemon_list) | **GET** /api/v2/pokemon/ | List pokemon |
|
|
30
|
+
| [**pokemon_retrieve**](PokemonApi.md#pokemon_retrieve) | **GET** /api/v2/pokemon/{id}/ | Get pokemon |
|
|
31
|
+
| [**pokemon_shape_list**](PokemonApi.md#pokemon_shape_list) | **GET** /api/v2/pokemon-shape/ | List pokemon shapes |
|
|
32
|
+
| [**pokemon_shape_retrieve**](PokemonApi.md#pokemon_shape_retrieve) | **GET** /api/v2/pokemon-shape/{id}/ | Get pokemon shape |
|
|
33
|
+
| [**pokemon_species_list**](PokemonApi.md#pokemon_species_list) | **GET** /api/v2/pokemon-species/ | List pokemon species |
|
|
34
|
+
| [**pokemon_species_retrieve**](PokemonApi.md#pokemon_species_retrieve) | **GET** /api/v2/pokemon-species/{id}/ | Get pokemon species |
|
|
35
|
+
| [**stat_list**](PokemonApi.md#stat_list) | **GET** /api/v2/stat/ | List stats |
|
|
36
|
+
| [**stat_retrieve**](PokemonApi.md#stat_retrieve) | **GET** /api/v2/stat/{id}/ | Get stat |
|
|
37
|
+
| [**type_list**](PokemonApi.md#type_list) | **GET** /api/v2/type/ | List types |
|
|
38
|
+
| [**type_retrieve**](PokemonApi.md#type_retrieve) | **GET** /api/v2/type/{id}/ | Get types |
|
|
9
39
|
|
|
10
40
|
|
|
11
|
-
##
|
|
41
|
+
## ability_list
|
|
42
|
+
|
|
43
|
+
> <PaginatedAbilitySummaryList> ability_list(opts)
|
|
12
44
|
|
|
13
|
-
> String pokemon_list(opts)
|
|
14
45
|
|
|
15
46
|
|
|
47
|
+
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.
|
|
16
48
|
|
|
17
49
|
### Examples
|
|
18
50
|
|
|
19
51
|
```ruby
|
|
20
52
|
require 'time'
|
|
21
53
|
require 'pokeapi_client'
|
|
54
|
+
# setup authorization
|
|
55
|
+
PokeApiClient.configure do |config|
|
|
56
|
+
# Configure HTTP basic authorization: basicAuth
|
|
57
|
+
config.username = 'YOUR USERNAME'
|
|
58
|
+
config.password = 'YOUR PASSWORD'
|
|
59
|
+
|
|
60
|
+
# Configure API key authorization: cookieAuth
|
|
61
|
+
config.api_key['sessionid'] = 'YOUR API KEY'
|
|
62
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
|
63
|
+
# config.api_key_prefix['sessionid'] = 'Bearer'
|
|
64
|
+
end
|
|
22
65
|
|
|
23
66
|
api_instance = PokeApiClient::PokemonApi.new
|
|
24
67
|
opts = {
|
|
25
|
-
limit: 56, # Integer |
|
|
26
|
-
offset: 56 # Integer |
|
|
68
|
+
limit: 56, # Integer | Number of results to return per page.
|
|
69
|
+
offset: 56, # Integer | The initial index from which to return the results.
|
|
70
|
+
q: 'q_example' # String | > Only available locally and not at [pokeapi.co](https://pokeapi.co/docs/v2) Case-insensitive query applied on the `name` property.
|
|
27
71
|
}
|
|
28
72
|
|
|
29
73
|
begin
|
|
30
74
|
|
|
31
|
-
result = api_instance.
|
|
75
|
+
result = api_instance.ability_list(opts)
|
|
32
76
|
p result
|
|
33
77
|
rescue PokeApiClient::ApiError => e
|
|
34
|
-
puts "Error when calling PokemonApi->
|
|
78
|
+
puts "Error when calling PokemonApi->ability_list: #{e}"
|
|
35
79
|
end
|
|
36
80
|
```
|
|
37
81
|
|
|
38
|
-
#### Using the
|
|
82
|
+
#### Using the ability_list_with_http_info variant
|
|
39
83
|
|
|
40
84
|
This returns an Array which contains the response data, status code and headers.
|
|
41
85
|
|
|
42
|
-
> <Array(
|
|
86
|
+
> <Array(<PaginatedAbilitySummaryList>, Integer, Hash)> ability_list_with_http_info(opts)
|
|
43
87
|
|
|
44
88
|
```ruby
|
|
45
89
|
begin
|
|
46
90
|
|
|
47
|
-
data, status_code, headers = api_instance.
|
|
91
|
+
data, status_code, headers = api_instance.ability_list_with_http_info(opts)
|
|
48
92
|
p status_code # => 2xx
|
|
49
93
|
p headers # => { ... }
|
|
50
|
-
p data # =>
|
|
94
|
+
p data # => <PaginatedAbilitySummaryList>
|
|
51
95
|
rescue PokeApiClient::ApiError => e
|
|
52
|
-
puts "Error when calling PokemonApi->
|
|
96
|
+
puts "Error when calling PokemonApi->ability_list_with_http_info: #{e}"
|
|
53
97
|
end
|
|
54
98
|
```
|
|
55
99
|
|
|
@@ -57,62 +101,2416 @@ end
|
|
|
57
101
|
|
|
58
102
|
| Name | Type | Description | Notes |
|
|
59
103
|
| ---- | ---- | ----------- | ----- |
|
|
60
|
-
| **limit** | **Integer** |
|
|
61
|
-
| **offset** | **Integer** |
|
|
104
|
+
| **limit** | **Integer** | Number of results to return per page. | [optional] |
|
|
105
|
+
| **offset** | **Integer** | The initial index from which to return the results. | [optional] |
|
|
106
|
+
| **q** | **String** | > Only available locally and not at [pokeapi.co](https://pokeapi.co/docs/v2) Case-insensitive query applied on the `name` property. | [optional] |
|
|
62
107
|
|
|
63
108
|
### Return type
|
|
64
109
|
|
|
65
|
-
**
|
|
110
|
+
[**PaginatedAbilitySummaryList**](PaginatedAbilitySummaryList.md)
|
|
66
111
|
|
|
67
112
|
### Authorization
|
|
68
113
|
|
|
69
|
-
|
|
114
|
+
[basicAuth](../README.md#basicAuth), [cookieAuth](../README.md#cookieAuth)
|
|
70
115
|
|
|
71
116
|
### HTTP request headers
|
|
72
117
|
|
|
73
118
|
- **Content-Type**: Not defined
|
|
74
|
-
- **Accept**:
|
|
119
|
+
- **Accept**: application/json
|
|
120
|
+
|
|
75
121
|
|
|
122
|
+
## ability_retrieve
|
|
76
123
|
|
|
77
|
-
|
|
124
|
+
> <AbilityDetail> ability_retrieve(id)
|
|
78
125
|
|
|
79
|
-
> String pokemon_read(id)
|
|
80
126
|
|
|
81
127
|
|
|
128
|
+
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.
|
|
82
129
|
|
|
83
130
|
### Examples
|
|
84
131
|
|
|
85
132
|
```ruby
|
|
86
133
|
require 'time'
|
|
87
134
|
require 'pokeapi_client'
|
|
135
|
+
# setup authorization
|
|
136
|
+
PokeApiClient.configure do |config|
|
|
137
|
+
# Configure HTTP basic authorization: basicAuth
|
|
138
|
+
config.username = 'YOUR USERNAME'
|
|
139
|
+
config.password = 'YOUR PASSWORD'
|
|
140
|
+
|
|
141
|
+
# Configure API key authorization: cookieAuth
|
|
142
|
+
config.api_key['sessionid'] = 'YOUR API KEY'
|
|
143
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
|
144
|
+
# config.api_key_prefix['sessionid'] = 'Bearer'
|
|
145
|
+
end
|
|
88
146
|
|
|
89
147
|
api_instance = PokeApiClient::PokemonApi.new
|
|
90
|
-
id =
|
|
148
|
+
id = 'id_example' # String | This parameter can be a string or an integer.
|
|
91
149
|
|
|
92
150
|
begin
|
|
93
151
|
|
|
94
|
-
result = api_instance.
|
|
152
|
+
result = api_instance.ability_retrieve(id)
|
|
95
153
|
p result
|
|
96
154
|
rescue PokeApiClient::ApiError => e
|
|
97
|
-
puts "Error when calling PokemonApi->
|
|
155
|
+
puts "Error when calling PokemonApi->ability_retrieve: #{e}"
|
|
98
156
|
end
|
|
99
157
|
```
|
|
100
158
|
|
|
101
|
-
#### Using the
|
|
159
|
+
#### Using the ability_retrieve_with_http_info variant
|
|
102
160
|
|
|
103
161
|
This returns an Array which contains the response data, status code and headers.
|
|
104
162
|
|
|
105
|
-
> <Array(
|
|
163
|
+
> <Array(<AbilityDetail>, Integer, Hash)> ability_retrieve_with_http_info(id)
|
|
106
164
|
|
|
107
165
|
```ruby
|
|
108
166
|
begin
|
|
109
167
|
|
|
110
|
-
data, status_code, headers = api_instance.
|
|
168
|
+
data, status_code, headers = api_instance.ability_retrieve_with_http_info(id)
|
|
169
|
+
p status_code # => 2xx
|
|
170
|
+
p headers # => { ... }
|
|
171
|
+
p data # => <AbilityDetail>
|
|
172
|
+
rescue PokeApiClient::ApiError => e
|
|
173
|
+
puts "Error when calling PokemonApi->ability_retrieve_with_http_info: #{e}"
|
|
174
|
+
end
|
|
175
|
+
```
|
|
176
|
+
|
|
177
|
+
### Parameters
|
|
178
|
+
|
|
179
|
+
| Name | Type | Description | Notes |
|
|
180
|
+
| ---- | ---- | ----------- | ----- |
|
|
181
|
+
| **id** | **String** | This parameter can be a string or an integer. | |
|
|
182
|
+
|
|
183
|
+
### Return type
|
|
184
|
+
|
|
185
|
+
[**AbilityDetail**](AbilityDetail.md)
|
|
186
|
+
|
|
187
|
+
### Authorization
|
|
188
|
+
|
|
189
|
+
[basicAuth](../README.md#basicAuth), [cookieAuth](../README.md#cookieAuth)
|
|
190
|
+
|
|
191
|
+
### HTTP request headers
|
|
192
|
+
|
|
193
|
+
- **Content-Type**: Not defined
|
|
194
|
+
- **Accept**: application/json
|
|
195
|
+
|
|
196
|
+
|
|
197
|
+
## characteristic_list
|
|
198
|
+
|
|
199
|
+
> <PaginatedCharacteristicSummaryList> characteristic_list(opts)
|
|
200
|
+
|
|
201
|
+
List charecterictics
|
|
202
|
+
|
|
203
|
+
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.
|
|
204
|
+
|
|
205
|
+
### Examples
|
|
206
|
+
|
|
207
|
+
```ruby
|
|
208
|
+
require 'time'
|
|
209
|
+
require 'pokeapi_client'
|
|
210
|
+
# setup authorization
|
|
211
|
+
PokeApiClient.configure do |config|
|
|
212
|
+
# Configure HTTP basic authorization: basicAuth
|
|
213
|
+
config.username = 'YOUR USERNAME'
|
|
214
|
+
config.password = 'YOUR PASSWORD'
|
|
215
|
+
|
|
216
|
+
# Configure API key authorization: cookieAuth
|
|
217
|
+
config.api_key['sessionid'] = 'YOUR API KEY'
|
|
218
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
|
219
|
+
# config.api_key_prefix['sessionid'] = 'Bearer'
|
|
220
|
+
end
|
|
221
|
+
|
|
222
|
+
api_instance = PokeApiClient::PokemonApi.new
|
|
223
|
+
opts = {
|
|
224
|
+
limit: 56, # Integer | Number of results to return per page.
|
|
225
|
+
offset: 56, # Integer | The initial index from which to return the results.
|
|
226
|
+
q: 'q_example' # String | > Only available locally and not at [pokeapi.co](https://pokeapi.co/docs/v2) Case-insensitive query applied on the `name` property.
|
|
227
|
+
}
|
|
228
|
+
|
|
229
|
+
begin
|
|
230
|
+
# List charecterictics
|
|
231
|
+
result = api_instance.characteristic_list(opts)
|
|
232
|
+
p result
|
|
233
|
+
rescue PokeApiClient::ApiError => e
|
|
234
|
+
puts "Error when calling PokemonApi->characteristic_list: #{e}"
|
|
235
|
+
end
|
|
236
|
+
```
|
|
237
|
+
|
|
238
|
+
#### Using the characteristic_list_with_http_info variant
|
|
239
|
+
|
|
240
|
+
This returns an Array which contains the response data, status code and headers.
|
|
241
|
+
|
|
242
|
+
> <Array(<PaginatedCharacteristicSummaryList>, Integer, Hash)> characteristic_list_with_http_info(opts)
|
|
243
|
+
|
|
244
|
+
```ruby
|
|
245
|
+
begin
|
|
246
|
+
# List charecterictics
|
|
247
|
+
data, status_code, headers = api_instance.characteristic_list_with_http_info(opts)
|
|
248
|
+
p status_code # => 2xx
|
|
249
|
+
p headers # => { ... }
|
|
250
|
+
p data # => <PaginatedCharacteristicSummaryList>
|
|
251
|
+
rescue PokeApiClient::ApiError => e
|
|
252
|
+
puts "Error when calling PokemonApi->characteristic_list_with_http_info: #{e}"
|
|
253
|
+
end
|
|
254
|
+
```
|
|
255
|
+
|
|
256
|
+
### Parameters
|
|
257
|
+
|
|
258
|
+
| Name | Type | Description | Notes |
|
|
259
|
+
| ---- | ---- | ----------- | ----- |
|
|
260
|
+
| **limit** | **Integer** | Number of results to return per page. | [optional] |
|
|
261
|
+
| **offset** | **Integer** | The initial index from which to return the results. | [optional] |
|
|
262
|
+
| **q** | **String** | > Only available locally and not at [pokeapi.co](https://pokeapi.co/docs/v2) Case-insensitive query applied on the `name` property. | [optional] |
|
|
263
|
+
|
|
264
|
+
### Return type
|
|
265
|
+
|
|
266
|
+
[**PaginatedCharacteristicSummaryList**](PaginatedCharacteristicSummaryList.md)
|
|
267
|
+
|
|
268
|
+
### Authorization
|
|
269
|
+
|
|
270
|
+
[basicAuth](../README.md#basicAuth), [cookieAuth](../README.md#cookieAuth)
|
|
271
|
+
|
|
272
|
+
### HTTP request headers
|
|
273
|
+
|
|
274
|
+
- **Content-Type**: Not defined
|
|
275
|
+
- **Accept**: application/json
|
|
276
|
+
|
|
277
|
+
|
|
278
|
+
## characteristic_retrieve
|
|
279
|
+
|
|
280
|
+
> <CharacteristicDetail> characteristic_retrieve(id)
|
|
281
|
+
|
|
282
|
+
Get characteristic
|
|
283
|
+
|
|
284
|
+
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.
|
|
285
|
+
|
|
286
|
+
### Examples
|
|
287
|
+
|
|
288
|
+
```ruby
|
|
289
|
+
require 'time'
|
|
290
|
+
require 'pokeapi_client'
|
|
291
|
+
# setup authorization
|
|
292
|
+
PokeApiClient.configure do |config|
|
|
293
|
+
# Configure HTTP basic authorization: basicAuth
|
|
294
|
+
config.username = 'YOUR USERNAME'
|
|
295
|
+
config.password = 'YOUR PASSWORD'
|
|
296
|
+
|
|
297
|
+
# Configure API key authorization: cookieAuth
|
|
298
|
+
config.api_key['sessionid'] = 'YOUR API KEY'
|
|
299
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
|
300
|
+
# config.api_key_prefix['sessionid'] = 'Bearer'
|
|
301
|
+
end
|
|
302
|
+
|
|
303
|
+
api_instance = PokeApiClient::PokemonApi.new
|
|
304
|
+
id = 'id_example' # String | This parameter can be a string or an integer.
|
|
305
|
+
|
|
306
|
+
begin
|
|
307
|
+
# Get characteristic
|
|
308
|
+
result = api_instance.characteristic_retrieve(id)
|
|
309
|
+
p result
|
|
310
|
+
rescue PokeApiClient::ApiError => e
|
|
311
|
+
puts "Error when calling PokemonApi->characteristic_retrieve: #{e}"
|
|
312
|
+
end
|
|
313
|
+
```
|
|
314
|
+
|
|
315
|
+
#### Using the characteristic_retrieve_with_http_info variant
|
|
316
|
+
|
|
317
|
+
This returns an Array which contains the response data, status code and headers.
|
|
318
|
+
|
|
319
|
+
> <Array(<CharacteristicDetail>, Integer, Hash)> characteristic_retrieve_with_http_info(id)
|
|
320
|
+
|
|
321
|
+
```ruby
|
|
322
|
+
begin
|
|
323
|
+
# Get characteristic
|
|
324
|
+
data, status_code, headers = api_instance.characteristic_retrieve_with_http_info(id)
|
|
325
|
+
p status_code # => 2xx
|
|
326
|
+
p headers # => { ... }
|
|
327
|
+
p data # => <CharacteristicDetail>
|
|
328
|
+
rescue PokeApiClient::ApiError => e
|
|
329
|
+
puts "Error when calling PokemonApi->characteristic_retrieve_with_http_info: #{e}"
|
|
330
|
+
end
|
|
331
|
+
```
|
|
332
|
+
|
|
333
|
+
### Parameters
|
|
334
|
+
|
|
335
|
+
| Name | Type | Description | Notes |
|
|
336
|
+
| ---- | ---- | ----------- | ----- |
|
|
337
|
+
| **id** | **String** | This parameter can be a string or an integer. | |
|
|
338
|
+
|
|
339
|
+
### Return type
|
|
340
|
+
|
|
341
|
+
[**CharacteristicDetail**](CharacteristicDetail.md)
|
|
342
|
+
|
|
343
|
+
### Authorization
|
|
344
|
+
|
|
345
|
+
[basicAuth](../README.md#basicAuth), [cookieAuth](../README.md#cookieAuth)
|
|
346
|
+
|
|
347
|
+
### HTTP request headers
|
|
348
|
+
|
|
349
|
+
- **Content-Type**: Not defined
|
|
350
|
+
- **Accept**: application/json
|
|
351
|
+
|
|
352
|
+
|
|
353
|
+
## egg_group_list
|
|
354
|
+
|
|
355
|
+
> <PaginatedEggGroupSummaryList> egg_group_list(opts)
|
|
356
|
+
|
|
357
|
+
List egg groups
|
|
358
|
+
|
|
359
|
+
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.
|
|
360
|
+
|
|
361
|
+
### Examples
|
|
362
|
+
|
|
363
|
+
```ruby
|
|
364
|
+
require 'time'
|
|
365
|
+
require 'pokeapi_client'
|
|
366
|
+
# setup authorization
|
|
367
|
+
PokeApiClient.configure do |config|
|
|
368
|
+
# Configure HTTP basic authorization: basicAuth
|
|
369
|
+
config.username = 'YOUR USERNAME'
|
|
370
|
+
config.password = 'YOUR PASSWORD'
|
|
371
|
+
|
|
372
|
+
# Configure API key authorization: cookieAuth
|
|
373
|
+
config.api_key['sessionid'] = 'YOUR API KEY'
|
|
374
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
|
375
|
+
# config.api_key_prefix['sessionid'] = 'Bearer'
|
|
376
|
+
end
|
|
377
|
+
|
|
378
|
+
api_instance = PokeApiClient::PokemonApi.new
|
|
379
|
+
opts = {
|
|
380
|
+
limit: 56, # Integer | Number of results to return per page.
|
|
381
|
+
offset: 56, # Integer | The initial index from which to return the results.
|
|
382
|
+
q: 'q_example' # String | > Only available locally and not at [pokeapi.co](https://pokeapi.co/docs/v2) Case-insensitive query applied on the `name` property.
|
|
383
|
+
}
|
|
384
|
+
|
|
385
|
+
begin
|
|
386
|
+
# List egg groups
|
|
387
|
+
result = api_instance.egg_group_list(opts)
|
|
388
|
+
p result
|
|
389
|
+
rescue PokeApiClient::ApiError => e
|
|
390
|
+
puts "Error when calling PokemonApi->egg_group_list: #{e}"
|
|
391
|
+
end
|
|
392
|
+
```
|
|
393
|
+
|
|
394
|
+
#### Using the egg_group_list_with_http_info variant
|
|
395
|
+
|
|
396
|
+
This returns an Array which contains the response data, status code and headers.
|
|
397
|
+
|
|
398
|
+
> <Array(<PaginatedEggGroupSummaryList>, Integer, Hash)> egg_group_list_with_http_info(opts)
|
|
399
|
+
|
|
400
|
+
```ruby
|
|
401
|
+
begin
|
|
402
|
+
# List egg groups
|
|
403
|
+
data, status_code, headers = api_instance.egg_group_list_with_http_info(opts)
|
|
404
|
+
p status_code # => 2xx
|
|
405
|
+
p headers # => { ... }
|
|
406
|
+
p data # => <PaginatedEggGroupSummaryList>
|
|
407
|
+
rescue PokeApiClient::ApiError => e
|
|
408
|
+
puts "Error when calling PokemonApi->egg_group_list_with_http_info: #{e}"
|
|
409
|
+
end
|
|
410
|
+
```
|
|
411
|
+
|
|
412
|
+
### Parameters
|
|
413
|
+
|
|
414
|
+
| Name | Type | Description | Notes |
|
|
415
|
+
| ---- | ---- | ----------- | ----- |
|
|
416
|
+
| **limit** | **Integer** | Number of results to return per page. | [optional] |
|
|
417
|
+
| **offset** | **Integer** | The initial index from which to return the results. | [optional] |
|
|
418
|
+
| **q** | **String** | > Only available locally and not at [pokeapi.co](https://pokeapi.co/docs/v2) Case-insensitive query applied on the `name` property. | [optional] |
|
|
419
|
+
|
|
420
|
+
### Return type
|
|
421
|
+
|
|
422
|
+
[**PaginatedEggGroupSummaryList**](PaginatedEggGroupSummaryList.md)
|
|
423
|
+
|
|
424
|
+
### Authorization
|
|
425
|
+
|
|
426
|
+
[basicAuth](../README.md#basicAuth), [cookieAuth](../README.md#cookieAuth)
|
|
427
|
+
|
|
428
|
+
### HTTP request headers
|
|
429
|
+
|
|
430
|
+
- **Content-Type**: Not defined
|
|
431
|
+
- **Accept**: application/json
|
|
432
|
+
|
|
433
|
+
|
|
434
|
+
## egg_group_retrieve
|
|
435
|
+
|
|
436
|
+
> <EggGroupDetail> egg_group_retrieve(id)
|
|
437
|
+
|
|
438
|
+
Get egg group
|
|
439
|
+
|
|
440
|
+
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.
|
|
441
|
+
|
|
442
|
+
### Examples
|
|
443
|
+
|
|
444
|
+
```ruby
|
|
445
|
+
require 'time'
|
|
446
|
+
require 'pokeapi_client'
|
|
447
|
+
# setup authorization
|
|
448
|
+
PokeApiClient.configure do |config|
|
|
449
|
+
# Configure HTTP basic authorization: basicAuth
|
|
450
|
+
config.username = 'YOUR USERNAME'
|
|
451
|
+
config.password = 'YOUR PASSWORD'
|
|
452
|
+
|
|
453
|
+
# Configure API key authorization: cookieAuth
|
|
454
|
+
config.api_key['sessionid'] = 'YOUR API KEY'
|
|
455
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
|
456
|
+
# config.api_key_prefix['sessionid'] = 'Bearer'
|
|
457
|
+
end
|
|
458
|
+
|
|
459
|
+
api_instance = PokeApiClient::PokemonApi.new
|
|
460
|
+
id = 'id_example' # String | This parameter can be a string or an integer.
|
|
461
|
+
|
|
462
|
+
begin
|
|
463
|
+
# Get egg group
|
|
464
|
+
result = api_instance.egg_group_retrieve(id)
|
|
465
|
+
p result
|
|
466
|
+
rescue PokeApiClient::ApiError => e
|
|
467
|
+
puts "Error when calling PokemonApi->egg_group_retrieve: #{e}"
|
|
468
|
+
end
|
|
469
|
+
```
|
|
470
|
+
|
|
471
|
+
#### Using the egg_group_retrieve_with_http_info variant
|
|
472
|
+
|
|
473
|
+
This returns an Array which contains the response data, status code and headers.
|
|
474
|
+
|
|
475
|
+
> <Array(<EggGroupDetail>, Integer, Hash)> egg_group_retrieve_with_http_info(id)
|
|
476
|
+
|
|
477
|
+
```ruby
|
|
478
|
+
begin
|
|
479
|
+
# Get egg group
|
|
480
|
+
data, status_code, headers = api_instance.egg_group_retrieve_with_http_info(id)
|
|
481
|
+
p status_code # => 2xx
|
|
482
|
+
p headers # => { ... }
|
|
483
|
+
p data # => <EggGroupDetail>
|
|
484
|
+
rescue PokeApiClient::ApiError => e
|
|
485
|
+
puts "Error when calling PokemonApi->egg_group_retrieve_with_http_info: #{e}"
|
|
486
|
+
end
|
|
487
|
+
```
|
|
488
|
+
|
|
489
|
+
### Parameters
|
|
490
|
+
|
|
491
|
+
| Name | Type | Description | Notes |
|
|
492
|
+
| ---- | ---- | ----------- | ----- |
|
|
493
|
+
| **id** | **String** | This parameter can be a string or an integer. | |
|
|
494
|
+
|
|
495
|
+
### Return type
|
|
496
|
+
|
|
497
|
+
[**EggGroupDetail**](EggGroupDetail.md)
|
|
498
|
+
|
|
499
|
+
### Authorization
|
|
500
|
+
|
|
501
|
+
[basicAuth](../README.md#basicAuth), [cookieAuth](../README.md#cookieAuth)
|
|
502
|
+
|
|
503
|
+
### HTTP request headers
|
|
504
|
+
|
|
505
|
+
- **Content-Type**: Not defined
|
|
506
|
+
- **Accept**: application/json
|
|
507
|
+
|
|
508
|
+
|
|
509
|
+
## gender_list
|
|
510
|
+
|
|
511
|
+
> <PaginatedGenderSummaryList> gender_list(opts)
|
|
512
|
+
|
|
513
|
+
List genders
|
|
514
|
+
|
|
515
|
+
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.
|
|
516
|
+
|
|
517
|
+
### Examples
|
|
518
|
+
|
|
519
|
+
```ruby
|
|
520
|
+
require 'time'
|
|
521
|
+
require 'pokeapi_client'
|
|
522
|
+
# setup authorization
|
|
523
|
+
PokeApiClient.configure do |config|
|
|
524
|
+
# Configure HTTP basic authorization: basicAuth
|
|
525
|
+
config.username = 'YOUR USERNAME'
|
|
526
|
+
config.password = 'YOUR PASSWORD'
|
|
527
|
+
|
|
528
|
+
# Configure API key authorization: cookieAuth
|
|
529
|
+
config.api_key['sessionid'] = 'YOUR API KEY'
|
|
530
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
|
531
|
+
# config.api_key_prefix['sessionid'] = 'Bearer'
|
|
532
|
+
end
|
|
533
|
+
|
|
534
|
+
api_instance = PokeApiClient::PokemonApi.new
|
|
535
|
+
opts = {
|
|
536
|
+
limit: 56, # Integer | Number of results to return per page.
|
|
537
|
+
offset: 56, # Integer | The initial index from which to return the results.
|
|
538
|
+
q: 'q_example' # String | > Only available locally and not at [pokeapi.co](https://pokeapi.co/docs/v2) Case-insensitive query applied on the `name` property.
|
|
539
|
+
}
|
|
540
|
+
|
|
541
|
+
begin
|
|
542
|
+
# List genders
|
|
543
|
+
result = api_instance.gender_list(opts)
|
|
544
|
+
p result
|
|
545
|
+
rescue PokeApiClient::ApiError => e
|
|
546
|
+
puts "Error when calling PokemonApi->gender_list: #{e}"
|
|
547
|
+
end
|
|
548
|
+
```
|
|
549
|
+
|
|
550
|
+
#### Using the gender_list_with_http_info variant
|
|
551
|
+
|
|
552
|
+
This returns an Array which contains the response data, status code and headers.
|
|
553
|
+
|
|
554
|
+
> <Array(<PaginatedGenderSummaryList>, Integer, Hash)> gender_list_with_http_info(opts)
|
|
555
|
+
|
|
556
|
+
```ruby
|
|
557
|
+
begin
|
|
558
|
+
# List genders
|
|
559
|
+
data, status_code, headers = api_instance.gender_list_with_http_info(opts)
|
|
560
|
+
p status_code # => 2xx
|
|
561
|
+
p headers # => { ... }
|
|
562
|
+
p data # => <PaginatedGenderSummaryList>
|
|
563
|
+
rescue PokeApiClient::ApiError => e
|
|
564
|
+
puts "Error when calling PokemonApi->gender_list_with_http_info: #{e}"
|
|
565
|
+
end
|
|
566
|
+
```
|
|
567
|
+
|
|
568
|
+
### Parameters
|
|
569
|
+
|
|
570
|
+
| Name | Type | Description | Notes |
|
|
571
|
+
| ---- | ---- | ----------- | ----- |
|
|
572
|
+
| **limit** | **Integer** | Number of results to return per page. | [optional] |
|
|
573
|
+
| **offset** | **Integer** | The initial index from which to return the results. | [optional] |
|
|
574
|
+
| **q** | **String** | > Only available locally and not at [pokeapi.co](https://pokeapi.co/docs/v2) Case-insensitive query applied on the `name` property. | [optional] |
|
|
575
|
+
|
|
576
|
+
### Return type
|
|
577
|
+
|
|
578
|
+
[**PaginatedGenderSummaryList**](PaginatedGenderSummaryList.md)
|
|
579
|
+
|
|
580
|
+
### Authorization
|
|
581
|
+
|
|
582
|
+
[basicAuth](../README.md#basicAuth), [cookieAuth](../README.md#cookieAuth)
|
|
583
|
+
|
|
584
|
+
### HTTP request headers
|
|
585
|
+
|
|
586
|
+
- **Content-Type**: Not defined
|
|
587
|
+
- **Accept**: application/json
|
|
588
|
+
|
|
589
|
+
|
|
590
|
+
## gender_retrieve
|
|
591
|
+
|
|
592
|
+
> <GenderDetail> gender_retrieve(id)
|
|
593
|
+
|
|
594
|
+
Get gender
|
|
595
|
+
|
|
596
|
+
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.
|
|
597
|
+
|
|
598
|
+
### Examples
|
|
599
|
+
|
|
600
|
+
```ruby
|
|
601
|
+
require 'time'
|
|
602
|
+
require 'pokeapi_client'
|
|
603
|
+
# setup authorization
|
|
604
|
+
PokeApiClient.configure do |config|
|
|
605
|
+
# Configure HTTP basic authorization: basicAuth
|
|
606
|
+
config.username = 'YOUR USERNAME'
|
|
607
|
+
config.password = 'YOUR PASSWORD'
|
|
608
|
+
|
|
609
|
+
# Configure API key authorization: cookieAuth
|
|
610
|
+
config.api_key['sessionid'] = 'YOUR API KEY'
|
|
611
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
|
612
|
+
# config.api_key_prefix['sessionid'] = 'Bearer'
|
|
613
|
+
end
|
|
614
|
+
|
|
615
|
+
api_instance = PokeApiClient::PokemonApi.new
|
|
616
|
+
id = 'id_example' # String | This parameter can be a string or an integer.
|
|
617
|
+
|
|
618
|
+
begin
|
|
619
|
+
# Get gender
|
|
620
|
+
result = api_instance.gender_retrieve(id)
|
|
621
|
+
p result
|
|
622
|
+
rescue PokeApiClient::ApiError => e
|
|
623
|
+
puts "Error when calling PokemonApi->gender_retrieve: #{e}"
|
|
624
|
+
end
|
|
625
|
+
```
|
|
626
|
+
|
|
627
|
+
#### Using the gender_retrieve_with_http_info variant
|
|
628
|
+
|
|
629
|
+
This returns an Array which contains the response data, status code and headers.
|
|
630
|
+
|
|
631
|
+
> <Array(<GenderDetail>, Integer, Hash)> gender_retrieve_with_http_info(id)
|
|
632
|
+
|
|
633
|
+
```ruby
|
|
634
|
+
begin
|
|
635
|
+
# Get gender
|
|
636
|
+
data, status_code, headers = api_instance.gender_retrieve_with_http_info(id)
|
|
637
|
+
p status_code # => 2xx
|
|
638
|
+
p headers # => { ... }
|
|
639
|
+
p data # => <GenderDetail>
|
|
640
|
+
rescue PokeApiClient::ApiError => e
|
|
641
|
+
puts "Error when calling PokemonApi->gender_retrieve_with_http_info: #{e}"
|
|
642
|
+
end
|
|
643
|
+
```
|
|
644
|
+
|
|
645
|
+
### Parameters
|
|
646
|
+
|
|
647
|
+
| Name | Type | Description | Notes |
|
|
648
|
+
| ---- | ---- | ----------- | ----- |
|
|
649
|
+
| **id** | **String** | This parameter can be a string or an integer. | |
|
|
650
|
+
|
|
651
|
+
### Return type
|
|
652
|
+
|
|
653
|
+
[**GenderDetail**](GenderDetail.md)
|
|
654
|
+
|
|
655
|
+
### Authorization
|
|
656
|
+
|
|
657
|
+
[basicAuth](../README.md#basicAuth), [cookieAuth](../README.md#cookieAuth)
|
|
658
|
+
|
|
659
|
+
### HTTP request headers
|
|
660
|
+
|
|
661
|
+
- **Content-Type**: Not defined
|
|
662
|
+
- **Accept**: application/json
|
|
663
|
+
|
|
664
|
+
|
|
665
|
+
## growth_rate_list
|
|
666
|
+
|
|
667
|
+
> <PaginatedGrowthRateSummaryList> growth_rate_list(opts)
|
|
668
|
+
|
|
669
|
+
List growth rates
|
|
670
|
+
|
|
671
|
+
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.
|
|
672
|
+
|
|
673
|
+
### Examples
|
|
674
|
+
|
|
675
|
+
```ruby
|
|
676
|
+
require 'time'
|
|
677
|
+
require 'pokeapi_client'
|
|
678
|
+
# setup authorization
|
|
679
|
+
PokeApiClient.configure do |config|
|
|
680
|
+
# Configure HTTP basic authorization: basicAuth
|
|
681
|
+
config.username = 'YOUR USERNAME'
|
|
682
|
+
config.password = 'YOUR PASSWORD'
|
|
683
|
+
|
|
684
|
+
# Configure API key authorization: cookieAuth
|
|
685
|
+
config.api_key['sessionid'] = 'YOUR API KEY'
|
|
686
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
|
687
|
+
# config.api_key_prefix['sessionid'] = 'Bearer'
|
|
688
|
+
end
|
|
689
|
+
|
|
690
|
+
api_instance = PokeApiClient::PokemonApi.new
|
|
691
|
+
opts = {
|
|
692
|
+
limit: 56, # Integer | Number of results to return per page.
|
|
693
|
+
offset: 56, # Integer | The initial index from which to return the results.
|
|
694
|
+
q: 'q_example' # String | > Only available locally and not at [pokeapi.co](https://pokeapi.co/docs/v2) Case-insensitive query applied on the `name` property.
|
|
695
|
+
}
|
|
696
|
+
|
|
697
|
+
begin
|
|
698
|
+
# List growth rates
|
|
699
|
+
result = api_instance.growth_rate_list(opts)
|
|
700
|
+
p result
|
|
701
|
+
rescue PokeApiClient::ApiError => e
|
|
702
|
+
puts "Error when calling PokemonApi->growth_rate_list: #{e}"
|
|
703
|
+
end
|
|
704
|
+
```
|
|
705
|
+
|
|
706
|
+
#### Using the growth_rate_list_with_http_info variant
|
|
707
|
+
|
|
708
|
+
This returns an Array which contains the response data, status code and headers.
|
|
709
|
+
|
|
710
|
+
> <Array(<PaginatedGrowthRateSummaryList>, Integer, Hash)> growth_rate_list_with_http_info(opts)
|
|
711
|
+
|
|
712
|
+
```ruby
|
|
713
|
+
begin
|
|
714
|
+
# List growth rates
|
|
715
|
+
data, status_code, headers = api_instance.growth_rate_list_with_http_info(opts)
|
|
716
|
+
p status_code # => 2xx
|
|
717
|
+
p headers # => { ... }
|
|
718
|
+
p data # => <PaginatedGrowthRateSummaryList>
|
|
719
|
+
rescue PokeApiClient::ApiError => e
|
|
720
|
+
puts "Error when calling PokemonApi->growth_rate_list_with_http_info: #{e}"
|
|
721
|
+
end
|
|
722
|
+
```
|
|
723
|
+
|
|
724
|
+
### Parameters
|
|
725
|
+
|
|
726
|
+
| Name | Type | Description | Notes |
|
|
727
|
+
| ---- | ---- | ----------- | ----- |
|
|
728
|
+
| **limit** | **Integer** | Number of results to return per page. | [optional] |
|
|
729
|
+
| **offset** | **Integer** | The initial index from which to return the results. | [optional] |
|
|
730
|
+
| **q** | **String** | > Only available locally and not at [pokeapi.co](https://pokeapi.co/docs/v2) Case-insensitive query applied on the `name` property. | [optional] |
|
|
731
|
+
|
|
732
|
+
### Return type
|
|
733
|
+
|
|
734
|
+
[**PaginatedGrowthRateSummaryList**](PaginatedGrowthRateSummaryList.md)
|
|
735
|
+
|
|
736
|
+
### Authorization
|
|
737
|
+
|
|
738
|
+
[basicAuth](../README.md#basicAuth), [cookieAuth](../README.md#cookieAuth)
|
|
739
|
+
|
|
740
|
+
### HTTP request headers
|
|
741
|
+
|
|
742
|
+
- **Content-Type**: Not defined
|
|
743
|
+
- **Accept**: application/json
|
|
744
|
+
|
|
745
|
+
|
|
746
|
+
## growth_rate_retrieve
|
|
747
|
+
|
|
748
|
+
> <GrowthRateDetail> growth_rate_retrieve(id)
|
|
749
|
+
|
|
750
|
+
Get growth rate
|
|
751
|
+
|
|
752
|
+
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.
|
|
753
|
+
|
|
754
|
+
### Examples
|
|
755
|
+
|
|
756
|
+
```ruby
|
|
757
|
+
require 'time'
|
|
758
|
+
require 'pokeapi_client'
|
|
759
|
+
# setup authorization
|
|
760
|
+
PokeApiClient.configure do |config|
|
|
761
|
+
# Configure HTTP basic authorization: basicAuth
|
|
762
|
+
config.username = 'YOUR USERNAME'
|
|
763
|
+
config.password = 'YOUR PASSWORD'
|
|
764
|
+
|
|
765
|
+
# Configure API key authorization: cookieAuth
|
|
766
|
+
config.api_key['sessionid'] = 'YOUR API KEY'
|
|
767
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
|
768
|
+
# config.api_key_prefix['sessionid'] = 'Bearer'
|
|
769
|
+
end
|
|
770
|
+
|
|
771
|
+
api_instance = PokeApiClient::PokemonApi.new
|
|
772
|
+
id = 'id_example' # String | This parameter can be a string or an integer.
|
|
773
|
+
|
|
774
|
+
begin
|
|
775
|
+
# Get growth rate
|
|
776
|
+
result = api_instance.growth_rate_retrieve(id)
|
|
777
|
+
p result
|
|
778
|
+
rescue PokeApiClient::ApiError => e
|
|
779
|
+
puts "Error when calling PokemonApi->growth_rate_retrieve: #{e}"
|
|
780
|
+
end
|
|
781
|
+
```
|
|
782
|
+
|
|
783
|
+
#### Using the growth_rate_retrieve_with_http_info variant
|
|
784
|
+
|
|
785
|
+
This returns an Array which contains the response data, status code and headers.
|
|
786
|
+
|
|
787
|
+
> <Array(<GrowthRateDetail>, Integer, Hash)> growth_rate_retrieve_with_http_info(id)
|
|
788
|
+
|
|
789
|
+
```ruby
|
|
790
|
+
begin
|
|
791
|
+
# Get growth rate
|
|
792
|
+
data, status_code, headers = api_instance.growth_rate_retrieve_with_http_info(id)
|
|
793
|
+
p status_code # => 2xx
|
|
794
|
+
p headers # => { ... }
|
|
795
|
+
p data # => <GrowthRateDetail>
|
|
796
|
+
rescue PokeApiClient::ApiError => e
|
|
797
|
+
puts "Error when calling PokemonApi->growth_rate_retrieve_with_http_info: #{e}"
|
|
798
|
+
end
|
|
799
|
+
```
|
|
800
|
+
|
|
801
|
+
### Parameters
|
|
802
|
+
|
|
803
|
+
| Name | Type | Description | Notes |
|
|
804
|
+
| ---- | ---- | ----------- | ----- |
|
|
805
|
+
| **id** | **String** | This parameter can be a string or an integer. | |
|
|
806
|
+
|
|
807
|
+
### Return type
|
|
808
|
+
|
|
809
|
+
[**GrowthRateDetail**](GrowthRateDetail.md)
|
|
810
|
+
|
|
811
|
+
### Authorization
|
|
812
|
+
|
|
813
|
+
[basicAuth](../README.md#basicAuth), [cookieAuth](../README.md#cookieAuth)
|
|
814
|
+
|
|
815
|
+
### HTTP request headers
|
|
816
|
+
|
|
817
|
+
- **Content-Type**: Not defined
|
|
818
|
+
- **Accept**: application/json
|
|
819
|
+
|
|
820
|
+
|
|
821
|
+
## move_damage_class_list
|
|
822
|
+
|
|
823
|
+
> <PaginatedMoveDamageClassSummaryList> move_damage_class_list(opts)
|
|
824
|
+
|
|
825
|
+
List move damage classes
|
|
826
|
+
|
|
827
|
+
Damage classes moves can have, e.g. physical, special, or non-damaging.
|
|
828
|
+
|
|
829
|
+
### Examples
|
|
830
|
+
|
|
831
|
+
```ruby
|
|
832
|
+
require 'time'
|
|
833
|
+
require 'pokeapi_client'
|
|
834
|
+
# setup authorization
|
|
835
|
+
PokeApiClient.configure do |config|
|
|
836
|
+
# Configure HTTP basic authorization: basicAuth
|
|
837
|
+
config.username = 'YOUR USERNAME'
|
|
838
|
+
config.password = 'YOUR PASSWORD'
|
|
839
|
+
|
|
840
|
+
# Configure API key authorization: cookieAuth
|
|
841
|
+
config.api_key['sessionid'] = 'YOUR API KEY'
|
|
842
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
|
843
|
+
# config.api_key_prefix['sessionid'] = 'Bearer'
|
|
844
|
+
end
|
|
845
|
+
|
|
846
|
+
api_instance = PokeApiClient::PokemonApi.new
|
|
847
|
+
opts = {
|
|
848
|
+
limit: 56, # Integer | Number of results to return per page.
|
|
849
|
+
offset: 56, # Integer | The initial index from which to return the results.
|
|
850
|
+
q: 'q_example' # String | > Only available locally and not at [pokeapi.co](https://pokeapi.co/docs/v2) Case-insensitive query applied on the `name` property.
|
|
851
|
+
}
|
|
852
|
+
|
|
853
|
+
begin
|
|
854
|
+
# List move damage classes
|
|
855
|
+
result = api_instance.move_damage_class_list(opts)
|
|
856
|
+
p result
|
|
857
|
+
rescue PokeApiClient::ApiError => e
|
|
858
|
+
puts "Error when calling PokemonApi->move_damage_class_list: #{e}"
|
|
859
|
+
end
|
|
860
|
+
```
|
|
861
|
+
|
|
862
|
+
#### Using the move_damage_class_list_with_http_info variant
|
|
863
|
+
|
|
864
|
+
This returns an Array which contains the response data, status code and headers.
|
|
865
|
+
|
|
866
|
+
> <Array(<PaginatedMoveDamageClassSummaryList>, Integer, Hash)> move_damage_class_list_with_http_info(opts)
|
|
867
|
+
|
|
868
|
+
```ruby
|
|
869
|
+
begin
|
|
870
|
+
# List move damage classes
|
|
871
|
+
data, status_code, headers = api_instance.move_damage_class_list_with_http_info(opts)
|
|
872
|
+
p status_code # => 2xx
|
|
873
|
+
p headers # => { ... }
|
|
874
|
+
p data # => <PaginatedMoveDamageClassSummaryList>
|
|
875
|
+
rescue PokeApiClient::ApiError => e
|
|
876
|
+
puts "Error when calling PokemonApi->move_damage_class_list_with_http_info: #{e}"
|
|
877
|
+
end
|
|
878
|
+
```
|
|
879
|
+
|
|
880
|
+
### Parameters
|
|
881
|
+
|
|
882
|
+
| Name | Type | Description | Notes |
|
|
883
|
+
| ---- | ---- | ----------- | ----- |
|
|
884
|
+
| **limit** | **Integer** | Number of results to return per page. | [optional] |
|
|
885
|
+
| **offset** | **Integer** | The initial index from which to return the results. | [optional] |
|
|
886
|
+
| **q** | **String** | > Only available locally and not at [pokeapi.co](https://pokeapi.co/docs/v2) Case-insensitive query applied on the `name` property. | [optional] |
|
|
887
|
+
|
|
888
|
+
### Return type
|
|
889
|
+
|
|
890
|
+
[**PaginatedMoveDamageClassSummaryList**](PaginatedMoveDamageClassSummaryList.md)
|
|
891
|
+
|
|
892
|
+
### Authorization
|
|
893
|
+
|
|
894
|
+
[basicAuth](../README.md#basicAuth), [cookieAuth](../README.md#cookieAuth)
|
|
895
|
+
|
|
896
|
+
### HTTP request headers
|
|
897
|
+
|
|
898
|
+
- **Content-Type**: Not defined
|
|
899
|
+
- **Accept**: application/json
|
|
900
|
+
|
|
901
|
+
|
|
902
|
+
## move_damage_class_retrieve
|
|
903
|
+
|
|
904
|
+
> <MoveDamageClassDetail> move_damage_class_retrieve(id)
|
|
905
|
+
|
|
906
|
+
Get move damage class
|
|
907
|
+
|
|
908
|
+
Damage classes moves can have, e.g. physical, special, or non-damaging.
|
|
909
|
+
|
|
910
|
+
### Examples
|
|
911
|
+
|
|
912
|
+
```ruby
|
|
913
|
+
require 'time'
|
|
914
|
+
require 'pokeapi_client'
|
|
915
|
+
# setup authorization
|
|
916
|
+
PokeApiClient.configure do |config|
|
|
917
|
+
# Configure HTTP basic authorization: basicAuth
|
|
918
|
+
config.username = 'YOUR USERNAME'
|
|
919
|
+
config.password = 'YOUR PASSWORD'
|
|
920
|
+
|
|
921
|
+
# Configure API key authorization: cookieAuth
|
|
922
|
+
config.api_key['sessionid'] = 'YOUR API KEY'
|
|
923
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
|
924
|
+
# config.api_key_prefix['sessionid'] = 'Bearer'
|
|
925
|
+
end
|
|
926
|
+
|
|
927
|
+
api_instance = PokeApiClient::PokemonApi.new
|
|
928
|
+
id = 'id_example' # String | This parameter can be a string or an integer.
|
|
929
|
+
|
|
930
|
+
begin
|
|
931
|
+
# Get move damage class
|
|
932
|
+
result = api_instance.move_damage_class_retrieve(id)
|
|
933
|
+
p result
|
|
934
|
+
rescue PokeApiClient::ApiError => e
|
|
935
|
+
puts "Error when calling PokemonApi->move_damage_class_retrieve: #{e}"
|
|
936
|
+
end
|
|
937
|
+
```
|
|
938
|
+
|
|
939
|
+
#### Using the move_damage_class_retrieve_with_http_info variant
|
|
940
|
+
|
|
941
|
+
This returns an Array which contains the response data, status code and headers.
|
|
942
|
+
|
|
943
|
+
> <Array(<MoveDamageClassDetail>, Integer, Hash)> move_damage_class_retrieve_with_http_info(id)
|
|
944
|
+
|
|
945
|
+
```ruby
|
|
946
|
+
begin
|
|
947
|
+
# Get move damage class
|
|
948
|
+
data, status_code, headers = api_instance.move_damage_class_retrieve_with_http_info(id)
|
|
949
|
+
p status_code # => 2xx
|
|
950
|
+
p headers # => { ... }
|
|
951
|
+
p data # => <MoveDamageClassDetail>
|
|
952
|
+
rescue PokeApiClient::ApiError => e
|
|
953
|
+
puts "Error when calling PokemonApi->move_damage_class_retrieve_with_http_info: #{e}"
|
|
954
|
+
end
|
|
955
|
+
```
|
|
956
|
+
|
|
957
|
+
### Parameters
|
|
958
|
+
|
|
959
|
+
| Name | Type | Description | Notes |
|
|
960
|
+
| ---- | ---- | ----------- | ----- |
|
|
961
|
+
| **id** | **String** | This parameter can be a string or an integer. | |
|
|
962
|
+
|
|
963
|
+
### Return type
|
|
964
|
+
|
|
965
|
+
[**MoveDamageClassDetail**](MoveDamageClassDetail.md)
|
|
966
|
+
|
|
967
|
+
### Authorization
|
|
968
|
+
|
|
969
|
+
[basicAuth](../README.md#basicAuth), [cookieAuth](../README.md#cookieAuth)
|
|
970
|
+
|
|
971
|
+
### HTTP request headers
|
|
972
|
+
|
|
973
|
+
- **Content-Type**: Not defined
|
|
974
|
+
- **Accept**: application/json
|
|
975
|
+
|
|
976
|
+
|
|
977
|
+
## nature_list
|
|
978
|
+
|
|
979
|
+
> <PaginatedNatureSummaryList> nature_list(opts)
|
|
980
|
+
|
|
981
|
+
List natures
|
|
982
|
+
|
|
983
|
+
Natures influence how a Pokémon's stats grow. See [Bulbapedia](http://bulbapedia.bulbagarden.net/wiki/Nature) for greater detail.
|
|
984
|
+
|
|
985
|
+
### Examples
|
|
986
|
+
|
|
987
|
+
```ruby
|
|
988
|
+
require 'time'
|
|
989
|
+
require 'pokeapi_client'
|
|
990
|
+
# setup authorization
|
|
991
|
+
PokeApiClient.configure do |config|
|
|
992
|
+
# Configure HTTP basic authorization: basicAuth
|
|
993
|
+
config.username = 'YOUR USERNAME'
|
|
994
|
+
config.password = 'YOUR PASSWORD'
|
|
995
|
+
|
|
996
|
+
# Configure API key authorization: cookieAuth
|
|
997
|
+
config.api_key['sessionid'] = 'YOUR API KEY'
|
|
998
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
|
999
|
+
# config.api_key_prefix['sessionid'] = 'Bearer'
|
|
1000
|
+
end
|
|
1001
|
+
|
|
1002
|
+
api_instance = PokeApiClient::PokemonApi.new
|
|
1003
|
+
opts = {
|
|
1004
|
+
limit: 56, # Integer | Number of results to return per page.
|
|
1005
|
+
offset: 56, # Integer | The initial index from which to return the results.
|
|
1006
|
+
q: 'q_example' # String | > Only available locally and not at [pokeapi.co](https://pokeapi.co/docs/v2) Case-insensitive query applied on the `name` property.
|
|
1007
|
+
}
|
|
1008
|
+
|
|
1009
|
+
begin
|
|
1010
|
+
# List natures
|
|
1011
|
+
result = api_instance.nature_list(opts)
|
|
1012
|
+
p result
|
|
1013
|
+
rescue PokeApiClient::ApiError => e
|
|
1014
|
+
puts "Error when calling PokemonApi->nature_list: #{e}"
|
|
1015
|
+
end
|
|
1016
|
+
```
|
|
1017
|
+
|
|
1018
|
+
#### Using the nature_list_with_http_info variant
|
|
1019
|
+
|
|
1020
|
+
This returns an Array which contains the response data, status code and headers.
|
|
1021
|
+
|
|
1022
|
+
> <Array(<PaginatedNatureSummaryList>, Integer, Hash)> nature_list_with_http_info(opts)
|
|
1023
|
+
|
|
1024
|
+
```ruby
|
|
1025
|
+
begin
|
|
1026
|
+
# List natures
|
|
1027
|
+
data, status_code, headers = api_instance.nature_list_with_http_info(opts)
|
|
1028
|
+
p status_code # => 2xx
|
|
1029
|
+
p headers # => { ... }
|
|
1030
|
+
p data # => <PaginatedNatureSummaryList>
|
|
1031
|
+
rescue PokeApiClient::ApiError => e
|
|
1032
|
+
puts "Error when calling PokemonApi->nature_list_with_http_info: #{e}"
|
|
1033
|
+
end
|
|
1034
|
+
```
|
|
1035
|
+
|
|
1036
|
+
### Parameters
|
|
1037
|
+
|
|
1038
|
+
| Name | Type | Description | Notes |
|
|
1039
|
+
| ---- | ---- | ----------- | ----- |
|
|
1040
|
+
| **limit** | **Integer** | Number of results to return per page. | [optional] |
|
|
1041
|
+
| **offset** | **Integer** | The initial index from which to return the results. | [optional] |
|
|
1042
|
+
| **q** | **String** | > Only available locally and not at [pokeapi.co](https://pokeapi.co/docs/v2) Case-insensitive query applied on the `name` property. | [optional] |
|
|
1043
|
+
|
|
1044
|
+
### Return type
|
|
1045
|
+
|
|
1046
|
+
[**PaginatedNatureSummaryList**](PaginatedNatureSummaryList.md)
|
|
1047
|
+
|
|
1048
|
+
### Authorization
|
|
1049
|
+
|
|
1050
|
+
[basicAuth](../README.md#basicAuth), [cookieAuth](../README.md#cookieAuth)
|
|
1051
|
+
|
|
1052
|
+
### HTTP request headers
|
|
1053
|
+
|
|
1054
|
+
- **Content-Type**: Not defined
|
|
1055
|
+
- **Accept**: application/json
|
|
1056
|
+
|
|
1057
|
+
|
|
1058
|
+
## nature_retrieve
|
|
1059
|
+
|
|
1060
|
+
> <NatureDetail> nature_retrieve(id)
|
|
1061
|
+
|
|
1062
|
+
Get nature
|
|
1063
|
+
|
|
1064
|
+
Natures influence how a Pokémon's stats grow. See [Bulbapedia](http://bulbapedia.bulbagarden.net/wiki/Nature) for greater detail.
|
|
1065
|
+
|
|
1066
|
+
### Examples
|
|
1067
|
+
|
|
1068
|
+
```ruby
|
|
1069
|
+
require 'time'
|
|
1070
|
+
require 'pokeapi_client'
|
|
1071
|
+
# setup authorization
|
|
1072
|
+
PokeApiClient.configure do |config|
|
|
1073
|
+
# Configure HTTP basic authorization: basicAuth
|
|
1074
|
+
config.username = 'YOUR USERNAME'
|
|
1075
|
+
config.password = 'YOUR PASSWORD'
|
|
1076
|
+
|
|
1077
|
+
# Configure API key authorization: cookieAuth
|
|
1078
|
+
config.api_key['sessionid'] = 'YOUR API KEY'
|
|
1079
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
|
1080
|
+
# config.api_key_prefix['sessionid'] = 'Bearer'
|
|
1081
|
+
end
|
|
1082
|
+
|
|
1083
|
+
api_instance = PokeApiClient::PokemonApi.new
|
|
1084
|
+
id = 'id_example' # String | This parameter can be a string or an integer.
|
|
1085
|
+
|
|
1086
|
+
begin
|
|
1087
|
+
# Get nature
|
|
1088
|
+
result = api_instance.nature_retrieve(id)
|
|
1089
|
+
p result
|
|
1090
|
+
rescue PokeApiClient::ApiError => e
|
|
1091
|
+
puts "Error when calling PokemonApi->nature_retrieve: #{e}"
|
|
1092
|
+
end
|
|
1093
|
+
```
|
|
1094
|
+
|
|
1095
|
+
#### Using the nature_retrieve_with_http_info variant
|
|
1096
|
+
|
|
1097
|
+
This returns an Array which contains the response data, status code and headers.
|
|
1098
|
+
|
|
1099
|
+
> <Array(<NatureDetail>, Integer, Hash)> nature_retrieve_with_http_info(id)
|
|
1100
|
+
|
|
1101
|
+
```ruby
|
|
1102
|
+
begin
|
|
1103
|
+
# Get nature
|
|
1104
|
+
data, status_code, headers = api_instance.nature_retrieve_with_http_info(id)
|
|
1105
|
+
p status_code # => 2xx
|
|
1106
|
+
p headers # => { ... }
|
|
1107
|
+
p data # => <NatureDetail>
|
|
1108
|
+
rescue PokeApiClient::ApiError => e
|
|
1109
|
+
puts "Error when calling PokemonApi->nature_retrieve_with_http_info: #{e}"
|
|
1110
|
+
end
|
|
1111
|
+
```
|
|
1112
|
+
|
|
1113
|
+
### Parameters
|
|
1114
|
+
|
|
1115
|
+
| Name | Type | Description | Notes |
|
|
1116
|
+
| ---- | ---- | ----------- | ----- |
|
|
1117
|
+
| **id** | **String** | This parameter can be a string or an integer. | |
|
|
1118
|
+
|
|
1119
|
+
### Return type
|
|
1120
|
+
|
|
1121
|
+
[**NatureDetail**](NatureDetail.md)
|
|
1122
|
+
|
|
1123
|
+
### Authorization
|
|
1124
|
+
|
|
1125
|
+
[basicAuth](../README.md#basicAuth), [cookieAuth](../README.md#cookieAuth)
|
|
1126
|
+
|
|
1127
|
+
### HTTP request headers
|
|
1128
|
+
|
|
1129
|
+
- **Content-Type**: Not defined
|
|
1130
|
+
- **Accept**: application/json
|
|
1131
|
+
|
|
1132
|
+
|
|
1133
|
+
## pokeathlon_stat_list
|
|
1134
|
+
|
|
1135
|
+
> <PaginatedPokeathlonStatSummaryList> pokeathlon_stat_list(opts)
|
|
1136
|
+
|
|
1137
|
+
List pokeathlon stats
|
|
1138
|
+
|
|
1139
|
+
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.
|
|
1140
|
+
|
|
1141
|
+
### Examples
|
|
1142
|
+
|
|
1143
|
+
```ruby
|
|
1144
|
+
require 'time'
|
|
1145
|
+
require 'pokeapi_client'
|
|
1146
|
+
# setup authorization
|
|
1147
|
+
PokeApiClient.configure do |config|
|
|
1148
|
+
# Configure HTTP basic authorization: basicAuth
|
|
1149
|
+
config.username = 'YOUR USERNAME'
|
|
1150
|
+
config.password = 'YOUR PASSWORD'
|
|
1151
|
+
|
|
1152
|
+
# Configure API key authorization: cookieAuth
|
|
1153
|
+
config.api_key['sessionid'] = 'YOUR API KEY'
|
|
1154
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
|
1155
|
+
# config.api_key_prefix['sessionid'] = 'Bearer'
|
|
1156
|
+
end
|
|
1157
|
+
|
|
1158
|
+
api_instance = PokeApiClient::PokemonApi.new
|
|
1159
|
+
opts = {
|
|
1160
|
+
limit: 56, # Integer | Number of results to return per page.
|
|
1161
|
+
offset: 56, # Integer | The initial index from which to return the results.
|
|
1162
|
+
q: 'q_example' # String | > Only available locally and not at [pokeapi.co](https://pokeapi.co/docs/v2) Case-insensitive query applied on the `name` property.
|
|
1163
|
+
}
|
|
1164
|
+
|
|
1165
|
+
begin
|
|
1166
|
+
# List pokeathlon stats
|
|
1167
|
+
result = api_instance.pokeathlon_stat_list(opts)
|
|
1168
|
+
p result
|
|
1169
|
+
rescue PokeApiClient::ApiError => e
|
|
1170
|
+
puts "Error when calling PokemonApi->pokeathlon_stat_list: #{e}"
|
|
1171
|
+
end
|
|
1172
|
+
```
|
|
1173
|
+
|
|
1174
|
+
#### Using the pokeathlon_stat_list_with_http_info variant
|
|
1175
|
+
|
|
1176
|
+
This returns an Array which contains the response data, status code and headers.
|
|
1177
|
+
|
|
1178
|
+
> <Array(<PaginatedPokeathlonStatSummaryList>, Integer, Hash)> pokeathlon_stat_list_with_http_info(opts)
|
|
1179
|
+
|
|
1180
|
+
```ruby
|
|
1181
|
+
begin
|
|
1182
|
+
# List pokeathlon stats
|
|
1183
|
+
data, status_code, headers = api_instance.pokeathlon_stat_list_with_http_info(opts)
|
|
1184
|
+
p status_code # => 2xx
|
|
1185
|
+
p headers # => { ... }
|
|
1186
|
+
p data # => <PaginatedPokeathlonStatSummaryList>
|
|
1187
|
+
rescue PokeApiClient::ApiError => e
|
|
1188
|
+
puts "Error when calling PokemonApi->pokeathlon_stat_list_with_http_info: #{e}"
|
|
1189
|
+
end
|
|
1190
|
+
```
|
|
1191
|
+
|
|
1192
|
+
### Parameters
|
|
1193
|
+
|
|
1194
|
+
| Name | Type | Description | Notes |
|
|
1195
|
+
| ---- | ---- | ----------- | ----- |
|
|
1196
|
+
| **limit** | **Integer** | Number of results to return per page. | [optional] |
|
|
1197
|
+
| **offset** | **Integer** | The initial index from which to return the results. | [optional] |
|
|
1198
|
+
| **q** | **String** | > Only available locally and not at [pokeapi.co](https://pokeapi.co/docs/v2) Case-insensitive query applied on the `name` property. | [optional] |
|
|
1199
|
+
|
|
1200
|
+
### Return type
|
|
1201
|
+
|
|
1202
|
+
[**PaginatedPokeathlonStatSummaryList**](PaginatedPokeathlonStatSummaryList.md)
|
|
1203
|
+
|
|
1204
|
+
### Authorization
|
|
1205
|
+
|
|
1206
|
+
[basicAuth](../README.md#basicAuth), [cookieAuth](../README.md#cookieAuth)
|
|
1207
|
+
|
|
1208
|
+
### HTTP request headers
|
|
1209
|
+
|
|
1210
|
+
- **Content-Type**: Not defined
|
|
1211
|
+
- **Accept**: application/json
|
|
1212
|
+
|
|
1213
|
+
|
|
1214
|
+
## pokeathlon_stat_retrieve
|
|
1215
|
+
|
|
1216
|
+
> <PokeathlonStatDetail> pokeathlon_stat_retrieve(id)
|
|
1217
|
+
|
|
1218
|
+
Get pokeathlon stat
|
|
1219
|
+
|
|
1220
|
+
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.
|
|
1221
|
+
|
|
1222
|
+
### Examples
|
|
1223
|
+
|
|
1224
|
+
```ruby
|
|
1225
|
+
require 'time'
|
|
1226
|
+
require 'pokeapi_client'
|
|
1227
|
+
# setup authorization
|
|
1228
|
+
PokeApiClient.configure do |config|
|
|
1229
|
+
# Configure HTTP basic authorization: basicAuth
|
|
1230
|
+
config.username = 'YOUR USERNAME'
|
|
1231
|
+
config.password = 'YOUR PASSWORD'
|
|
1232
|
+
|
|
1233
|
+
# Configure API key authorization: cookieAuth
|
|
1234
|
+
config.api_key['sessionid'] = 'YOUR API KEY'
|
|
1235
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
|
1236
|
+
# config.api_key_prefix['sessionid'] = 'Bearer'
|
|
1237
|
+
end
|
|
1238
|
+
|
|
1239
|
+
api_instance = PokeApiClient::PokemonApi.new
|
|
1240
|
+
id = 'id_example' # String | This parameter can be a string or an integer.
|
|
1241
|
+
|
|
1242
|
+
begin
|
|
1243
|
+
# Get pokeathlon stat
|
|
1244
|
+
result = api_instance.pokeathlon_stat_retrieve(id)
|
|
1245
|
+
p result
|
|
1246
|
+
rescue PokeApiClient::ApiError => e
|
|
1247
|
+
puts "Error when calling PokemonApi->pokeathlon_stat_retrieve: #{e}"
|
|
1248
|
+
end
|
|
1249
|
+
```
|
|
1250
|
+
|
|
1251
|
+
#### Using the pokeathlon_stat_retrieve_with_http_info variant
|
|
1252
|
+
|
|
1253
|
+
This returns an Array which contains the response data, status code and headers.
|
|
1254
|
+
|
|
1255
|
+
> <Array(<PokeathlonStatDetail>, Integer, Hash)> pokeathlon_stat_retrieve_with_http_info(id)
|
|
1256
|
+
|
|
1257
|
+
```ruby
|
|
1258
|
+
begin
|
|
1259
|
+
# Get pokeathlon stat
|
|
1260
|
+
data, status_code, headers = api_instance.pokeathlon_stat_retrieve_with_http_info(id)
|
|
1261
|
+
p status_code # => 2xx
|
|
1262
|
+
p headers # => { ... }
|
|
1263
|
+
p data # => <PokeathlonStatDetail>
|
|
1264
|
+
rescue PokeApiClient::ApiError => e
|
|
1265
|
+
puts "Error when calling PokemonApi->pokeathlon_stat_retrieve_with_http_info: #{e}"
|
|
1266
|
+
end
|
|
1267
|
+
```
|
|
1268
|
+
|
|
1269
|
+
### Parameters
|
|
1270
|
+
|
|
1271
|
+
| Name | Type | Description | Notes |
|
|
1272
|
+
| ---- | ---- | ----------- | ----- |
|
|
1273
|
+
| **id** | **String** | This parameter can be a string or an integer. | |
|
|
1274
|
+
|
|
1275
|
+
### Return type
|
|
1276
|
+
|
|
1277
|
+
[**PokeathlonStatDetail**](PokeathlonStatDetail.md)
|
|
1278
|
+
|
|
1279
|
+
### Authorization
|
|
1280
|
+
|
|
1281
|
+
[basicAuth](../README.md#basicAuth), [cookieAuth](../README.md#cookieAuth)
|
|
1282
|
+
|
|
1283
|
+
### HTTP request headers
|
|
1284
|
+
|
|
1285
|
+
- **Content-Type**: Not defined
|
|
1286
|
+
- **Accept**: application/json
|
|
1287
|
+
|
|
1288
|
+
|
|
1289
|
+
## pokemon_color_list
|
|
1290
|
+
|
|
1291
|
+
> <PaginatedPokemonColorSummaryList> pokemon_color_list(opts)
|
|
1292
|
+
|
|
1293
|
+
List pokemon colors
|
|
1294
|
+
|
|
1295
|
+
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.
|
|
1296
|
+
|
|
1297
|
+
### Examples
|
|
1298
|
+
|
|
1299
|
+
```ruby
|
|
1300
|
+
require 'time'
|
|
1301
|
+
require 'pokeapi_client'
|
|
1302
|
+
# setup authorization
|
|
1303
|
+
PokeApiClient.configure do |config|
|
|
1304
|
+
# Configure HTTP basic authorization: basicAuth
|
|
1305
|
+
config.username = 'YOUR USERNAME'
|
|
1306
|
+
config.password = 'YOUR PASSWORD'
|
|
1307
|
+
|
|
1308
|
+
# Configure API key authorization: cookieAuth
|
|
1309
|
+
config.api_key['sessionid'] = 'YOUR API KEY'
|
|
1310
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
|
1311
|
+
# config.api_key_prefix['sessionid'] = 'Bearer'
|
|
1312
|
+
end
|
|
1313
|
+
|
|
1314
|
+
api_instance = PokeApiClient::PokemonApi.new
|
|
1315
|
+
opts = {
|
|
1316
|
+
limit: 56, # Integer | Number of results to return per page.
|
|
1317
|
+
offset: 56, # Integer | The initial index from which to return the results.
|
|
1318
|
+
q: 'q_example' # String | > Only available locally and not at [pokeapi.co](https://pokeapi.co/docs/v2) Case-insensitive query applied on the `name` property.
|
|
1319
|
+
}
|
|
1320
|
+
|
|
1321
|
+
begin
|
|
1322
|
+
# List pokemon colors
|
|
1323
|
+
result = api_instance.pokemon_color_list(opts)
|
|
1324
|
+
p result
|
|
1325
|
+
rescue PokeApiClient::ApiError => e
|
|
1326
|
+
puts "Error when calling PokemonApi->pokemon_color_list: #{e}"
|
|
1327
|
+
end
|
|
1328
|
+
```
|
|
1329
|
+
|
|
1330
|
+
#### Using the pokemon_color_list_with_http_info variant
|
|
1331
|
+
|
|
1332
|
+
This returns an Array which contains the response data, status code and headers.
|
|
1333
|
+
|
|
1334
|
+
> <Array(<PaginatedPokemonColorSummaryList>, Integer, Hash)> pokemon_color_list_with_http_info(opts)
|
|
1335
|
+
|
|
1336
|
+
```ruby
|
|
1337
|
+
begin
|
|
1338
|
+
# List pokemon colors
|
|
1339
|
+
data, status_code, headers = api_instance.pokemon_color_list_with_http_info(opts)
|
|
1340
|
+
p status_code # => 2xx
|
|
1341
|
+
p headers # => { ... }
|
|
1342
|
+
p data # => <PaginatedPokemonColorSummaryList>
|
|
1343
|
+
rescue PokeApiClient::ApiError => e
|
|
1344
|
+
puts "Error when calling PokemonApi->pokemon_color_list_with_http_info: #{e}"
|
|
1345
|
+
end
|
|
1346
|
+
```
|
|
1347
|
+
|
|
1348
|
+
### Parameters
|
|
1349
|
+
|
|
1350
|
+
| Name | Type | Description | Notes |
|
|
1351
|
+
| ---- | ---- | ----------- | ----- |
|
|
1352
|
+
| **limit** | **Integer** | Number of results to return per page. | [optional] |
|
|
1353
|
+
| **offset** | **Integer** | The initial index from which to return the results. | [optional] |
|
|
1354
|
+
| **q** | **String** | > Only available locally and not at [pokeapi.co](https://pokeapi.co/docs/v2) Case-insensitive query applied on the `name` property. | [optional] |
|
|
1355
|
+
|
|
1356
|
+
### Return type
|
|
1357
|
+
|
|
1358
|
+
[**PaginatedPokemonColorSummaryList**](PaginatedPokemonColorSummaryList.md)
|
|
1359
|
+
|
|
1360
|
+
### Authorization
|
|
1361
|
+
|
|
1362
|
+
[basicAuth](../README.md#basicAuth), [cookieAuth](../README.md#cookieAuth)
|
|
1363
|
+
|
|
1364
|
+
### HTTP request headers
|
|
1365
|
+
|
|
1366
|
+
- **Content-Type**: Not defined
|
|
1367
|
+
- **Accept**: application/json
|
|
1368
|
+
|
|
1369
|
+
|
|
1370
|
+
## pokemon_color_retrieve
|
|
1371
|
+
|
|
1372
|
+
> <PokemonColorDetail> pokemon_color_retrieve(id)
|
|
1373
|
+
|
|
1374
|
+
Get pokemon color
|
|
1375
|
+
|
|
1376
|
+
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.
|
|
1377
|
+
|
|
1378
|
+
### Examples
|
|
1379
|
+
|
|
1380
|
+
```ruby
|
|
1381
|
+
require 'time'
|
|
1382
|
+
require 'pokeapi_client'
|
|
1383
|
+
# setup authorization
|
|
1384
|
+
PokeApiClient.configure do |config|
|
|
1385
|
+
# Configure HTTP basic authorization: basicAuth
|
|
1386
|
+
config.username = 'YOUR USERNAME'
|
|
1387
|
+
config.password = 'YOUR PASSWORD'
|
|
1388
|
+
|
|
1389
|
+
# Configure API key authorization: cookieAuth
|
|
1390
|
+
config.api_key['sessionid'] = 'YOUR API KEY'
|
|
1391
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
|
1392
|
+
# config.api_key_prefix['sessionid'] = 'Bearer'
|
|
1393
|
+
end
|
|
1394
|
+
|
|
1395
|
+
api_instance = PokeApiClient::PokemonApi.new
|
|
1396
|
+
id = 'id_example' # String | This parameter can be a string or an integer.
|
|
1397
|
+
|
|
1398
|
+
begin
|
|
1399
|
+
# Get pokemon color
|
|
1400
|
+
result = api_instance.pokemon_color_retrieve(id)
|
|
1401
|
+
p result
|
|
1402
|
+
rescue PokeApiClient::ApiError => e
|
|
1403
|
+
puts "Error when calling PokemonApi->pokemon_color_retrieve: #{e}"
|
|
1404
|
+
end
|
|
1405
|
+
```
|
|
1406
|
+
|
|
1407
|
+
#### Using the pokemon_color_retrieve_with_http_info variant
|
|
1408
|
+
|
|
1409
|
+
This returns an Array which contains the response data, status code and headers.
|
|
1410
|
+
|
|
1411
|
+
> <Array(<PokemonColorDetail>, Integer, Hash)> pokemon_color_retrieve_with_http_info(id)
|
|
1412
|
+
|
|
1413
|
+
```ruby
|
|
1414
|
+
begin
|
|
1415
|
+
# Get pokemon color
|
|
1416
|
+
data, status_code, headers = api_instance.pokemon_color_retrieve_with_http_info(id)
|
|
1417
|
+
p status_code # => 2xx
|
|
1418
|
+
p headers # => { ... }
|
|
1419
|
+
p data # => <PokemonColorDetail>
|
|
1420
|
+
rescue PokeApiClient::ApiError => e
|
|
1421
|
+
puts "Error when calling PokemonApi->pokemon_color_retrieve_with_http_info: #{e}"
|
|
1422
|
+
end
|
|
1423
|
+
```
|
|
1424
|
+
|
|
1425
|
+
### Parameters
|
|
1426
|
+
|
|
1427
|
+
| Name | Type | Description | Notes |
|
|
1428
|
+
| ---- | ---- | ----------- | ----- |
|
|
1429
|
+
| **id** | **String** | This parameter can be a string or an integer. | |
|
|
1430
|
+
|
|
1431
|
+
### Return type
|
|
1432
|
+
|
|
1433
|
+
[**PokemonColorDetail**](PokemonColorDetail.md)
|
|
1434
|
+
|
|
1435
|
+
### Authorization
|
|
1436
|
+
|
|
1437
|
+
[basicAuth](../README.md#basicAuth), [cookieAuth](../README.md#cookieAuth)
|
|
1438
|
+
|
|
1439
|
+
### HTTP request headers
|
|
1440
|
+
|
|
1441
|
+
- **Content-Type**: Not defined
|
|
1442
|
+
- **Accept**: application/json
|
|
1443
|
+
|
|
1444
|
+
|
|
1445
|
+
## pokemon_form_list
|
|
1446
|
+
|
|
1447
|
+
> <PaginatedPokemonFormSummaryList> pokemon_form_list(opts)
|
|
1448
|
+
|
|
1449
|
+
List pokemon forms
|
|
1450
|
+
|
|
1451
|
+
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.
|
|
1452
|
+
|
|
1453
|
+
### Examples
|
|
1454
|
+
|
|
1455
|
+
```ruby
|
|
1456
|
+
require 'time'
|
|
1457
|
+
require 'pokeapi_client'
|
|
1458
|
+
# setup authorization
|
|
1459
|
+
PokeApiClient.configure do |config|
|
|
1460
|
+
# Configure HTTP basic authorization: basicAuth
|
|
1461
|
+
config.username = 'YOUR USERNAME'
|
|
1462
|
+
config.password = 'YOUR PASSWORD'
|
|
1463
|
+
|
|
1464
|
+
# Configure API key authorization: cookieAuth
|
|
1465
|
+
config.api_key['sessionid'] = 'YOUR API KEY'
|
|
1466
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
|
1467
|
+
# config.api_key_prefix['sessionid'] = 'Bearer'
|
|
1468
|
+
end
|
|
1469
|
+
|
|
1470
|
+
api_instance = PokeApiClient::PokemonApi.new
|
|
1471
|
+
opts = {
|
|
1472
|
+
limit: 56, # Integer | Number of results to return per page.
|
|
1473
|
+
offset: 56, # Integer | The initial index from which to return the results.
|
|
1474
|
+
q: 'q_example' # String | > Only available locally and not at [pokeapi.co](https://pokeapi.co/docs/v2) Case-insensitive query applied on the `name` property.
|
|
1475
|
+
}
|
|
1476
|
+
|
|
1477
|
+
begin
|
|
1478
|
+
# List pokemon forms
|
|
1479
|
+
result = api_instance.pokemon_form_list(opts)
|
|
1480
|
+
p result
|
|
1481
|
+
rescue PokeApiClient::ApiError => e
|
|
1482
|
+
puts "Error when calling PokemonApi->pokemon_form_list: #{e}"
|
|
1483
|
+
end
|
|
1484
|
+
```
|
|
1485
|
+
|
|
1486
|
+
#### Using the pokemon_form_list_with_http_info variant
|
|
1487
|
+
|
|
1488
|
+
This returns an Array which contains the response data, status code and headers.
|
|
1489
|
+
|
|
1490
|
+
> <Array(<PaginatedPokemonFormSummaryList>, Integer, Hash)> pokemon_form_list_with_http_info(opts)
|
|
1491
|
+
|
|
1492
|
+
```ruby
|
|
1493
|
+
begin
|
|
1494
|
+
# List pokemon forms
|
|
1495
|
+
data, status_code, headers = api_instance.pokemon_form_list_with_http_info(opts)
|
|
1496
|
+
p status_code # => 2xx
|
|
1497
|
+
p headers # => { ... }
|
|
1498
|
+
p data # => <PaginatedPokemonFormSummaryList>
|
|
1499
|
+
rescue PokeApiClient::ApiError => e
|
|
1500
|
+
puts "Error when calling PokemonApi->pokemon_form_list_with_http_info: #{e}"
|
|
1501
|
+
end
|
|
1502
|
+
```
|
|
1503
|
+
|
|
1504
|
+
### Parameters
|
|
1505
|
+
|
|
1506
|
+
| Name | Type | Description | Notes |
|
|
1507
|
+
| ---- | ---- | ----------- | ----- |
|
|
1508
|
+
| **limit** | **Integer** | Number of results to return per page. | [optional] |
|
|
1509
|
+
| **offset** | **Integer** | The initial index from which to return the results. | [optional] |
|
|
1510
|
+
| **q** | **String** | > Only available locally and not at [pokeapi.co](https://pokeapi.co/docs/v2) Case-insensitive query applied on the `name` property. | [optional] |
|
|
1511
|
+
|
|
1512
|
+
### Return type
|
|
1513
|
+
|
|
1514
|
+
[**PaginatedPokemonFormSummaryList**](PaginatedPokemonFormSummaryList.md)
|
|
1515
|
+
|
|
1516
|
+
### Authorization
|
|
1517
|
+
|
|
1518
|
+
[basicAuth](../README.md#basicAuth), [cookieAuth](../README.md#cookieAuth)
|
|
1519
|
+
|
|
1520
|
+
### HTTP request headers
|
|
1521
|
+
|
|
1522
|
+
- **Content-Type**: Not defined
|
|
1523
|
+
- **Accept**: application/json
|
|
1524
|
+
|
|
1525
|
+
|
|
1526
|
+
## pokemon_form_retrieve
|
|
1527
|
+
|
|
1528
|
+
> <PokemonFormDetail> pokemon_form_retrieve(id)
|
|
1529
|
+
|
|
1530
|
+
Get pokemon form
|
|
1531
|
+
|
|
1532
|
+
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.
|
|
1533
|
+
|
|
1534
|
+
### Examples
|
|
1535
|
+
|
|
1536
|
+
```ruby
|
|
1537
|
+
require 'time'
|
|
1538
|
+
require 'pokeapi_client'
|
|
1539
|
+
# setup authorization
|
|
1540
|
+
PokeApiClient.configure do |config|
|
|
1541
|
+
# Configure HTTP basic authorization: basicAuth
|
|
1542
|
+
config.username = 'YOUR USERNAME'
|
|
1543
|
+
config.password = 'YOUR PASSWORD'
|
|
1544
|
+
|
|
1545
|
+
# Configure API key authorization: cookieAuth
|
|
1546
|
+
config.api_key['sessionid'] = 'YOUR API KEY'
|
|
1547
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
|
1548
|
+
# config.api_key_prefix['sessionid'] = 'Bearer'
|
|
1549
|
+
end
|
|
1550
|
+
|
|
1551
|
+
api_instance = PokeApiClient::PokemonApi.new
|
|
1552
|
+
id = 'id_example' # String | This parameter can be a string or an integer.
|
|
1553
|
+
|
|
1554
|
+
begin
|
|
1555
|
+
# Get pokemon form
|
|
1556
|
+
result = api_instance.pokemon_form_retrieve(id)
|
|
1557
|
+
p result
|
|
1558
|
+
rescue PokeApiClient::ApiError => e
|
|
1559
|
+
puts "Error when calling PokemonApi->pokemon_form_retrieve: #{e}"
|
|
1560
|
+
end
|
|
1561
|
+
```
|
|
1562
|
+
|
|
1563
|
+
#### Using the pokemon_form_retrieve_with_http_info variant
|
|
1564
|
+
|
|
1565
|
+
This returns an Array which contains the response data, status code and headers.
|
|
1566
|
+
|
|
1567
|
+
> <Array(<PokemonFormDetail>, Integer, Hash)> pokemon_form_retrieve_with_http_info(id)
|
|
1568
|
+
|
|
1569
|
+
```ruby
|
|
1570
|
+
begin
|
|
1571
|
+
# Get pokemon form
|
|
1572
|
+
data, status_code, headers = api_instance.pokemon_form_retrieve_with_http_info(id)
|
|
1573
|
+
p status_code # => 2xx
|
|
1574
|
+
p headers # => { ... }
|
|
1575
|
+
p data # => <PokemonFormDetail>
|
|
1576
|
+
rescue PokeApiClient::ApiError => e
|
|
1577
|
+
puts "Error when calling PokemonApi->pokemon_form_retrieve_with_http_info: #{e}"
|
|
1578
|
+
end
|
|
1579
|
+
```
|
|
1580
|
+
|
|
1581
|
+
### Parameters
|
|
1582
|
+
|
|
1583
|
+
| Name | Type | Description | Notes |
|
|
1584
|
+
| ---- | ---- | ----------- | ----- |
|
|
1585
|
+
| **id** | **String** | This parameter can be a string or an integer. | |
|
|
1586
|
+
|
|
1587
|
+
### Return type
|
|
1588
|
+
|
|
1589
|
+
[**PokemonFormDetail**](PokemonFormDetail.md)
|
|
1590
|
+
|
|
1591
|
+
### Authorization
|
|
1592
|
+
|
|
1593
|
+
[basicAuth](../README.md#basicAuth), [cookieAuth](../README.md#cookieAuth)
|
|
1594
|
+
|
|
1595
|
+
### HTTP request headers
|
|
1596
|
+
|
|
1597
|
+
- **Content-Type**: Not defined
|
|
1598
|
+
- **Accept**: application/json
|
|
1599
|
+
|
|
1600
|
+
|
|
1601
|
+
## pokemon_habitat_list
|
|
1602
|
+
|
|
1603
|
+
> <PaginatedPokemonHabitatSummaryList> pokemon_habitat_list(opts)
|
|
1604
|
+
|
|
1605
|
+
List pokemom habitas
|
|
1606
|
+
|
|
1607
|
+
Habitats are generally different terrain Pokémon can be found in but can also be areas designated for rare or legendary Pokémon.
|
|
1608
|
+
|
|
1609
|
+
### Examples
|
|
1610
|
+
|
|
1611
|
+
```ruby
|
|
1612
|
+
require 'time'
|
|
1613
|
+
require 'pokeapi_client'
|
|
1614
|
+
# setup authorization
|
|
1615
|
+
PokeApiClient.configure do |config|
|
|
1616
|
+
# Configure HTTP basic authorization: basicAuth
|
|
1617
|
+
config.username = 'YOUR USERNAME'
|
|
1618
|
+
config.password = 'YOUR PASSWORD'
|
|
1619
|
+
|
|
1620
|
+
# Configure API key authorization: cookieAuth
|
|
1621
|
+
config.api_key['sessionid'] = 'YOUR API KEY'
|
|
1622
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
|
1623
|
+
# config.api_key_prefix['sessionid'] = 'Bearer'
|
|
1624
|
+
end
|
|
1625
|
+
|
|
1626
|
+
api_instance = PokeApiClient::PokemonApi.new
|
|
1627
|
+
opts = {
|
|
1628
|
+
limit: 56, # Integer | Number of results to return per page.
|
|
1629
|
+
offset: 56, # Integer | The initial index from which to return the results.
|
|
1630
|
+
q: 'q_example' # String | > Only available locally and not at [pokeapi.co](https://pokeapi.co/docs/v2) Case-insensitive query applied on the `name` property.
|
|
1631
|
+
}
|
|
1632
|
+
|
|
1633
|
+
begin
|
|
1634
|
+
# List pokemom habitas
|
|
1635
|
+
result = api_instance.pokemon_habitat_list(opts)
|
|
1636
|
+
p result
|
|
1637
|
+
rescue PokeApiClient::ApiError => e
|
|
1638
|
+
puts "Error when calling PokemonApi->pokemon_habitat_list: #{e}"
|
|
1639
|
+
end
|
|
1640
|
+
```
|
|
1641
|
+
|
|
1642
|
+
#### Using the pokemon_habitat_list_with_http_info variant
|
|
1643
|
+
|
|
1644
|
+
This returns an Array which contains the response data, status code and headers.
|
|
1645
|
+
|
|
1646
|
+
> <Array(<PaginatedPokemonHabitatSummaryList>, Integer, Hash)> pokemon_habitat_list_with_http_info(opts)
|
|
1647
|
+
|
|
1648
|
+
```ruby
|
|
1649
|
+
begin
|
|
1650
|
+
# List pokemom habitas
|
|
1651
|
+
data, status_code, headers = api_instance.pokemon_habitat_list_with_http_info(opts)
|
|
1652
|
+
p status_code # => 2xx
|
|
1653
|
+
p headers # => { ... }
|
|
1654
|
+
p data # => <PaginatedPokemonHabitatSummaryList>
|
|
1655
|
+
rescue PokeApiClient::ApiError => e
|
|
1656
|
+
puts "Error when calling PokemonApi->pokemon_habitat_list_with_http_info: #{e}"
|
|
1657
|
+
end
|
|
1658
|
+
```
|
|
1659
|
+
|
|
1660
|
+
### Parameters
|
|
1661
|
+
|
|
1662
|
+
| Name | Type | Description | Notes |
|
|
1663
|
+
| ---- | ---- | ----------- | ----- |
|
|
1664
|
+
| **limit** | **Integer** | Number of results to return per page. | [optional] |
|
|
1665
|
+
| **offset** | **Integer** | The initial index from which to return the results. | [optional] |
|
|
1666
|
+
| **q** | **String** | > Only available locally and not at [pokeapi.co](https://pokeapi.co/docs/v2) Case-insensitive query applied on the `name` property. | [optional] |
|
|
1667
|
+
|
|
1668
|
+
### Return type
|
|
1669
|
+
|
|
1670
|
+
[**PaginatedPokemonHabitatSummaryList**](PaginatedPokemonHabitatSummaryList.md)
|
|
1671
|
+
|
|
1672
|
+
### Authorization
|
|
1673
|
+
|
|
1674
|
+
[basicAuth](../README.md#basicAuth), [cookieAuth](../README.md#cookieAuth)
|
|
1675
|
+
|
|
1676
|
+
### HTTP request headers
|
|
1677
|
+
|
|
1678
|
+
- **Content-Type**: Not defined
|
|
1679
|
+
- **Accept**: application/json
|
|
1680
|
+
|
|
1681
|
+
|
|
1682
|
+
## pokemon_habitat_retrieve
|
|
1683
|
+
|
|
1684
|
+
> <PokemonHabitatDetail> pokemon_habitat_retrieve(id)
|
|
1685
|
+
|
|
1686
|
+
Get pokemom habita
|
|
1687
|
+
|
|
1688
|
+
Habitats are generally different terrain Pokémon can be found in but can also be areas designated for rare or legendary Pokémon.
|
|
1689
|
+
|
|
1690
|
+
### Examples
|
|
1691
|
+
|
|
1692
|
+
```ruby
|
|
1693
|
+
require 'time'
|
|
1694
|
+
require 'pokeapi_client'
|
|
1695
|
+
# setup authorization
|
|
1696
|
+
PokeApiClient.configure do |config|
|
|
1697
|
+
# Configure HTTP basic authorization: basicAuth
|
|
1698
|
+
config.username = 'YOUR USERNAME'
|
|
1699
|
+
config.password = 'YOUR PASSWORD'
|
|
1700
|
+
|
|
1701
|
+
# Configure API key authorization: cookieAuth
|
|
1702
|
+
config.api_key['sessionid'] = 'YOUR API KEY'
|
|
1703
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
|
1704
|
+
# config.api_key_prefix['sessionid'] = 'Bearer'
|
|
1705
|
+
end
|
|
1706
|
+
|
|
1707
|
+
api_instance = PokeApiClient::PokemonApi.new
|
|
1708
|
+
id = 'id_example' # String | This parameter can be a string or an integer.
|
|
1709
|
+
|
|
1710
|
+
begin
|
|
1711
|
+
# Get pokemom habita
|
|
1712
|
+
result = api_instance.pokemon_habitat_retrieve(id)
|
|
1713
|
+
p result
|
|
1714
|
+
rescue PokeApiClient::ApiError => e
|
|
1715
|
+
puts "Error when calling PokemonApi->pokemon_habitat_retrieve: #{e}"
|
|
1716
|
+
end
|
|
1717
|
+
```
|
|
1718
|
+
|
|
1719
|
+
#### Using the pokemon_habitat_retrieve_with_http_info variant
|
|
1720
|
+
|
|
1721
|
+
This returns an Array which contains the response data, status code and headers.
|
|
1722
|
+
|
|
1723
|
+
> <Array(<PokemonHabitatDetail>, Integer, Hash)> pokemon_habitat_retrieve_with_http_info(id)
|
|
1724
|
+
|
|
1725
|
+
```ruby
|
|
1726
|
+
begin
|
|
1727
|
+
# Get pokemom habita
|
|
1728
|
+
data, status_code, headers = api_instance.pokemon_habitat_retrieve_with_http_info(id)
|
|
1729
|
+
p status_code # => 2xx
|
|
1730
|
+
p headers # => { ... }
|
|
1731
|
+
p data # => <PokemonHabitatDetail>
|
|
1732
|
+
rescue PokeApiClient::ApiError => e
|
|
1733
|
+
puts "Error when calling PokemonApi->pokemon_habitat_retrieve_with_http_info: #{e}"
|
|
1734
|
+
end
|
|
1735
|
+
```
|
|
1736
|
+
|
|
1737
|
+
### Parameters
|
|
1738
|
+
|
|
1739
|
+
| Name | Type | Description | Notes |
|
|
1740
|
+
| ---- | ---- | ----------- | ----- |
|
|
1741
|
+
| **id** | **String** | This parameter can be a string or an integer. | |
|
|
1742
|
+
|
|
1743
|
+
### Return type
|
|
1744
|
+
|
|
1745
|
+
[**PokemonHabitatDetail**](PokemonHabitatDetail.md)
|
|
1746
|
+
|
|
1747
|
+
### Authorization
|
|
1748
|
+
|
|
1749
|
+
[basicAuth](../README.md#basicAuth), [cookieAuth](../README.md#cookieAuth)
|
|
1750
|
+
|
|
1751
|
+
### HTTP request headers
|
|
1752
|
+
|
|
1753
|
+
- **Content-Type**: Not defined
|
|
1754
|
+
- **Accept**: application/json
|
|
1755
|
+
|
|
1756
|
+
|
|
1757
|
+
## pokemon_list
|
|
1758
|
+
|
|
1759
|
+
> <PaginatedPokemonSummaryList> pokemon_list(opts)
|
|
1760
|
+
|
|
1761
|
+
List pokemon
|
|
1762
|
+
|
|
1763
|
+
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.
|
|
1764
|
+
|
|
1765
|
+
### Examples
|
|
1766
|
+
|
|
1767
|
+
```ruby
|
|
1768
|
+
require 'time'
|
|
1769
|
+
require 'pokeapi_client'
|
|
1770
|
+
# setup authorization
|
|
1771
|
+
PokeApiClient.configure do |config|
|
|
1772
|
+
# Configure HTTP basic authorization: basicAuth
|
|
1773
|
+
config.username = 'YOUR USERNAME'
|
|
1774
|
+
config.password = 'YOUR PASSWORD'
|
|
1775
|
+
|
|
1776
|
+
# Configure API key authorization: cookieAuth
|
|
1777
|
+
config.api_key['sessionid'] = 'YOUR API KEY'
|
|
1778
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
|
1779
|
+
# config.api_key_prefix['sessionid'] = 'Bearer'
|
|
1780
|
+
end
|
|
1781
|
+
|
|
1782
|
+
api_instance = PokeApiClient::PokemonApi.new
|
|
1783
|
+
opts = {
|
|
1784
|
+
limit: 56, # Integer | Number of results to return per page.
|
|
1785
|
+
offset: 56, # Integer | The initial index from which to return the results.
|
|
1786
|
+
q: 'q_example' # String | > Only available locally and not at [pokeapi.co](https://pokeapi.co/docs/v2) Case-insensitive query applied on the `name` property.
|
|
1787
|
+
}
|
|
1788
|
+
|
|
1789
|
+
begin
|
|
1790
|
+
# List pokemon
|
|
1791
|
+
result = api_instance.pokemon_list(opts)
|
|
1792
|
+
p result
|
|
1793
|
+
rescue PokeApiClient::ApiError => e
|
|
1794
|
+
puts "Error when calling PokemonApi->pokemon_list: #{e}"
|
|
1795
|
+
end
|
|
1796
|
+
```
|
|
1797
|
+
|
|
1798
|
+
#### Using the pokemon_list_with_http_info variant
|
|
1799
|
+
|
|
1800
|
+
This returns an Array which contains the response data, status code and headers.
|
|
1801
|
+
|
|
1802
|
+
> <Array(<PaginatedPokemonSummaryList>, Integer, Hash)> pokemon_list_with_http_info(opts)
|
|
1803
|
+
|
|
1804
|
+
```ruby
|
|
1805
|
+
begin
|
|
1806
|
+
# List pokemon
|
|
1807
|
+
data, status_code, headers = api_instance.pokemon_list_with_http_info(opts)
|
|
1808
|
+
p status_code # => 2xx
|
|
1809
|
+
p headers # => { ... }
|
|
1810
|
+
p data # => <PaginatedPokemonSummaryList>
|
|
1811
|
+
rescue PokeApiClient::ApiError => e
|
|
1812
|
+
puts "Error when calling PokemonApi->pokemon_list_with_http_info: #{e}"
|
|
1813
|
+
end
|
|
1814
|
+
```
|
|
1815
|
+
|
|
1816
|
+
### Parameters
|
|
1817
|
+
|
|
1818
|
+
| Name | Type | Description | Notes |
|
|
1819
|
+
| ---- | ---- | ----------- | ----- |
|
|
1820
|
+
| **limit** | **Integer** | Number of results to return per page. | [optional] |
|
|
1821
|
+
| **offset** | **Integer** | The initial index from which to return the results. | [optional] |
|
|
1822
|
+
| **q** | **String** | > Only available locally and not at [pokeapi.co](https://pokeapi.co/docs/v2) Case-insensitive query applied on the `name` property. | [optional] |
|
|
1823
|
+
|
|
1824
|
+
### Return type
|
|
1825
|
+
|
|
1826
|
+
[**PaginatedPokemonSummaryList**](PaginatedPokemonSummaryList.md)
|
|
1827
|
+
|
|
1828
|
+
### Authorization
|
|
1829
|
+
|
|
1830
|
+
[basicAuth](../README.md#basicAuth), [cookieAuth](../README.md#cookieAuth)
|
|
1831
|
+
|
|
1832
|
+
### HTTP request headers
|
|
1833
|
+
|
|
1834
|
+
- **Content-Type**: Not defined
|
|
1835
|
+
- **Accept**: application/json
|
|
1836
|
+
|
|
1837
|
+
|
|
1838
|
+
## pokemon_retrieve
|
|
1839
|
+
|
|
1840
|
+
> <PokemonDetail> pokemon_retrieve(id)
|
|
1841
|
+
|
|
1842
|
+
Get pokemon
|
|
1843
|
+
|
|
1844
|
+
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.
|
|
1845
|
+
|
|
1846
|
+
### Examples
|
|
1847
|
+
|
|
1848
|
+
```ruby
|
|
1849
|
+
require 'time'
|
|
1850
|
+
require 'pokeapi_client'
|
|
1851
|
+
# setup authorization
|
|
1852
|
+
PokeApiClient.configure do |config|
|
|
1853
|
+
# Configure HTTP basic authorization: basicAuth
|
|
1854
|
+
config.username = 'YOUR USERNAME'
|
|
1855
|
+
config.password = 'YOUR PASSWORD'
|
|
1856
|
+
|
|
1857
|
+
# Configure API key authorization: cookieAuth
|
|
1858
|
+
config.api_key['sessionid'] = 'YOUR API KEY'
|
|
1859
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
|
1860
|
+
# config.api_key_prefix['sessionid'] = 'Bearer'
|
|
1861
|
+
end
|
|
1862
|
+
|
|
1863
|
+
api_instance = PokeApiClient::PokemonApi.new
|
|
1864
|
+
id = 'id_example' # String | This parameter can be a string or an integer.
|
|
1865
|
+
|
|
1866
|
+
begin
|
|
1867
|
+
# Get pokemon
|
|
1868
|
+
result = api_instance.pokemon_retrieve(id)
|
|
1869
|
+
p result
|
|
1870
|
+
rescue PokeApiClient::ApiError => e
|
|
1871
|
+
puts "Error when calling PokemonApi->pokemon_retrieve: #{e}"
|
|
1872
|
+
end
|
|
1873
|
+
```
|
|
1874
|
+
|
|
1875
|
+
#### Using the pokemon_retrieve_with_http_info variant
|
|
1876
|
+
|
|
1877
|
+
This returns an Array which contains the response data, status code and headers.
|
|
1878
|
+
|
|
1879
|
+
> <Array(<PokemonDetail>, Integer, Hash)> pokemon_retrieve_with_http_info(id)
|
|
1880
|
+
|
|
1881
|
+
```ruby
|
|
1882
|
+
begin
|
|
1883
|
+
# Get pokemon
|
|
1884
|
+
data, status_code, headers = api_instance.pokemon_retrieve_with_http_info(id)
|
|
1885
|
+
p status_code # => 2xx
|
|
1886
|
+
p headers # => { ... }
|
|
1887
|
+
p data # => <PokemonDetail>
|
|
1888
|
+
rescue PokeApiClient::ApiError => e
|
|
1889
|
+
puts "Error when calling PokemonApi->pokemon_retrieve_with_http_info: #{e}"
|
|
1890
|
+
end
|
|
1891
|
+
```
|
|
1892
|
+
|
|
1893
|
+
### Parameters
|
|
1894
|
+
|
|
1895
|
+
| Name | Type | Description | Notes |
|
|
1896
|
+
| ---- | ---- | ----------- | ----- |
|
|
1897
|
+
| **id** | **String** | This parameter can be a string or an integer. | |
|
|
1898
|
+
|
|
1899
|
+
### Return type
|
|
1900
|
+
|
|
1901
|
+
[**PokemonDetail**](PokemonDetail.md)
|
|
1902
|
+
|
|
1903
|
+
### Authorization
|
|
1904
|
+
|
|
1905
|
+
[basicAuth](../README.md#basicAuth), [cookieAuth](../README.md#cookieAuth)
|
|
1906
|
+
|
|
1907
|
+
### HTTP request headers
|
|
1908
|
+
|
|
1909
|
+
- **Content-Type**: Not defined
|
|
1910
|
+
- **Accept**: application/json
|
|
1911
|
+
|
|
1912
|
+
|
|
1913
|
+
## pokemon_shape_list
|
|
1914
|
+
|
|
1915
|
+
> <PaginatedPokemonShapeSummaryList> pokemon_shape_list(opts)
|
|
1916
|
+
|
|
1917
|
+
List pokemon shapes
|
|
1918
|
+
|
|
1919
|
+
Shapes used for sorting Pokémon in a Pokédex.
|
|
1920
|
+
|
|
1921
|
+
### Examples
|
|
1922
|
+
|
|
1923
|
+
```ruby
|
|
1924
|
+
require 'time'
|
|
1925
|
+
require 'pokeapi_client'
|
|
1926
|
+
# setup authorization
|
|
1927
|
+
PokeApiClient.configure do |config|
|
|
1928
|
+
# Configure HTTP basic authorization: basicAuth
|
|
1929
|
+
config.username = 'YOUR USERNAME'
|
|
1930
|
+
config.password = 'YOUR PASSWORD'
|
|
1931
|
+
|
|
1932
|
+
# Configure API key authorization: cookieAuth
|
|
1933
|
+
config.api_key['sessionid'] = 'YOUR API KEY'
|
|
1934
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
|
1935
|
+
# config.api_key_prefix['sessionid'] = 'Bearer'
|
|
1936
|
+
end
|
|
1937
|
+
|
|
1938
|
+
api_instance = PokeApiClient::PokemonApi.new
|
|
1939
|
+
opts = {
|
|
1940
|
+
limit: 56, # Integer | Number of results to return per page.
|
|
1941
|
+
offset: 56, # Integer | The initial index from which to return the results.
|
|
1942
|
+
q: 'q_example' # String | > Only available locally and not at [pokeapi.co](https://pokeapi.co/docs/v2) Case-insensitive query applied on the `name` property.
|
|
1943
|
+
}
|
|
1944
|
+
|
|
1945
|
+
begin
|
|
1946
|
+
# List pokemon shapes
|
|
1947
|
+
result = api_instance.pokemon_shape_list(opts)
|
|
1948
|
+
p result
|
|
1949
|
+
rescue PokeApiClient::ApiError => e
|
|
1950
|
+
puts "Error when calling PokemonApi->pokemon_shape_list: #{e}"
|
|
1951
|
+
end
|
|
1952
|
+
```
|
|
1953
|
+
|
|
1954
|
+
#### Using the pokemon_shape_list_with_http_info variant
|
|
1955
|
+
|
|
1956
|
+
This returns an Array which contains the response data, status code and headers.
|
|
1957
|
+
|
|
1958
|
+
> <Array(<PaginatedPokemonShapeSummaryList>, Integer, Hash)> pokemon_shape_list_with_http_info(opts)
|
|
1959
|
+
|
|
1960
|
+
```ruby
|
|
1961
|
+
begin
|
|
1962
|
+
# List pokemon shapes
|
|
1963
|
+
data, status_code, headers = api_instance.pokemon_shape_list_with_http_info(opts)
|
|
1964
|
+
p status_code # => 2xx
|
|
1965
|
+
p headers # => { ... }
|
|
1966
|
+
p data # => <PaginatedPokemonShapeSummaryList>
|
|
1967
|
+
rescue PokeApiClient::ApiError => e
|
|
1968
|
+
puts "Error when calling PokemonApi->pokemon_shape_list_with_http_info: #{e}"
|
|
1969
|
+
end
|
|
1970
|
+
```
|
|
1971
|
+
|
|
1972
|
+
### Parameters
|
|
1973
|
+
|
|
1974
|
+
| Name | Type | Description | Notes |
|
|
1975
|
+
| ---- | ---- | ----------- | ----- |
|
|
1976
|
+
| **limit** | **Integer** | Number of results to return per page. | [optional] |
|
|
1977
|
+
| **offset** | **Integer** | The initial index from which to return the results. | [optional] |
|
|
1978
|
+
| **q** | **String** | > Only available locally and not at [pokeapi.co](https://pokeapi.co/docs/v2) Case-insensitive query applied on the `name` property. | [optional] |
|
|
1979
|
+
|
|
1980
|
+
### Return type
|
|
1981
|
+
|
|
1982
|
+
[**PaginatedPokemonShapeSummaryList**](PaginatedPokemonShapeSummaryList.md)
|
|
1983
|
+
|
|
1984
|
+
### Authorization
|
|
1985
|
+
|
|
1986
|
+
[basicAuth](../README.md#basicAuth), [cookieAuth](../README.md#cookieAuth)
|
|
1987
|
+
|
|
1988
|
+
### HTTP request headers
|
|
1989
|
+
|
|
1990
|
+
- **Content-Type**: Not defined
|
|
1991
|
+
- **Accept**: application/json
|
|
1992
|
+
|
|
1993
|
+
|
|
1994
|
+
## pokemon_shape_retrieve
|
|
1995
|
+
|
|
1996
|
+
> <PokemonShapeDetail> pokemon_shape_retrieve(id)
|
|
1997
|
+
|
|
1998
|
+
Get pokemon shape
|
|
1999
|
+
|
|
2000
|
+
Shapes used for sorting Pokémon in a Pokédex.
|
|
2001
|
+
|
|
2002
|
+
### Examples
|
|
2003
|
+
|
|
2004
|
+
```ruby
|
|
2005
|
+
require 'time'
|
|
2006
|
+
require 'pokeapi_client'
|
|
2007
|
+
# setup authorization
|
|
2008
|
+
PokeApiClient.configure do |config|
|
|
2009
|
+
# Configure HTTP basic authorization: basicAuth
|
|
2010
|
+
config.username = 'YOUR USERNAME'
|
|
2011
|
+
config.password = 'YOUR PASSWORD'
|
|
2012
|
+
|
|
2013
|
+
# Configure API key authorization: cookieAuth
|
|
2014
|
+
config.api_key['sessionid'] = 'YOUR API KEY'
|
|
2015
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
|
2016
|
+
# config.api_key_prefix['sessionid'] = 'Bearer'
|
|
2017
|
+
end
|
|
2018
|
+
|
|
2019
|
+
api_instance = PokeApiClient::PokemonApi.new
|
|
2020
|
+
id = 'id_example' # String | This parameter can be a string or an integer.
|
|
2021
|
+
|
|
2022
|
+
begin
|
|
2023
|
+
# Get pokemon shape
|
|
2024
|
+
result = api_instance.pokemon_shape_retrieve(id)
|
|
2025
|
+
p result
|
|
2026
|
+
rescue PokeApiClient::ApiError => e
|
|
2027
|
+
puts "Error when calling PokemonApi->pokemon_shape_retrieve: #{e}"
|
|
2028
|
+
end
|
|
2029
|
+
```
|
|
2030
|
+
|
|
2031
|
+
#### Using the pokemon_shape_retrieve_with_http_info variant
|
|
2032
|
+
|
|
2033
|
+
This returns an Array which contains the response data, status code and headers.
|
|
2034
|
+
|
|
2035
|
+
> <Array(<PokemonShapeDetail>, Integer, Hash)> pokemon_shape_retrieve_with_http_info(id)
|
|
2036
|
+
|
|
2037
|
+
```ruby
|
|
2038
|
+
begin
|
|
2039
|
+
# Get pokemon shape
|
|
2040
|
+
data, status_code, headers = api_instance.pokemon_shape_retrieve_with_http_info(id)
|
|
2041
|
+
p status_code # => 2xx
|
|
2042
|
+
p headers # => { ... }
|
|
2043
|
+
p data # => <PokemonShapeDetail>
|
|
2044
|
+
rescue PokeApiClient::ApiError => e
|
|
2045
|
+
puts "Error when calling PokemonApi->pokemon_shape_retrieve_with_http_info: #{e}"
|
|
2046
|
+
end
|
|
2047
|
+
```
|
|
2048
|
+
|
|
2049
|
+
### Parameters
|
|
2050
|
+
|
|
2051
|
+
| Name | Type | Description | Notes |
|
|
2052
|
+
| ---- | ---- | ----------- | ----- |
|
|
2053
|
+
| **id** | **String** | This parameter can be a string or an integer. | |
|
|
2054
|
+
|
|
2055
|
+
### Return type
|
|
2056
|
+
|
|
2057
|
+
[**PokemonShapeDetail**](PokemonShapeDetail.md)
|
|
2058
|
+
|
|
2059
|
+
### Authorization
|
|
2060
|
+
|
|
2061
|
+
[basicAuth](../README.md#basicAuth), [cookieAuth](../README.md#cookieAuth)
|
|
2062
|
+
|
|
2063
|
+
### HTTP request headers
|
|
2064
|
+
|
|
2065
|
+
- **Content-Type**: Not defined
|
|
2066
|
+
- **Accept**: application/json
|
|
2067
|
+
|
|
2068
|
+
|
|
2069
|
+
## pokemon_species_list
|
|
2070
|
+
|
|
2071
|
+
> <PaginatedPokemonSpeciesSummaryList> pokemon_species_list(opts)
|
|
2072
|
+
|
|
2073
|
+
List pokemon species
|
|
2074
|
+
|
|
2075
|
+
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.
|
|
2076
|
+
|
|
2077
|
+
### Examples
|
|
2078
|
+
|
|
2079
|
+
```ruby
|
|
2080
|
+
require 'time'
|
|
2081
|
+
require 'pokeapi_client'
|
|
2082
|
+
# setup authorization
|
|
2083
|
+
PokeApiClient.configure do |config|
|
|
2084
|
+
# Configure HTTP basic authorization: basicAuth
|
|
2085
|
+
config.username = 'YOUR USERNAME'
|
|
2086
|
+
config.password = 'YOUR PASSWORD'
|
|
2087
|
+
|
|
2088
|
+
# Configure API key authorization: cookieAuth
|
|
2089
|
+
config.api_key['sessionid'] = 'YOUR API KEY'
|
|
2090
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
|
2091
|
+
# config.api_key_prefix['sessionid'] = 'Bearer'
|
|
2092
|
+
end
|
|
2093
|
+
|
|
2094
|
+
api_instance = PokeApiClient::PokemonApi.new
|
|
2095
|
+
opts = {
|
|
2096
|
+
limit: 56, # Integer | Number of results to return per page.
|
|
2097
|
+
offset: 56, # Integer | The initial index from which to return the results.
|
|
2098
|
+
q: 'q_example' # String | > Only available locally and not at [pokeapi.co](https://pokeapi.co/docs/v2) Case-insensitive query applied on the `name` property.
|
|
2099
|
+
}
|
|
2100
|
+
|
|
2101
|
+
begin
|
|
2102
|
+
# List pokemon species
|
|
2103
|
+
result = api_instance.pokemon_species_list(opts)
|
|
2104
|
+
p result
|
|
2105
|
+
rescue PokeApiClient::ApiError => e
|
|
2106
|
+
puts "Error when calling PokemonApi->pokemon_species_list: #{e}"
|
|
2107
|
+
end
|
|
2108
|
+
```
|
|
2109
|
+
|
|
2110
|
+
#### Using the pokemon_species_list_with_http_info variant
|
|
2111
|
+
|
|
2112
|
+
This returns an Array which contains the response data, status code and headers.
|
|
2113
|
+
|
|
2114
|
+
> <Array(<PaginatedPokemonSpeciesSummaryList>, Integer, Hash)> pokemon_species_list_with_http_info(opts)
|
|
2115
|
+
|
|
2116
|
+
```ruby
|
|
2117
|
+
begin
|
|
2118
|
+
# List pokemon species
|
|
2119
|
+
data, status_code, headers = api_instance.pokemon_species_list_with_http_info(opts)
|
|
2120
|
+
p status_code # => 2xx
|
|
2121
|
+
p headers # => { ... }
|
|
2122
|
+
p data # => <PaginatedPokemonSpeciesSummaryList>
|
|
2123
|
+
rescue PokeApiClient::ApiError => e
|
|
2124
|
+
puts "Error when calling PokemonApi->pokemon_species_list_with_http_info: #{e}"
|
|
2125
|
+
end
|
|
2126
|
+
```
|
|
2127
|
+
|
|
2128
|
+
### Parameters
|
|
2129
|
+
|
|
2130
|
+
| Name | Type | Description | Notes |
|
|
2131
|
+
| ---- | ---- | ----------- | ----- |
|
|
2132
|
+
| **limit** | **Integer** | Number of results to return per page. | [optional] |
|
|
2133
|
+
| **offset** | **Integer** | The initial index from which to return the results. | [optional] |
|
|
2134
|
+
| **q** | **String** | > Only available locally and not at [pokeapi.co](https://pokeapi.co/docs/v2) Case-insensitive query applied on the `name` property. | [optional] |
|
|
2135
|
+
|
|
2136
|
+
### Return type
|
|
2137
|
+
|
|
2138
|
+
[**PaginatedPokemonSpeciesSummaryList**](PaginatedPokemonSpeciesSummaryList.md)
|
|
2139
|
+
|
|
2140
|
+
### Authorization
|
|
2141
|
+
|
|
2142
|
+
[basicAuth](../README.md#basicAuth), [cookieAuth](../README.md#cookieAuth)
|
|
2143
|
+
|
|
2144
|
+
### HTTP request headers
|
|
2145
|
+
|
|
2146
|
+
- **Content-Type**: Not defined
|
|
2147
|
+
- **Accept**: application/json
|
|
2148
|
+
|
|
2149
|
+
|
|
2150
|
+
## pokemon_species_retrieve
|
|
2151
|
+
|
|
2152
|
+
> <PokemonSpeciesDetail> pokemon_species_retrieve(id)
|
|
2153
|
+
|
|
2154
|
+
Get pokemon species
|
|
2155
|
+
|
|
2156
|
+
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.
|
|
2157
|
+
|
|
2158
|
+
### Examples
|
|
2159
|
+
|
|
2160
|
+
```ruby
|
|
2161
|
+
require 'time'
|
|
2162
|
+
require 'pokeapi_client'
|
|
2163
|
+
# setup authorization
|
|
2164
|
+
PokeApiClient.configure do |config|
|
|
2165
|
+
# Configure HTTP basic authorization: basicAuth
|
|
2166
|
+
config.username = 'YOUR USERNAME'
|
|
2167
|
+
config.password = 'YOUR PASSWORD'
|
|
2168
|
+
|
|
2169
|
+
# Configure API key authorization: cookieAuth
|
|
2170
|
+
config.api_key['sessionid'] = 'YOUR API KEY'
|
|
2171
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
|
2172
|
+
# config.api_key_prefix['sessionid'] = 'Bearer'
|
|
2173
|
+
end
|
|
2174
|
+
|
|
2175
|
+
api_instance = PokeApiClient::PokemonApi.new
|
|
2176
|
+
id = 'id_example' # String | This parameter can be a string or an integer.
|
|
2177
|
+
|
|
2178
|
+
begin
|
|
2179
|
+
# Get pokemon species
|
|
2180
|
+
result = api_instance.pokemon_species_retrieve(id)
|
|
2181
|
+
p result
|
|
2182
|
+
rescue PokeApiClient::ApiError => e
|
|
2183
|
+
puts "Error when calling PokemonApi->pokemon_species_retrieve: #{e}"
|
|
2184
|
+
end
|
|
2185
|
+
```
|
|
2186
|
+
|
|
2187
|
+
#### Using the pokemon_species_retrieve_with_http_info variant
|
|
2188
|
+
|
|
2189
|
+
This returns an Array which contains the response data, status code and headers.
|
|
2190
|
+
|
|
2191
|
+
> <Array(<PokemonSpeciesDetail>, Integer, Hash)> pokemon_species_retrieve_with_http_info(id)
|
|
2192
|
+
|
|
2193
|
+
```ruby
|
|
2194
|
+
begin
|
|
2195
|
+
# Get pokemon species
|
|
2196
|
+
data, status_code, headers = api_instance.pokemon_species_retrieve_with_http_info(id)
|
|
2197
|
+
p status_code # => 2xx
|
|
2198
|
+
p headers # => { ... }
|
|
2199
|
+
p data # => <PokemonSpeciesDetail>
|
|
2200
|
+
rescue PokeApiClient::ApiError => e
|
|
2201
|
+
puts "Error when calling PokemonApi->pokemon_species_retrieve_with_http_info: #{e}"
|
|
2202
|
+
end
|
|
2203
|
+
```
|
|
2204
|
+
|
|
2205
|
+
### Parameters
|
|
2206
|
+
|
|
2207
|
+
| Name | Type | Description | Notes |
|
|
2208
|
+
| ---- | ---- | ----------- | ----- |
|
|
2209
|
+
| **id** | **String** | This parameter can be a string or an integer. | |
|
|
2210
|
+
|
|
2211
|
+
### Return type
|
|
2212
|
+
|
|
2213
|
+
[**PokemonSpeciesDetail**](PokemonSpeciesDetail.md)
|
|
2214
|
+
|
|
2215
|
+
### Authorization
|
|
2216
|
+
|
|
2217
|
+
[basicAuth](../README.md#basicAuth), [cookieAuth](../README.md#cookieAuth)
|
|
2218
|
+
|
|
2219
|
+
### HTTP request headers
|
|
2220
|
+
|
|
2221
|
+
- **Content-Type**: Not defined
|
|
2222
|
+
- **Accept**: application/json
|
|
2223
|
+
|
|
2224
|
+
|
|
2225
|
+
## stat_list
|
|
2226
|
+
|
|
2227
|
+
> <PaginatedStatSummaryList> stat_list(opts)
|
|
2228
|
+
|
|
2229
|
+
List stats
|
|
2230
|
+
|
|
2231
|
+
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.
|
|
2232
|
+
|
|
2233
|
+
### Examples
|
|
2234
|
+
|
|
2235
|
+
```ruby
|
|
2236
|
+
require 'time'
|
|
2237
|
+
require 'pokeapi_client'
|
|
2238
|
+
# setup authorization
|
|
2239
|
+
PokeApiClient.configure do |config|
|
|
2240
|
+
# Configure HTTP basic authorization: basicAuth
|
|
2241
|
+
config.username = 'YOUR USERNAME'
|
|
2242
|
+
config.password = 'YOUR PASSWORD'
|
|
2243
|
+
|
|
2244
|
+
# Configure API key authorization: cookieAuth
|
|
2245
|
+
config.api_key['sessionid'] = 'YOUR API KEY'
|
|
2246
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
|
2247
|
+
# config.api_key_prefix['sessionid'] = 'Bearer'
|
|
2248
|
+
end
|
|
2249
|
+
|
|
2250
|
+
api_instance = PokeApiClient::PokemonApi.new
|
|
2251
|
+
opts = {
|
|
2252
|
+
limit: 56, # Integer | Number of results to return per page.
|
|
2253
|
+
offset: 56, # Integer | The initial index from which to return the results.
|
|
2254
|
+
q: 'q_example' # String | > Only available locally and not at [pokeapi.co](https://pokeapi.co/docs/v2) Case-insensitive query applied on the `name` property.
|
|
2255
|
+
}
|
|
2256
|
+
|
|
2257
|
+
begin
|
|
2258
|
+
# List stats
|
|
2259
|
+
result = api_instance.stat_list(opts)
|
|
2260
|
+
p result
|
|
2261
|
+
rescue PokeApiClient::ApiError => e
|
|
2262
|
+
puts "Error when calling PokemonApi->stat_list: #{e}"
|
|
2263
|
+
end
|
|
2264
|
+
```
|
|
2265
|
+
|
|
2266
|
+
#### Using the stat_list_with_http_info variant
|
|
2267
|
+
|
|
2268
|
+
This returns an Array which contains the response data, status code and headers.
|
|
2269
|
+
|
|
2270
|
+
> <Array(<PaginatedStatSummaryList>, Integer, Hash)> stat_list_with_http_info(opts)
|
|
2271
|
+
|
|
2272
|
+
```ruby
|
|
2273
|
+
begin
|
|
2274
|
+
# List stats
|
|
2275
|
+
data, status_code, headers = api_instance.stat_list_with_http_info(opts)
|
|
2276
|
+
p status_code # => 2xx
|
|
2277
|
+
p headers # => { ... }
|
|
2278
|
+
p data # => <PaginatedStatSummaryList>
|
|
2279
|
+
rescue PokeApiClient::ApiError => e
|
|
2280
|
+
puts "Error when calling PokemonApi->stat_list_with_http_info: #{e}"
|
|
2281
|
+
end
|
|
2282
|
+
```
|
|
2283
|
+
|
|
2284
|
+
### Parameters
|
|
2285
|
+
|
|
2286
|
+
| Name | Type | Description | Notes |
|
|
2287
|
+
| ---- | ---- | ----------- | ----- |
|
|
2288
|
+
| **limit** | **Integer** | Number of results to return per page. | [optional] |
|
|
2289
|
+
| **offset** | **Integer** | The initial index from which to return the results. | [optional] |
|
|
2290
|
+
| **q** | **String** | > Only available locally and not at [pokeapi.co](https://pokeapi.co/docs/v2) Case-insensitive query applied on the `name` property. | [optional] |
|
|
2291
|
+
|
|
2292
|
+
### Return type
|
|
2293
|
+
|
|
2294
|
+
[**PaginatedStatSummaryList**](PaginatedStatSummaryList.md)
|
|
2295
|
+
|
|
2296
|
+
### Authorization
|
|
2297
|
+
|
|
2298
|
+
[basicAuth](../README.md#basicAuth), [cookieAuth](../README.md#cookieAuth)
|
|
2299
|
+
|
|
2300
|
+
### HTTP request headers
|
|
2301
|
+
|
|
2302
|
+
- **Content-Type**: Not defined
|
|
2303
|
+
- **Accept**: application/json
|
|
2304
|
+
|
|
2305
|
+
|
|
2306
|
+
## stat_retrieve
|
|
2307
|
+
|
|
2308
|
+
> <StatDetail> stat_retrieve(id)
|
|
2309
|
+
|
|
2310
|
+
Get stat
|
|
2311
|
+
|
|
2312
|
+
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.
|
|
2313
|
+
|
|
2314
|
+
### Examples
|
|
2315
|
+
|
|
2316
|
+
```ruby
|
|
2317
|
+
require 'time'
|
|
2318
|
+
require 'pokeapi_client'
|
|
2319
|
+
# setup authorization
|
|
2320
|
+
PokeApiClient.configure do |config|
|
|
2321
|
+
# Configure HTTP basic authorization: basicAuth
|
|
2322
|
+
config.username = 'YOUR USERNAME'
|
|
2323
|
+
config.password = 'YOUR PASSWORD'
|
|
2324
|
+
|
|
2325
|
+
# Configure API key authorization: cookieAuth
|
|
2326
|
+
config.api_key['sessionid'] = 'YOUR API KEY'
|
|
2327
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
|
2328
|
+
# config.api_key_prefix['sessionid'] = 'Bearer'
|
|
2329
|
+
end
|
|
2330
|
+
|
|
2331
|
+
api_instance = PokeApiClient::PokemonApi.new
|
|
2332
|
+
id = 'id_example' # String | This parameter can be a string or an integer.
|
|
2333
|
+
|
|
2334
|
+
begin
|
|
2335
|
+
# Get stat
|
|
2336
|
+
result = api_instance.stat_retrieve(id)
|
|
2337
|
+
p result
|
|
2338
|
+
rescue PokeApiClient::ApiError => e
|
|
2339
|
+
puts "Error when calling PokemonApi->stat_retrieve: #{e}"
|
|
2340
|
+
end
|
|
2341
|
+
```
|
|
2342
|
+
|
|
2343
|
+
#### Using the stat_retrieve_with_http_info variant
|
|
2344
|
+
|
|
2345
|
+
This returns an Array which contains the response data, status code and headers.
|
|
2346
|
+
|
|
2347
|
+
> <Array(<StatDetail>, Integer, Hash)> stat_retrieve_with_http_info(id)
|
|
2348
|
+
|
|
2349
|
+
```ruby
|
|
2350
|
+
begin
|
|
2351
|
+
# Get stat
|
|
2352
|
+
data, status_code, headers = api_instance.stat_retrieve_with_http_info(id)
|
|
2353
|
+
p status_code # => 2xx
|
|
2354
|
+
p headers # => { ... }
|
|
2355
|
+
p data # => <StatDetail>
|
|
2356
|
+
rescue PokeApiClient::ApiError => e
|
|
2357
|
+
puts "Error when calling PokemonApi->stat_retrieve_with_http_info: #{e}"
|
|
2358
|
+
end
|
|
2359
|
+
```
|
|
2360
|
+
|
|
2361
|
+
### Parameters
|
|
2362
|
+
|
|
2363
|
+
| Name | Type | Description | Notes |
|
|
2364
|
+
| ---- | ---- | ----------- | ----- |
|
|
2365
|
+
| **id** | **String** | This parameter can be a string or an integer. | |
|
|
2366
|
+
|
|
2367
|
+
### Return type
|
|
2368
|
+
|
|
2369
|
+
[**StatDetail**](StatDetail.md)
|
|
2370
|
+
|
|
2371
|
+
### Authorization
|
|
2372
|
+
|
|
2373
|
+
[basicAuth](../README.md#basicAuth), [cookieAuth](../README.md#cookieAuth)
|
|
2374
|
+
|
|
2375
|
+
### HTTP request headers
|
|
2376
|
+
|
|
2377
|
+
- **Content-Type**: Not defined
|
|
2378
|
+
- **Accept**: application/json
|
|
2379
|
+
|
|
2380
|
+
|
|
2381
|
+
## type_list
|
|
2382
|
+
|
|
2383
|
+
> <PaginatedTypeSummaryList> type_list(opts)
|
|
2384
|
+
|
|
2385
|
+
List types
|
|
2386
|
+
|
|
2387
|
+
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.
|
|
2388
|
+
|
|
2389
|
+
### Examples
|
|
2390
|
+
|
|
2391
|
+
```ruby
|
|
2392
|
+
require 'time'
|
|
2393
|
+
require 'pokeapi_client'
|
|
2394
|
+
# setup authorization
|
|
2395
|
+
PokeApiClient.configure do |config|
|
|
2396
|
+
# Configure HTTP basic authorization: basicAuth
|
|
2397
|
+
config.username = 'YOUR USERNAME'
|
|
2398
|
+
config.password = 'YOUR PASSWORD'
|
|
2399
|
+
|
|
2400
|
+
# Configure API key authorization: cookieAuth
|
|
2401
|
+
config.api_key['sessionid'] = 'YOUR API KEY'
|
|
2402
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
|
2403
|
+
# config.api_key_prefix['sessionid'] = 'Bearer'
|
|
2404
|
+
end
|
|
2405
|
+
|
|
2406
|
+
api_instance = PokeApiClient::PokemonApi.new
|
|
2407
|
+
opts = {
|
|
2408
|
+
limit: 56, # Integer | Number of results to return per page.
|
|
2409
|
+
offset: 56, # Integer | The initial index from which to return the results.
|
|
2410
|
+
q: 'q_example' # String | > Only available locally and not at [pokeapi.co](https://pokeapi.co/docs/v2) Case-insensitive query applied on the `name` property.
|
|
2411
|
+
}
|
|
2412
|
+
|
|
2413
|
+
begin
|
|
2414
|
+
# List types
|
|
2415
|
+
result = api_instance.type_list(opts)
|
|
2416
|
+
p result
|
|
2417
|
+
rescue PokeApiClient::ApiError => e
|
|
2418
|
+
puts "Error when calling PokemonApi->type_list: #{e}"
|
|
2419
|
+
end
|
|
2420
|
+
```
|
|
2421
|
+
|
|
2422
|
+
#### Using the type_list_with_http_info variant
|
|
2423
|
+
|
|
2424
|
+
This returns an Array which contains the response data, status code and headers.
|
|
2425
|
+
|
|
2426
|
+
> <Array(<PaginatedTypeSummaryList>, Integer, Hash)> type_list_with_http_info(opts)
|
|
2427
|
+
|
|
2428
|
+
```ruby
|
|
2429
|
+
begin
|
|
2430
|
+
# List types
|
|
2431
|
+
data, status_code, headers = api_instance.type_list_with_http_info(opts)
|
|
2432
|
+
p status_code # => 2xx
|
|
2433
|
+
p headers # => { ... }
|
|
2434
|
+
p data # => <PaginatedTypeSummaryList>
|
|
2435
|
+
rescue PokeApiClient::ApiError => e
|
|
2436
|
+
puts "Error when calling PokemonApi->type_list_with_http_info: #{e}"
|
|
2437
|
+
end
|
|
2438
|
+
```
|
|
2439
|
+
|
|
2440
|
+
### Parameters
|
|
2441
|
+
|
|
2442
|
+
| Name | Type | Description | Notes |
|
|
2443
|
+
| ---- | ---- | ----------- | ----- |
|
|
2444
|
+
| **limit** | **Integer** | Number of results to return per page. | [optional] |
|
|
2445
|
+
| **offset** | **Integer** | The initial index from which to return the results. | [optional] |
|
|
2446
|
+
| **q** | **String** | > Only available locally and not at [pokeapi.co](https://pokeapi.co/docs/v2) Case-insensitive query applied on the `name` property. | [optional] |
|
|
2447
|
+
|
|
2448
|
+
### Return type
|
|
2449
|
+
|
|
2450
|
+
[**PaginatedTypeSummaryList**](PaginatedTypeSummaryList.md)
|
|
2451
|
+
|
|
2452
|
+
### Authorization
|
|
2453
|
+
|
|
2454
|
+
[basicAuth](../README.md#basicAuth), [cookieAuth](../README.md#cookieAuth)
|
|
2455
|
+
|
|
2456
|
+
### HTTP request headers
|
|
2457
|
+
|
|
2458
|
+
- **Content-Type**: Not defined
|
|
2459
|
+
- **Accept**: application/json
|
|
2460
|
+
|
|
2461
|
+
|
|
2462
|
+
## type_retrieve
|
|
2463
|
+
|
|
2464
|
+
> <TypeDetail> type_retrieve(id)
|
|
2465
|
+
|
|
2466
|
+
Get types
|
|
2467
|
+
|
|
2468
|
+
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.
|
|
2469
|
+
|
|
2470
|
+
### Examples
|
|
2471
|
+
|
|
2472
|
+
```ruby
|
|
2473
|
+
require 'time'
|
|
2474
|
+
require 'pokeapi_client'
|
|
2475
|
+
# setup authorization
|
|
2476
|
+
PokeApiClient.configure do |config|
|
|
2477
|
+
# Configure HTTP basic authorization: basicAuth
|
|
2478
|
+
config.username = 'YOUR USERNAME'
|
|
2479
|
+
config.password = 'YOUR PASSWORD'
|
|
2480
|
+
|
|
2481
|
+
# Configure API key authorization: cookieAuth
|
|
2482
|
+
config.api_key['sessionid'] = 'YOUR API KEY'
|
|
2483
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
|
2484
|
+
# config.api_key_prefix['sessionid'] = 'Bearer'
|
|
2485
|
+
end
|
|
2486
|
+
|
|
2487
|
+
api_instance = PokeApiClient::PokemonApi.new
|
|
2488
|
+
id = 'id_example' # String | This parameter can be a string or an integer.
|
|
2489
|
+
|
|
2490
|
+
begin
|
|
2491
|
+
# Get types
|
|
2492
|
+
result = api_instance.type_retrieve(id)
|
|
2493
|
+
p result
|
|
2494
|
+
rescue PokeApiClient::ApiError => e
|
|
2495
|
+
puts "Error when calling PokemonApi->type_retrieve: #{e}"
|
|
2496
|
+
end
|
|
2497
|
+
```
|
|
2498
|
+
|
|
2499
|
+
#### Using the type_retrieve_with_http_info variant
|
|
2500
|
+
|
|
2501
|
+
This returns an Array which contains the response data, status code and headers.
|
|
2502
|
+
|
|
2503
|
+
> <Array(<TypeDetail>, Integer, Hash)> type_retrieve_with_http_info(id)
|
|
2504
|
+
|
|
2505
|
+
```ruby
|
|
2506
|
+
begin
|
|
2507
|
+
# Get types
|
|
2508
|
+
data, status_code, headers = api_instance.type_retrieve_with_http_info(id)
|
|
111
2509
|
p status_code # => 2xx
|
|
112
2510
|
p headers # => { ... }
|
|
113
|
-
p data # =>
|
|
2511
|
+
p data # => <TypeDetail>
|
|
114
2512
|
rescue PokeApiClient::ApiError => e
|
|
115
|
-
puts "Error when calling PokemonApi->
|
|
2513
|
+
puts "Error when calling PokemonApi->type_retrieve_with_http_info: #{e}"
|
|
116
2514
|
end
|
|
117
2515
|
```
|
|
118
2516
|
|
|
@@ -120,18 +2518,18 @@ end
|
|
|
120
2518
|
|
|
121
2519
|
| Name | Type | Description | Notes |
|
|
122
2520
|
| ---- | ---- | ----------- | ----- |
|
|
123
|
-
| **id** | **
|
|
2521
|
+
| **id** | **String** | This parameter can be a string or an integer. | |
|
|
124
2522
|
|
|
125
2523
|
### Return type
|
|
126
2524
|
|
|
127
|
-
**
|
|
2525
|
+
[**TypeDetail**](TypeDetail.md)
|
|
128
2526
|
|
|
129
2527
|
### Authorization
|
|
130
2528
|
|
|
131
|
-
|
|
2529
|
+
[basicAuth](../README.md#basicAuth), [cookieAuth](../README.md#cookieAuth)
|
|
132
2530
|
|
|
133
2531
|
### HTTP request headers
|
|
134
2532
|
|
|
135
2533
|
- **Content-Type**: Not defined
|
|
136
|
-
- **Accept**:
|
|
2534
|
+
- **Accept**: application/json
|
|
137
2535
|
|