Curpare is a powerful tool designed to compare the return values, status codes, and bodies of JSON APIs seamlessly. It leverages git-delta to present the output in a clear and user-friendly manner. With Curpare, you can define multiple API endpoints to compare, utilize environment variables, and specify various options for each comparison.
- Flexible TOML Configuration: Define as many API links as you wish in a TOML format. Each comparison can be customized with specific options.
- Caching System: Caching System: Cache the API calls by caching them to avoid unnecessary API calls. You can utilize the cache system to compare the same API by caching a call and checking it against a live version of the same API. This will make sure you can focus on making progress while having a backup test to see the changes in seconds.
- Multiple Cache Versions: Each cached response is stored in its own JSON file within the cache directory, enabling you to maintain multiple versions of the same API for comparison.
- Ignore Lines: Specify lines to ignore during comparisons, making it easier to focus on relevant differences.
- Environment Variables: Use environment variables in your TOML configuration for dynamic URL resolution.