---
# System prepended metadata

title: "{  \"schema_version\": \"v1\",\n  "

---

```json=
{
  "schema_version": "v1",
  "name_for_model": "Wistron File Translation Service",
  "name_for_human": "Wistron Translation Plugin",
  "description_for_model": "(1)可以使用本服務查詢各國語言代碼.(2)可以使用本服務透過SASURL,語言代碼進行檔案翻譯(pptx,xlsx,docx,pdf(Ver>=1.7))",
  "description_for_human": "(1)可以使用本服務查詢各國語言代碼.(2)可以使用本服務透過SASURL,語言代碼進行檔案翻譯(pptx,xlsx,docx,pdf(Ver>=1.7))",
  "auth": {
    "type": "none"
  },
  "api": {
    "type": "openapi",
    "url": "https://wigpt-file-translation-dev.wistron.com/swagger/v1/swagger.yaml",
    "has_user_authentication": false
  },
  "logo_url": "https://wigpt-file-translation-dev.wistron.com/.well-known/logo.png",
  "contact_email": "allen_yen@wistron.com",
  "legal_info_url": "allen_yen@wistron.com"
}
```

```yaml=
openapi: 3.0.1
info:
  title: Wistron.FileTranslation.API
  version: '1.0'
servers:
  - url: https://wigpt-file-translation-dev.wistron.com
paths:
  /api/FileTranslate/GetTranslationSupportLanguage:
    get:
      tags:
        - FileTranslate
      summary: 取得檔案翻譯中心支援的翻譯語言及語言代碼
      responses:
        '200':
          description: Success
          content:
            text/plain:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/GetTranslationSupportLanguageViewModel'
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/GetTranslationSupportLanguageViewModel'
            text/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/GetTranslationSupportLanguageViewModel'
  /api/FileTranslate/PostFileTranslationAsync:
    post:
      tags:
        - FileTranslate
      summary: 執行檔案翻譯作業，若翻譯成功，則會回傳檔案下載連結
      requestBody:
        description: 翻譯作業ViewModel
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PostTranslationFileViewModel'
          text/json:
            schema:
              $ref: '#/components/schemas/PostTranslationFileViewModel'
          application/*+json:
            schema:
              $ref: '#/components/schemas/PostTranslationFileViewModel'
      responses:
        '200':
          description: Success
          content:
            text/plain:
              schema:
                $ref: '#/components/schemas/PostTranslationFileReturnViewModel'
            application/json:
              schema:
                $ref: '#/components/schemas/PostTranslationFileReturnViewModel'
            text/json:
              schema:
                $ref: '#/components/schemas/PostTranslationFileReturnViewModel'
components:
  schemas:
    GetTranslationSupportLanguageViewModel:
      type: object
      properties:
        language:
          type: string
          description: 語言名稱
          nullable: true
        languageCode:
          type: string
          description: 語言代碼
          nullable: true
      additionalProperties: false
      description: 表示語言和語言代碼的資料模型ViewModel
    PostTranslationFileViewModel:
      required:
        - languageCode
        - sourceSASUrl
      type: object
      properties:
        languageCode:
          type: string
          description: 準備要翻譯的語系 Language Code
        sourceSASUrl:
          type: string
          description: 翻譯檔案來源的Azure blob SAS URL
      additionalProperties: false
      description: 翻譯作業ViewModel
    PostTranslationFileReturnViewModel:
      type: object
      properties:
        statusCode:
          type: integer
          format: int32
        downloadPath:
          type: string
          description: 檔案下載路徑
          nullable: true
        message:
          type: string
          description: 成功或錯誤訊息，成功則回success，失敗則回錯誤訊息
          nullable: true
      additionalProperties: false
      description: 翻譯作業執行完畢Retrun的ViewModel
  securitySchemes:
    Bearer:
      type: apiKey
      description: 'JWT Bearer schema (Example: ''Bearer asdfasdfasdf'')'
      name: Authorization
      in: header
security:
  - Bearer: [ ]
```