Try   HackMD

URI-C-03 型錄認證清單 API

JasonWu

tags: URI-C

內容

Input JSON Path

規格

  • path : ${TT-API網址}/certifications/company-products/{did}/{id}
  • method : GET

Input

欄位名稱 欄位說明 資料型態 是否必要欄位 備註
did domain id number Y int
id 公司id number Y int

==舊版紀錄如下

Column Type Require Desc
did number Y domain id
id number Y 公司 id

範例

https://tt-api.taiwantrade.com/certifications/company-products/2/147927

邏輯

  • 公司詳目頁-產品認證中,型錄相關認證只會列出前十筆資料,如果要完整取得公司下所有的型錄認證,可以透過此 api 取得

Output JSON Path

規格

{ 
    "code" : <code>,
    "errorMsg" : <errorMsg>,
    "intervalTime" : <intervalTime>,
    "data" : {
        "total" : <total>,
        "certList" : [
            {
                "isUseHtml" : <isUseHtml>,
                "informationHtml" : <informationHtml>,
                "id" : <id>,
                "imgSrc" : <imgSrc>,
                "href" : <href>,
                "title" : <title>,
                "alt" : <alt>,
            }, ...
        ]
    }
}

輸出參數說明

型錄認證清單

欄位名稱 欄位說明 資料型態 是否可為空值 備註
code 執行狀態代碼 number N int
code=0為正常
code<0為錯誤
errorMsg 錯誤訊息 string N
intervalTime 執行時間 string N 顯示執行時間,單位 ms
total 認證數量 number N int
certList 認證內容清單 認證內容(Object) Y

==舊版紀錄如下

欄位名稱 欄位說明 型態 是否可為空值
code 代碼 int 0表示ok
errorMsg 錯誤訊息 String
total 認證數量 int N
certList 認證內容清單 認證內容(Object) Y
認證內容
欄位名稱 欄位說明 資料型態 是否可為空值 備註
isUseHtml 認證內容是否為 html number N int,0(否)/1(是)
informationHtml html 內容 string Y 如果 isUseHtml=1,顯示這一段 html 內容
id 認證 id number N int
imgSrc 認證圖片 url string Y
href 認證點選的燈箱 url string Y
title 認證名稱 string NY
alt 認證圖片 alt string Y

==舊版紀錄如下

欄位名稱 欄位說明 型態 是否可為空值
isUseHtml 認證內容是否為 html int 0(否)/1(是)
informationHtml 如果認證內容是 html,那要顯示這一段 html 內容 String Y
id 認證 id int N
imgSrc 認證圖片 url String Y
href 認證點選的燈箱 url String Y
title 認證名稱 String N
alt 認證圖片 alt String Y

範例

