summaryrefslogtreecommitdiff
path: root/data/edututor/2025-07-07
diff options
context:
space:
mode:
authorZhineng Li <im@zhineng.li>2026-07-12 16:56:35 +0800
committerZhineng Li <im@zhineng.li>2026-07-12 16:56:35 +0800
commit814ec806c22e2782390af5a4a05cb6281aabd5e1 (patch)
tree29e1692a067b17e56886a7d246d2b9521b2b7777 /data/edututor/2025-07-07
parenteccd5cd5a067f5659982685afdeea209b1888efb (diff)
downloadafterglow-metadata-814ec806c22e2782390af5a4a05cb6281aabd5e1.tar.gz
afterglow-metadata-814ec806c22e2782390af5a4a05cb6281aabd5e1.zip
update APIs 20260712
Diffstat (limited to 'data/edututor/2025-07-07')
-rw-r--r--data/edututor/2025-07-07/api-docs.php171
1 files changed, 52 insertions, 119 deletions
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 @@
<?php return [
'version' => '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'],
],
];