Files
GeyserWebsite/wiki/api/downloads.geysermc.org/builds.api.mdx
T
2024-07-18 10:38:53 +01:00

409 lines
19 KiB
Plaintext

---
id: builds
title: "Gets all available builds for a project's version."
description: "Gets all available builds for a project's version."
sidebar_label: "Gets all available builds for a project's version."
hide_title: true
hide_table_of_contents: true
api: eJytVttu4zYQ/RVhXppgJUu2E8fWi5FekC4KdINN2hevsRiLI5spRWpJ2l1Xq38vSEm+1K53kfbJ1JAzPDw8POMKLC4NpDPYkDZcyWix5oKZKFPSaiUEaZiHoErSaLmSbxmk0CyBEErUWJAl7SpUILEgSKHU6oUyCyFw6T7RriAERibTvHRFIIXnFQXtuoAzkpbnnHQPQtD0ac01MUitXlMIJltRgZBWrpAl7bJnGP01fwMh2G3pdjRWc7mEOgT6jEUpXGxJW0Ma6nCHqz3hRVz3QbsqUHlg9yC/FdnVNBVoydgvsySa9OZvounVNC01fXn69f7x6ed3z9cu0E5eT6+np6eo524vUyppyLjygyRxP8dI3/0CIbhbImndLJal4Jm/pPjFuCXVAcJ2C7Vob6bU7kotbzZoD/mRs2/i+SzNuyIN29WFnIddTncl/zeHh7sNev1e4jZrZbuHhlrj1snBUmG+zpLPP4b64QM7oIdLS0vSEEKudIG2CQ0Hh3CGSR2C5ecp2qUxtBT5VXUI2QqlJHGWU7ku3ONllONaWL9RSZoXJC0KmDfXUihL7CB9oZQglF3tJf0HUjJVFNyeYqtDMOuiQL09O1eQMbg8Q0Lt6bH+5n7w4HyIqT+lUMjOIkLGuNM9iscjbJeRdzo9lrsT1cfoK6JvBBw9lXypbO8FvZbNCge3o5OKeRJN5tXopr5YcUJZdje8u8kG/X6Cyd1dPsoG43GON8huhzga9wdZMmG3o0nCkJJFNhndJuN8Mpywm2wxxiPefmzJgvow+nvz1r73Kj6a8SHzvrUcN+cpP7KbB7ImQCEC3CAXuBAUNO8pyJUOsPPJ70xnoM4xC7IrxbxLeP6d46YQbwZxu9zEVTuq4zbPxFU7quNdozGkN12XWWsBKaysLU0ax50weo0RFVlP6SU4C+UyV14F/2DFBPePb+HAe6DfSxqHKJWxBcq9Ol537CPmdjK09NnGpUDuH54/RdVSMoPNAHYO6g6c7ptox4uL7ltYS808hJUy1pWoqgUa+k2LunbhT2tyb282D2GDmjvonj7GjRszSHMUhk7Q7loKXL1vG9518O/t+uzhOiuRzkg2KNbuC0L4g7YH/w9ca34VmktN+hV4OlJrZ5crQkbaM9XM3mcZlfYg76TROrHtlP7w0zPU9d+YFyNj
sidebar_class_name: "get api-method"
info_path: wiki/api/downloads.geysermc.org/downloads-api
custom_edit_url: null
---
import ApiTabs from "@theme/ApiTabs";
import DiscriminatorTabs from "@theme/DiscriminatorTabs";
import MethodEndpoint from "@theme/ApiExplorer/MethodEndpoint";
import SecuritySchemes from "@theme/ApiExplorer/SecuritySchemes";
import MimeTabs from "@theme/MimeTabs";
import ParamsItem from "@theme/ParamsItem";
import ResponseSamples from "@theme/ResponseSamples";
import SchemaItem from "@theme/SchemaItem";
import SchemaTabs from "@theme/SchemaTabs";
import Markdown from "@theme/Markdown";
import Heading from "@theme/Heading";
import OperationTabs from "@theme/OperationTabs";
import TabItem from "@theme/TabItem";
<Heading
as={"h1"}
className={"openapi__heading"}
children={"Gets all available builds for a project's version."}
>
</Heading>
<MethodEndpoint
method={"get"}
path={"/v2/projects/{project}/versions/{version}/builds"}
>
</MethodEndpoint>
Gets all available builds for a project's version.
<Heading
id={"request"}
as={"h2"}
className={"openapi-tabs__heading"}
children={"Request"}
>
</Heading>
<details
style={{"marginBottom":"1rem"}}
className={"openapi-markdown__details"}
data-collapsed={false}
open={true}
>
<summary
style={{}}
>
<h3
className={"openapi-markdown__details-summary-header-params"}
>
Path Parameters
</h3>
</summary><div>
<ul>
<ParamsItem
className={"paramsItem"}
param={{"name":"project","in":"path","description":"The project identifier.","required":true,"schema":{"pattern":"[a-z]+","type":"string"},"example":"geyser"}}
>
</ParamsItem><ParamsItem
className={"paramsItem"}
param={{"name":"version","in":"path","description":"A version of the project.","required":true,"schema":{"pattern":"(?:latest|[0-9.]+-?(?:pre|SNAPSHOT)?(?:[0-9.]+)?)?","type":"string"}}}
>
</ParamsItem>
</ul>
</div>
</details><div>
<div>
<ApiTabs
label={undefined}
id={undefined}
>
<TabItem
label={"200"}
value={"200"}
>
<div>
OK
</div><div>
<MimeTabs
className={"openapi-tabs__mime"}
schemaType={"response"}
>
<TabItem
label={"application/json"}
value={"application/json"}
>
<SchemaTabs
className={"openapi-tabs__schema"}
>
<TabItem
label={"Schema"}
value={"Schema"}
>
<details
style={{}}
className={"openapi-markdown__details response"}
data-collapsed={false}
open={true}
>
<summary
style={{}}
className={"openapi-markdown__details-summary-response"}
>
<strong>
Schema
</strong>
</summary><div
style={{"textAlign":"left","marginLeft":"1rem"}}
>
</div><ul
style={{"marginLeft":"1rem"}}
>
<SchemaItem
collapsible={false}
name={"project_id"}
required={false}
schemaName={"string"}
qualifierMessage={"**Possible values:** Value must match regular expression `[a-z]+`"}
schema={{"pattern":"[a-z]+","type":"string","example":"geyser"}}
>
</SchemaItem><SchemaItem
collapsible={false}
name={"project_name"}
required={false}
schemaName={"string"}
qualifierMessage={undefined}
schema={{"type":"string","example":"Geyser"}}
>
</SchemaItem><SchemaItem
collapsible={false}
name={"version"}
required={false}
schemaName={"string"}
qualifierMessage={"**Possible values:** Value must match regular expression `(?:latest|[0-9.]+-?(?:pre|SNAPSHOT)?(?:[0-9.]+)?)?`"}
schema={{"pattern":"(?:latest|[0-9.]+-?(?:pre|SNAPSHOT)?(?:[0-9.]+)?)?","type":"string","example":"2.1.0"}}
>
</SchemaItem><SchemaItem
collapsible={true}
className={"schemaItem"}
>
<details
style={{}}
className={"openapi-markdown__details"}
>
<summary
style={{}}
>
<span
className={"openapi-schema__container"}
>
<strong
className={"openapi-schema__property"}
>
builds
</strong><span
className={"openapi-schema__name"}
>
object[]
</span>
</span>
</summary><div
style={{"marginLeft":"1rem"}}
>
<li>
<div
style={{"fontSize":"var(--ifm-code-font-size)","opacity":"0.6","marginLeft":"-.5rem","paddingBottom":".5rem"}}
>
Array [
</div>
</li><SchemaItem
collapsible={false}
name={"build"}
required={false}
schemaName={"int32"}
qualifierMessage={"**Possible values:** Value must match regular expression `\\d+`"}
schema={{"pattern":"\\d+","type":"integer","format":"int32","example":30}}
>
</SchemaItem><SchemaItem
collapsible={false}
name={"time"}
required={false}
schemaName={"date-time"}
qualifierMessage={undefined}
schema={{"type":"string","format":"date-time"}}
>
</SchemaItem><SchemaItem
collapsible={false}
name={"channel"}
required={false}
schemaName={"string"}
qualifierMessage={"**Possible values:** [`default`, `experimental`]"}
schema={{"type":"string","enum":["default","experimental"]}}
>
</SchemaItem><SchemaItem
collapsible={false}
name={"promoted"}
required={false}
schemaName={"boolean"}
qualifierMessage={undefined}
schema={{"type":"boolean"}}
>
</SchemaItem><SchemaItem
collapsible={true}
className={"schemaItem"}
>
<details
style={{}}
className={"openapi-markdown__details"}
>
<summary
style={{}}
>
<span
className={"openapi-schema__container"}
>
<strong
className={"openapi-schema__property"}
>
changes
</strong><span
className={"openapi-schema__name"}
>
object[]
</span>
</span>
</summary><div
style={{"marginLeft":"1rem"}}
>
<li>
<div
style={{"fontSize":"var(--ifm-code-font-size)","opacity":"0.6","marginLeft":"-.5rem","paddingBottom":".5rem"}}
>
Array [
</div>
</li><SchemaItem
collapsible={false}
name={"commit"}
required={false}
schemaName={"string"}
qualifierMessage={undefined}
schema={{"type":"string"}}
>
</SchemaItem><SchemaItem
collapsible={false}
name={"summary"}
required={false}
schemaName={"string"}
qualifierMessage={undefined}
schema={{"type":"string"}}
>
</SchemaItem><SchemaItem
collapsible={false}
name={"message"}
required={false}
schemaName={"string"}
qualifierMessage={undefined}
schema={{"type":"string"}}
>
</SchemaItem><li>
<div
style={{"fontSize":"var(--ifm-code-font-size)","opacity":"0.6","marginLeft":"-.5rem"}}
>
]
</div>
</li>
</div>
</details>
</SchemaItem><SchemaItem
collapsible={true}
className={"schemaItem"}
>
<details
style={{}}
className={"openapi-markdown__details"}
>
<summary
style={{}}
>
<span
className={"openapi-schema__container"}
>
<strong
className={"openapi-schema__property"}
>
downloads
</strong><span
className={"openapi-schema__name"}
>
object
</span>
</span>
</summary><div
style={{"marginLeft":"1rem"}}
>
<SchemaItem
collapsible={true}
className={"schemaItem"}
>
<details
style={{}}
className={"openapi-markdown__details"}
>
<summary
style={{}}
>
<span
className={"openapi-schema__container"}
>
<strong
className={"openapi-schema__property"}
>
property name*
</strong><span
className={"openapi-schema__name"}
>
Download
</span>
</span>
</summary><div
style={{"marginLeft":"1rem"}}
>
<SchemaItem
collapsible={false}
name={"name"}
required={false}
schemaName={"string"}
qualifierMessage={"**Possible values:** Value must match regular expression `[a-z0-9._-]+`"}
schema={{"pattern":"[a-z0-9._-]+","type":"string","example":"Geyser-Spigot.jar"}}
>
</SchemaItem><SchemaItem
collapsible={false}
name={"sha256"}
required={false}
schemaName={"string"}
qualifierMessage={"**Possible values:** Value must match regular expression `[a-f0-9]{64}`"}
schema={{"pattern":"[a-f0-9]{64}","type":"string","example":"9ecc7374c2110a077f6c288fa4ad53a6812c09d5690dae0bc96508f939d4cb8a"}}
>
</SchemaItem>
</div>
</details>
</SchemaItem>
</div>
</details>
</SchemaItem><li>
<div
style={{"fontSize":"var(--ifm-code-font-size)","opacity":"0.6","marginLeft":"-.5rem"}}
>
]
</div>
</li>
</div>
</details>
</SchemaItem>
</ul>
</details>
</TabItem><TabItem
label={"Example (from schema)"}
value={"Example (from schema)"}
>
<ResponseSamples
responseExample={"{\n \"project_id\": \"geyser\",\n \"project_name\": \"Geyser\",\n \"version\": \"2.1.0\",\n \"builds\": [\n {\n \"build\": 30,\n \"time\": \"2024-07-14T21:42:40.604Z\",\n \"channel\": \"default\",\n \"promoted\": true,\n \"changes\": [\n {\n \"commit\": \"string\",\n \"summary\": \"string\",\n \"message\": \"string\"\n }\n ],\n \"downloads\": {}\n }\n ]\n}"}
language={"json"}
>
</ResponseSamples>
</TabItem>
</SchemaTabs>
</TabItem>
</MimeTabs>
</div>
</TabItem>
</ApiTabs>
</div>
</div>