Dock 조회
GET
/api/v1/stations/{station_id}/dock
const url = 'https://dev.api.endueos.com/api/v1/stations/stn_01J9ZK3Q8M4XW7D2N5R6T0V1BC/dock';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://dev.api.endueos.com/api/v1/stations/stn_01J9ZK3Q8M4XW7D2N5R6T0V1BC/dock \ --header 'Authorization: Bearer <token>'처음에는 비어 있다. Device 를 만들면(virtual 은 pin_to_dock 기본 true, actual 은 등록할 때), 앱을 pin_to_dock·pinned 로 저장하면 끝에 붙는다.
가이드 — Dock 과 앱
파라미터
섹션 제목: “파라미터”경로 파라미터
섹션 제목: “경로 파라미터”station_id
필수
string
예시
stn_01J9ZK3Q8M4XW7D2N5R6T0V1BC200
섹션 제목: “200”성공.
Media typeapplication/json
object
data
필수
Dock 의 1단 — 실행 진입점의 목록. 순서가 곧 화면의 순서다. Device 와 1단에 고정한 앱을 담는다 (파일·활동·설정 칸은 화면이 그린다).
Dock 은 2단이다. 1단의 Device 를 누르면 그 Device 의 저장한 앱 전부가 2단으로 펼쳐진다 (GET /devices/{device_id}/apps).
Device 를 만들면 끝에 붙는다 — virtual 은 pin_to_dock(기본 true), actual 은 등록할 때.
object
station_id
필수
string
items
필수
Array<object>
object
type
필수
string
device_id
필수
device 면 그 Device, app 이면 그 앱이 있는 Device.
string
label
필수
화면에 쓰는 이름 — Device 이름 또는 앱 이름.
string
kind
필수
그 Device 의 kind. 화면이 기본 아이콘을 고르는 데 쓴다.
string
device_type
필수
string
compute_status
필수
online
필수
그 Device 가 온라인인지.
boolean
updated_at
필수
string format: date-time
meta
필수
object
request_id
필수
string
timestamp
필수
string format: date-time
duration
서버 처리 시간(ms).
integer format: int32
예시
{ "data": { "station_id": "stn_01J9ZK3Q8M4XW7D2N5R6T0V1BC", "items": [ { "type": "device", "device_id": "res_01J9ZK3Q8M4XW7D2N5R6T0V1BC", "app_id": "app_01J9ZK3Q8M4XW7D2N5R6T0V1BC", "kind": "chrome", "device_type": "actual", "compute_status": "provisioning" } ] }}401
섹션 제목: “401”인증이 없거나 무효다 — UNAUTHORIZED. 본문은 오류 봉투.
404
섹션 제목: “404”없거나 내 것이 아니다 — *_NOT_FOUND. 본문은 오류 봉투.
429
섹션 제목: “429”한도를 넘었다 — Retry-After 초 뒤에 다시. 본문은 오류 봉투.
500
섹션 제목: “500”서버 오류 — INTERNAL_ERROR. 본문은 오류 봉투.
503
섹션 제목: “503”의존 서비스에 닿지 못했다 — 잠시 뒤 다시. 본문은 오류 봉투.