I would like to upload a payload to the server like ember does for the calls(it's actually with payload).
I have a model named Actions. it's move action for my resource.
I would like POST an attribute of the object "resourceIds".
Also i have to pass 'move' as ID. Since i'm sending Id, the PATCH operation get executed.
also, URL gets collapsed like this
while saving that object
www.example.com/actions/move
but i want this to be my URL
www.example.com/actions
with my object(where id is 'move' in the payload).
I would like to upload a payload to the server like ember does for the calls(it's actually with payload).
I have a model named Actions. it's move action for my resource. I would like POST an attribute of the object "resourceIds". Also i have to pass 'move' as ID. Since i'm sending Id, the PATCH operation get executed. also, URL gets collapsed like this
while saving that object
www.example.com/actions/move
but i want this to be my URL
www.example.com/actions
with my object(where id is 'move' in the payload).Thanks in advance.