diff options
Diffstat (limited to 'data/en_us/goodstech')
| -rw-r--r-- | data/en_us/goodstech/2019-12-30/api-docs.php | 102 |
1 files changed, 102 insertions, 0 deletions
diff --git a/data/en_us/goodstech/2019-12-30/api-docs.php b/data/en_us/goodstech/2019-12-30/api-docs.php new file mode 100644 index 0000000..6cfb8ac --- /dev/null +++ b/data/en_us/goodstech/2019-12-30/api-docs.php @@ -0,0 +1,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', + ], + ], +]; |
