# 會員_我的潛點_資訊 **API 修改紀錄** |版本|日期|備註| | ------------ |------------ |------------ | | v1 |2024/05/14| 發佈 || | v1 |2024/05/20| 更改欄位名稱 name -> spot_name| | v1 |2024/05/22| 提供收藏狀態 collect_status| **會員_我的潛點_資訊** 會員潛點資訊 #### 網址 https://{domain}/api/v1/dive-site/show/{id} #### Http Method GET #### HTTP Header accept-language : language code apikey : apk key #### HTTP Body 傳入參數 |欄位名稱|必填|型態|欄位|備註| | ------------ | :-----------: |:-----------: |------------ |------------ | #### HTTP Response 回傳參數 |Name|Type|說明| | ------------ | ------------ |------------ | |id |int |潛點id | |dive_type_id |int |潛點分類(1:個人潛點 2:公開潛點 3:日誌潛點 4:自建潛點) | |status |boolean |狀態(false:關閉 true:啟用) | |collect_status |boolean |收藏狀態(true:已收藏 false:未收藏) | |spot_name |string |潛點名稱 | |site_name |string |潛點名稱(site) | |latitude |float |緯度 | |longitude |float |經度 | |deep_start|float |起始深度範圍 |deep_end|float |結束深度範圍 |visibility|float |能見度 |categories|array |類型 |exp_levels|array |經驗等級 |image|array |圖片檔案 |description|string |特點描述 |notice|string |注意事項 #### Request Header Authoriztion ```json { "accept-language" : "en", //or 'zh_tw' "apikey" : "api key string" } ``` #### Json Example Request Json ```json ``` Response Json Success ```json { "status": true, "code": 200, "message": "success", "result": { "id": 1, "dive_type_id": 1, "status": true, "collect_status": true, "spot_name": "東澳漁港", "site_name": "台灣,新北市 萬里區", "latitude": 30.040468215942, "longitude": -85.621528625488, "deep_start": 10.2, "deep_end": 30.5, "visibility": 10.5, "description": "特點描述", "notice": "注意事項", "categories": [ { "id": 1, "name": "岸灣" }, { "id": 2, "name": "礁石" }, { "id": 3, "name": "海洋" }, { "id": 4, "name": "技術" } ], "exp_levels": [ { "id": 1, "name": "開放水域" }, { "id": 2, "name": "新手" }, { "id": 3, "name": "進階" }, { "id": 4, "name": "專家" } ], "image": [ { "id": 2834, "response": "https://crest-api.local.com/v1/file/response/device/2834/235959/1163bff07ee6d7784d31ae621d7c941a" } ] } } ``` Response Json Error ```json { "status": false, "message": "No Data", "code": 400 } ```