GithubHelp home page GithubHelp logo

Comments (4)

jelhan avatar jelhan commented on June 11, 2024

Glad to hear that JSON:API serves you well so far.

Deleting multiple resources ok a single request is not supported by base specification. But it can be implemented using an extension for sure. Both with and without atomic guarantee.

I'm not aware of any existing extension, which supports bulk deletion beside the Atomic Operations extension. You would likely need to write your own extension.

In general, performing multiple operations in a single request is done due to atomic requirement. Otherwise people often use multiple, parallel requests instead.

Why is using multiple delete requests, one per resource, not possible for you? Do you fear overhead of individual requests or running into API rate limits due to number of resources?

from json-api.

feddevanderlist avatar feddevanderlist commented on June 11, 2024

@jelhan Firstly thanks for the response.
It's what I found that there was no extension without atomic at this moment.
For the current call we are afraid of overhead mostly in user (angular) space with every request needing to be sent. From the user to us and back. And then us compiling it all together to 1 single response. (which is logic we'd prefer to have in the api) or bff.
Functionally it's just not possible to use the atomic function. It might sound like a weird functional requirement. But it's one of those things we just need :)

We have internally been talking about solutions and were looking if there was any chance a bulk delete would come back in the spec. Or if an extension exists.

from json-api.

jelhan avatar jelhan commented on June 11, 2024

I feel it's unlikely that bulk deletion support will be added to the base specification. Especially without being atomic. That sounds like an edge case to me.

I would recommend defining an extension yourself for this use case.

from json-api.

feddevanderlist avatar feddevanderlist commented on June 11, 2024

Alright, Thanks for the information :)
I'll close the ticket then.

from json-api.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.