curl获取接口数据
#company/发布平台#
查询配置项某个文件下的配置项
1 | curl -H "Authorization: Basic ZXlKaGJHY2lPaUpJVXpJMU5pSXNJbVY0Y0NJNk1UUTRPVGd6TVRBM05Td2lhV0YwSWpveE5EZzNNak01TURjMWZRLmV5SjFjMlZ5WDJsa0lqb3hmUS4tdVV4Y0l1ZENaakJXRTNwVWZqZHBYY0Rtb2dYTHFtZ1NndjJVeWhSSmFnOg==" http://139.224.235.47:8000/api/v1.0/publish/configs/2/files/content/test.php |
添加配置项
1 | curl -H "Authorization: Basic ZXlKaGJHY2lPaUpJVXpJMU5pSXNJbVY0Y0NJNk1UUTROak13TWpnNE15d2lhV0YwSWpveE5EZ3pOekV3T0RnemZRLmV5SjFjMlZ5WDJsa0lqb3hmUS5zZ3NMSTZkTFVBS2VVV2NTbEc3TV9RRmZEYkoybnQ5T2pJT2JCc2pZcmNzOg==" -H "Content-Type: application/json" -X POST -d '{"name": "tset2", "value":"test2", "comment":"jst", "value_type":"special"}' http://139.224.235.47:8000/api/v1.0/publish/configs/2/files/content/test.php |
删除配置项
1 | curl -H "Authorization: Basic ZXlKaGJHY2lPaUpJVXpJMU5pSXNJbVY0Y0NJNk1UUTROak13TWpnNE15d2lhV0YwSWpveE5EZ3pOekV3T0RnemZRLmV5SjFjMlZ5WDJsa0lqb3hmUS5zZ3NMSTZkTFVBS2VVV2NTbEc3TV9RRmZEYkoybnQ5T2pJT2JCc2pZcmNzOg==" -H "Content-Type: application/json" -X DELETE -d '{"name":["111"]}' http://139.224.235.47:8000/api/v1.0/publish/configs/2/files/content/test.php |