API Route Tester
Tests authenticated API routes in a microservices project using cookie-based JWTs, a helper script, and mock authentication patterns.
Provides comprehensive patterns for testing authenticated API endpoints within a project architecture that uses Keycloak and cookie-based JWTs. This skill equips developers to validate new routes, debug authentication issues, and verify data integrity after POST, PUT, or DELETE operations. It offers multiple testing methods, from a fully automated script that handles token generation to a simplified mock authentication system for local development, complete with debugging guides for common HTTP errors.
주요 기능
01Includes detailed patterns for testing various request types, including JSON payloads, query parameters, and file uploads.
02Offers troubleshooting guides for common HTTP error codes like 401 Unauthorized, 403 Forbidden, and 404 Not Found.
03Automates token generation and request signing with a dedicated `test-auth-route.js` script.
04Generates reproducible `curl` commands for easy manual testing and debugging.
051 GitHub stars
06Provides a mock authentication system using request headers to bypass Keycloak during local development.
사용 사례
01Validating new or modified API endpoints to ensure functionality and security.
02Debugging authentication and authorization issues in a microservices environment.
03Performing integration tests by verifying API responses and subsequent database changes.