diff options
Diffstat (limited to 'data/en_us/alimt/2019-01-02')
| -rw-r--r-- | data/en_us/alimt/2019-01-02/api-docs.php | 743 |
1 files changed, 743 insertions, 0 deletions
diff --git a/data/en_us/alimt/2019-01-02/api-docs.php b/data/en_us/alimt/2019-01-02/api-docs.php new file mode 100644 index 0000000..e02fe88 --- /dev/null +++ b/data/en_us/alimt/2019-01-02/api-docs.php @@ -0,0 +1,743 @@ +<?php return [ + 'version' => '1.0', + 'info' => [ + 'style' => 'ROA', + 'product' => 'alimt', + 'version' => '2019-01-02', + ], + 'directories' => [ + [ + 'id' => 57983, + 'title' => null, + 'type' => 'directory', + 'children' => [ + 'TranslateECommerce', + 'TranslateGeneral', + ], + ], + [ + 'id' => 57986, + 'title' => null, + 'type' => 'directory', + 'children' => [ + 'GetResource', + ], + ], + [ + 'id' => 0, + 'title' => '其它', + 'type' => 'directory', + 'children' => [ + 'ListMtConnector', + ], + ], + ], + 'components' => [ + 'schemas' => [], + ], + 'apis' => [ + 'TranslateECommerce' => [ + 'summary' => '专业文本翻译', + 'path' => '/api/translate/web/ecommerce', + 'methods' => [ + 'post', + 'get', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'read', + 'systemTags' => [ + 'operationType' => 'none', + 'riskType' => 'high', + 'chargeType' => 'paid', + 'autoTest' => true, + 'tenantRelevance' => 'publicInformation', + ], + 'parameters' => [], + 'responses' => [ + 200 => [ + 'schema' => [ + 'type' => 'object', + 'properties' => [ + 'Code' => [ + 'type' => 'string', + ], + 'Message' => [ + 'type' => 'string', + ], + 'RequestId' => [ + 'type' => 'string', + ], + 'Data' => [ + 'type' => 'object', + 'properties' => [ + 'Translated' => [ + 'type' => 'string', + ], + 'WordCount' => [ + '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.', + ], + ], + [ + [ + 'errorCode' => '10009', + 'errorMessage' => '子账号没有权限', + ], + ], + [ + [ + 'errorCode' => '10010', + 'errorMessage' => '账号没有开通服务', + ], + ], + [ + [ + 'errorCode' => '10011', + 'errorMessage' => '子账号服务失败', + ], + ], + [ + [ + 'errorCode' => '10012', + 'errorMessage' => '翻译服务调用失败', + ], + ], + [ + [ + 'errorCode' => '10013', + 'errorMessage' => '账号服务没有开通或者欠费', + ], + ], + 199 => [ + [ + 'errorCode' => '19999', + 'errorMessage' => 'An unknown error occurred.', + ], + ], + ], + 'responseDemo' => null, + ], + 'TranslateGeneral' => [ + 'summary' => '通用文本翻译', + 'path' => '/api/translate/web/general', + 'methods' => [ + 'post', + 'get', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'read', + 'systemTags' => [ + 'operationType' => 'none', + 'riskType' => 'high', + 'chargeType' => 'paid', + 'tenantRelevance' => 'publicInformation', + ], + 'parameters' => [], + 'responses' => [ + 200 => [ + 'schema' => [ + 'type' => 'object', + 'properties' => [ + 'Code' => [ + 'type' => 'string', + ], + 'Message' => [ + 'type' => 'string', + ], + 'RequestId' => [ + 'type' => 'string', + ], + 'Data' => [ + 'type' => 'object', + 'properties' => [ + 'Translated' => [ + 'type' => 'string', + ], + 'WordCount' => [ + '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.', + ], + ], + [ + [ + 'errorCode' => '10009', + 'errorMessage' => '子账号没有权限', + ], + ], + [ + [ + 'errorCode' => '10010', + 'errorMessage' => '账号没有开通服务', + ], + ], + [ + [ + 'errorCode' => '10011', + 'errorMessage' => '子账号服务失败', + ], + ], + [ + [ + 'errorCode' => '10012', + 'errorMessage' => '翻译服务调用失败', + ], + ], + [ + [ + 'errorCode' => '10013', + 'errorMessage' => '账号服务没有开通或者欠费', + ], + ], + 199 => [ + [ + 'errorCode' => '19999', + 'errorMessage' => 'An unknown error occurred.', + ], + ], + ], + 'responseDemo' => null, + ], + 'GetResource' => [ + 'path' => '/api/resource', + 'methods' => [ + 'post', + 'get', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'read', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'get', + 'autoTest' => false, + 'notSupportAutoTestReason' => '', + ], + 'parameters' => [], + 'responses' => [ + 200 => [ + 'schema' => [ + 'type' => 'object', + 'properties' => [ + 'Code' => [ + 'type' => 'string', + ], + 'Message' => [ + 'type' => 'string', + ], + 'Data' => [ + 'type' => 'string', + ], + 'RequestId' => [ + 'type' => 'string', + ], + ], + ], + ], + ], + 'errorCodes' => [ + 101 => [ + [ + 'errorCode' => 'System.RequestTimeOut', + 'errorMessage' => 'The request has timed out.', + ], + ], + [ + [ + 'errorCode' => 'System.Error', + 'errorMessage' => 'A system error occurred.', + ], + ], + [ + [ + 'errorCode' => 'System.UrlDecodingError', + 'errorMessage' => 'An error occurred while decoding the URL. Verify that the specified URL is encoded.', + ], + ], + [ + [ + 'errorCode' => 'System.ParameterError', + 'errorMessage' => 'Some required parameters are missing.', + ], + ], + [ + [ + 'errorCode' => 'System.LanguageNotSupported', + 'errorMessage' => 'The specified language pair is not supported.', + ], + ], + [ + [ + 'errorCode' => 'System.LanguageDetectError', + 'errorMessage' => 'An error occurred while detecting the language.', + ], + ], + [ + [ + 'errorCode' => 'System.TranslateError', + 'errorMessage' => 'An error occurred while translating.', + ], + ], + [ + [ + 'errorCode' => 'System.StringTooLong', + 'errorMessage' => 'The maximum length of the specified string is exceeded.', + ], + ], + [ + [ + 'errorCode' => 'System.subNotPermission', + 'errorMessage' => 'The sub-account is not authorized to perform the operation.', + ], + ], + [ + [ + 'errorCode' => 'System.AccountNotActivated', + 'errorMessage' => 'The account has not activated the service.', + ], + ], + [ + [ + 'errorCode' => 'System.SubServiceFailed', + 'errorMessage' => 'Sub-account service failed.', + ], + ], + [ + [ + 'errorCode' => 'System.TranslateServiceCallFailed', + 'errorMessage' => 'Failed to call the translation service.', + ], + ], + [ + [ + 'errorCode' => 'System.AccountNotActivatedOrInArrears', + 'errorMessage' => 'The service is not activated or the account has an outstanding balance.', + ], + ], + 199 => [ + [ + 'errorCode' => 'System.unknownError', + 'errorMessage' => 'An unknown error occurred.', + ], + ], + ], + 'responseDemo' => null, + ], + 'ListMtConnector' => [ + 'summary' => '获取系统模型和AI模型', + 'path' => '/api/alynx/listMtModels', + 'methods' => [ + 'get', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'read', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'none', + 'riskType' => 'high', + 'chargeType' => 'paid', + 'tenantRelevance' => 'publicInformation', + ], + 'parameters' => [ + [ + 'name' => 'UserId', + 'in' => 'query', + 'schema' => [ + 'type' => 'integer', + 'format' => 'int64', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'type' => 'object', + 'properties' => [ + 'success' => [ + 'type' => 'string', + ], + 'data' => [ + 'type' => 'array', + 'items' => [ + 'type' => 'object', + 'properties' => [ + 'key' => [ + 'type' => 'string', + ], + 'value' => [ + 'type' => 'string', + ], + ], + ], + ], + 'errorMessage' => [ + 'type' => 'string', + ], + 'bizErrorCode' => [ + 'type' => 'integer', + 'format' => 'int64', + ], + 'RequestId' => [ + 'type' => 'string', + ], + ], + ], + ], + ], + ], + ], + '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', + ], + ], +]; |
