File tree 1 file changed +5
-5
lines changed 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change 7
7
- Schema 是這個 API 回應的資料結構。
8
8
- 使用 [ JSON Schema (Draft-07)] ( https://json-schema.org ) 定義。
9
9
10
- ## ` / ` :檢視目前 API 的一般性資訊
10
+ ## ` GET /` :檢視目前 API 的一般性資訊
11
11
12
12
這個 Endpoint 除了代表著這個 API 是否可以接受請求,亦可從中檢視目前 API 的一般性資訊。
13
13
@@ -32,7 +32,7 @@ curl --location --request GET '<api_address>/'
32
32
}
33
33
```
34
34
35
- ## ` /docs/… ` :本 REST API 的文件
35
+ ## ` GET /docs/…` :本 REST API 的文件
36
36
37
37
這個 Endpoint 包含適用於本 REST API 版本的文件。
38
38
@@ -52,12 +52,12 @@ curl --location --request GET '<api_address>/docs/readme'
52
52
53
53
回傳此文件的純文字版本。
54
54
55
- ## ` /schema/… ` :擺放各 API 回應的資料結構
55
+ ## ` GET /schema/…` :擺放各 API 回應的資料結構
56
56
57
57
請參閱各 API 之〈⋯⋯的 Schema 路徑〉一節。相關範例請見 codebase 根目錄中
58
58
` src/schema/v1 ` 的 JSON 檔案。
59
59
60
- ## ` /api/v1/search ` :搜尋音樂並取回本資源的識別物件
60
+ ## ` POST /api/v1/search` :搜尋音樂並取回本資源的識別物件
61
61
62
62
這個 Endpoint 為 UNM (Rust) Executor 的封裝。
63
63
@@ -142,7 +142,7 @@ curl --location --request POST '<api_address>/api/v1/search' \
142
142
}
143
143
```
144
144
145
- ## ` /api/v1/retrieve ` :取回某個資源
145
+ ## ` POST /api/v1/retrieve` :取回某個資源
146
146
147
147
這個 Endpoint 為 UNM (Rust) Executor 的封裝。
148
148
You can’t perform that action at this time.
0 commit comments