123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130 |
- #
- # Copyright 2016-present the original author or authors.
- #
- # Licensed under the Apache License, Version 2.0 (the "License");
- # you may not use this file except in compliance with the License.
- # You may obtain a copy of the License at
- #
- # https://www.apache.org/licenses/LICENSE-2.0
- #
- # Unless required by applicable law or agreed to in writing, software
- # distributed under the License is distributed on an "AS IS" BASIS,
- # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- # See the License for the specific language governing permissions and
- # limitations under the License.
- #
- ### --------------------- Driver ---------------------
- ### 新增 Driver
- #/manager/driver/add
- POST http://{{dc3-manager}}/manager/driver/add
- Accept: */*
- Content-Type: application/json
- Cache-Control: no-cache
- X-Auth-Tenant-Id: -1
- {
- "name": "测试驱动",
- "serviceName": "dc3-driver-test",
- "host": "127.0.0.1",
- "port": 8799,
- "description": "测试驱动"
- }
- ### 批量新增 Driver
- #/manager/driver/batch_import
- POST http://{{dc3-manager}}/manager/driver/batch_import
- Accept: */*
- Content-Type: application/json
- Cache-Control: no-cache
- < ../../files/batch-import.json
- ### 修改 Driver
- #/manager/driver/update
- POST http://{{dc3-manager}}/manager/driver/update
- Accept: */*
- Content-Type: application/json
- Cache-Control: no-cache
- X-Auth-Tenant-Id: -1
- {
- "id": 1399921716049756161,
- "name": "测试驱动",
- "serviceName": "dc3-driver-test",
- "host": "127.0.0.1",
- "port": 8799,
- "description": "测试驱动"
- }
- ### 根据 ID 查询 Driver
- #/manager/driver/id/:id
- GET http://{{dc3-manager}}/manager/driver/id/1399921716049756161
- Accept: */*
- Cache-Control: no-cache
- ### 根据 ServiceName 查询 Driver
- #/manager/driver/service/:serviceName
- GET http://{{dc3-manager}}/manager/driver/service/dc3-driver-test
- Accept: */*
- Cache-Control: no-cache
- X-Auth-Tenant-Id: -1
- ### 查询 Driver 服务状态
- #/manager/driverStatus/driver,支持name\serverName\host模糊查询,port精准查询
- POST http://{{dc3-manager}}/manager/driverStatus/driver
- Accept: */*
- Content-Type: application/json
- Cache-Control: no-cache
- X-Auth-Tenant-Id: -1
- {
- "name": "",
- "serviceName": "dc3-driver-test",
- "page": {
- "current": 1,
- "orders": [
- {
- "column": "id",
- "asc": false
- }
- ]
- }
- }
- ### 分页查询 Driver
- #/manager/driver/list,支持name\serverName\host模糊查询,port精准查询
- POST http://{{dc3-manager}}/manager/driver/list
- Accept: */*
- Content-Type: application/json
- Cache-Control: no-cache
- X-Auth-Tenant-Id: -1
- {
- "name": "",
- "page": {
- "current": 1,
- "orders": [
- {
- "column": "id",
- "asc": false
- }
- ]
- }
- }
- ### 根据 ID 删除 Driver
- #/manager/driver/delete/:id
- POST http://{{dc3-manager}}/manager/driver/delete/1
- Accept: */*
- Content-Type: application/json
- Cache-Control: no-cache
- ###
|