API Testing Practice

Capybara Spa API

The chillest API on the internet. Practice your API testing skills while managing adorable capybaras at our luxurious spa resort.

Base URL:https://api.learnaqa.info
Capybara in sunglasses relaxing in a pool with a cocktail

Capybara Spa

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 --> angry
Feeding = happy
Swimming = relaxed
Friends = happy
Hunger = grumpy/angry

Most operations require a JWT token. Get it through registration and login.

Register

POST/api/auth/register

Login

POST/api/auth/login

Using the Token

Add the token to the Authorization header:

Error Codes

CodeDescription
200Success
201Created
400Bad Request
401Unauthorized
403Forbidden
404Not Found
409Conflict (e.g., friendship already exists)
422Validation Error
429Too Many Requests (cooldown)
500Internal 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.

Ready to Start Testing?

Open the Swagger documentation and start exploring the API!