summaryrefslogtreecommitdiff
path: root/data/nlp-automl/2019-07-01/api-docs.php
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/nlp-automl/2019-07-01/api-docs.php
parenteccd5cd5a067f5659982685afdeea209b1888efb (diff)
downloadafterglow-metadata-814ec806c22e2782390af5a4a05cb6281aabd5e1.tar.gz
afterglow-metadata-814ec806c22e2782390af5a4a05cb6281aabd5e1.zip
update APIs 20260712
Diffstat (limited to 'data/nlp-automl/2019-07-01/api-docs.php')
-rw-r--r--data/nlp-automl/2019-07-01/api-docs.php100
1 files changed, 19 insertions, 81 deletions
diff --git a/data/nlp-automl/2019-07-01/api-docs.php b/data/nlp-automl/2019-07-01/api-docs.php
index f083003..fcfbe3c 100644
--- a/data/nlp-automl/2019-07-01/api-docs.php
+++ b/data/nlp-automl/2019-07-01/api-docs.php
@@ -1,23 +1,13 @@
<?php return [
'version' => '1.0',
- 'info' => [
- 'style' => 'RPC',
- 'product' => 'nlp-automl',
- 'version' => '2019-07-01',
- ],
+ 'info' => ['style' => 'RPC', 'product' => 'nlp-automl', 'version' => '2019-07-01'],
'components' => [
'schemas' => [],
],
'apis' => [
'AddMTInterveneWord' => [
- 'methods' => [
- 'post',
- 'get',
- ],
- 'schemes' => [
- 'http',
- 'https',
- ],
+ 'methods' => ['post', 'get'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
@@ -34,47 +24,28 @@
[
'name' => 'SourceText',
'in' => 'query',
- 'schema' => [
- 'type' => 'string',
- 'required' => true,
- ],
+ 'schema' => ['type' => 'string', 'required' => true],
],
[
'name' => 'TargetText',
'in' => 'query',
- 'schema' => [
- 'type' => 'string',
- 'required' => false,
- ],
+ 'schema' => ['type' => 'string', 'required' => false],
],
[
'name' => 'ProjectId',
'in' => 'query',
- 'schema' => [
- 'type' => 'string',
- 'required' => true,
- ],
+ 'schema' => ['type' => 'string', 'required' => true],
],
[
'name' => 'PackageId',
'in' => 'query',
- 'schema' => [
- 'type' => 'string',
- 'required' => false,
- ],
+ 'schema' => ['type' => 'string', 'required' => false],
],
],
],
'GetPredictDoc' => [
- 'methods' => [
- 'head',
- 'post',
- 'get',
- ],
- 'schemes' => [
- 'http',
- 'https',
- ],
+ 'methods' => ['head', 'post', 'get'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
@@ -94,32 +65,18 @@
[
'name' => 'DocId',
'in' => 'query',
- 'schema' => [
- 'type' => 'integer',
- 'format' => 'int64',
- 'required' => true,
- ],
+ 'schema' => ['type' => 'integer', 'format' => 'int64', 'required' => true],
],
[
'name' => 'Product',
'in' => 'query',
- 'schema' => [
- 'type' => 'string',
- 'required' => false,
- ],
+ 'schema' => ['type' => 'string', 'required' => false],
],
],
],
'PredictMTModelByDoc' => [
- 'methods' => [
- 'head',
- 'post',
- 'get',
- ],
- 'schemes' => [
- 'http',
- 'https',
- ],
+ 'methods' => ['head', 'post', 'get'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
@@ -139,51 +96,32 @@
[
'name' => 'FileContent',
'in' => 'formData',
- 'schema' => [
- 'type' => 'string',
- 'required' => true,
- ],
+ 'schema' => ['type' => 'string', 'required' => true],
],
[
'name' => 'FileType',
'in' => 'query',
- 'schema' => [
- 'type' => 'string',
- 'required' => true,
- ],
+ 'schema' => ['type' => 'string', 'required' => true],
],
[
'name' => 'ModelId',
'in' => 'query',
- 'schema' => [
- 'type' => 'integer',
- 'format' => 'int32',
- 'required' => true,
- ],
+ 'schema' => ['type' => 'integer', 'format' => 'int32', 'required' => true],
],
[
'name' => 'NeedXLIFF',
'in' => 'query',
- 'schema' => [
- 'type' => 'boolean',
- 'required' => false,
- ],
+ 'schema' => ['type' => 'boolean', 'required' => false],
],
[
'name' => 'ModelVersion',
'in' => 'query',
- 'schema' => [
- 'type' => 'string',
- 'required' => true,
- ],
+ 'schema' => ['type' => 'string', 'required' => true],
],
],
],
],
'endpoints' => [
- [
- 'regionId' => 'cn-hangzhou',
- 'endpoint' => 'nlp-automl.cn-hangzhou.aliyuncs.com',
- ],
+ ['regionId' => 'cn-hangzhou', 'regionName' => '华东1(杭州)', 'areaId' => 'asiaPacific', 'areaName' => '亚太', 'public' => 'nlp-automl.cn-hangzhou.aliyuncs.com', 'endpoint' => 'nlp-automl.cn-hangzhou.aliyuncs.com', 'vpc' => 'nlp-automl-vpc.cn-hangzhou.aliyuncs.com'],
],
];