singleton icon indicating copy to clipboard operation
singleton copied to clipboard

[BUG] [Java Service]"machineTranslation" item as response data in key-based GET API.

Open lyiyu66 opened this issue 2 years ago • 0 comments

Describe the bug commit:2a16c214690243b83109a776751ed50773689bf7 "machineTranslation" item as response data in key-based GET API. GET [/i18n/api/v2/translation/products/{productName}/versions/{version}/locales/{locale}/components/{component}/keys] GET [/i18n/api/v2/translation/products/{productName}/versions/{version}/locales/{locale}/components/{component}/keys/{key}] GET [/i18n/api/v1/translation/product/{productName}/component/{component}/key/{key}] GET [/i18n/api/v1/translation/product/{productName}/key/{key}]

To Reproduce Steps to reproduce the behavior:

  1. Go to 'GET [/i18n/api/v2/translation/products/{productName}/versions/{version}/locales/{locale}/components/{component}/keys]' API.
  2. Input valid product/version/locale/component/key in this API: http://localhost:8091/i18n/api/v2/translation/products/VMwareVIP2018/versions/1.1.0/locales/en/components/Test.ABC_abc-123/keys?keys=Test.ABC_abc-123&pseudo=false
  3. See the response:
{
  "response": {
    "code": 200,
    "message": "OK",
    "serverTime": ""
  },
  "signature": "",
  "data": {
    "productName": "VMwareVIP2018",
    "version": "1.1.0",
    "dataOrigin": "",
    "pseudo": false,
    "machineTranslation": false,
    "component": "Test.ABC_abc-123",
    "messages": {
      "Test.ABC_abc-123": "The 1st Notes"
    },
    "locale": "en",
    "status": "",
    "id": 0
  }
}

Expected behavior As there is no machineTranslation parameter in API input, it is redundant and unnecessary in response.

lyiyu66 avatar Mar 04 '22 06:03 lyiyu66