Quantcast
Channel: Ember.JS - Latest topics
Viewing all articles
Browse latest Browse all 4839

How to determine if POST or PATCH in Serializer

$
0
0

@larryh wrote:

I have a User model and a serializer for it. I’d like to be able to determine if I am dealing with a new user (i.e. POST) or an existing one (i.e. PATCH). The reason is because there is an attribute (currentPassword) that I’d like to yank out for a new user before sending the attributes to the server.

This seems like it should be simple, but I’ve googled and checked the API docs for DS.JSONAPISerializer and can’t see how to make this determination.

Posts: 2

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 4839

Trending Articles