fasva数据管理系统客户端api
fasvadms-client的Python项目详细描述
python fasva dms客户端api
这是访问fasva数据管理系统的客户端api,在 在Hochschule Emden/Leer进行的真实驾驶测试。
这个python包由Open API Generator项目自动生成:
要求。
python 2.7和3.4+
安装和使用
pip安装
您可以在PyPi上找到最新版本所以只要用pip
和
python包托管在
pip install fasvadms-client
(您可能需要使用根权限运行pip
:sudo pip install fasvadms-client
)
然后导入包:
importfasvadms_client
设置工具
通过Setuptools安装。
python setup.py install --user
(或sudo python setup.py install
为所有用户安装软件包)
然后导入包:
importfasvadms_client
开始
请按照installation procedure操作,然后运行以下命令:
importfasvadms_clientfromfasvadms_client.restimportApiException# create an instance of the API classapi_instance=fasvadms_client.DriveApi()try:# get all drivesapi_instance.get_drive_list()exceptApiExceptionase:print("Exception when calling DriveApi-get_drive_list: %s\n"%e)
API端点文档
所有uri都与运行fasvadms
的主机相关。
Class | Method | HTTP request | Description |
---|---|---|---|
DriveApi | delete_by_name | DELETE /drive/{name}/ | Remove a entity by its name |
DriveApi | get_by_id | GET /drive/{iddrive} | Get a entity by its id |
DriveApi | get_by_name | GET /drive/{name}/ | Get a entity by its name |
DriveApi | get_drive_list | GET /drive/ | Get all drives |
SceneApi | get_scene_by_id | GET /scene/{idscene}/ | Get a scene by its id |
SceneApi | get_scene_by_time_and_drive | GET /scene/time/{timestamp}/drive/{iddrive} | Get a scene by its id |
SceneApi | get_scene_by_time_interval | GET /scene/start/{start_time}/end/{end_time} | Get all scenes of the drive with the `iddrive` within the interval defined by `start_time` and `end_time` |
SceneApi | get_scene_by_time_interval_and_drive | GET /scene/start/{start_time}/end/{end_time}/drive/{iddrive} | Get all scenes within the interval defined by `start_time` and `end_time` |
SceneApi | get_scene_list | GET /scene/ | Get all scenes |
SceneApi | get_scene_signal_by_id | GET /scene/{idscene}/signal/{idsignal} | Get the signal information (identified by `name`) of the scene with the `idscene` |
SceneApi | get_scene_signal_by_name | GET /scene/{idscene}/signal/{name} | Get the signal information (identified by `idsignal`) of the scene with the `idscene` |
SensorApi | delete_sensor_by_name | DELETE /sensor/{name}/ | Remove a sensor by its name |
SensorApi | get_sensor_by_id | GET /sensor/{idsensor} | Get a sensor by its id |
SensorApi | get_sensor_by_name | GET /sensor/{name}/ | Get a sensor by its name |
SensorApi | get_sensor_list | GET /sensor/ | Get all sensors |
SignalApi | get_signal_by_name | GET /signal/{name}/ | Get a signal by its name |
SignalApi | get_signal_list | GET /signal/ | Get all signals |
SignalTypeApi | get_valuetype_by_id | GET /type/{idvaluetype} | Get a value type by its id |
SignalTypeApi | get_valuetype_by_name | GET /type/{name}/ | Get a sensor by its name |
SignalTypeApi | get_valuetype_list | GET /type/ | Get all signal types |
ThumbnailApi | get_by_time_and_vehicle | GET /thumbnail/time/{time}/serialnumber/{serialnumber} | Get a thumbnail of `timestamp` of the vehicle with the `serialnumber` |
ThumbnailApi | get_interval | GET /thumbnail/start/{start}/end/{end}/serialnumber/{serialnumber} | Get thumbnail of the interval defined by `start` and `end` of the vehicle with the `serialnumber` |
UnitApi | get_by_id | GET /unit/{idunit} | Get a entity by its id |
UnitApi | get_by_name | GET /unit/{name}/ | Get a entity by its name |
UnitApi | get_list | GET /unit/ | Get all entities |
VehicleApi | get_vehicle_by_id | GET /vehicle/{idvehicle} | Get a vehicle by its id |
VehicleApi | get_vehicle_by_name | GET /vehicle/{name}/ | Get a vehicle by its name |
VehicleApi | get_vehicle_list | GET /vehicle/ | Get all vehicles |
型号文档
授权文件
所有端点都不需要授权(当前)。