rodrigoluizs opened a new pull request, #8203:
URL: https://github.com/apache/incubator-devlake/pull/8203

   ### Summary
   This PR introduces new endpoints to the Webhook API that allow users to 
perform actions using connectionName instead of connectionId. The goal is to 
improve usability and simplify integration by enabling users to reference 
webhooks by their human-readable names, eliminating the need to manage and 
persist connectionId values.
   
   #### Introduced Changes
   
   ##### 1. New Endpoints:
   
   - Added endpoints prefixed with /by-name to explicitly handle connectionName:
   - POST /plugins/webhook/connections/by-name/:connectionName/deployments
   - POST /plugins/webhook/by-name/:connectionName/issues
   - POST /plugins/webhook/by-name/:connectionName/issue/:issueKey/close
   - DELETE /plugins/webhook/connections/by-name/:connectionName
   - GET /plugins/webhook/connections/by-name/:connectionName
   - PATCH /plugins/webhook/connections/by-name/:connectionName
   
   ##### 2. Internal Logic:
   
   - Updated the Webhook API implementation to retrieve connections using 
connectionName.
   - Reused existing logic by delegating common operations to internal methods, 
ensuring no duplication of functionality.
   
   ##### 3. Backward Compatibility:
   - Existing endpoints using connectionId remain unchanged, ensuring full 
backward compatibility with current integrations.
   
   ### Does this close any open issues?
   #8195
   


-- 
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]

Reply via email to