katharsis-project / katharsis-framework

Katharsis adds powerful layer for RESTful endpoints providing implementenation of JSON:API standard
http://katharsis.io
Apache License 2.0
135 stars 65 forks source link

Add save/delete implementations for many resources #456

Open sormbrek opened 6 years ago

sormbrek commented 6 years ago

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

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

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

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

sormbrek commented 6 years ago

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