diff options
Diffstat (limited to 'data/zh_cn/facebody/2020-09-10/api-docs.php')
| -rw-r--r-- | data/zh_cn/facebody/2020-09-10/api-docs.php | 108 |
1 files changed, 24 insertions, 84 deletions
diff --git a/data/zh_cn/facebody/2020-09-10/api-docs.php b/data/zh_cn/facebody/2020-09-10/api-docs.php index 0a826ad..6845d3b 100644 --- a/data/zh_cn/facebody/2020-09-10/api-docs.php +++ b/data/zh_cn/facebody/2020-09-10/api-docs.php @@ -1,18 +1,12 @@ <?php return [ 'version' => '1.0', - 'info' => [ - 'style' => 'ROA', - 'product' => 'facebody', - 'version' => '2020-09-10', - ], + 'info' => ['style' => 'ROA', 'product' => 'facebody', 'version' => '2020-09-10'], 'directories' => [ [ 'id' => 0, 'title' => '其它', 'type' => 'directory', - 'children' => [ - 'ExecuteServerSideVerification', - ], + 'children' => ['ExecuteServerSideVerification'], ], ], 'components' => [ @@ -22,24 +16,15 @@ 'ExecuteServerSideVerification' => [ 'summary' => '本文介绍人脸核身服务端ExecuteServerSideVerification的语法及示例。', 'path' => '/viapi/thirdparty/realperson/execServerSideVerification', - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'methods' => ['post'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], - 'consumes' => [ - 'application/x-www-form-urlencoded', - ], - 'produces' => [ - 'application/json', - ], + 'consumes' => ['application/x-www-form-urlencoded'], + 'produces' => ['application/json'], 'operationType' => 'readAndWrite', 'deprecated' => false, 'systemTags' => [], @@ -47,54 +32,29 @@ [ 'name' => 'certificateName', 'in' => 'formData', - 'schema' => [ - 'description' => '真实姓名。', - 'type' => 'string', - 'required' => false, - 'example' => '张三', - ], + 'schema' => ['description' => '真实姓名。', 'type' => 'string', 'required' => false, 'example' => '张三'], ], [ 'name' => 'certificateNumber', 'in' => 'formData', - 'schema' => [ - 'description' => '身份证号。', - 'type' => 'string', - 'required' => false, - 'example' => '1281739873298172981', - ], + 'schema' => ['description' => '身份证号。', 'type' => 'string', 'required' => false, 'example' => '1281739873298172981'], ], [ 'name' => 'facialPictureData', 'in' => 'formData', - 'schema' => [ - 'description' => '与**facialPictureUrl**二选一。'."\n" - .'待比对的图像,Base64格式,只支持JPG格式图片。必须是"/9j/"开头,如非"/9j/"开头请检查是否为JPG格式图片。文件的Base64编码处理操作,请参见[文件Base64处理](~~468191~~)。', - 'type' => 'string', - 'required' => false, - 'example' => '/9j/wwew...', - ], + 'schema' => ['description' => '与**facialPictureUrl**二选一。'."\n" + .'待比对的图像,Base64格式,只支持JPG格式图片。必须是"/9j/"开头,如非"/9j/"开头请检查是否为JPG格式图片。文件的Base64编码处理操作,请参见[文件Base64处理](~~468191~~)。', 'type' => 'string', 'required' => false, 'example' => '/9j/wwew...'], ], [ 'name' => 'facialPictureUrl', 'in' => 'formData', - 'schema' => [ - 'description' => '与**facialPictureData**二选一。'."\n" - .'待比对的图像URL地址,只支持JPG格式图片。推荐使用上海地域的OSS链接,对于文件在本地或者非上海地域OSS链接的情况,请参见[文件URL处理](~~155645~~)。', - 'type' => 'string', - 'required' => false, - 'example' => 'http://xxx.xxx.com/xxx.jpg', - ], + 'schema' => ['description' => '与**facialPictureData**二选一。'."\n" + .'待比对的图像URL地址,只支持JPG格式图片。推荐使用上海地域的OSS链接,对于文件在本地或者非上海地域OSS链接的情况,请参见[文件URL处理](~~155645~~)。', 'type' => 'string', 'required' => false, 'example' => 'http://xxx.xxx.com/xxx.jpg'], ], [ 'name' => 'sceneType', 'in' => 'formData', - 'schema' => [ - 'description' => '场景类型,默认为`server`。目前只支持`server`。', - 'type' => 'string', - 'required' => false, - 'example' => 'server', - ], + 'schema' => ['description' => '场景类型,默认为`server`。目前只支持`server`。', 'type' => 'string', 'required' => false, 'example' => 'server'], ], ], 'responses' => [ @@ -104,37 +64,20 @@ 'description' => '返回结构体。', 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'title' => 'Id of the request', - 'description' => '请求ID。', - 'type' => 'string', - 'example' => 'CE2FFC8A-6669-4F02-B4DA-95888087FBDC', - ], + 'RequestId' => ['title' => 'Id of the request', 'description' => '请求ID。', 'type' => 'string', 'example' => 'CE2FFC8A-6669-4F02-B4DA-95888087FBDC'], 'Data' => [ 'description' => '返回的结果数据内容。', 'type' => 'object', 'properties' => [ - 'Pass' => [ - 'description' => '验证是否成功。'."\n" - ."\n" - .'- true:验证成功。'."\n" - .'- false:验证失败。', - 'type' => 'boolean', - 'example' => 'true', - ], - 'VerificationToken' => [ - 'description' => '验证Token,主要用于排查问题。', - 'type' => 'string', - 'example' => '6f1f730e732b232ccbdd85abc751****', - ], - 'Reason' => [ - 'description' => '认证结果原因。'."\n" - ."\n" - .'- 认证通过(Z8120)。'."\n" - .'- 抱歉,没有认出您(Z1146)。', - 'type' => 'string', - 'example' => '认证通过(Z8120)', - ], + 'Pass' => ['description' => '验证是否成功。'."\n" + ."\n" + .'- true:验证成功。'."\n" + .'- false:验证失败。', 'type' => 'boolean', 'example' => 'true'], + 'VerificationToken' => ['description' => '验证Token,主要用于排查问题。', 'type' => 'string', 'example' => '6f1f730e732b232ccbdd85abc751****'], + 'Reason' => ['description' => '认证结果原因。'."\n" + ."\n" + .'- 认证通过(Z8120)。'."\n" + .'- 抱歉,没有认出您(Z1146)。', 'type' => 'string', 'example' => '认证通过(Z8120)'], ], ], ], @@ -230,9 +173,6 @@ ], ], 'endpoints' => [ - [ - 'regionId' => 'cn-shanghai', - 'endpoint' => 'facebody.cn-shanghai.aliyuncs.com', - ], + ['regionId' => 'cn-shanghai', 'endpoint' => 'facebody.cn-shanghai.aliyuncs.com'], ], ]; |
