Skip to content

CE-2798: Create endpoint to retrieve git reference type

Domonkos Gulyas requested to merge CE-2798_Retrieve-git-reference-type into develop

A new endpoint has been created. It expects a git_project_id and a git_reference as parameters, and returns the type of the reference, indicating whether it is a TAG or COMMIT. If the project is not found, it returns UNKNOWN.

Endpoint spec:

  • Relative URL: /api/v1/git_helper/{project_id}/reference_type/{git_reference}
  • Swagger: Git.gitReferenceType

Closes CE-2798

Merge request reports