Add default requestBody examples for Hose auth endpoints

This commit is contained in:
gitea committed 2026-08-26 13:01:25 +08:00
1 parent be9809cf23
commit fd8a811417
2 files changed
+18

No files matched your search

+9
View File
@@ -100,6 +100,10 @@
"description": "合思 OpenAPI Secret (密钥)"
}
}
},
"example": {
"appKey": "{{hoseApiKey}}",
"appSecurity": "{{hoseApiSecret}}"
}
}
}
@@ -198,6 +202,11 @@
"description": "临时免登凭据有效期(秒)"
}
}
},
"example": {
"uid": "{{hoseUserId}}",
"pageType": "home",
"expireDate": 7200
}
}
}
+9
View File
@@ -96,6 +96,10 @@ const spec = {
appKey: { type: "string", default: "{{hoseApiKey}}", description: "合思 OpenAPI Key" },
appSecurity: { type: "string", default: "{{hoseApiSecret}}", description: "合思 OpenAPI Secret (密钥)" }
}
},
example: {
appKey: "{{hoseApiKey}}",
appSecurity: "{{hoseApiSecret}}"
}
}
}
@@ -164,6 +168,11 @@ const spec = {
pageType: { type: "string", default: "home", description: "免登落地页类型" },
expireDate: { type: "integer", default: 7200, description: "临时免登凭据有效期(秒)" }
}
},
example: {
uid: "{{hoseUserId}}",
pageType: "home",
expireDate: 7200
}
}
}