How to deal with subresources
还没有人认领这个 Issue。
评估
调研方向
Start by tracing the get_generation(1) entry point and the NamedApiResource returned through pokemon_species. Determine how a resource should retrieve its referenced data, then verify that the example can access the resulting PokemonSpecies data through the proposed interface.
由索引模型根据 Issue 内容生成。
描述
e.g.
pokepy.V2Client().get_generation(1).pokemon_species[0]
is a NamedApiResource which points to PokemonSpecies
I haven't figured out yet, how to get the data from that NamedApiResource. Is there an easy way, e.g. get()?
- 主要语言
- Python
- 星标
- 135
- 派生
- 26
- PR 合并指标
- 30 天内没有已合并 PR
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
PokeAPI/pokepy 的其他 Issue
-
难度 1/5 1 小时以内 新手友好度 10/100
-
难度 3/5 1-2 天 新手友好度 35/100
-
难度 4/5 3-5 天 新手友好度 25/100
-
Implement list method / query root endpoints可能重新可做 @Kronopt 于 2127 天前认领,目前没有进行中的 PR。 未关闭
-
Create async client可能重新可做 @Kronopt 于 2127 天前认领,目前没有进行中的 PR。 未关闭
相似的 Issue
-
难度 1/5 1 小时以内 新手友好度 65/100
521xueweihan/HelloGitHub#4025 ·
-
难度 2/5 1-3 小时 新手友好度 85/100
aws-samples/sample-per-model-bedrock#321 ·
维护者通常 1 天内回复
-
难度 1/5 1-3 小时 新手友好度 68/100
FavioVazquez/showtime#101 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 78/100
koush/ha_scrypted#81 ·
-
难度 2/5 1-3 小时 新手友好度 82/100
google/osv-scanner-action#147 ·