summaryrefslogtreecommitdiff
path: root/data/nlp-automl/2019-05-29/api-docs.php
blob: fcbe51591f869dbfa503f28d65be09eb09b2855a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
<?php return [
    'version' => '1.0',
    'info' => ['style' => 'ROA', 'product' => 'nlp-automl', 'version' => '2019-05-29'],
    'components' => [
        'schemas' => [],
    ],
    'apis' => [
        'PredictModel' => [
            'path' => '/api/automl/predict',
            'methods' => ['post', 'get'],
            'schemes' => ['http', 'https'],
            'security' => [
                [
                    'AK' => [],
                ],
            ],
            'deprecated' => false,
            'parameters' => [
                [
                    'name' => 'ModelId',
                    'in' => 'query',
                    'schema' => ['type' => 'integer', 'format' => 'int64', 'required' => true],
                ],
                [
                    'name' => 'Content',
                    'in' => 'formData',
                    'schema' => ['type' => 'string', 'required' => true],
                ],
            ],
        ],
    ],
    'endpoints' => [
        ['regionId' => 'cn-hangzhou', 'endpoint' => 'nlp-automl.cn-hangzhou.aliyuncs.com'],
    ],
];