燃料库OpenAPI规范

bunker的Python项目详细描述


OpenAPI客户端

存储库服务的openapi规范

这个python包由OpenAPI Generator项目自动生成:

  • API版本:0.1.1
  • 软件包版本:1.0.0
  • 构建包:org.openapitols.codegen.languages.pythonclientcodegen

要求。

python 2.7和3.4+

安装和使用

pip安装

如果python包托管在github上,则可以直接从github安装

pip install git+https://github.com/GIT_USER_ID/GIT_REPO_ID.git

(您可能需要使用根权限运行pipsudo pip install git+https://github.com/GIT_USER_ID/GIT_REPO_ID.git

然后导入包:

importopenapi_client

设置工具

通过Setuptools安装。

python setup.py install --user

(或sudo python setup.py install为所有用户安装软件包)

然后导入包:

importopenapi_client

开始

请按照installation procedure操作,然后运行以下命令:

from__future__importprint_functionimporttimeimportopenapi_clientfromopenapi_client.restimportApiExceptionfrompprintimportpprint# create an instance of the API classapi_instance=openapi_client.BunkerApi(openapi_client.ApiClient(configuration))person=openapi_client.Person()# Person | The user to create (optional)try:api_response=api_instance.create_person(person=person)pprint(api_response)exceptApiExceptionase:print("Exception when calling BunkerApi->create_person: %s\n"%e)

API端点文档

所有uri都与http://localhost:8080/v1

ClassMethodHTTP requestDescription
BunkerApicreate_personPOST /persons
BunkerApidelete_documentDELETE /persons/{person_id}/documents/{document_id}
BunkerApidelete_faceDELETE /persons/{person_id}/faces/{face_id}
BunkerApidelete_personDELETE /persons/{person_id}
BunkerApidelete_scanDELETE /persons/{person_id}/scans/{scan_id}
BunkerApiget_documentGET /persons/{person_id}/documents/{document_id}
BunkerApiget_faceGET /persons/{person_id}/faces/{face_id}
BunkerApiget_personGET /persons/{person_id}
BunkerApiget_scanGET /persons/{person_id}/scans/{scan_id}
BunkerApirequest_scanPOST /persons/{person_id}/scans/
BunkerApiupload_documentPOST /persons/{person_id}/documents/
BunkerApiupload_facePOST /persons/{person_id}/faces/

型号文档

授权文件

apikeyauth

  • 类型:api键
  • API密钥参数名:API key
  • 位置:http头

作者

欢迎加入QQ群-->: 979659372 Python中文网_新手群

推荐PyPI第三方库


热门话题
java如何向第二个组合框模型项添加数组值从第一个组合框所选项获取数组名称?   使用Java与WebSphere的SSL握手错误   eclipse线程“main”Java中的第一个Java程序异常。lang.NoClassDefFoundError   java将Javafx应用作为Web应用移植的最佳方式   IDE的java右JVM文件夹   java如何在基本适配器中停止文本到语音   java If block使用substring和equals方法以假值执行   在本例中,如何在java中返回多个值?   java第二个主类在maven构建期间覆盖第一个主类   如何在java中设置运行时ArrayList的泛型类型?   java从主机读取文件