Skip to content
Snippets Groups Projects

Add GET /projects/:id/remote_mirrors/:mirror_id/public_key API endpoint

Merged Jio Castillo requested to merge add-get-remote-mirror-public-key-endpoint into master

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

  1. Create mirror with SSH authentication
  2. List a project’s remote mirrors to obtain the created remote mirror's ID
  3. 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

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
Please register or sign in to reply
Loading