Add GET /projects/:id/remote_mirrors/:mirror_id/public_key API endpoint
What does this MR do and why?
Adds the "GET /projects/:id/remote_mirrors/:mirror_id/public_key" API endpoint that extends the existing UI ability to obtain a remote mirrors public key to the Remote mirrors API.
Changelog: changed
References
Please include cross links to any resources that are relevant to this MR. This will give reviewers and future readers helpful context to give an efficient review of the changes introduced.
MR acceptance checklist
Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.
Screenshots or screen recordings
Screenshots are required for UI changes, and strongly recommended for all other merge requests.
Before | After |
---|---|
How to set up and validate locally
- Create mirror with SSH authentication
- List a project’s remote mirrors to obtain the created remote mirror's ID
- Make a request to the new endpoint. Example:
curl --header "PRIVATE-TOKEN: <your_access_token>" "https://gitlab.example.com/api/v4/projects/42/remote_mirrors/101486/public_key"
Merge request reports
Activity
Please register or sign in to reply