OpenAPI-Generator Python 客户端指令示例

问题描述

尝试学习一点 Pyhton 和 Biopython 我最终弄明白了 RestAPI 是什么

RCSB PDB repository 发布了他的新 RestAPI。

我尝试使用 python3 请求从 PDB 存储库中检索信息,

然后我设法使用 OpenAPI-generator 生成他们所谓的“python3 客户端”。

现在我不知所措,我有这个apiclient class

`打印目录():

[ 'NATIVE_TYPES_MAPPING', 'PRIMITIVE_TYPES', '_apiclient__call_api', '_apiclient__deserialize', '_apiclient__deserialize_date', '_apiclient__deserialize_datetime', '_apiclient__deserialize_file', '_apiclient__deserialize_model', '_apiclient__deserialize_object', '_apiclient__deserialize_primitive', '类',“delattr ','dict','dir','doc','enter','eq','exit','format','ge','getattribute','gt','hash','init','init_subclass','le','lt','module','ne','new','reduce','reduce_ex','repr','setattr','sizeof','str','subclasshook ','weakref','_pool','call_api','client_side_validation','close','configuration','cookie','default_headers','deserialize','files_parameters','parameters_to_tuples','pool','pool_threads','request','rest_client','sanitize_for_serialization','select_header_accept','select_header_content_type','set_default_header','update_params_for_auth','user_agent']`

不知道怎么用。谷歌搜索

示例或在 OpenAPI 生成器网站上搜索信息似乎对我不起作用,我发现

大量关于如何生成客户端的教程和示例,但没有关于如何使用它。

按照我的理解,生成的客户端类应该有助于更好地与服务器交互(我可以

这里错了)。我在这里寻求帮助和提示,因为社区点下的 OpenAPI 网页

到 [openapi-generator] 标签下的 stackoverflow。任何可以帮助我的教程,简单的解释

了解生成器的输出吗?

解决方法

好的,在 OpenAPI-generator 本身生成的 READme.md 上找到了有用的信息

并尝试 pdoc 获取我的 OpenAPI 生成器生成的客户端模块的 html 文档

duplicate