blob: b3ef1efd965f529540152dc91a6754d3a1115d68 [file]
#
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You 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
#
# http://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.
#
# if you debug api, replace your own token
### rule list search
POST http://localhost:9095/selector/list/search
Accept: application/json
Content-Type: application/json
X-Access-Token: eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyTmFtZSI6ImFkbWluIiwiZXhwIjoxNjUwNTUyMjg4fQ.06UDvBm5O_sVIIcFIvmhsVKvnP_bo4sx4As2HC67T8c
{
"pageNum": 1,
"pageSize": 12,
"condition": {
"keyword": "m",
"switchStatus": true,
"plugin": [
5
]
}
}
### selector list search adaptor
POST http://localhost:9095/selector/list/search/adaptor
Accept: application/json
Content-Type: application/json
X-Access-Token: eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyTmFtZSI6ImFkbWluIiwiZXhwIjoxNjUwNTUyMjg4fQ.06UDvBm5O_sVIIcFIvmhsVKvnP_bo4sx4As2HC67T8c
{
"pageNum": 1,
"pageSize": 12,
"condition": {
"keyword": "a!b",
"switchStatus": true,
"plugin": [
"5"
]
}
}
### selector list by page
GET http://localhost:9095/selector?currentPage=1&pageSize=140
Accept: application/json
Content-Type: application/json
X-Access-Token: eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyTmFtZSI6ImFkbWluIiwiZXhwIjoxNjQ3NTIzMjc5fQ.ERK-e6EwmKBpRPOr3xgUW8MtgpPuWJVhH7ImhA633X4
### selector detail get
GET http://localhost:9095/selector/1504085720132444160
Accept: application/json
Content-Type: application/json
X-Access-Token: eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyTmFtZSI6ImFkbWluIiwiZXhwIjoxNjQ3NTIzMjc5fQ.ERK-e6EwmKBpRPOr3xgUW8MtgpPuWJVhH7ImhA633X4
### create
POST http://localhost:9095/selector
Accept: application/json
Content-Type: application/json
X-Access-Token: eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyTmFtZSI6ImFkbWluIiwiZXhwIjoxNjQ3NTIzMjc5fQ.ERK-e6EwmKBpRPOr3xgUW8MtgpPuWJVhH7ImhA633X4
{
"pluginId": "28",
"name": "test-create-selector",
"type": 1,
"sort": 1,
"matchMode": 1,
"loged": true,
"enabled": true,
"continued": true,
"selectorConditions": [
{
"paramType": "uri",
"operator": "=",
"paramName": "/",
"paramValue": "sd"
}
]
}
### update
PUT http://localhost:9095/selector/1504094060852412416
Accept: application/json
Content-Type: application/json
X-Access-Token: eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyTmFtZSI6ImFkbWluIiwiZXhwIjoxNjQ3NTIzMjc5fQ.ERK-e6EwmKBpRPOr3xgUW8MtgpPuWJVhH7ImhA633X4
{
"pluginId": "28",
"name": "test-create-selector",
"type": 0,
"sort": 1,
"loged": true,
"enabled": true,
"continued": true,
"selectorConditions": [
{
"paramType": "uri",
"operator": "=",
"paramName": "/",
"paramValue": "sd"
}
]
}
### delete
DELETE http://localhost:9095/selector/batch
Accept: application/json
Content-Type: application/json
X-Access-Token: eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyTmFtZSI6ImFkbWluIiwiZXhwIjoxNjQ3MzUwMjk0fQ.xbWIp3vkSUmOSZD9qIYT_YSunQSJSCKGqYUq4gVmnVw
[
"1503021118890123264"
]