✨ feat(vscode): FastAPI 接口卡片的调用树带上前端调用它的地方
This commit is contained in:
1 parent
d4459e93b3
commit
29cedcb751
30 files changed
+1316
-130
No files matched your search
@@ -991,6 +991,21 @@ export interface RuleCard {
|
||||
absorbs: CodeBlock[]
|
||||
/** 挂在卡片某一行的子行上、点那个子行才展开的子块(见 RuleSlot);一块只能放一处。 */
|
||||
slots?: RuleSlot[]
|
||||
/**
|
||||
* 这张卡片讲的是一个 HTTP 接口(要有 defines):卡片能看调用树,宿主拿它到工作区的接口契约文件(OpenAPI)里对出完整网址,
|
||||
* 把前端发这个请求的地方并进调用者。
|
||||
*/
|
||||
endpoint?: HttpEndpoint
|
||||
}
|
||||
|
||||
/** 卡片讲的 HTTP 接口。 */
|
||||
export interface HttpEndpoint {
|
||||
/** 大写的 HTTP 方法 */
|
||||
method: string
|
||||
/** 这份文件里写出来的路径,`{参数}` 照写;挂到应用上时别处再叠的前缀不算,宿主按结尾去对完整网址 */
|
||||
path: string
|
||||
/** 契约里结尾对上几条时,operationId 以它开头的那条才是(FastAPI 默认的 operationId 以「函数名_」开头) */
|
||||
operationIdPrefix?: string
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in new issue
Block a user