From 7347bac4ab7e136157fc94777e6cf87ef9e08599 Mon Sep 17 00:00:00 2001 From: Zhineng Li Date: Fri, 13 Feb 2026 10:54:11 +0800 Subject: first commit --- data/en_us/alimt/2018-08-07/api-docs.php | 528 +++++++++++++++++++++++++++++++ 1 file changed, 528 insertions(+) create mode 100644 data/en_us/alimt/2018-08-07/api-docs.php (limited to 'data/en_us/alimt/2018-08-07') diff --git a/data/en_us/alimt/2018-08-07/api-docs.php b/data/en_us/alimt/2018-08-07/api-docs.php new file mode 100644 index 0000000..dd6b3f1 --- /dev/null +++ b/data/en_us/alimt/2018-08-07/api-docs.php @@ -0,0 +1,528 @@ + '1.0', + 'info' => [ + 'style' => 'RPC', + 'product' => 'alimt', + 'version' => '2018-08-07', + ], + 'directories' => [ + [ + 'id' => 58009, + 'title' => null, + 'type' => 'directory', + 'children' => [ + 'MachineTranslateECommerce', + 'MachineTranslateGeneral', + ], + ], + ], + 'components' => [ + 'schemas' => [], + ], + 'apis' => [ + 'MachineTranslateECommerce' => [ + 'summary' => '机器专业翻译', + 'methods' => [ + 'post', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'read', + 'systemTags' => [ + 'operationType' => 'none', + 'riskType' => 'high', + 'chargeType' => 'paid', + 'tenantRelevance' => 'publicInformation', + ], + 'parameters' => [ + [ + 'name' => 'SourceText', + 'in' => 'formData', + 'schema' => [ + 'type' => 'string', + 'required' => true, + ], + ], + [ + 'name' => 'SourceLanguage', + 'in' => 'formData', + 'schema' => [ + 'type' => 'string', + 'required' => true, + ], + ], + [ + 'name' => 'TargetLanguage', + 'in' => 'formData', + 'schema' => [ + 'type' => 'string', + 'required' => true, + ], + ], + [ + 'name' => 'ContentFormat', + 'in' => 'formData', + 'schema' => [ + 'type' => 'string', + 'required' => true, + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'type' => 'object', + 'properties' => [ + 'RequestId' => [ + 'type' => 'string', + ], + 'Success' => [ + 'type' => 'boolean', + ], + 'TranslateText' => [ + 'type' => 'string', + ], + 'ResultCode' => [ + 'type' => 'object', + 'properties' => [ + 'Code' => [ + 'type' => 'integer', + 'format' => 'int32', + ], + 'Message' => [ + 'type' => 'string', + ], + ], + ], + ], + ], + ], + ], + 'errorCodes' => [ + 101 => [ + [ + 'errorCode' => '10001', + 'errorMessage' => 'The request has timed out.', + ], + ], + [ + [ + 'errorCode' => '10002', + 'errorMessage' => 'A system error occurred.', + ], + ], + [ + [ + 'errorCode' => '10003', + 'errorMessage' => 'An error occurred while decoding the URL. Verify that the specified URL is encoded.', + ], + ], + [ + [ + 'errorCode' => '10004', + 'errorMessage' => 'Some required parameters are missing.', + ], + ], + [ + [ + 'errorCode' => '10005', + 'errorMessage' => 'The specified language pair is not supported.', + ], + ], + [ + [ + 'errorCode' => '10006', + 'errorMessage' => 'An error occurred while detecting the language.', + ], + ], + [ + [ + 'errorCode' => '10007', + 'errorMessage' => 'An error occurred while translating.', + ], + ], + [ + [ + 'errorCode' => '10008', + 'errorMessage' => 'The specified string is too long.', + ], + ], + 199 => [ + [ + 'errorCode' => '19999', + 'errorMessage' => 'An unknown error occurred.', + ], + ], + ], + 'responseDemo' => null, + ], + 'MachineTranslateGeneral' => [ + 'summary' => '机器通用翻译', + 'methods' => [ + 'post', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'read', + 'systemTags' => [ + 'operationType' => 'none', + 'riskType' => 'high', + 'chargeType' => 'paid', + 'tenantRelevance' => 'publicInformation', + ], + 'parameters' => [ + [ + 'name' => 'SourceText', + 'in' => 'formData', + 'schema' => [ + 'type' => 'string', + 'required' => true, + ], + ], + [ + 'name' => 'SourceLanguage', + 'in' => 'formData', + 'schema' => [ + 'type' => 'string', + 'required' => true, + ], + ], + [ + 'name' => 'TargetLanguage', + 'in' => 'formData', + 'schema' => [ + 'type' => 'string', + 'required' => true, + ], + ], + [ + 'name' => 'ContentFormat', + 'in' => 'formData', + 'schema' => [ + 'type' => 'string', + 'required' => true, + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'type' => 'object', + 'properties' => [ + 'RequestId' => [ + 'type' => 'string', + ], + 'Success' => [ + 'type' => 'boolean', + ], + 'TranslateText' => [ + 'type' => 'string', + ], + 'ResultCode' => [ + 'type' => 'object', + 'properties' => [ + 'Code' => [ + 'type' => 'integer', + 'format' => 'int32', + ], + 'Message' => [ + 'type' => 'string', + ], + ], + ], + ], + ], + ], + ], + 'errorCodes' => [ + 101 => [ + [ + 'errorCode' => '10001', + 'errorMessage' => 'The request has timed out.', + ], + ], + [ + [ + 'errorCode' => '10002', + 'errorMessage' => 'A system error occurred.', + ], + ], + [ + [ + 'errorCode' => '10003', + 'errorMessage' => 'An error occurred while decoding the URL. Verify that the specified URL is encoded.', + ], + ], + [ + [ + 'errorCode' => '10004', + 'errorMessage' => 'Some required parameters are missing.', + ], + ], + [ + [ + 'errorCode' => '10005', + 'errorMessage' => 'The specified language pair is not supported.', + ], + ], + [ + [ + 'errorCode' => '10006', + 'errorMessage' => 'An error occurred while detecting the language.', + ], + ], + [ + [ + 'errorCode' => '10007', + 'errorMessage' => 'An error occurred while translating.', + ], + ], + [ + [ + 'errorCode' => '10008', + 'errorMessage' => 'The specified string is too long.', + ], + ], + 199 => [ + [ + 'errorCode' => '19999', + 'errorMessage' => 'An unknown error occurred.', + ], + ], + ], + 'responseDemo' => null, + ], + ], + 'endpoints' => [ + [ + 'regionId' => 'me-central-1', + 'endpoint' => 'mt.me-central-1.aliyuncs.com', + ], + [ + 'regionId' => 'ap-southeast-1', + 'endpoint' => 'mt.ap-southeast-1.aliyuncs.com', + ], + [ + 'regionId' => 'cn-hangzhou', + 'endpoint' => 'mt.cn-hangzhou.aliyuncs.com', + ], + [ + 'regionId' => 'ap-northeast-1', + 'endpoint' => 'mt.aliyuncs.com', + ], + [ + 'regionId' => 'ap-northeast-2-pop', + 'endpoint' => 'mt.aliyuncs.com', + ], + [ + 'regionId' => 'ap-south-1', + 'endpoint' => 'mt.aliyuncs.com', + ], + [ + 'regionId' => 'ap-southeast-2', + 'endpoint' => 'mt.aliyuncs.com', + ], + [ + 'regionId' => 'ap-southeast-3', + 'endpoint' => 'mt.aliyuncs.com', + ], + [ + 'regionId' => 'cn-beijing', + 'endpoint' => 'mt.aliyuncs.com', + ], + [ + 'regionId' => 'cn-beijing-finance-1', + 'endpoint' => 'mt.aliyuncs.com', + ], + [ + 'regionId' => 'cn-beijing-finance-pop', + 'endpoint' => 'mt.aliyuncs.com', + ], + [ + 'regionId' => 'cn-beijing-gov-1', + 'endpoint' => 'mt.aliyuncs.com', + ], + [ + 'regionId' => 'cn-beijing-nu16-b01', + 'endpoint' => 'mt.aliyuncs.com', + ], + [ + 'regionId' => 'cn-chengdu', + 'endpoint' => 'mt.aliyuncs.com', + ], + [ + 'regionId' => 'cn-edge-1', + 'endpoint' => 'mt.aliyuncs.com', + ], + [ + 'regionId' => 'cn-fujian', + 'endpoint' => 'mt.aliyuncs.com', + ], + [ + 'regionId' => 'cn-haidian-cm12-c01', + 'endpoint' => 'mt.aliyuncs.com', + ], + [ + 'regionId' => 'cn-hangzhou-bj-b01', + 'endpoint' => 'mt.aliyuncs.com', + ], + [ + 'regionId' => 'cn-hangzhou-finance', + 'endpoint' => 'mt.aliyuncs.com', + ], + [ + 'regionId' => 'cn-hangzhou-internal-prod-1', + 'endpoint' => 'mt.aliyuncs.com', + ], + [ + 'regionId' => 'cn-hangzhou-internal-test-1', + 'endpoint' => 'mt.aliyuncs.com', + ], + [ + 'regionId' => 'cn-hangzhou-internal-test-2', + 'endpoint' => 'mt.aliyuncs.com', + ], + [ + 'regionId' => 'cn-hangzhou-internal-test-3', + 'endpoint' => 'mt.aliyuncs.com', + ], + [ + 'regionId' => 'cn-hangzhou-test-306', + 'endpoint' => 'mt.aliyuncs.com', + ], + [ + 'regionId' => 'cn-hongkong', + 'endpoint' => 'mt.aliyuncs.com', + ], + [ + 'regionId' => 'cn-hongkong-finance-pop', + 'endpoint' => 'mt.aliyuncs.com', + ], + [ + 'regionId' => 'cn-huhehaote', + 'endpoint' => 'mt.aliyuncs.com', + ], + [ + 'regionId' => 'cn-north-2-gov-1', + 'endpoint' => 'mt.aliyuncs.com', + ], + [ + 'regionId' => 'cn-qingdao', + 'endpoint' => 'mt.aliyuncs.com', + ], + [ + 'regionId' => 'cn-qingdao-nebula', + 'endpoint' => 'mt.aliyuncs.com', + ], + [ + 'regionId' => 'cn-shanghai', + 'endpoint' => 'mt.aliyuncs.com', + ], + [ + 'regionId' => 'cn-shanghai-et15-b01', + 'endpoint' => 'mt.aliyuncs.com', + ], + [ + 'regionId' => 'cn-shanghai-et2-b01', + 'endpoint' => 'mt.aliyuncs.com', + ], + [ + 'regionId' => 'cn-shanghai-finance-1', + 'endpoint' => 'mt.aliyuncs.com', + ], + [ + 'regionId' => 'cn-shanghai-inner', + 'endpoint' => 'mt.aliyuncs.com', + ], + [ + 'regionId' => 'cn-shanghai-internal-test-1', + 'endpoint' => 'mt.aliyuncs.com', + ], + [ + 'regionId' => 'cn-shenzhen', + 'endpoint' => 'mt.aliyuncs.com', + ], + [ + 'regionId' => 'cn-shenzhen-finance-1', + 'endpoint' => 'mt.aliyuncs.com', + ], + [ + 'regionId' => 'cn-shenzhen-inner', + 'endpoint' => 'mt.aliyuncs.com', + ], + [ + 'regionId' => 'cn-shenzhen-st4-d01', + 'endpoint' => 'mt.aliyuncs.com', + ], + [ + 'regionId' => 'cn-shenzhen-su18-b01', + 'endpoint' => 'mt.aliyuncs.com', + ], + [ + 'regionId' => 'cn-wuhan', + 'endpoint' => 'mt.aliyuncs.com', + ], + [ + 'regionId' => 'cn-yushanfang', + 'endpoint' => 'mt.aliyuncs.com', + ], + [ + 'regionId' => 'cn-zhangbei-na61-b01', + 'endpoint' => 'mt.aliyuncs.com', + ], + [ + 'regionId' => 'cn-zhangjiakou', + 'endpoint' => 'mt.aliyuncs.com', + ], + [ + 'regionId' => 'cn-zhangjiakou-na62-a01', + 'endpoint' => 'mt.aliyuncs.com', + ], + [ + 'regionId' => 'cn-zhengzhou-nebula-1', + 'endpoint' => 'mt.aliyuncs.com', + ], + [ + 'regionId' => 'eu-central-1', + 'endpoint' => 'mt.aliyuncs.com', + ], + [ + 'regionId' => 'eu-west-1', + 'endpoint' => 'mt.aliyuncs.com', + ], + [ + 'regionId' => 'eu-west-1-oxs', + 'endpoint' => 'mt.aliyuncs.com', + ], + [ + 'regionId' => 'me-east-1', + 'endpoint' => 'alimt.me-east-1.aliyuncs.com', + ], + [ + 'regionId' => 'rus-west-1-pop', + 'endpoint' => 'mt.aliyuncs.com', + ], + [ + 'regionId' => 'us-east-1', + 'endpoint' => 'mt.aliyuncs.com', + ], + [ + 'regionId' => 'us-west-1', + 'endpoint' => 'mt.aliyuncs.com', + ], + ], +]; -- cgit v1.2.3