diff options
| author | Zhineng Li <im@zhineng.li> | 2026-07-12 16:56:35 +0800 |
|---|---|---|
| committer | Zhineng Li <im@zhineng.li> | 2026-07-12 16:56:35 +0800 |
| commit | 814ec806c22e2782390af5a4a05cb6281aabd5e1 (patch) | |
| tree | 29e1692a067b17e56886a7d246d2b9521b2b7777 /data/nlp-automl/2019-05-29 | |
| parent | eccd5cd5a067f5659982685afdeea209b1888efb (diff) | |
| download | afterglow-metadata-814ec806c22e2782390af5a4a05cb6281aabd5e1.tar.gz afterglow-metadata-814ec806c22e2782390af5a4a05cb6281aabd5e1.zip | |
update APIs 20260712
Diffstat (limited to 'data/nlp-automl/2019-05-29')
| -rw-r--r-- | data/nlp-automl/2019-05-29/api-docs.php | 32 |
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'], ], ]; |
