mirror of
https://github.com/modrinth/code.git
synced 2026-09-02 13:05:50 +00:00
docs: corrections to GetLatestVersionFromHash and GetLatestVersionsFromHashes documentation (#6966)
correct version_files documentation
This commit is contained in:
@@ -563,12 +563,18 @@ components:
|
|||||||
type: array
|
type: array
|
||||||
items:
|
items:
|
||||||
type: string
|
type: string
|
||||||
example: [fabric]
|
example: [fabric]
|
||||||
game_versions:
|
game_versions:
|
||||||
type: array
|
type: array
|
||||||
items:
|
items:
|
||||||
type: string
|
type: string
|
||||||
example: ['1.18', 1.18.1]
|
example: ['1.18', 1.18.1]
|
||||||
|
version_types:
|
||||||
|
type: array
|
||||||
|
items:
|
||||||
|
type: string
|
||||||
|
enum: [release, alpha, beta]
|
||||||
|
example: [release]
|
||||||
required:
|
required:
|
||||||
- loaders
|
- loaders
|
||||||
- game_versions
|
- game_versions
|
||||||
@@ -612,6 +618,12 @@ components:
|
|||||||
items:
|
items:
|
||||||
type: string
|
type: string
|
||||||
example: ['1.18', 1.18.1]
|
example: ['1.18', 1.18.1]
|
||||||
|
version_types:
|
||||||
|
type: array
|
||||||
|
items:
|
||||||
|
type: string
|
||||||
|
enum: [release, alpha, beta]
|
||||||
|
example: [release]
|
||||||
required:
|
required:
|
||||||
- loaders
|
- loaders
|
||||||
- game_versions
|
- game_versions
|
||||||
@@ -2865,7 +2877,7 @@ paths:
|
|||||||
$ref: '#/components/schemas/HashList'
|
$ref: '#/components/schemas/HashList'
|
||||||
/version_files/update:
|
/version_files/update:
|
||||||
post:
|
post:
|
||||||
summary: Latest versions of multiple project from hashes, loader(s), and game version(s)
|
summary: Latest versions of multiple projects from hashes, loader(s), and game version(s)
|
||||||
description: This is the same as [`/version_file/{hash}/update`](#operation/getLatestVersionFromHash) except it accepts multiple hashes.
|
description: This is the same as [`/version_file/{hash}/update`](#operation/getLatestVersionFromHash) except it accepts multiple hashes.
|
||||||
operationId: getLatestVersionsFromHashes
|
operationId: getLatestVersionsFromHashes
|
||||||
tags:
|
tags:
|
||||||
|
|||||||
Reference in New Issue
Block a user