katharsis-framework icon indicating copy to clipboard operation
katharsis-framework copied to clipboard

Add save/delete implementations for many resources

Open sormbrek opened this issue 7 years ago • 4 comments

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.

sormbrek avatar Jan 30 '18 21:01 sormbrek

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/.

adrim85 avatar Feb 02 '18 06:02 adrim85

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)

sormbrek avatar Feb 02 '18 20:02 sormbrek

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 https://github.com/crnk-project/crnk-framework/issues/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

Sandmania avatar Feb 03 '18 07:02 Sandmania

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

sormbrek avatar Feb 03 '18 08:02 sormbrek