Comments (4)
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.
@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.
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.
Alright, Thanks for the information :)
I'll close the ticket then.
from json-api.
Related Issues (20)
- consider support for implementation-specific members HOT 2
- JSON-LD integration example HOT 1
- Clarify intent of links member HOT 1
- How does one document a JSON:API HOT 4
- 1.1 spec disallows e.g. filter[author.name] HOT 4
- Inclusion of related resources for heterogeneous collections
- PrimaryResourceType not to be null at this point HOT 1
- Create/update relationships having attributes? HOT 3
- ember-data link on implementations page is broken HOT 2
- Extend Spec To Allow Creation of Multiple Resources in One API Call HOT 1
- Profiles should be allowed to define query parameters HOT 5
- JSONRenderer does not extract includes from PolymorphicModelSerializer properly HOT 1
- Version 1.1 is incomplete about where extension members are allowed.
- Suggestion: Add GitHub topics to help with discoverability
- Semantics of PATCHing attributes HOT 8
- Explain intent of local identifiers in a note in the spec
- https://jsonapi.org/schema#/definitions/failure 404 error HOT 3
- v1.1 docs mix location of "links" for GET vs POST HOT 1
- Bug: Update twitter icon from Bird to X
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from json-api.