Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update the Super Rentals Tutorial to use the Request Service #238

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

Baltazore
Copy link

Fixes #232

Brings updates to Chapter 11 of tutorial.

This change is needed to avoid confusion around model names.
Previosly JsonApiSerializer was singularizing type of every json-api
response object, so convention "model name should be singular always
was met.
In new world, we don't do automatic conversion of payloads and try to
have them as close as possible to network response. So if application
developers do not manually add singularization of json-api response
objects type - it will never happen. Therefore expected model name would
be plural, or in better words match type from payload.
Co-authored-by: Chris Thoburn <runspired@users.noreply.github.com>
Copy link
Member

@IgnaceMaes IgnaceMaes left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we include a paragraph on which versions the new request service has been available in Ember Data?

That seems useful for people coming back to the tutorial having previous experience with Ember Data.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Update the Super Rentals Tutorial to use the Request Service
4 participants