diff options
| author | Zhineng Li <[email protected]> | 2026-02-14 10:08:30 +0800 |
|---|---|---|
| committer | Zhineng Li <[email protected]> | 2026-02-14 10:08:30 +0800 |
| commit | eccd5cd5a067f5659982685afdeea209b1888efb (patch) | |
| tree | 1626c903b854317be1708ce3ccd3b4f4e6e0fc97 /data/edututor/2025-07-07/api-docs.php | |
| download | acs-metadata-eccd5cd5a067f5659982685afdeea209b1888efb.tar.gz acs-metadata-eccd5cd5a067f5659982685afdeea209b1888efb.zip | |
first commitHEADv1.0.0+20260212main
Diffstat (limited to 'data/edututor/2025-07-07/api-docs.php')
| -rw-r--r-- | data/edututor/2025-07-07/api-docs.php | 191 |
1 files changed, 191 insertions, 0 deletions
diff --git a/data/edututor/2025-07-07/api-docs.php b/data/edututor/2025-07-07/api-docs.php new file mode 100644 index 0000000..3d45139 --- /dev/null +++ b/data/edututor/2025-07-07/api-docs.php @@ -0,0 +1,191 @@ +<?php return [ + 'version' => '1.0', + 'info' => [ + 'style' => 'ROA', + 'product' => 'EduTutor', + 'version' => '2025-07-07', + ], + 'components' => [ + 'schemas' => [], + ], + 'apis' => [ + 'CutQuestions' => [ + 'path' => '/service/cutApi', + 'methods' => [ + 'post', + ], + 'schemes' => [ + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'consumes' => [ + 'application/json', + ], + 'produces' => [ + 'application/json', + ], + 'deprecated' => false, + 'parameters' => [ + [ + 'name' => 'workspaceId', + 'in' => 'query', + 'schema' => [ + 'type' => 'string', + 'required' => true, + ], + ], + [ + 'name' => 'body', + 'in' => 'body', + 'style' => 'json', + 'schema' => [ + 'type' => 'object', + 'required' => false, + 'properties' => [ + 'image' => [ + 'type' => 'string', + 'required' => true, + ], + 'parameters' => [ + 'type' => 'object', + 'required' => true, + 'properties' => [ + 'struct' => [ + 'type' => 'boolean', + 'required' => true, + ], + 'extract_images' => [ + 'type' => 'boolean', + 'required' => true, + ], + ], + ], + ], + ], + ], + ], + ], + 'AnswerSSE' => [ + 'path' => '/service/answerSSE', + 'methods' => [ + 'post', + ], + 'schemes' => [ + 'https', + 'sse', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'consumes' => [ + 'application/json', + ], + 'produces' => [ + 'application/octet-stream', + ], + 'deprecated' => false, + 'parameters' => [ + [ + 'name' => 'workspaceId', + 'in' => 'query', + 'schema' => [ + 'type' => 'string', + 'required' => true, + ], + ], + [ + 'name' => 'body', + 'in' => 'body', + 'style' => 'json', + 'schema' => [ + 'type' => 'object', + 'required' => false, + 'properties' => [ + 'messages' => [ + 'type' => 'array', + 'required' => false, + 'items' => [ + 'type' => 'object', + 'required' => false, + 'properties' => [ + 'role' => [ + 'type' => 'string', + 'required' => true, + 'enum' => [ + 'user', + 'assistant', + ], + ], + 'content' => [ + 'type' => 'array', + 'required' => false, + 'items' => [ + 'type' => 'object', + 'required' => false, + 'additionalProperties' => [ + 'type' => 'string', + ], + ], + ], + ], + ], + ], + 'parameters' => [ + 'type' => 'object', + 'required' => false, + 'properties' => [ + 'grade' => [ + 'type' => 'integer', + 'format' => 'int32', + 'required' => false, + ], + 'stage' => [ + 'type' => 'string', + 'required' => false, + 'enum' => [ + 'other', + 'pre', + 'elementary', + 'middle', + 'high', + 'higher', + ], + ], + 'subject' => [ + 'type' => 'string', + 'required' => false, + 'enum' => [ + 'other', + 'math', + 'chinese', + 'english', + 'physics', + 'chemistry', + 'biology', + 'history', + 'geography', + 'politics', + 'program', + ], + ], + ], + ], + ], + ], + ], + ], + ], + ], + 'endpoints' => [ + [ + 'regionId' => 'cn-hangzhou', + 'endpoint' => 'edututor.cn-hangzhou.aliyuncs.com', + ], + ], +]; |
