Skip to content

Conversation

@mdorf
Copy link
Member

@mdorf mdorf commented Sep 10, 2025

Our current implementation of http.delete method only accepts a single path to delete and returns the raw HTTP response object:

delete /path/to/resource/:resource_id

The enhanced version is fully backwards compatible with the old format, but also adds the ability to call delete REST endpoints that accept multiple resources:

delete /path/to/resource?resource_ids=['resource1, 'resource2', 'resource3']

It also allows for an optional JSON response to be returned from the API to facilitate better error reporting.

Usage:

res = LinkedData::Client::HTTP.delete("/path/to/resource", { resource_ids: "[3,5,7]" }, parse: true)
my_var_from_resonse = res&.my_var

@alexskr alexskr merged commit 459e54d into master Nov 7, 2025
1 check passed
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

Successfully merging this pull request may close these issues.

3 participants