summaryrefslogtreecommitdiff
path: root/data/nlp-automl/2019-05-29/api-docs.php
diff options
context:
space:
mode:
Diffstat (limited to 'data/nlp-automl/2019-05-29/api-docs.php')
-rw-r--r--data/nlp-automl/2019-05-29/api-docs.php32
1 files changed, 6 insertions, 26 deletions
diff --git a/data/nlp-automl/2019-05-29/api-docs.php b/data/nlp-automl/2019-05-29/api-docs.php
index df6cf18..fcbe515 100644
--- a/data/nlp-automl/2019-05-29/api-docs.php
+++ b/data/nlp-automl/2019-05-29/api-docs.php
@@ -1,24 +1,14 @@
<?php return [
'version' => '1.0',
- 'info' => [
- 'style' => 'ROA',
- 'product' => 'nlp-automl',
- 'version' => '2019-05-29',
- ],
+ 'info' => ['style' => 'ROA', 'product' => 'nlp-automl', 'version' => '2019-05-29'],
'components' => [
'schemas' => [],
],
'apis' => [
'PredictModel' => [
'path' => '/api/automl/predict',
- 'methods' => [
- 'post',
- 'get',
- ],
- 'schemes' => [
- 'http',
- 'https',
- ],
+ 'methods' => ['post', 'get'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
@@ -29,27 +19,17 @@
[
'name' => 'ModelId',
'in' => 'query',
- 'schema' => [
- 'type' => 'integer',
- 'format' => 'int64',
- 'required' => true,
- ],
+ 'schema' => ['type' => 'integer', 'format' => 'int64', 'required' => true],
],
[
'name' => 'Content',
'in' => 'formData',
- 'schema' => [
- 'type' => 'string',
- 'required' => true,
- ],
+ 'schema' => ['type' => 'string', 'required' => true],
],
],
],
],
'endpoints' => [
- [
- 'regionId' => 'cn-hangzhou',
- 'endpoint' => 'nlp-automl.cn-hangzhou.aliyuncs.com',
- ],
+ ['regionId' => 'cn-hangzhou', 'endpoint' => 'nlp-automl.cn-hangzhou.aliyuncs.com'],
],
];