likyh opened a new pull request, #3051: URL: https://github.com/apache/incubator-devlake/pull/3051
# Summary <!-- Thanks for submitting a pull request! We appreciate you spending the time to work on these changes. Please fill out as many sections below as possible. --> Add webhook plugin and implement connection save. But this PR does not finish saving pipelines and issues. ## test and usage ##### get connection curl http://127.0.0.1:4000/api/plugins/webhook/connections/1 ```{"name":"aaa","id":1,"createdAt":"0001-01-01T00:00:00Z","updatedAt":"0001-01-01T00:00:00Z","IssuesEndpoint":"/plugins/webhook/1/issues","CicdPipelineEndpoint":"/plugins/webhook/1/cicd_pipeline"}``` ##### create connection curl http://127.0.0.1:4000/api/plugins/webh-X 'POST' -d '{"name": "Webhook data connection name"}' ```{"name":"Webhook data connection name","id":2,"createdAt":"2022-09-09T17:33:00.421807+08:00","updatedAt":"2022-09-09T17:33:00.421807+08:00"}``` ##### edit connection curl http://127.0.0.1:4000/api/plugins/webhook/connections/1 -X 'PATCH' -d '{"name": "Webhook2"}' ```{"name":"Webhook2","id":1,"createdAt":"2022-09-09T17:34:15.320966+08:00","updatedAt":"2022-09-09T17:34:15.320966+08:00"}``` ##### delete connection curl http://127.0.0.1:4000/api/plugins/webhook/connections/2 -X 'DELETE' ```{"name":"Webhook data connection name","id":2,"createdAt":"2022-09-09T17:33:00.421807+08:00","updatedAt":"2022-09-09T17:33:00.421807+08:00"}``` ##### list connection curl http://127.0.0.1:8080/plugins/webhook/connections ```[{"name":"Webhook2","id":1,"createdAt":"0001-01-01T00:00:00Z","updatedAt":"2022-09-09T17:34:15.320966+08:00"}]``` -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
