Ember Data in the Wild
Ember Data in the Wild
Minimum price
Suggested price
Ember Data in the Wild

This book is 100% complete

Completed on 2018-11-23

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://thejsguy.com.

Bundles that include this book

Front-end revolution with Ember.js
Ember Data in the Wild
2 Books
Suggested Price
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

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...

Write and Publish on Leanpub

Authors, publishers and universities use Leanpub to publish amazing in-progress and completed books and courses, just like this one. You can use Leanpub to write, publish and sell your book or course as well! 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