diff options
Diffstat (limited to 'data/ivpd')
| -rw-r--r-- | data/ivpd/2019-06-25/api-docs.php | 232 |
1 files changed, 52 insertions, 180 deletions
diff --git a/data/ivpd/2019-06-25/api-docs.php b/data/ivpd/2019-06-25/api-docs.php index 5c91ea2..3224da5 100644 --- a/data/ivpd/2019-06-25/api-docs.php +++ b/data/ivpd/2019-06-25/api-docs.php @@ -1,23 +1,13 @@ <?php return [ 'version' => '1.0', - 'info' => [ - 'style' => 'RPC', - 'product' => 'ivpd', - 'version' => '2019-06-25', - ], + 'info' => ['style' => 'RPC', 'product' => 'ivpd', 'version' => '2019-06-25'], 'components' => [ 'schemas' => [], ], 'apis' => [ 'ChangeImageSize' => [ - 'methods' => [ - 'post', - 'get', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'methods' => ['post', 'get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], @@ -28,44 +18,23 @@ [ 'name' => 'Width', 'in' => 'formData', - 'schema' => [ - 'type' => 'integer', - 'format' => 'int32', - 'required' => true, - 'minimum' => '10', - 'maximum' => '5000', - ], + 'schema' => ['type' => 'integer', 'format' => 'int32', 'required' => true, 'minimum' => '10', 'maximum' => '5000'], ], [ 'name' => 'Height', 'in' => 'formData', - 'schema' => [ - 'type' => 'integer', - 'format' => 'int32', - 'required' => true, - 'minimum' => '10', - 'maximum' => '5000', - ], + 'schema' => ['type' => 'integer', 'format' => 'int32', 'required' => true, 'minimum' => '10', 'maximum' => '5000'], ], [ 'name' => 'Url', 'in' => 'formData', - 'schema' => [ - 'type' => 'string', - 'required' => true, - ], + 'schema' => ['type' => 'string', 'required' => true], ], ], ], 'DetectImageElements' => [ - 'methods' => [ - 'post', - 'get', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'methods' => ['post', 'get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], @@ -76,22 +45,13 @@ [ 'name' => 'Url', 'in' => 'formData', - 'schema' => [ - 'type' => 'string', - 'required' => true, - ], + 'schema' => ['type' => 'string', 'required' => true], ], ], ], 'ExtendImageStyle' => [ - 'methods' => [ - 'post', - 'get', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'methods' => ['post', 'get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], @@ -102,30 +62,18 @@ [ 'name' => 'StyleUrl', 'in' => 'formData', - 'schema' => [ - 'type' => 'string', - 'required' => true, - ], + 'schema' => ['type' => 'string', 'required' => true], ], [ 'name' => 'MajorUrl', 'in' => 'formData', - 'schema' => [ - 'type' => 'string', - 'required' => true, - ], + 'schema' => ['type' => 'string', 'required' => true], ], ], ], 'MakeSuperResolutionImage' => [ - 'methods' => [ - 'post', - 'get', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'methods' => ['post', 'get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], @@ -136,22 +84,13 @@ [ 'name' => 'Url', 'in' => 'formData', - 'schema' => [ - 'type' => 'string', - 'required' => true, - ], + 'schema' => ['type' => 'string', 'required' => true], ], ], ], 'RecognizeImageColor' => [ - 'methods' => [ - 'post', - 'get', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'methods' => ['post', 'get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], @@ -162,31 +101,18 @@ [ 'name' => 'Url', 'in' => 'formData', - 'schema' => [ - 'type' => 'string', - 'required' => true, - ], + 'schema' => ['type' => 'string', 'required' => true], ], [ 'name' => 'ColorCount', 'in' => 'formData', - 'schema' => [ - 'type' => 'string', - 'required' => false, - 'pattern' => '^\\d+$', - ], + 'schema' => ['type' => 'string', 'required' => false, 'pattern' => '^\\d+$'], ], ], ], 'RecognizeImageStyle' => [ - 'methods' => [ - 'post', - 'get', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'methods' => ['post', 'get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], @@ -197,48 +123,13 @@ [ 'name' => 'Url', 'in' => 'formData', - 'schema' => [ - 'type' => 'string', - 'required' => true, - ], - ], - ], - ], - 'SegmentImage' => [ - 'methods' => [ - 'post', - 'get', - ], - 'schemes' => [ - 'http', - 'https', - ], - 'security' => [ - [ - 'AK' => [], - ], - ], - 'deprecated' => true, - 'parameters' => [ - [ - 'name' => 'Url', - 'in' => 'formData', - 'schema' => [ - 'type' => 'string', - 'required' => true, - ], + 'schema' => ['type' => 'string', 'required' => true], ], ], ], 'RecolorImage' => [ - 'methods' => [ - 'post', - 'get', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'methods' => ['post', 'get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], @@ -249,37 +140,22 @@ [ 'name' => 'Url', 'in' => 'formData', - 'schema' => [ - 'type' => 'string', - 'required' => true, - ], + 'schema' => ['type' => 'string', 'required' => true], ], [ 'name' => 'Mode', 'in' => 'formData', - 'schema' => [ - 'type' => 'string', - 'required' => true, - ], + 'schema' => ['type' => 'string', 'required' => true], ], [ 'name' => 'RefUrl', 'in' => 'formData', - 'schema' => [ - 'type' => 'string', - 'required' => false, - ], + 'schema' => ['type' => 'string', 'required' => false], ], [ 'name' => 'ColorCount', 'in' => 'formData', - 'schema' => [ - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - 'minimum' => '1', - 'maximum' => '8', - ], + 'schema' => ['type' => 'integer', 'format' => 'int32', 'required' => false, 'minimum' => '1', 'maximum' => '8'], ], [ 'name' => 'ColorTemplate', @@ -291,10 +167,7 @@ 'items' => [ 'type' => 'object', 'properties' => [ - 'Color' => [ - 'type' => 'string', - 'required' => false, - ], + 'Color' => ['type' => 'string', 'required' => false], ], ], 'maxItems' => 8, @@ -303,14 +176,25 @@ ], ], 'SegmentBody' => [ - 'methods' => [ - 'post', - 'get', + 'methods' => ['post', 'get'], + 'schemes' => ['http', 'https'], + 'security' => [ + [ + 'AK' => [], + ], ], - 'schemes' => [ - 'http', - 'https', + 'deprecated' => true, + 'parameters' => [ + [ + 'name' => 'ImageUrl', + 'in' => 'formData', + 'schema' => ['type' => 'string', 'required' => true], + ], ], + ], + 'SegmentImage' => [ + 'methods' => ['post', 'get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], @@ -319,28 +203,16 @@ 'deprecated' => true, 'parameters' => [ [ - 'name' => 'ImageUrl', + 'name' => 'Url', 'in' => 'formData', - 'schema' => [ - 'type' => 'string', - 'required' => true, - ], + 'schema' => ['type' => 'string', 'required' => true], ], ], ], ], 'endpoints' => [ - [ - 'regionId' => 'cn-huhehaote', - 'endpoint' => 'ivpd.cn-huhehaote.aliyuncs.com', - ], - [ - 'regionId' => 'cn-hangzhou', - 'endpoint' => 'ivpd.cn-hangzhou.aliyuncs.com', - ], - [ - 'regionId' => 'cn-shanghai', - 'endpoint' => 'ivpd.cn-shanghai.aliyuncs.com', - ], + ['regionId' => 'cn-hangzhou', 'regionName' => '华东1(杭州)', 'areaId' => 'asiaPacific', 'areaName' => '亚太', 'public' => 'ivpd.cn-hangzhou.aliyuncs.com', 'endpoint' => 'ivpd.cn-hangzhou.aliyuncs.com', 'vpc' => 'ivpd-vpc.cn-hangzhou.aliyuncs.com'], + ['regionId' => 'cn-huhehaote', 'regionName' => '华北5(呼和浩特)', 'areaId' => 'asiaPacific', 'areaName' => '亚太', 'public' => 'ivpd.cn-huhehaote.aliyuncs.com', 'endpoint' => 'ivpd.cn-huhehaote.aliyuncs.com', 'vpc' => ''], + ['regionId' => 'cn-shanghai', 'regionName' => '华东2(上海)', 'areaId' => 'asiaPacific', 'areaName' => '亚太', 'public' => 'ivpd.cn-shanghai.aliyuncs.com', 'endpoint' => 'ivpd.cn-shanghai.aliyuncs.com', 'vpc' => 'ivpd-vpc.cn-shanghai.aliyuncs.com'], ], ]; |
