wvteijlingen / Spine

A Swift library for working with JSON:API APIs. It supports mapping to custom model classes, fetching, advanced querying, linking and persisting.
MIT License
264 stars 109 forks source link

Payload request similar to Ember! #172

Open sachin-sat opened 7 years ago

sachin-sat commented 7 years ago

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 commented 7 years ago

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