Skip to content

v0.1.1 - Working Sample APIs

Latest

Choose a tag to compare

@Pregum Pregum released this 07 Jun 23:40
· 2 commits to release/0.1.1 since this release

๐ŸŽ‰ HTTP Sandbox Viewer v0.1.1

A production-ready Flutter package for debugging HTTP requests with working sample APIs and optimized package size.

๐Ÿ”ง Key Improvements

  • โœ… Working Sample APIs: All 5 sample APIs now use functional JSONPlaceholder endpoints
  • ๐Ÿ“ฆ Optimized Package: 70% size reduction (232KB โ†’ 68KB) with .pubignore optimizations
  • ๐Ÿšซ Zero 404 Errors: 16/16 unique API paths verified to return HTTP 200
  • ๐Ÿ“ฑ Enhanced UI: Improved center alignment in example applications

๐Ÿ› ๏ธ What's Fixed

API Endpoints

  • E-commerce API: Creative mapping using JSONPlaceholder (/posts โ†’ Products, /albums โ†’ Categories, /todos โ†’ Orders)
  • OpenAPI JSON/YAML: Converted from non-working PetStore/Books APIs to JSONPlaceholder format
  • All sample methods: jsonPlaceholder(), postsCrud(), usersCrud(), ecommerce(), socialMedia() fully functional

Package Optimization

  • Excluded development files: summary.txt, mise.toml, CLAUDE.md
  • Excluded build artifacts: build/ directory, *.iml files
  • Excluded platform files: example/macos/ directory
  • Result: Clean, production-ready 68KB package

๐Ÿš€ Ready for Production

  • โœ… Dry-run tests: Pass with 0 warnings
  • โœ… Static analysis: 147 lint warnings (prefer_const_constructors only - non-blocking)
  • โœ… Core functionality: All 5 package tests pass
  • โœ… Real API testing: All endpoints verified working

๐Ÿ“š Usage

dependencies:
  http_sandbox_viewer: ^0.1.1
// Setup Dio with interceptor
dio.interceptors.add(HttpSandboxInterceptor());

// Open dashboard with working sample APIs
Navigator.push(context, MaterialPageRoute(
  builder: (context) => HttpSandboxDashboard(
    apiDefinitions: SampleApiDefinitions.all(), // All 7 sample APIs
  ),
));

๐Ÿ”ฎ What's Next

This release provides a solid foundation with working APIs and optimized packaging. Future releases will focus on:

  • Retrofit integration for auto-generated API definitions
  • Advanced filtering and export features
  • Performance metrics and mock response capabilities

Full changelog: CHANGELOG.md
Ready to publish: flutter pub publish