From 814ec806c22e2782390af5a4a05cb6281aabd5e1 Mon Sep 17 00:00:00 2001 From: Zhineng Li Date: Sun, 12 Jul 2026 16:56:35 +0800 Subject: update APIs 20260712 --- data/edututor/2025-07-07/api-docs.php | 171 +++++++++++----------------------- 1 file changed, 52 insertions(+), 119 deletions(-) (limited to 'data/edututor/2025-07-07') diff --git a/data/edututor/2025-07-07/api-docs.php b/data/edututor/2025-07-07/api-docs.php index 3d45139..eb4ba2e 100644 --- a/data/edututor/2025-07-07/api-docs.php +++ b/data/edututor/2025-07-07/api-docs.php @@ -1,103 +1,27 @@ '1.0', - 'info' => [ - 'style' => 'ROA', - 'product' => 'EduTutor', - 'version' => '2025-07-07', - ], + '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', - ], + 'methods' => ['post'], + 'schemes' => ['https', 'sse'], 'security' => [ [ 'AK' => [], ], ], - 'consumes' => [ - 'application/json', - ], - 'produces' => [ - 'application/octet-stream', - ], + 'consumes' => ['application/json'], + 'produces' => ['application/octet-stream'], 'deprecated' => false, 'parameters' => [ [ 'name' => 'workspaceId', 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => true, - ], + 'schema' => ['type' => 'string', 'required' => true], ], [ 'name' => 'body', @@ -117,10 +41,7 @@ 'role' => [ 'type' => 'string', 'required' => true, - 'enum' => [ - 'user', - 'assistant', - ], + 'enum' => ['user', 'assistant'], ], 'content' => [ 'type' => 'array', @@ -128,9 +49,7 @@ 'items' => [ 'type' => 'object', 'required' => false, - 'additionalProperties' => [ - 'type' => 'string', - ], + 'additionalProperties' => ['type' => 'string'], ], ], ], @@ -140,39 +59,16 @@ 'type' => 'object', 'required' => false, 'properties' => [ - 'grade' => [ - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - ], + 'grade' => ['type' => 'integer', 'format' => 'int32', 'required' => false], 'stage' => [ 'type' => 'string', 'required' => false, - 'enum' => [ - 'other', - 'pre', - 'elementary', - 'middle', - 'high', - 'higher', - ], + 'enum' => ['other', 'pre', 'elementary', 'middle', 'high', 'higher'], ], 'subject' => [ 'type' => 'string', 'required' => false, - 'enum' => [ - 'other', - 'math', - 'chinese', - 'english', - 'physics', - 'chemistry', - 'biology', - 'history', - 'geography', - 'politics', - 'program', - ], + 'enum' => ['other', 'math', 'chinese', 'english', 'physics', 'chemistry', 'biology', 'history', 'geography', 'politics', 'program'], ], ], ], @@ -181,11 +77,48 @@ ], ], ], + '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], + ], + ], + ], + ], + ], + ], + ], ], 'endpoints' => [ - [ - 'regionId' => 'cn-hangzhou', - 'endpoint' => 'edututor.cn-hangzhou.aliyuncs.com', - ], + ['regionId' => 'cn-hangzhou', 'regionName' => '华东1(杭州)', 'areaId' => 'asiaPacific', 'areaName' => '亚太', 'public' => 'edututor.cn-hangzhou.aliyuncs.com', 'endpoint' => 'edututor.cn-hangzhou.aliyuncs.com', 'vpc' => 'edututor-vpc.cn-hangzhou.aliyuncs.com'], ], ]; -- cgit v1.2.3