© The Author(s), under exclusive license to APress Media, LLC , part of Springer Nature 2021
D. TangPro Ember Datahttps://doi.org/10.1007/978-1-4842-6561-1_2

2. Talking to APIs with Adapters

David Tang1  
(1)
Playa Vista, CA, USA
 

In the previous chapter, we looked at the architecture of Ember Data. We briefly discussed the role of the adapter and how it is responsible for figuring out how to make requests to an API. In this chapter, we’ll look at the adapter and see how it works so that we can customize them in future chapters.

The adapter is responsible for figuring out how to make requests to an API. This includes determining the full URL based upon the model name and making the HTTP request using AJAX technologies like $.ajax, fetch, or XMLHttpRequest ...

Get Pro Ember Data: Getting Ember Data to Work with Your API now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.