Open seongs1024 opened 1 year ago
POST /vital
Content-Type: application/json
Authorization: <type> <credentials>
{
"measureTime": "YYYY-MM-DD HH:mm:ss",
"spo2": <value>,
"pulse": <value>,
"startTime": "YYYY-MM-DD HH:mm:ss"
}
Content-Type: application/json
{}
HTTP Status Code | Status | Description |
---|---|---|
200 | OK | 요청 성공 |
HTTP Status Code | Error Code | Error Message | Description |
---|---|---|---|
400 | BAD_REQUEST | Invalid request body | The request body is malformed or missing required fields. |
404 | NOT_FOUND | Resource not found | The specified resource or endpoint could not be found. |
500 | SERVER_ERROR | Internal server error | An unexpected error occurred on the server. |
POST /vital
Host:
Content-Type: application/json
Authorization: Basic owkdkvwe1293309qjrpotsjigfkspJPu938
{
"measureTime": "2023-04-13 10:30:00",
"spo2": 99,
"pulse": 80,
"startTime": "2023-04-13 10:30:00"
}
HTTP/1.1 200 OK
Content-Type: application/json
{}
GET /vitals
Content-Type: application/json
Authorization: <type> <credentials>
{
"date": "YYYY-MM-DD",
"step": "5m", // "30s", "1m", "3m", "5m", "15m", "30m", "1H"
}
Content-Type: application/json
{
"data": [
{
"label": [ "2023/04/13 10:30:00", "2023/04/13 10:35:00", "2023/04/13 10:40:00", ... ],
"spo2": [ 94, 94, 94, ... ],
"pulse": [ 65, 65, 65, ],
},
{
"label": [ "2023/04/13 22:30:00", "2023/04/13 22:35:00", "2023/04/13 22:40:00", ... ],
"spo2": [ 94, 94, 94, ... ],
"pulse": [ 65, 65, 65, ],
},
],
}
HTTP Status Code | Status | Description |
---|---|---|
200 | OK | 요청 성공 |
HTTP Status Code | Error Code | Error Message | Description |
---|---|---|---|
400 | BAD_REQUEST | Invalid request body | The request body is malformed or missing required fields. |
404 | NOT_FOUND | Resource not found | The specified resource or endpoint could not be found. |
500 | SERVER_ERROR | Internal server error | An unexpected error occurred on the server. |
GET /vitals
Host:
Content-Type: application/json
Authorization: Basic owkdkvwe1293309qjrpotsjigfkspJPu938
{
"date": "2023-04-20",
"step": "5m",
}
HTTP/1.1 200 OK
Content-Type: application/json
{
"data": [
{
"label": [ "2023/04/13 10:30:00", "2023/04/13 10:35:00", "2023/04/13 10:40:00", ... ],
"spo2": [ 94, 94, 94, ... ],
"pulse": [ 65, 65, 65, ],
},
{
"label": [ "2023/04/13 22:30:00", "2023/04/13 22:35:00", "2023/04/13 22:40:00", ... ],
"spo2": [ 94, 94, 94, ... ],
"pulse": [ 65, 65, 65, ],
},
],
}
GET /dates
Content-Type: application/json
Authorization: <type> <credentials>
{}
Content-Type: application/json
{
"data": [dates collection in descending order]
}
HTTP Status Code | Status | Description |
---|---|---|
200 | OK | 요청 성공 |
HTTP Status Code | Error Code | Error Message | Description |
---|---|---|---|
400 | BAD_REQUEST | Invalid request body | The request body is malformed or missing required fields. |
404 | NOT_FOUND | Resource not found | The specified resource or endpoint could not be found. |
500 | SERVER_ERROR | Internal server error | An unexpected error occurred on the server. |
GET /dates
Host:
Content-Type: application/json
Authorization: Basic owkdkvwe1293309qjrpotsjigfkspJPu938
{}
HTTP/1.1 200 OK
Content-Type: application/json
{
"data": [ "2023-04-17", "2023-04-14", "2023-04-15", ..., "2023-04-01" ]
}
생체데이터(Biometric) 도메인
엔터티 참고:
기능 협의 참고:
Base URI
Date 리소스
리소스 정의:
Methods
Vital 리소스
리소스 정의:
Methods
SleepSummary 리소스
리소스 정의:
Methods
담당자: @Kim-Eun-Bin @chanwoong1