{
  "code": 0,
  "errorMsg": null,
  "intervalTime" : "330 ms",
  "data": {
    "total": 29,
    "certList": [
      {
        "isUseHtml": 0,
        "informationHtml": "",
        "id": 702419,
        "imgSrc": "https://im01.ttstaging.com.tw/777f57a0-08c6-4135-8c7a-b82fa552b4cd/CSA-100x100.png",
        "href": "/lightbox/certification/702419?companyId=147927",
        "title": "CSA",
        "alt": "CSA"
      },
      {
        "isUseHtml": 0,
        "informationHtml": "",
        "id": 702417,
        "imgSrc": "null",
        "href": "/lightbox/certification/702417?companyId=147927",
        "title": "ANSI",
        "alt": "ANSI"
      },
      {
        "isUseHtml": 0,
        "informationHtml": "",
        "id": 702375,
        "imgSrc": "https://im01.ttstaging.com.tw/0ade0d18-8340-496b-8435-718d4a26addc/HACCP-100x100.jpg",
        "href": "/lightbox/certification/702375?companyId=147927",
        "title": "HACCP",
        "alt": "HACCP"
      },
      {
        "isUseHtml": 0,
        "informationHtml": "",
        "id": 702357,
        "imgSrc": "https://im01.ttstaging.com.tw/cab9f638-0ee6-4531-9f4c-3c124085baaa/unnamed-100x100.jpg",
        "href": "/lightbox/certification/702357?companyId=147927",
        "title": "自訂認證標題 20字元",
        "alt": "自訂認證標題 20字元"
      },
      {
        "isUseHtml": 0,
        "informationHtml": "",
        "id": 702356,
        "imgSrc": "https://im01.ttstaging.com.tw/45c7bd8e-6ea1-42de-a341-335de345d0f3/IS9001-100x100.jpg",
        "href": "/lightbox/certification/702356?companyId=147927",
        "title": "ISO 9001",
        "alt": "ISO 9001"
      },
      {
        "isUseHtml": 0,
        "informationHtml": "",
        "id": 702355,
        "imgSrc": "https://im01.ttstaging.com.tw/b7135582-9796-489c-b61f-11a2b33c9e52/logo_iso9000-100x100.gif",
        "href": "/lightbox/certification/702355?companyId=147927",
        "title": "ISO 9000",
        "alt": "ISO 9000"
      },
      {
        "isUseHtml": 0,
        "informationHtml": "",
        "id": 702097,
        "imgSrc": "https://im01.ttstaging.com.tw/c9a2dd71-3408-4cf3-898e-c777ed12416d/T09SX28QK-U96FBT6R2-190b0769e64b-512-100x100.png",
        "href": "/lightbox/certification/702097?companyId=147927",
        "title": "Liucc-En",
        "alt": "Liucc-En"
      },
      {
        "isUseHtml": 0,
        "informationHtml": "",
        "id": 702096,
        "imgSrc": "https://im01.ttstaging.com.tw/fe71e889-48d1-41dd-82af-94780a7b7fbc/CGA-100x100.png",
        "href": "/lightbox/certification/702096?companyId=147927",
        "title": "C.G.A.",
        "alt": "C.G.A."
      },
      {
        "isUseHtml": 0,
        "informationHtml": "",
        "id": 702095,
        "imgSrc": "https://im01.ttstaging.com.tw/cc6eed94-72c8-44d0-ad31-dd46eaea5a74/CAS_ORGANIC-100x100.jpg",
        "href": "/lightbox/certification/702095?companyId=147927",
        "title": "CAS ORGANIC",
        "alt": "CAS ORGANIC"
      },
      {
        "isUseHtml": 0,
        "informationHtml": "",
        "id": 702022,
        "imgSrc": "https://im01.ttstaging.com.tw/c1661bc5-7496-4ae6-a8a4-49bc0ac7cc79/T09SX28QK-U96FBT6R2-190b0769e64b-512-100x100.png",
        "href": "/lightbox/certification/702022?companyId=147927",
        "title": "(En)認證常用組-2",
        "alt": "(En)認證常用組-2"
      },
      {
        "isUseHtml": 0,
        "informationHtml": "",
        "id": 702018,
        "imgSrc": "https://im01.ttstaging.com.tw/5f55c1d9-540b-4268-bc35-d592da61e4bd/T09SX28QK-U96FBT6R2-190b0769e64b-512-100x100.png",
        "href": "/lightbox/certification/702018?companyId=147927",
        "title": "(En)認證常用組-2",
        "alt": "(En)認證常用組-2"
      },
      {
        "isUseHtml": 0,
        "informationHtml": "",
        "id": 700896,
        "imgSrc": "https://im01.ttstaging.com.tw/b7706d0b-38cf-4d06-b8b3-77596ffe5a19/test-100x100.gif",
        "href": "/lightbox/certification/700896?companyId=147927",
        "title": "自訂認證",
        "alt": "自訂認證"
      },
      {
        "isUseHtml": 0,
        "informationHtml": "",
        "id": 700877,
        "imgSrc": "https://im01.ttstaging.com.tw/5369fab8-ee2e-43e7-8482-4298d748ee33/FIMKO-100x100.png",
        "href": "/lightbox/certification/700877?companyId=147927",
        "title": "FIMKO",
        "alt": "FIMKO"
      },
      {
        "isUseHtml": 0,
        "informationHtml": "",
        "id": 700876,
        "imgSrc": "https://im01.ttstaging.com.tw/82d6fa6d-131e-409c-8c7a-9cd7f52aa4d6/001-100x100.png",
        "href": "/lightbox/certification/700876?companyId=147927",
        "title": "CB",
        "alt": "CB"
      },
      {
        "isUseHtml": 0,
        "informationHtml": "",
        "id": 700864,
        "imgSrc": "https://im01.ttstaging.com.tw/cae4c66b-c390-448e-92fc-11aa96f8c0d0/345-100x100.jpg",
        "href": "/lightbox/certification/700864?companyId=147927",
        "title": "CERTIFno.7",
        "alt": "CERTIFno.7"
      },
      {
        "isUseHtml": 0,
        "informationHtml": "",
        "id": 700863,
        "imgSrc": "https://im01.ttstaging.com.tw/bad27df1-adac-43a7-ae71-947e0de944ad/HOKWANG_INDUSTRIES_CO_High-Speed_Hand_Dryer_EcoFast_SM-100x100.png",
        "href": "/lightbox/certification/700863?companyId=147927",
        "title": "CERTIFno.6",
        "alt": "CERTIFno.6"
      },
      {
        "isUseHtml": 0,
        "informationHtml": "",
        "id": 700616,
        "imgSrc": "null",
        "href": "/lightbox/certification/700616?companyId=147927",
        "title": "FAA",
        "alt": "FAA"
      },
      {
        "isUseHtml": 0,
        "informationHtml": "",
        "id": 700415,
        "imgSrc": "https://im01.ttstaging.com.tw/3d54d6fb-0f9b-49c8-9871-e8d74c04ebd6/test-100x100.gif",
        "href": "/lightbox/certification/700415?companyId=147927",
        "title": "自訂認證",
        "alt": "自訂認證"
      },
      {
        "isUseHtml": 0,
        "informationHtml": "",
        "id": 700007,
        "imgSrc": "https://im01.ttstaging.com.tw/534971d1-26bf-4c5b-bfa9-912205d76d88/CQC-100x100.png",
        "href": "/lightbox/certification/700007?companyId=147927",
        "title": "CQC",
        "alt": "CQC"
      },
      {
        "isUseHtml": 0,
        "informationHtml": "",
        "id": 700005,
        "imgSrc": "https://im01.ttstaging.com.tw/62ce33da-eb4c-4b40-a416-a9745e87a981/CE0434-100x100.png",
        "href": "/lightbox/certification/700005?companyId=147927",
        "title": "CE 0434",
        "alt": "CE 0434"
      },
      {
        "isUseHtml": 0,
        "informationHtml": "",
        "id": 700004,
        "imgSrc": "null",
        "href": "/lightbox/certification/700004?companyId=147927",
        "title": "ISO 13488",
        "alt": "ISO 13488"
      },
      {
        "isUseHtml": 0,
        "informationHtml": "",
        "id": 699975,
        "imgSrc": "https://im01.ttstaging.com.tw/d549225d-c11c-4a2e-bab7-c6a0622b845a/饅頭人-300x190-100x100.png",
        "href": "/lightbox/certification/699975?companyId=147927",
        "title": "CERTIFICATION _ssyy",
        "alt": "CERTIFICATION _ssyy"
      },
      {
        "isUseHtml": 0,
        "informationHtml": "",
        "id": 699876,
        "imgSrc": "null",
        "href": "/lightbox/certification/699876?companyId=147927",
        "title": "ISO 14001",
        "alt": "ISO 14001"
      },
      {
        "isUseHtml": 0,
        "informationHtml": "",
        "id": 699456,
        "imgSrc": "https://im01.ttstaging.com.tw/126e794e-9601-45c8-9c08-84b40dc17859/ENEC-100x100.png",
        "href": "/lightbox/certification/699456?companyId=147927",
        "title": "ENEC",
        "alt": "ENEC"
      },
      {
        "isUseHtml": 0,
        "informationHtml": "",
        "id": 699176,
        "imgSrc": "https://im01.ttstaging.com.tw/80c7ed0e-ebe4-4eed-8654-2f6d8490c20b/AP-100x100.png",
        "href": "/lightbox/certification/699176?companyId=147927",
        "title": "AP",
        "alt": "AP"
      },
      {
        "isUseHtml": 0,
        "informationHtml": "",
        "id": 699175,
        "imgSrc": "https://im01.ttstaging.com.tw/05551e08-4638-43c2-a5d6-6795eba650ac/初階認證100X100-100x100-100x100.png",
        "href": "/lightbox/certification/699175?companyId=147927",
        "title": "佳淇測試",
        "alt": "佳淇測試"
      },
      {
        "isUseHtml": 0,
        "informationHtml": "",
        "id": 699136,
        "imgSrc": "https://im01.ttstaging.com.tw/77a399ed-e48d-4e0f-a4c3-96677386e4a6/avatar-100x100.jpg",
        "href": "/lightbox/certification/699136?companyId=147927",
        "title": "自訂認證",
        "alt": "自訂認證"
      },
      {
        "isUseHtml": 0,
        "informationHtml": "",
        "id": 698215,
        "imgSrc": "https://im01.ttstaging.com.tw/6da18b34-d2e4-4a18-9d29-7785bbb43584/ABCLogoOn425-100x100.gif",
        "href": "/lightbox/certification/698215?companyId=147927",
        "title": "ABC",
        "alt": "ABC"
      },
      {
        "isUseHtml": 0,
        "informationHtml": "",
        "id": 697915,
        "imgSrc": "https://im01.ttstaging.com.tw/7855c3c0-bfc1-4262-a9d3-c4f1d051a1ba/初階認證100X100-100x100-100x100.png",
        "href": "/lightbox/certification/697915?companyId=147927",
        "title": "佳淇測試",
        "alt": "佳淇測試"
      }
    ]
  }
}