http_sandbox_viewer 0.1.1 copy "http_sandbox_viewer: ^0.1.1" to clipboard
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
  • ๐Ÿ“‹ 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 .pubignore to exclude development files from published package
    • Excluded development files: summary.txt, mise.toml, CLAUDE.md
    • Excluded build artifacts: build/ directory, *.iml files
    • Excluded platform-specific files: example/macos/ directory
    • Package size reduced: From 232KB to 68KB (70% reduction)

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
1
likes
150
points
28
downloads

Documentation

API reference

Publisher

verified publisherpregum-fox.com

Weekly Downloads

A Flutter package for debugging HTTP requests and responses with Swagger-like API definitions for Retrofit + Dio.

Repository (GitHub)
View/report issues

License

BSD-3-Clause (license)

Dependencies

dio, flutter, json_annotation, retrofit, shared_preferences, yaml

More

Packages that depend on http_sandbox_viewer