Medical Detail
user pk, pet pk 값에 해당하는 펫의 전체 의료 정보 목록을 반환합니다.
URL
/medical/<user_pk>/pets/<pet_pk>/
Method
GET
Header
Headers Key | Headers Value | 설명 | Required |
---|---|---|---|
Authorization | Token 321*************************** | 로그인에서 획득한 Token값 입력 | False (입력하지 않으면 Anonymous user로 간주) |
Success Response
HTTP Status code
200
Content
{
"pet": "빵빵이",
"inoculation_set": [
{
"vaccine_info": {
"species": "dog",
"name": "종합백신(DHPPL)",
"turn": 5,
"period": "14 00:00:00"
},
"inoculation_info": {
"medical": "빵빵이",
"pk": 1,
"vaccine": "종합백신(DHPPL)",
"num_of_times": 1,
"inoculated_date": "2017-01-01T15:00:00+09:00",
"hospital": "패캠동물병원",
"is_alarm": false
}
}
],
"operation_set": [
{
"pk": 1,
"image": null,
"date": "2017-12-01",
"description": "성공적",
"comment": "위궤양 수술"
}
],
"body_size_set": [
{
"pk": 1,
"goal_weight": 5,
"current_weight": 6.6,
"chest": 70,
"neck": 50,
"created_date": "2017-12-26"
}
]
}
Error Response
HTTP Status code
404 Not Found
# pk값이 올바르지 않게 입력된 경우
{
"detail": "Not found."
}