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 API docs on the JSONAPISerializer #4653

Merged
merged 1 commit into from
Nov 21, 2016

Conversation

bmac
Copy link
Member

@bmac bmac commented Nov 14, 2016

No description provided.

Dasherizes and singularizes the model name in the payload to match
the format Ember Data uses internally for the model name.

For Example: `posts` => `post`, `studentAssesments` =>
Copy link
Contributor

Choose a reason for hiding this comment

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

I believe yuidoc has an @example metatag, can you confirm?

Copy link
Contributor

Choose a reason for hiding this comment

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

Actually, that might not makes much sense. Could you instead write it out in prose? the => is a bit confusing as it's also the syntax for arrow functions.

@@ -401,6 +390,11 @@ const JSONAPISerializer = JSONSerializer.extend({
},

/**
Converts the model name to a pluralized version of the model name.

For Example: `post` => `posts`, `student-assesment` =>
Copy link
Contributor

Choose a reason for hiding this comment

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

See above.

@bmac bmac merged commit d400a52 into emberjs:master Nov 21, 2016
@bmac bmac deleted the doc-json-api-serializer branch November 21, 2016 13:33
@runspired runspired added 🏷️ doc This PR adds/improves/or fixes documentation and removed Documentation labels Sep 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🏷️ doc This PR adds/improves/or fixes documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants