등록된 마이크 장치 목록을 조회합니다.
/api/v1/mics등록된 마이크 장치 목록을 조회하는 API입니다. 결과는 전달한 쿼리 파라미터를 기준으로 페이지네이션됩니다. 마이크 장치 객체를 참고하면 관련 구조를 자세히 확인할 수 있습니다.
각 마이크는 자체 임계값 설정을 가집니다. 자세한 내용은 이벤트 카테고리를 참고해 주세요.
Access Token은 Bearer 토큰 인증 방식으로 전달해야 합니다.
자세한 내용은 인증 문서를 참고해 주세요.
1(0보다 커야 함)10(0보다 크고 101보다 작아야 함)nullnull{
"page": 1,
"size": 10,
"total_cnt": 100,
"max_page": 10,
"results": [
{
"id": "string",
"name": "string",
"host": "string",
"edge_id": "string",
"status": "enum(active | inactive)",
"thresholds": {
"breathing_heavily": {
"sound_level_ge": 65,
"confidence": 0.8
},
"[event_category]": {
"sound_level_ge": 65,
"confidence": 0.8
}
},
"location": {
"latitude": -90,
"longitude": -180
},
"created_at": "2019-08-24T14:15:22Z",
"updated_at": "2019-08-24T14:15:22Z"
}
]
}const response = await fetch('http://{{EDGE_IP}}:8100/api/v1/mics?page=1&size=10', {
method: 'GET',
headers: {
"Authorization": "Bearer YOUR_ACCESS_TOKEN"
}
});
const data = await response.json();const response = await fetch('http://{{EDGE_IP}}:8100/api/v1/mics?name=mic1&edge_id=edge123&page=1&size=10', {
method: 'GET',
headers: {
"Authorization": "Bearer YOUR_ACCESS_TOKEN"
}
});
const data = await response.json();