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

Add save/delete implementations for many resources #456

Open
sormbrek opened this issue Jan 30, 2018 · 4 comments
Open

Add save/delete implementations for many resources #456

sormbrek opened this issue Jan 30, 2018 · 4 comments

Comments

@sormbrek
Copy link

sormbrek commented Jan 30, 2018

I'd like to ask if it would be possible to add support for save (create and update) and delete of lists of resources. Currently, these bulk modifications are the only thing we have to build by ourselves outside of Katharsis.

i.e. create, update, or delete multiple employees in one API call.

@adrim85
Copy link

adrim85 commented Feb 2, 2018

I don't think anybody will answer here anymore and people move on to crnk.io and other jsonapi libraries like elide. in crnk this functionality is called "operations" api and makes use of standard http://jsonpatch.com/.

@sormbrek
Copy link
Author

sormbrek commented Feb 2, 2018

Does crnk fork from Katharsis and include all the functionality?
Would we be able to easily do Bulk POST, Bulk Patch, Bulk Delete (of same resource type) with crnk? (if yes, how do we do that? I didn't see any example in the documentation)

@Sandmania
Copy link
Contributor

Sandmania commented Feb 3, 2018

Crnk is a fork from Katharsis. Migration to Crnk 2.x is pretty easy, but some classes you know from Katharsis are deprecated and will most likely be removed in Crnk 3.x. See crnk-project/crnk-framework#207 The functionality will still be there, though.

Crnk provides bulk support with its Operations Module. See http://www.crnk.io/documentation/#_operations_module
and
https://github.com/crnk-project/crnk-framework/blob/master/crnk-operations/src/test/java/io/crnk/operations/OperationsPostTest.java

@sormbrek
Copy link
Author

sormbrek commented Feb 3, 2018

Thanks for the info. Looks like we'll migrate to crnk then.

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

No branches or pull requests

3 participants