Sandwich is an adaptable and lightweight sealed API library designed for handling API responses and exceptions in Android for Retrofit, and Kotlin Multiplatform for Ktor, and Ktorfit. Sandwich was conceived to streamline the creation of standardized interfaces to model responses from Retrofit, Ktor, and whatever. This library empowers you to handle body data, errors, and exceptional cases more succinctly, utilizing functional operators within a multi-layer architecture. With Sandwich, the need to create wrapper classes like Resource or Result is eliminated, allowing you to concentrate on your core business logic. Sandwich boasts features such as global response handling, Mapper, Operator, and exceptional compatibility, including ApiResponse With Coroutines.

Features

  • The specific rules are already bundled into the JAR which can be interpreted by R8 automatically
  • Documentation available
  • ApiResponse serves as an interface designed to create consistent responses from API or I/O calls
  • Depending on your model designs, you can also utilize tag property
  • Licensed under the Apache License

Project Samples

Project Activity

See All Activity >

Categories

Libraries

License

Apache License V2.0

Follow Sandwich

Sandwich Web Site

Other Useful Business Software
Our Free Plans just got better! | Auth0 Icon
Our Free Plans just got better! | Auth0

With up to 25k MAUs and unlimited Okta connections, our Free Plan lets you focus on what you do best—building great apps.

You asked, we delivered! Auth0 is excited to expand our Free and Paid plans to include more options so you can focus on building, deploying, and scaling applications without having to worry about your security. Auth0 now, thank yourself later.
Try free now
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of Sandwich!

Additional Project Details

Operating Systems

Android

Programming Language

Kotlin

Related Categories

Kotlin Libraries

Registered

2024-01-29