最近更新时间:2022-12-13 15:19:23
curl --location --request GET 'http://127.0.0.1:8080/health'
curl --location --request POST 'http://127.0.0.1:8080/event-invoke' \
--header 'Content-type: application/cloudevents+json' \
--data '{
"id": "1",
"source": "kcs:ks3",
"type": "ks3:ObjectCreated:PutObject",
"specversion": "1.0",
"datacontenttype": "application/json",
"subject": "/",
"comValue1": "extension value1",
"comValue2": "extension value2",
"data": {
"request": {
"sourceIPAddress": "127.0.0.1"
},
"response": {
"requestId": "daab11b695ea4c4ea7a1a71ce36d1100"
},
"ks3": {
"bucket": {
"name": "kcf-pkg",
"ownerid": "7340"
},
"object": {
"internalurl": "evt-jin.ks3-cn-beijing-internal.ksyuncs.com/a.jpg",
"etag": "etag-xxxxxxx",
"objectsize": "1024",
"url": "evt-jin.ks3-cn-beijing.ksyuncs.com/a.jpg",
"key": "a.jpg"
}
}
}
}'
curl -X POST http://127.0.0.1:8080/http-invoke
curl -X POST http://127.0.0.1:80880/http-invoke
'{
"id": "a123",
}' //用户自定义body内容
curl -X PUT http://127.0.0.1:8080/http-invoke
curl -X PATCH http://127.0.0.1:8080/http-invoke
curl -X DELETE http://127.0.0.1:8080/http-invoke
纯净模式