5+
API Sections
20+
Endpoints
7
Mood States
4
Challenges
Mood State Machine
Capybaras have moods that change based on activities:
chill --> happy --> relaxed --> sleepy
|
v
hungry --> grumpy --> angryFeeding = happy
Swimming = relaxed
Friends = happy
Hunger = grumpy/angry
Most operations require a JWT token. Get it through registration and login.
Register
POST
/api/auth/registerLogin
POST
/api/auth/loginUsing the Token
Add the token to the Authorization header:
Error Codes
| Code | Description |
|---|---|
| 200 | Success |
| 201 | Created |
| 400 | Bad Request |
| 401 | Unauthorized |
| 403 | Forbidden |
| 404 | Not Found |
| 409 | Conflict (e.g., friendship already exists) |
| 422 | Validation Error |
| 429 | Too Many Requests (cooldown) |
| 500 | Internal Server Error |
Testing Tips
1. Start with Auth
Create a user and get a token before testing protected endpoints.
2. Multiple Capybaras
Create at least two capybaras to test friendship functionality.
3. Boundary Values
Test empty strings, long names, special characters.
4. Access Rights
Try to modify someone else's capybara.
5. Business Rules
Test feeding cooldown, pool capacity limits.
6. Negative Scenarios
Test invalid UUIDs, non-existent IDs.
