Authentication: JWT / Session (required for CharacterViewSet)
BaseURL '/character/'
Endpoint: character/characters/
ViewSet: CharacterViewSet
/character/characters/change_active_character/{ "character_id": 2 }
{
"message": "Alice is now your active character.",
"character_id": 2,
"character_name": "Alice"
}
/character/characters/get_all_characters/[
{ "id": 1, "name": "Alice", "description": "Friendly character" },
{ "id": 2, "name": "Bob", "description": "Rival character" }
]
/character/characters/choose_character/{ "character_id": 3 }
{ "message": "you choose character." }
Endpoint: /Triggers/
ViewSet: TriggerViewSet
/character/Triggers/seed_from_json/character/triggers.json.{
"created": ["Exam_Failed", "Gift_Received"],
"skipped": ["Homework_Completed"]
}
Endpoint: character/Emotion/
ViewSet: EmotionViewSet
/character/Emotion/seed_from_json/character/emotions.json.{
"created": ["Happy", "Sad"],
"skipped": ["Angry"]
}
Endpoint: /chaarcter/CharacterDB/
ViewSet: CharacterSaveViewSet
/character/CharacterDB/seed_from_json/character/characters.json.{
"created": ["Alice", "Bob"],
"skipped": ["Charlie"]
}
Endpoint: /character/Reaction/
ViewSet: ReactionViewSet
/character/Reaction/seed_from_json/character/reactions.json.{
"created": [
"Alice encourages you to try again!",
"Bob mocks your failure."
]
}