Ember Data in the Wild
Ember Data in the Wild
$15.00
Minimum price
$20.00
Suggested price
Ember Data in the Wild

This book is 100% complete

Completed on 2019-04-12

About the Book

Lots of books and tutorials start off teaching Ember with Ember Data. This is great, especially if you are in control of your API, but what if you aren't? You do a little research and start seeing terminology like adapters, serializers, transforms, and snapshots and quickly become overwhelmed. Maybe you've thought to yourself that Ember isn't for you. This was me when I first started with Ember. I wasn't in control of the APIs for my project. Well, if this sounds familiar, then this book is for you. My goal with this book is to teach you how to adapt Ember Data to fit your custom API. This books targets both Ember Data 2 and 3.

About the Author

David Tang
David Tang

David is a UI Architect at Verizon Digital Media Services. He is passionate about testing and EmberJS. He is also a part-time lecturer at the University of Southern California (USC) where he enjoys teaching web development to students from all backgrounds. You can read more from him at his blog https://davidtang.io.

Bundles that include this book

Front-end revolution with Ember.js
Ember Data in the Wild
$33.90
Suggested Price
$21.00
Bundle Price

Table of Contents

  • Chapter 1 - Welcome
    • Why I Wrote This Book?
    • My Promise
    • Is This Book For Me?
    • Ember Data Snippets for Atom
    • Conventions
    • Errata
    • Get in Touch
  • Chapter 2 - Ember Data Overview
    • Architectural Overview
    • Model Attributes and Transforms
    • Using the Store
    • Adapters
    • Relationships
    • Summary
  • Chapter 3 - Talking to APIs with Adapters
    • The REST Adapter
    • The JSON:API Adapter
    • The Active Model Adapter
    • Background Reloading
    • Summary
  • Chapter 4 - API Response Formats and Serializers
    • The Job of the Serializer
    • The JSON Serializer Format
    • The REST Serializer Format
    • The JSON:API Serializer Format
    • The Base Serializer
    • Using a Serializer
    • Summary
  • Chapter 5 - Common Adapter and Serializer Customizations
    • Changing the RESTful Path
    • Changing the URL for Certain Operations
    • Mapping Differently Named Payload Keys to Model Attributes
    • Mapping Foreign Keys to Relationships
    • Setting the Primary Key
    • Normalizing Responses
    • Normalizing Responses by Store Call
    • Normalizing Single Resource Objects
    • Summary
  • Chapter 6 - Writing Adapters and Serializers from Scratch
    • Setup
    • Finding All Records
    • Finding a Single Record
    • Creating Records
    • Updating a Record
    • Deleting a Record
    • Writing a Local Storage Adapter
    • Summary
  • Chapter 7 - Nested Resource Paths and Relationship Links
  • Chapter 8 - Working with Nested Data and Embedded Records
    • Declaring Attributes Without Transforms
    • Embedded Records
    • Summary
  • Chapter 9 - Handling Custom Error Responses
    • Validation Errors
    • Controlling the Invalid Status Code
    • Controlling Error Response Payloads
    • Adapter Errors
    • Summary
  • Chapter 10 - Testing Adapters and Serializers
    • Testing Adapters
    • Testing Serializers
    • Summary
  • Chapter 11 - Common Customizations with JSON:API
    • Changing Attribute Casing
    • Overriding a Resource Object’s Type
    • Overriding HTTP Methods
    • Summary
  • Chapter 12 - Goodbye

Authors have earned$8,086,174writing, publishing and selling on Leanpub,
earning 80% royalties while saving up to 25 million pounds of CO2 and up to 46,000 trees.

Learn more about writing on Leanpub

The Leanpub 45-day 100% Happiness Guarantee

Within 45 days of purchase you can get a 100% refund on any Leanpub purchase, in two clicks.

See full terms

Free Updates. Free App. DRM Free.

If you buy a Leanpub book, you get free updates for as long as the author updates the book! Many authors use Leanpub to publish their books in-progress, while they are writing them. All readers get free updates, regardless of when they bought the book or how much they paid (including free).

Most Leanpub books are available in PDF (for computers), EPUB (for phones and tablets), MOBI (for Kindle) and in the free Leanpub App (for Mac, Windows, iOS and Android). The formats that a book includes are shown at the top right corner of this page.

Finally, Leanpub books don't have any DRM copy-protection nonsense, so you can easily read them on any supported device.

Learn more about Leanpub's ebook formats and where to read them

Write and Publish on Leanpub

You can use Leanpub to easily write, publish and sell in-progress and completed ebooks and online courses! Leanpub is a powerful platform for serious authors, combining a simple, elegant writing and publishing workflow with a store focused on selling in-progress ebooks. Leanpub is a magical typewriter for authors: just write in plain text, and to publish your ebook, just click a button. It really is that easy.

Learn more about writing on Leanpub