Skip to content

Add version sort to tags API

Vasilii Iakliushin requested to merge 17801_add_tag_version_sort_to_api into master

What does this MR do and why?

Contributes to #17801 (closed)

Problem

Tags API doesn't support sort by semantic version.

Solution

  • Allow to provide version value to order_by parameter
  • Update tags API documentation

How to set up and validate locally

  1. Visit http://127.0.0.1:3000/api/v4/projects/2/repository/tags?order_by=version&sort=desc
  2. Verify that sort order is correct

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Edited by Vasilii Iakliushin

Merge request reports