Table of Contents
Our ACTemo's API Server is designed to provide emotion information and emotion script data through a convenient API. It's built using Java Spring and deployed on Google Compute Engine.
Below, you'll find details on how to interact with these APIs to retrieve emotion and script information.
| ID | URL | METHOD |
|---|---|---|
| BA01-1 | /script/{emotion} | GET |
This API retrieves emotion information for a specific emotion. Here, emotion can be one of the following:
'Angry', 'Distressed', 'Content', 'Happy', 'Excited', 'Joyous', 'Depressed', 'Sad', 'Bored', 'Calm', 'Relaxed', 'Sleepy', 'Afraid', 'Surprised'
The JSON response includes the following fields:
id: Unique identifier for the emotionemotion: The emotion itselfemoji: Emoji representing the emotioncategory: Category of the emotionimagePath: Path to the image representing the emotiondefinition: Definition of the emotionexample: Example illustrating the emotion
Note
Don't forget to include the user token or ID in the Authorization header for authentication purposes!
| ID | URL | METHOD |
|---|---|---|
| BA02-1 | /scene/{emotion} | GET |
This API retrieves script information for a specific emotion. Here, emotion can be one of the following:
'Angry', 'Distressed', 'Content', 'Happy', 'Excited', 'Joyous', 'Depressed', 'Sad', 'Bored', 'Calm', 'Relaxed', 'Sleepy', 'Afraid', 'Surprised'
The JSON response includes the following fields:
id: Unique identifier for the scriptemotion: Emotion associated with the scriptname: Name of the scriptsituation: Situation of the scriptdialogue: List of dialogues, where each dialogue contains the following keys:name: Name associated with the dialoguemessage: Message of the dialogue
| ID | URL | METHOD |
|---|---|---|
| BA02-2 | /user-scene/{scene_id} | POST |
This endpoint marks a script practice as completed for a specific Scene id.
- “success”
If you want to explore other parts of the project, feel free to navigate to:
- Overall Project Repository: For the complete project repository, including all parts, visit the GitHub repository.
- Frontend Development: Explore the frontend development aspects of the project, including UI design and user interaction, implemented using Flutter.
- Machine Learning Server Development: Explore the model development aspects of the project, including instructions on how to run the server using Docker and making your very own request to our API server.
