0
세부 사항에서 다시 자원의 속성을 얻는 방법 :tastypie
이@localhost : 8000/API/V1/사용자//
1 제공합니다 :
{
"date_joined": "2013-08-28T04:20:36.704342",
"email": "[email protected]",
"first_name": "",
"id": 1,
"is_active": true,
"is_staff": true,
"is_superuser": true,
"last_login": "2013-08-29T01:18:07.163345",
"last_name": "",
"password": "pbkdf2_sha256$10000$EVKt9xEHWSaD$S/ipn3mqoSMBjo98D9wconcloape1eFvsu9mVoIm+KA=",
"resource_uri": "/api/v1/user/1/",
"username": "admin"
}
을 지금 얻을 싶다면 onlyname 어떻게 나는 맛있는 파이에서 그것을 할 수 있냐?
내가 첫 번째 이름 만보고 싶다면 URL은 무엇이되어야합니다. coz 나는 또한이 기능을 유지하고 싶다. – shifu
그래서 "dehydrate()"메소드에서이 작업을 수행 할 수 있습니다. – Denis