Body Size List
user pk, pet pk 값에 해당하는 펫의 전체 신체 사이즈 목록을 반환합니다.
URL
/medical/<user_pk>/pets/<pet_pk>/sizes/
Method
GET
Header
Headers Key | Headers Value | 설명 | Required |
---|---|---|---|
Authorization | Token 321*************************** | 로그인에서 획득한 Token값 입력 | False (입력하지 않으면 Anonymous user로 간주) |
Success Response
HTTP Status code
200
Content
{
"count": 2,
"next": null,
"previous": null,
"results": [
{
"pk": 1, # 신체 사이즈의 고유 pk
"goal_weight": 5, # 목표 체중(kg)
"current_weight": 6.6, # 현재 체중(kg)
"chest": 70, # 가슴둘레(cm)
"neck": 50, # 목둘레(cm)
"created_date": "2017-12-26" # 생성 날짜 (자동 생성)
},
{
"pk": 2,
"goal_weight": 5,
"current_weight": 6.3,
"chest": 71,
"neck": 53,
"created_date": "2017-12-26"
}
]
}
Error Response
HTTP Status code
404 Not Found
# pk값이 올바르지 않게 입력된 경우
{
"detail": "Not found."
}