| # |
| # 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 |
| |
| ### metadata list by page |
| GET http://localhost:9095/meta-data/queryList/?currentPage=1&pageSize=10&userId=1&pluginId=1 |
| Accept: application/json |
| Content-Type: application/json |
| X-Access-Token: eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyTmFtZSI6ImFkbWluIiwiZXhwIjoxNjQ3MDA1ODUxfQ.PQKajtOBgL8_it1Ctylk1-TdBTxFv_fneX1ZPWY4DeE |
| |
| ### metadata list |
| GET http://localhost:9095/meta-data/findAll |
| Accept: application/json |
| Content-Type: application/json |
| X-Access-Token: eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyTmFtZSI6ImFkbWluIiwiZXhwIjoxNjQ3MDA1ODUxfQ.PQKajtOBgL8_it1Ctylk1-TdBTxFv_fneX1ZPWY4DeE |
| |
| ### metadata group list |
| GET http://localhost:9095/meta-data/findAllGroup |
| Accept: application/json |
| Content-Type: application/json |
| X-Access-Token: eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyTmFtZSI6ImFkbWluIiwiZXhwIjoxNjQ3MDA1ODUxfQ.PQKajtOBgL8_it1Ctylk1-TdBTxFv_fneX1ZPWY4DeE |
| |
| ### metadata get |
| GET http://localhost:9095/meta-data/1501918894986723328 |
| Accept: application/json |
| Content-Type: application/json |
| X-Access-Token: eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyTmFtZSI6ImFkbWluIiwiZXhwIjoxNjQ3MDA1ODUxfQ.PQKajtOBgL8_it1Ctylk1-TdBTxFv_fneX1ZPWY4DeE |
| |
| ### create or update |
| POST http://localhost:9095/meta-data/createOrUpdate |
| Accept: application/json |
| Content-Type: application/json |
| X-Access-Token: eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyTmFtZSI6ImFkbWluIiwiZXhwIjoxNjQ3MDA1ODUxfQ.PQKajtOBgL8_it1Ctylk1-TdBTxFv_fneX1ZPWY4DeE |
| |
| { |
| "appName": "appName ", |
| "contextPath": "contextPath", |
| "path": "path", |
| "ruleName": "ruleName", |
| "rpcType": "rpcType", |
| "serviceName": "serviceName", |
| "methodName": "methodName", |
| "enabled": false, |
| "dataId": 1 |
| } |
| |
| ### metadata delete |
| DELETE http://localhost:9095/meta-data/batchDeleted |
| Accept: application/json |
| Content-Type: application/json |
| X-Access-Token: eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyTmFtZSI6ImFkbWluIiwiZXhwIjoxNjQ3MDA1ODUxfQ.PQKajtOBgL8_it1Ctylk1-TdBTxFv_fneX1ZPWY4DeE |
| |
| [ |
| 1 |
| ] |
| |
| ### enable |
| POST http://localhost:9095/meta-data/batchEnabled |
| Accept: application/json |
| Content-Type: application/json |
| X-Access-Token: eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyTmFtZSI6ImFkbWluIiwiZXhwIjoxNjQ3MDA1ODUxfQ.PQKajtOBgL8_it1Ctylk1-TdBTxFv_fneX1ZPWY4DeE |
| |
| { |
| "enabled": true, |
| "ids": [ |
| 1, |
| 2, |
| 3 |
| ] |
| } |
| |
| ### sync data |
| POST http://localhost:9095/meta-data/syncData |
| Accept: application/json |
| Content-Type: application/json |
| X-Access-Token: eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyTmFtZSI6ImFkbWluIiwiZXhwIjoxNjQ3MDA1ODUxfQ.PQKajtOBgL8_it1Ctylk1-TdBTxFv_fneX1ZPWY4DeE |
| |