summaryrefslogtreecommitdiff
path: root/data/en_us/goodstech/2019-12-30/api-docs.php
blob: 6cfb8acb8bd3c228c9177e078d635ea93a3ad384 (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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
<?php return [
    'version' => '1.0',
    'info' => [
        'style' => 'RPC',
        'product' => 'goodstech',
        'version' => '2019-12-30',
    ],
    'directories' => [
        'ClassifyCommodity',
    ],
    'components' => [
        'schemas' => [],
    ],
    'apis' => [
        'ClassifyCommodity' => [
            'methods' => [
                'post',
                'get',
            ],
            'schemes' => [
                'http',
                'https',
            ],
            'security' => [
                [
                    'AK' => [],
                ],
            ],
            'operationType' => 'read',
            'deprecated' => false,
            'systemTags' => [],
            'parameters' => [
                [
                    'name' => 'ImageURL',
                    'in' => 'query',
                    'schema' => [
                        'description' => '',
                        'example' => 'http://viapi-test.oss-cn-shanghai.aliyuncs.com/viapi-3.0domepic/goodstech/ClassifyCommodity/ClassifyCommodity1.jpg',
                        'isFileTransferUrl' => true,
                        'required' => true,
                        'type' => 'string',
                    ],
                ],
            ],
            'responses' => [
                200 => [
                    'schema' => [
                        'description' => '1',
                        'properties' => [
                            'RequestId' => [
                                'description' => '',
                                'example' => '87C5AF93-F641-54C2-873D-0501E637489C',
                                'type' => 'string',
                            ],
                            'Data' => [
                                'description' => '',
                                'properties' => [
                                    'Categories' => [
                                        'description' => '',
                                        'items' => [
                                            'description' => '1',
                                            'properties' => [
                                                'Score' => [
                                                    'description' => '',
                                                    'example' => '0.417248',
                                                    'format' => 'float',
                                                    'type' => 'number',
                                                ],
                                                'CategoryId' => [
                                                    'description' => '',
                                                    'example' => '584',
                                                    'type' => 'string',
                                                ],
                                                'CategoryName' => [
                                                    'description' => '',
                                                    'example' => '',
                                                    'type' => 'string',
                                                ],
                                            ],
                                            'type' => 'object',
                                        ],
                                        'type' => 'array',
                                    ],
                                ],
                                'type' => 'object',
                            ],
                        ],
                        'type' => 'object',
                    ],
                ],
            ],
            'responseDemo' => '[{"type":"json","example":"{\\n  \\"RequestId\\": \\"87C5AF93-F641-54C2-873D-0501E637489C\\",\\n  \\"Data\\": {\\n    \\"Categories\\": [\\n      {\\n        \\"Score\\": 0.417248,\\n        \\"CategoryId\\": \\"584\\",\\n        \\"CategoryName\\": \\"旁轴相机\\"\\n      }\\n    ]\\n  }\\n}","errorExample":""},{"type":"xml","example":"<ClassifyCommodityResponse>\\n    <RequestId>87C5AF93-F641-54C2-873D-0501E637489C</RequestId>\\n    <Data>\\n        <Categories>\\n            <CategoryId>584</CategoryId>\\n            <Score>0.417248</Score>\\n            <CategoryName>旁轴相机</CategoryName>\\n        </Categories>\\n        <Categories>\\n            <CategoryId>4856</CategoryId>\\n            <Score>0.309264</Score>\\n            <CategoryName>数码单反</CategoryName>\\n        </Categories>\\n        <Categories>\\n            <CategoryId>733</CategoryId>\\n            <Score>0.103179</Score>\\n            <CategoryName>单电微单</CategoryName>\\n        </Categories>\\n        <Categories>\\n            <CategoryId>5978</CategoryId>\\n            <Score>0.0654835</Score>\\n            <CategoryName>单反镜头</CategoryName>\\n        </Categories>\\n    </Data>\\n</ClassifyCommodityResponse>","errorExample":""}]',
            'requestParamsDescription' => ' ',
        ],
    ],
    'endpoints' => [
        [
            'regionId' => 'cn-shanghai',
            'endpoint' => 'goodstech.cn-shanghai.aliyuncs.com',
        ],
    ],
];