curl --location --request GET 'https://m1.apifoxmock.com/m1/2270273-0-default/AGW/api/snapshot/list?apiCode=46237486328&instanceCode=32138217498' \
--header 'jwt: eyJhbGciOiJIUzI1NiJ9.eyJ1c2VySWQiOjE4MjA3NCwidGVuYW50SWQiOjk5NDg3MDcsInVzZXJOYW1lIjoiY3R5dW4wYTFjMzI1MmI2MjQ0NzEyMTcyNTQyMjU3MSIsInRlbmFudE5hbWUiOiJtc2FwX21zZV9jc21fZGV2X21hc3RlckBxcS5jb20jcGFhczQwIiwidGVuYW50Q29kZSI6IkN0eXVuM2UxNjIxYTY3YjQwNDY0MjE3MjU0MjI1NzEiLCJidXNpVXNlcklkIjpudWxsLCJidXNpVGVuYW50SWQiOm51bGwsImJ1c2lUZW5hbnROYW1lIjpudWxsLCJhY2NvdW50VHlwZSI6MCwiaXNPd25lciI6dHJ1ZSwicmVhbE5hbWUiOiJtc2FwX21zZV9jc21fZGV2IiwicmVxU291cmNlIjoiMDEiLCJ2ZXJzaW9uTm8iOiIzLjAuMCIsInJlc1Bvb2xDb2RlIjoiYjM0MmI3N2VmMjZiMTFlY2IwYWMwMjQyYWMxMTAwMDIiLCJwcml2YXRlS2V5IjpudWxsLCJvdXRlclRlbmFudElkIjoiM2UxNjIxYTY3YjQwNDY0MmIxMDAxMDc3YzcxYmE3OWYiLCJvdXRlclVzZXJJZCI6IjBhMWMzMjUyYjYyNDQ3MTJiNmNiM2FhMGU1YTc5M2JmIiwiYWdlbnRVc2VySWQiOm51bGwsImFnZW50VGVuYW50SWQiOm51bGwsImlhdCI6MTczMjUxOTQ3NCwiaXNzIjoiZmlyc3R6dXVsIiwiZXhwIjoyMzMyNTE5NDc0fQ.XiXnJQmUSVc8I-IVY99JE5VmHMvM8dydDpD9xC5St8g'
{
"code": 200,
"data": {
"endRow": 0,
"hasNextPage": true,
"hasPreviousPage": true,
"isFirstPage": true,
"isLastPage": true,
"list": [
{
"apiInfo": {
"apiGroupCode": 131738197,
"apiInterfaces": [
{
"apiCode": 321781684,
"code": 8231767,
"createTime": "2019-08-24T14:15:22Z",
"description": "这是一个测试接口",
"isAuthorized": false,
"isPluginBind": false,
"method": "GET",
"mock": {
"enable": true,
"responseCode": 200,
"responseContent": "{\"num\":100}"
},
"name": "api_test",
"path": "/test",
"request": {
"body": {
"contentType": "application/json;charset=UTF-8",
"example": {},
"jsonSchema": {}
},
"headerParameters": [
{
"defaultValue": "hello",
"description": "这是一个参数",
"exampleValue": "hello",
"name": "p1",
"required": true,
"type": "String"
}
],
"pathParameters": [
{
"defaultValue": "hello",
"description": "这是一个参数",
"exampleValue": "hello",
"name": "p1",
"required": true,
"type": "String"
}
],
"queryParameters": [
{
"defaultValue": "hello",
"description": "这是一个参数",
"exampleValue": "hello",
"name": "p1",
"required": true,
"type": "String"
}
]
},
"response": {
"contentType": "application/json;charset=utf-8",
"items": [
{
"code": 200,
"description": "成功",
"example": {},
"jsonSchema": {}
}
]
},
"updateTime": "2019-08-24T14:15:22Z"
}
],
"basePath": "/",
"code": 3482194738,
"description": "api description",
"isAuthorized": false,
"isPluginBind": false,
"name": "api-name",
"protocols": [
"string"
],
"publishInfos": [
{
"deployStatus": "Deployed",
"hostsInfo": [
{
"code": 47328947932,
"host": "www.ctyun.cn",
"protocolType": "http"
}
],
"instanceInfo": {
"accessAddress": [
"http://127.0.0.1:27151",
"https://127.0.0.1:27154"
],
"instanceCode": 7219423,
"instanceName": "test-instance-name",
"instanceVersion": "1.0.0"
},
"upstreamConfig": [
{
"endpoint": "https://api.openai.com/v1/chat/completions",
"groupName": "test-upstream-group",
"namespace": "test-namespace",
"sourceType": "nacos",
"upstreamCode": 478329478392,
"upstreamName": "upstream-name",
"versionCode": 327847979,
"versionName": "version-one",
"weight": 50
}
],
"upstreamScene": "SingleUpstream"
}
],
"tenantId": "tenant_id",
"type": "HTTP",
"versionInfo": {
"enable": true,
"headerName": "h1",
"queryName": "p1",
"scheme": "header",
"version": "v1"
}
},
"createTime": "2019-08-24T14:15:22Z",
"description": "这是一个描述信息",
"hostsInfo": [
{
"code": 47328947932,
"host": "www.ctyun.cn",
"protocolType": "http"
}
],
"instanceInfo": {
"accessAddress": [
"http://127.0.0.1:27151",
"https://127.0.0.1:27154"
],
"instanceCode": 7219423,
"instanceName": "test-instance-name",
"instanceVersion": "1.0.0"
},
"online": true,
"upstreamConfigs": [
{
"endpoint": "https://api.openai.com/v1/chat/completions",
"groupName": "test-upstream-group",
"namespace": "test-namespace",
"sourceType": "nacos",
"upstreamCode": 478329478392,
"upstreamName": "upstream-name",
"versionCode": 327847979,
"versionName": "version-one",
"weight": 50
}
],
"upstreamScene": "HTTP",
"versionCode": 42367842
}
],
"navigateFirstPage": 0,
"navigateLastPage": 0,
"navigatePages": 0,
"navigatepageNums": [
0
],
"nextPage": 0,
"pageNum": 0,
"pageSize": 0,
"pages": 0,
"prePage": 0,
"size": 0,
"startRow": 0,
"total": 0
},
"message": "success",
"requestId": "123456789-adc"
}