Skip to content
This repository has been archived by the owner on Jan 25, 2019. It is now read-only.

Payload request similar to Ember! #172

Open
sachin-sat opened this issue Mar 20, 2017 · 1 comment
Open

Payload request similar to Ember! #172

sachin-sat opened this issue Mar 20, 2017 · 1 comment

Comments

@sachin-sat
Copy link

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.

@sachin-sat
Copy link
Author

It's like making Query with also a payload. Possible?
Your help will be really appreciated!

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

No branches or pull requests

1 participant