燃料库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编辑并重新运行spring引导单元测试,无需重新加载上下文即可加快测试速度   为什么我不能做演员?   java为什么是线程。join通常用于停止安卓中的线程   java从weblogic服务器调用JSON POST REST服务时收到400:错误请求   java在DeviceAdmin模式禁用时设置身份验证?   java SortedMap的keySet()能否始终安全地强制转换到SortedSet?   安卓 java。lang.NoSuchMethodException可包裹类   java JOGL库安装   javatomcat内存管理   java使用getString()中的变量   java将最小星号设置为评级栏   Java中字符串相等的println()方法。。。它到底是如何工作的?   java如何从文本中输出的数组中放入随机图像