最近更新时间:2022-12-13 15:19:23
健康检查
curl --location --request GET 'http://127.0.0.1:8080/health'
发送Cloudevent
curl --location --request POST 'http://127.0.0.1:8080/event-invoke' \
--header 'Content-type: application/json' \
--header 'Ce-id: 1' \
--header 'Ce-source: cloud-event-example' \
--header 'Ce-type: kcf' \
--header 'Ce-specversion: 1.0' \
--data '{
"username": "slinkydeveloper",
"firstName": "Francesco",
"lastName": "Guardiani",
"age": 23
}'
GET调用
curl -X GET http://127.0.0.1:80880/http-invoke
POST调用
curl -X POST http://127.0.0.1:80880/http-invoke
PUT调用
curl -X PUT http://127.0.0.1:80880/http-invoke/1
PATCH调用
curl -X PATCH http://127.0.0.1:80880/http-invoke/1
DELETE调用
curl -X DELETE http://127.0.0.1:80880/http-invoke/1
纯净模式