What problem does it solve?
Manually testing authenticated API endpoints can be cumbersome, especially with JWT tokens and complex request bodies. This skill streamlines the process of testing ActionPhase backend routes, ensuring correct functionality, proper authentication, and accurate data handling, saving developers time and reducing errors.
Core Features & Use Cases
- Automated Authentication: Uses
api-test.sh to handle JWT login and token management for seamless testing.
- Comprehensive API Testing: Provides patterns for GET, POST, PUT, and DELETE requests, including query parameters and JSON bodies.
- Debugging & Verification: Guides on debugging common HTTP errors (401, 403, 404, 500) and verifying database changes.
- Use Case: When developing a new API endpoint, use this skill to quickly log in as a test user, send authenticated
curl requests with the correct data, and verify the API's response and any resulting database changes, ensuring the endpoint works as expected before frontend integration.
Quick Start
Ask for the command to log in as a test player and list all games.