http_sandbox_viewer 0.1.1
http_sandbox_viewer: ^0.1.1 copied to clipboard
A Flutter package for debugging HTTP requests and responses with Swagger-like API definitions for Retrofit + Dio.
Changelog #
All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
0.1.1 - 2025-06-08 #
Fixed #
- ๐ง Working API URLs: Updated all sample APIs to use functional JSONPlaceholder endpoints exclusively
- E-commerce API: Now uses
/posts(Products),/albums(Categories),/todos(Orders),/comments(Reviews) - OpenAPI JSON spec: Converted from PetStore to JSONPlaceholder API format
- YAML spec: Converted from Books API to JSONPlaceholder API format
- All 5 sample APIs (jsonPlaceholder, postsCrud, usersCrud, ecommerce, socialMedia) now use working endpoints
- E-commerce API: Now uses
- ๐ Sample API Improvements: Eliminated all 404 errors - 16/16 unique paths now return HTTP 200
- ๐งช Test Updates: Updated test URLs to match working endpoints
- ๐ฑ UI Fixes: Improved center alignment in example applications
Added #
- ๐ฆ Package Optimization: Added
.pubignoreto exclude development files from published package- Excluded development files:
summary.txt,mise.toml,CLAUDE.md - Excluded build artifacts:
build/directory,*.imlfiles - Excluded platform-specific files:
example/macos/directory - Package size reduced: From 232KB to 68KB (70% reduction)
- Excluded development files:
Technical Details #
- 16 unique API paths tested: All return valid responses from JSONPlaceholder
- Zero 404 errors: Complete elimination of non-functional sample endpoints
- Unified base URL: All sample APIs use
https://jsonplaceholder.typicode.com - Enhanced ecommerce() API: Creative mapping of JSONPlaceholder resources to e-commerce concepts
- Optimized package: Clean, production-ready package with minimal size
Known Issues #
- โ ๏ธ Test Coverage: Some widget tests need adjustment for UI edge cases (non-blocking)
- ๐ Concurrent Request Tests: Minor timing issues in concurrent request tests (functionality works correctly)
These issues don't affect the core functionality and will be addressed in future releases.
0.1.0 - 2025-06-07 #
Added #
- ๐ Initial Release - HTTP Sandbox Viewer for debugging HTTP requests and responses
- ๐ Visual Dashboard with tab navigation (History + API Definitions)
- ๐ Request/Response Inspection with detailed view and JSON formatting
- ๐ Request Re-execution with parameter modification
- ๐ cURL Export functionality for CLI usage
- ๐พ Persistent Storage using SharedPreferences
- ๐จ Status Code Highlighting with color-coded indicators
- โฑ๏ธ Timestamp Tracking with relative time display
API Definitions System #
- ๐ Swagger-like API Definitions for pre-defined endpoint testing
- ๐๏ธ SimpleApiBuilder - Fluent API builder with 70% code reduction
- ๐ CRUD Builder - One-line CRUD API generation
- ๐ฏ Pre-built Samples - Ready-to-use API definitions
- JSONPlaceholder API
- E-commerce API (products, orders, cart, user management)
- Social Media API (posts, likes, follows, comments)
- ๐ Dynamic Parameter Forms for all parameter types (path, query, header, body)
- ๐ Form/Raw JSON Toggle for request body editing
- ๐ท๏ธ Tag-based Filtering and search functionality
- โ Real-time Validation with type checking
Smart Features #
- ๐ค Auto-detection of path parameters from
{param}syntax - ๐ง Type Inference for common parameter names (id โ int, limit โ int)
- ๐ฏ Default Values for common parameters (_limit: 10, _offset: 0)
- ๐ Parameter Validation based on data types
Developer Experience #
- ๐ Comprehensive Documentation with examples
- ๐ฎ Interactive Examples with working code
- ๐ง Easy Integration with existing Dio setup
- ๐จ Beautiful UI with Material Design
- ๐ฑ Responsive Layout for different screen sizes
Foundation for Future Features #
- ๐๏ธ Retrofit Inspector foundation for auto-generation
- ๐ Annotation System for future Retrofit integration
- ๐ Extensible Architecture for additional HTTP clients
[Unreleased] #
Planned Features #
- Retrofit Integration: Auto-generate API definitions from Retrofit services
- OpenAPI Support: Import from Swagger/OpenAPI specifications
- Export Features: Save to Postman collections, HAR files
- Advanced Filtering: Complex search and filter options
- Performance Metrics: Network timing and performance analysis
- Mock Responses: Built-in response mocking for development