この質問の続きとして、新しい User と UserProfile を同時に作成するための有効な入力 json の例を教えてください。
これにより、ユーザーエンドポイントに新しいユーザーが正常に作成されます。
{
"username": "newuser",
"password": "abc"
}
しかし、これはUserProfileエンドポイントで失敗します:
{
"user":{
"username": "newuser2",
"password": "abc"
}
"biography": "1",
}
戻る:
{
"user": [
"This field cannot be null."
]
}