Spaces:
Sleeping
Sleeping
update API doc
Browse filesSigned-off-by: ζζ¬ <[email protected]>
- .devcontainer/devcontainer.json +31 -0
- student.http +2 -3
.devcontainer/devcontainer.json
ADDED
@@ -0,0 +1,31 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
// For format details, see https://aka.ms/devcontainer.json. For config options, see the
|
2 |
+
// README at: https://github.com/devcontainers/templates/tree/main/src/rust
|
3 |
+
{
|
4 |
+
"name": "Rust",
|
5 |
+
// Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile
|
6 |
+
"image": "mcr.microsoft.com/devcontainers/rust:dev-1-bookworm",
|
7 |
+
"runArgs": ["--platform=linux/amd64"],
|
8 |
+
|
9 |
+
// Features to add to the dev container. More info: https://containers.dev/features.
|
10 |
+
// "features": {},
|
11 |
+
|
12 |
+
// Configure tool-specific properties.
|
13 |
+
"customizations": {
|
14 |
+
// Configure properties specific to VS Code.
|
15 |
+
"vscode": {
|
16 |
+
"settings": {},
|
17 |
+
"extensions": [
|
18 |
+
"streetsidesoftware.code-spell-checker"
|
19 |
+
]
|
20 |
+
}
|
21 |
+
}
|
22 |
+
|
23 |
+
// Use 'forwardPorts' to make a list of ports inside the container available locally.
|
24 |
+
// "forwardPorts": [],
|
25 |
+
|
26 |
+
// Use 'postCreateCommand' to run commands after the container is created.
|
27 |
+
// "postCreateCommand": "rustc --version",
|
28 |
+
|
29 |
+
// Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root.
|
30 |
+
// "remoteUser": "root"
|
31 |
+
}
|
student.http
CHANGED
@@ -1,9 +1,8 @@
|
|
1 |
### student API
|
2 |
// IN message: N/A
|
3 |
// - id: [Required], course ID
|
4 |
-
// - language: [Required], zh-CN, en-US
|
5 |
-
// - voice: [Required], Takumi
|
6 |
-
// *language & voice support matrix*: https://docs.aws.amazon.com/zh_cn/polly/latest/dg/voicelist.html
|
7 |
// OUT message:
|
8 |
// example1: {"type":"original","content":"εοΌ","isFinal":true}
|
9 |
// example2: {"type":"translated","content":"γγγ"}
|
|
|
1 |
### student API
|
2 |
// IN message: N/A
|
3 |
// - id: [Required], course ID
|
4 |
+
// - language: [Required], zh-CN, en-US. (Supported languages: https://docs.aws.amazon.com/translate/latest/dg/what-is-languages.html)
|
5 |
+
// - voice: [Required], Takumi. (Supported voices: https://docs.aws.amazon.com/zh_cn/polly/latest/dg/voicelist.html)
|
|
|
6 |
// OUT message:
|
7 |
// example1: {"type":"original","content":"εοΌ","isFinal":true}
|
8 |
// example2: {"type":"translated","content":"γγγ"}
|