dosubot[bot] commented on issue #7610:
URL: 
https://github.com/apache/incubator-devlake/issues/7610#issuecomment-2165256720

   <!-- Answer -->
   Yes, features for attaching a GitLab connection to a DevLake project using 
the API have been implemented. You can manage GitLab connections via several 
API endpoints. To attach an existing GitLab connection to a DevLake project, 
you should use the following endpoint:
   
   ```
   POST /projects/{projectId}/connections/{connectionId}
   ```
   
   This endpoint allows you to add a previously configured GitLab connection to 
a specific DevLake project. Here is an example of how to use it:
   
   ```bash
   curl -X 'POST' \
     
'https://your-devlake-instance/api/projects/{projectId}/connections/{connectionId}'
 \
     -H 'accept: application/json' \
     -H 'Content-Type: application/json' \
     -d '{
     "name": "Your Connection Name",
     "endpoint": "https://gitlab.com/api/v4/";,
     "token": "Your Personal Access Token",
     "proxy": "Your Proxy URL (optional)",
     "rateLimitPerHour": 12000
   }'
   ```
   
   Make sure to replace `{projectId}` and `{connectionId}` with the actual IDs 
of your project and connection, respectively 
<sup>[[1]](https://github.com/apache/incubator-devlake/blob/main/backend/plugins/gitlab/api/connection_api.go)</sup><sup>[[2]](https://github.com/apache/incubator-devlake-website/blob/main/docs/Configuration/GitLab.md)</sup>.
   
   
   <!-- Dosu Comment Footer -->
   *To continue talking to [Dosu](https://dosu.dev), mention @dosu.*
   


-- 
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: dev-unsubscr...@devlake.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to