Skip to content

Commit cd52850

Browse files
authored
Add wasm-sdk JSON API (#1105)
1 parent 54903ca commit cd52850

File tree

6 files changed

+43
-0
lines changed

6 files changed

+43
-0
lines changed

api/v1/install/dev/6.0/wasm-sdk.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
[]

api/v1/install/dev/6.1/wasm-sdk.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
[]

api/v1/install/dev/6.2/wasm-sdk.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
---
2+
layout: none
3+
---
4+
{{ site.data.builds.swift-6_2-branch.wasm-sdk | jsonify }}

api/v1/install/dev/main/wasm-sdk.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
---
2+
layout: none
3+
---
4+
{{ site.data.builds.development.wasm-sdk | jsonify }}

openapi/TestSwiftOrgClient/swiftorgClient/Tool.swift

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,16 @@ struct Tool {
7979
)
8080
)
8181
}
82+
for branch in Components.Schemas.KnownSourceBranch.allCases {
83+
tests.append(
84+
.init(
85+
name: "listWasmSDKDevToolchains(\(branch.rawValue))",
86+
work: {
87+
_ = try await client.listWasmSDKDevToolchains(.init(path: .init(branch: .init(value1: branch)))).ok.body.json
88+
}
89+
)
90+
)
91+
}
8292
tests.append(
8393
.init(
8494
name: "getCurrentSwiftlyRelease",

openapi/swiftorg.yaml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,25 @@ paths:
7474
application/json:
7575
schema:
7676
$ref: '#/components/schemas/DevToolchainsForArch'
77+
/install/dev/{branch}/wasm-sdk.json:
78+
parameters:
79+
- name: branch
80+
in: path
81+
required: true
82+
schema:
83+
$ref: '#/components/schemas/SourceBranch'
84+
get:
85+
operationId: listWasmSDKDevToolchains
86+
summary: Fetch all SDK for WebAssembly toolchains
87+
tags:
88+
- Toolchains
89+
responses:
90+
'200':
91+
description: A successful response.
92+
content:
93+
application/json:
94+
schema:
95+
$ref: '#/components/schemas/DevToolchainsForArch'
7796
/swiftly.json:
7897
get:
7998
operationId: getCurrentSwiftlyRelease
@@ -195,6 +214,10 @@ components:
195214
type: string
196215
description: Filename of the snapshot archive to download.
197216
example: 'swift-6.0-DEVELOPMENT-SNAPSHOT-2024-07-25-a-amazonlinux2-aarch64.tar.gz'
217+
checksum:
218+
type: string
219+
description: SHA-256 Checksum of the download.
220+
example: 'a915e4a5f167f4bc8bbf702c4b235ba2d4b9c79124f61e3d85d3e0c0cafbc63c'
198221
download_signature:
199222
type: string
200223
description: Filename of the signature file for the download.

0 commit comments

Comments
 (0)