This repository features a very simple Android application that makes HTTP requests to a mock API server. This is part of the interview process @Button.
- The empty response at the
GET /user/:id/transfers
was intentional. Normally, for such an endpoint, the client can expect to receive an empty array[]
for nonexistent data. However, this specific endpoint was returning nothing (besides a status code) if noTransfer
s were found for the specific user. - The
id
in theTransfer
JSON object was the ID of theUser
who was initiating theTransfer
. Because of the assumption, I incorrectly designed the app so that the button to add aTransfer
shows up in theUser
specific page. - The
User
object will be lightweight. At least in the context of this challenge, theUser
object is lightweight enought that I am "parceling" toUserActivity
. I did so because hitting theGET /user/:id
would be more expensive (in scale) than simply parceling the object between Activities.
You can download the APK for this application from the releases page.
You may also clone this repository and recompile the application from your local machine. Should you run into any issues, please make sure you have Java 8 installed as the source code was written an compiled in 1.8.
git clone https://github.com/najmsheikh/button-challenge.git