# 潛水日誌_明細 **API 修改紀錄** |版本|日期|備註| | ------------ |------------ |------------ | | v1 |2024/02/26| 發佈 | | v1.1 |2024/03/01| 更新說明 | | v1.2 |2024/03/01| 加上手錶型號跟序號 | | v1.3 |2024/03/01| 修正部分參數型態 | | v1.4 |2024/03/18| 加上畫圖Data | | v1.5 |2024/03/19| 加上選項資料 |<font color="#f00"> v1.6 |<font color="#f00">2024/04/25| <font color="#f00">加上自訂名稱與圖片 帶入 [潛水日誌紀錄](https://hackmd.io/Ck3TMr_1Tc2veA0cEfj6oQ) 的id至此api網址 #### 網址 https://{domain}/api/v1/member-dive-log/show/{id} #### Http Method GET #### HTTP Header accept-language : language code apikey : apk key #### HTTP Request Body 傳入參數 |欄位名稱|必填|型態|欄位|備註| | ------------ | :-----------: |:-----------: |------------ |------------ | #### HTTP Response 回傳參數 |Name|Type|說明| | ------------ | ------------ |------------ | |serial_number|string |手錶序號 |device_name|string |手錶型號 |log_name|string |日誌自訂名稱 |dive_date|string |潛水日期 |start_time|string |開始時間 |end_time|string |結束時間 |dive_mode_id|string |潛水類型id |max_depth|string |最大深度 |avg_depth|string |平均深度 |dive_time|string |潛水時間 |dive_place|string |潛水地點 |low_temp|string |最低水溫 |temperature|string |氣溫 |visibility|string |能見度 |weather_text|string |天氣 |wind_text|string |風 |water_flow_text|string |水流 |wave_text|string |浪況 |O2|string |O2 |PO2|string |PO2 |capacity|string |氣瓶容量 |pressure|string |氣瓶壓力 |counterweight|string |配重 |buddy|string |潛伴 |feel_text|string |感受 |remark|string |備註 |chartData|Array |畫圖資料 |weather_list|Array |天氣選項列表 |wind_list|Array |風選項列表 |water_flow_list|Array |水流選項列表 |wave_list|Array |浪況選項列表 |feel_list|Array |感受選項列表 |image|Array |圖片列表 #### Request Header Authoriztion ```json { "accept-language" : "en", //or 'zh_tw' "apikey" : "api key string" } ``` #### Json Example Request Json Response Json Success ```json { "status": true, "code": 200, "message": "success", "result": { "id": 1, "dive_mode": "scuba", "max_depth": 55.83, "avg_depth": 27.62, "dive_time": "00:01:50", "dive_place": null, "low_temp": "255", "temperature": null, "visibility": "0", "O2": null, "PO2": "5", "capacity": null, "pressure": null, "counterweight": null, "buddy": "", "remark": "", "serial_number": "123123", "device_name": "SHERWOOD-Logic", "dive_date": "2024-02-27", "start_time": "19:55", "end_time": "19:57", "dive_mode_id": 0, "weather_text": "", "wind_text": "", "water_flow_text": "", "wave_text": "", "feel_text": "", "image": [ { "id": 1, "response": "https://123" } ], "chartData": { "depthUnit": "m", "tempUnit": "C", "data": [ { "temp": 25.2, "time": 0, "depth": 0.28 }, { "temp": 25.2, "time": 15, "depth": 3.62 }, { "temp": 25.3, "time": 30, "depth": 1.62 }, { "temp": 25.3, "time": 45, "depth": 1.62 }, { "temp": 25.3, "time": 60, "depth": 0 } ] }, "weather_list": [ { "value": "", "text": "select please" }, { "value": 1, "text": "Sunny" }, { "value": 2, "text": "Rainy" }, { "value": 3, "text": "Cloudy" }, { "value": 4, "text": "Snowy" } ], "wind_list": [ { "value": "", "text": "select please" }, { "value": 1, "text": "Calm" }, { "value": 2, "text": "Light" }, { "value": 3, "text": "Moderate" }, { "value": 4, "text": "Strong" }, { "value": 5, "text": "Storm" } ], "water_flow_list": [ { "value": "", "text": "select please" }, { "value": 1, "text": "None" }, { "value": 2, "text": "Light" }, { "value": 3, "text": "Medium" }, { "value": 4, "text": "Strong" } ], "wave_list": [ { "value": "", "text": "select please" }, { "value": 1, "text": "Flat" }, { "value": 2, "text": "Small" }, { "value": 3, "text": "Medium" }, { "value": 4, "text": "Large" } ], "feel_list": [ { "value": "", "text": "select please" }, { "value": 1, "text": "Excellent" }, { "value": 2, "text": "Good" }, { "value": 3, "text": "OK" }, { "value": 4, "text": "Tired" }, { "value": 5, "text": "Exhausted" } ] } } ``` Response Json Error