Skip to content

Commit

Permalink
describe versions sortBy parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
toy committed Oct 29, 2024
1 parent 25b524a commit a918e5b
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions docs/api/apiv3/paths/versions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,19 @@ get:
required: false
schema:
type: string
- description: |-
JSON specifying sort criteria.
Accepts the same format as returned by the [queries](https://www.openproject.org/docs/api/endpoints/queries/) endpoint. Currently supported attributes are:
+ id: Sort by the version id
+ name: Sort by the version name using numeric collation, comparing sequences of decimal digits by their numeric value
+ semver_name: Deprecated, use name instead
example: '[["name", "desc"]]'
in: query
name: sortBy
required: false
schema:
type: string
responses:
'200':
content:
Expand Down

0 comments on commit a918e5b

Please sign in to comment.