diff options
Diffstat (limited to 'data/ivpd')
| -rw-r--r-- | data/ivpd/2019-06-25/api-docs.php | 346 |
1 files changed, 346 insertions, 0 deletions
diff --git a/data/ivpd/2019-06-25/api-docs.php b/data/ivpd/2019-06-25/api-docs.php new file mode 100644 index 0000000..5c91ea2 --- /dev/null +++ b/data/ivpd/2019-06-25/api-docs.php @@ -0,0 +1,346 @@ +<?php return [ + 'version' => '1.0', + 'info' => [ + 'style' => 'RPC', + 'product' => 'ivpd', + 'version' => '2019-06-25', + ], + 'components' => [ + 'schemas' => [], + ], + 'apis' => [ + 'ChangeImageSize' => [ + 'methods' => [ + 'post', + 'get', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'deprecated' => true, + 'parameters' => [ + [ + 'name' => 'Width', + 'in' => 'formData', + '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', + ], + ], + [ + 'name' => 'Url', + 'in' => 'formData', + 'schema' => [ + 'type' => 'string', + 'required' => true, + ], + ], + ], + ], + 'DetectImageElements' => [ + 'methods' => [ + 'post', + 'get', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'deprecated' => true, + 'parameters' => [ + [ + 'name' => 'Url', + 'in' => 'formData', + 'schema' => [ + 'type' => 'string', + 'required' => true, + ], + ], + ], + ], + 'ExtendImageStyle' => [ + 'methods' => [ + 'post', + 'get', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'deprecated' => true, + 'parameters' => [ + [ + 'name' => 'StyleUrl', + 'in' => 'formData', + 'schema' => [ + 'type' => 'string', + 'required' => true, + ], + ], + [ + 'name' => 'MajorUrl', + 'in' => 'formData', + 'schema' => [ + 'type' => 'string', + 'required' => true, + ], + ], + ], + ], + 'MakeSuperResolutionImage' => [ + 'methods' => [ + 'post', + 'get', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'deprecated' => true, + 'parameters' => [ + [ + 'name' => 'Url', + 'in' => 'formData', + 'schema' => [ + 'type' => 'string', + 'required' => true, + ], + ], + ], + ], + 'RecognizeImageColor' => [ + 'methods' => [ + 'post', + 'get', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'deprecated' => true, + 'parameters' => [ + [ + 'name' => 'Url', + 'in' => 'formData', + 'schema' => [ + 'type' => 'string', + 'required' => true, + ], + ], + [ + 'name' => 'ColorCount', + 'in' => 'formData', + 'schema' => [ + 'type' => 'string', + 'required' => false, + 'pattern' => '^\\d+$', + ], + ], + ], + ], + 'RecognizeImageStyle' => [ + 'methods' => [ + 'post', + 'get', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'deprecated' => true, + 'parameters' => [ + [ + '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, + ], + ], + ], + ], + 'RecolorImage' => [ + 'methods' => [ + 'post', + 'get', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'deprecated' => true, + 'parameters' => [ + [ + 'name' => 'Url', + 'in' => 'formData', + 'schema' => [ + 'type' => 'string', + 'required' => true, + ], + ], + [ + 'name' => 'Mode', + 'in' => 'formData', + 'schema' => [ + 'type' => 'string', + 'required' => true, + ], + ], + [ + 'name' => 'RefUrl', + 'in' => 'formData', + 'schema' => [ + 'type' => 'string', + 'required' => false, + ], + ], + [ + 'name' => 'ColorCount', + 'in' => 'formData', + 'schema' => [ + 'type' => 'integer', + 'format' => 'int32', + 'required' => false, + 'minimum' => '1', + 'maximum' => '8', + ], + ], + [ + 'name' => 'ColorTemplate', + 'in' => 'formData', + 'style' => 'repeatList', + 'schema' => [ + 'type' => 'array', + 'required' => false, + 'items' => [ + 'type' => 'object', + 'properties' => [ + 'Color' => [ + 'type' => 'string', + 'required' => false, + ], + ], + ], + 'maxItems' => 8, + ], + ], + ], + ], + 'SegmentBody' => [ + 'methods' => [ + 'post', + 'get', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'deprecated' => true, + 'parameters' => [ + [ + 'name' => 'ImageUrl', + 'in' => 'formData', + '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', + ], + ], +]; |
