mobile_api 0.0.11+18 copy "mobile_api: ^0.0.11+18" to clipboard
mobile_api: ^0.0.11+18 copied to clipboard

Typed REST and GraphQL API helpers for Flutter apps, with token refresh, secure cache storage, multipart uploads, and network checks.

0.0.11+18 #

  • Added per-request headers to typed REST and multipart requests, preserving them across token refresh retries.
  • Added JSON request bodies for DELETE requests while keeping bodyless DELETE support.
  • Added baseMethodJson and JsonValueDecoder<T> for typed top-level JSON objects, arrays, and scalar values.
  • Routed multipart requests through the configured HTTP client for injectable testing and refresh retries.

0.0.10+17 #

  • Added CursorPage<T> for reusable GraphQL cursor pagination payloads.
  • Added IGraphQl.queryCursorPage for decoding page items with pageInfo.hasNextPage and nullable pageInfo.endCursor.
  • Added configurable PageFieldKeys.endCursorKey while keeping existing list query behavior unchanged.

0.0.9+16 #

  • Added generic refresh-token support for custom token models extending IBOAuth2Token.
  • Added configurable refresh request body and refresh response parser hooks.
  • Scoped refresh concurrency per client instance.

0.0.8+15 #

  • Treated all REST 2xx HTTP status codes as successful responses.
  • Added emptySuccessBuilder for mapping 204 and other empty success responses.
  • Exposed REST success status codes through Success.statusCode.

0.0.7+14 #

  • Added unified ApiConfig.headers support for REST and GraphQL clients.
  • Replaced separate marketplace, user-agent, default-language, and custom-header configuration fields with headers.

0.0.6+13 #

  • Added InMemoryCacheRepo, a Map-backed ICacheRepo for injecting tokens in tests without FlutterSecureStorage.

0.0.5+12 #

  • Improved pub.dev scoring metadata and API documentation.
  • Added a package example for REST, GraphQL, and cache setup.
  • Updated dependency constraints for latest supported package versions.
  • Removed an unnecessary direct http_parser dependency.

0.0.4+11 #

  • Removed hard-coded token fallbacks from REST and GraphQL clients.
  • Made bad-certificate handling opt-in and scoped to the package HTTP clients.
  • Added injectable HTTP and secure-storage clients for deterministic tests.
  • Hardened HTTP URI handling and GraphQL error mapping.
  • Replaced live endpoint tests with mocked client tests.
  • Updated README usage examples.

0.0.1 #

  • Initial package release.
1
likes
160
points
39
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

Typed REST and GraphQL API helpers for Flutter apps, with token refresh, secure cache storage, multipart uploads, and network checks.

Homepage
Repository (GitHub)
View/report issues

License

MIT (license)

Dependencies

connectivity_plus, flutter, flutter_secure_storage, fresh_graphql, graphql, http

More

Packages that depend on mobile_api