Pro Ember Data: Getting Ember Data to Work with Your API
31.88 CHF
Versandkostenfreie Lieferung!
Lieferzeit: 7-14 Werktage
- Artikel-Nr.: 10487043
Beschreibung
- 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 Serializers
- Changing Attribute Casing Overriding a Resource Object's Type
- Overriding HTTP Methods
- 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
- Testing Adapters
Eigenschaften
Bewertung
Bewertungen werden nach Überprüfung freigeschaltet.
Zuletzt angesehen