Assume you're developing an XKCD comic browser on Android. The API offers two endpoints:
- info.0.json, which retrieves the JSON describing the current comic,
- {comicNumber}/info.0.json retrieves the JSON describing a specific comic.
There are numerous ways to access the above endpoints: either with libraries such as Retrofit, Volley, Ion, or manually, using e.g. HttpURLConnection
and AsyncTasks, Services, Loaders or other building blocks offered by the SDK.
With constant improvements, best practices and new libraries, it's good to not be tied to a particular implementation