Swapping the API with Local Storage

David Tang · Apress eBooks · 2020

We now know how to write an adapter and serializer from scratch as we learned in the last chapter. Imagine we’ve been tasked with swapping our backend to Local Storage. We know that adapters are responsible for figuring out how to talk to a backend via a RESTful API. They figure out how to retrieve data and where to send data for storage. In this chapter, we will swap out our custom RESTAdapter with our own Local Storage adapter, and our application should continue to work seamlessly.

Read the paper · More papers on PaperTik