Base URL: http://localhost:8080
Authorization: Bearer your_jwt_token
Register new user
{ "email": "user@example.com", "password": "password123", "username": "username123" }
Login user
{ "email": "user@example.com", "password": "password123" }
Get user profile (Protected)
Update user profile (Protected)
{ "full_name": "Full Name", "role": "Pet Owner", "location": "City", "bio": "About me" }
Get all stories
Create new story (Protected)
Get all modules
Get module details
Send message to PurrPal AI (Protected)
{ "message": "Kucing saya tidak mau makan, apa yang harus saya lakukan?" }
Get conversation history (Protected)
Clear conversation history (Protected)
Check chatbot health status
Predict cat disease based on symptoms questionnaire (Protected)
{ "cat_info": { "name": "Fluffy", "age": "2 tahun", "gender": "female", "weight": 4.5, "body_temperature": 39.0, "duration_days": 5, "heart_rate": 130 }, "questionnaire": { "cough": true, "breathingDifficulty": false, "fever": true, "discomfort": true, "appetiteLoss": true, "weightLoss": false, "vomiting": false, "diarrhea": false } }
Check AI services health status
Get information about available AI services
AI image detection (Coming Soon)
{ "image_url": "url_to_image" }