ABE-IPSABE HOLDINGABE BOOKS
English Polski
Dostęp on-line

Książki

0.00 PLN
Schowek (0) 
Schowek jest pusty
Pro Ember Data: Getting Ember Data to Work with Your API

Pro Ember Data: Getting Ember Data to Work with Your API

Autorzy
Wydawnictwo Springer, Berlin
Data wydania
Liczba stron 186
Forma publikacji książka w miękkiej oprawie
Język angielski
ISBN 9781484265604
Kategorie Programowanie sieci Web
Zapytaj o ten produkt
E-mail
Pytanie
 
Do schowka

Opis książki

Learn how to work with Ember Data efficiently, from APIs, adapters, and serializers to polymorphic relationships, using your existing JavaScript and Ember knowledge. This book will teach you how to adapt Ember Data to fit your custom API.

Have a custom API that you aren't sure how to use with Ember Data? Interested in writing your own adapter or serializer? Want to just know more about how Ember Data works? This is the Ember Data book you have been waiting for.

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. Well, if this sounds familiar, then this book is for you. 

What You'll Learn 

  • Review the differences between normalization and serialization
  • Understand how the built-in adapters and serializers in Ember Data work
  • Customize adapters and serializers to consume any API and write them from scratch
  • Handle API errors in Ember Data
  • Work with the Reddit API using Ember Data
  • Learn how to use polymorphic relationships

Who This Book Is For

Anyone with an interest in learning more about Ember Data and how to adapt it to any API. People who read this book should be familiar with the basics of Ember and JavaScript.

Pro Ember Data: Getting Ember Data to Work with Your API

Spis treści

  • Chapter 1 - Ember Data Overview
    • Architectural Overview
    • Model Attributes and Transforms
    • The API
    • Using the Store
    • Adapters
    • Relationships
  • Chapter 2 - Talking to APIs with Adapters
    • The RESTAdapter
    • The JSONAPIAdapter
    • The ActiveModelAdapter
    • Background Reloading
  • Chapter 3 - API Response Formats and Serializers
    • The Job of the Serializer
    • The JSONSerializer
    • The RESTSerializer
    • The JSONAPISerializer
    • The Base Serializer
    • Using a Serializer
  • Chapter 4 - Common Adapter and Serializer Customizations
    • Changing the RESTful URL 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
  • Chapter 5 - Writing an Adapter and Serializer from Scratch
    • Setup
    • Our Custom Adapter and Serializer
    • Finding All Records
    • Finding a Single Record
    • Revisiting normalizeResponse()
    • Creating Records
    • Updating a Record
    • Deleting a Record
  • Chapter 6 - Swapping the API with Local Storage
    • Implementing findAll()
    • Implementing findRecord()
    • Implementing createRecord()
    • Implementing updateRecord()
    • Implementing deleteRecord()
  • Chapter 7 - Nested Resource URL Paths and Relationship Links
    • How Relationship Links Work
    • When APIs Don't Return Relationship Links
  • Chapter 8 - Working with Nested Data and Embedded Records
    • Declaring Attributes Without Transforms
    • Embedded Records
  • Chapter 9 - Handling Custom Error Responses
    • Validation Errors
    • Controlling the Invalid Status Code
    • Controlling Error Response Payloads
    • Other Error Types
  • Chapter 10 - Testing Adapters and Serializers
    • Testing Adapters
    • Testing Serializers
    Chapter 11 - Common Customizations with JSON:API
    • Changing Attribute Casing
    • Overriding a Resource Object's Type
    • Overriding HTTP Methods
    Chapter 12 - Consuming the Reddit API
    • Setup
    • The Reddit APIs We Will Use
    • Fetching Posts in a Subreddit
    • Fetching a Subreddit's Details
  • Chapter 13 - Polymorphic Relationships 
    • Setup
    • What are Polymorphic Relationships?
    • How do Polymorphic Relationships Work?
    • Customizing Polymorphic Relationships

Polecamy również książki

Strony www Białystok Warszawa
801 777 223