Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

delete-rendition #326

Merged
merged 1 commit into from
Jul 1, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions src/cral/api/core/renditions.clj
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,18 @@
{:query-params nil}
opts)))

(defn delete-rendition
"Delete the rendition identified by `rendition-id` of `node-id`.
If the rendition is successfully deleted then the content for that rendition node will be cleared.\\
More info [here](https://api-explorer.alfresco.com/api-explorer/?urls.primaryName=Core%20API#/renditions)."
[^Ticket ticket ^String node-id ^String rendition-id & [^PersistentHashMap opts]]
(utils/call-rest
client/delete
(format "%s/nodes/%s/renditions/%s" (config/get-url 'core) node-id rendition-id)
ticket
nil
opts))

(defn get-rendition-content
"Gets the rendition content for `rendition-id` of file `node-id`.\\
More info [here](https://api-explorer.alfresco.com/api-explorer/?urls.primaryName=Core%20API#/renditions/getRenditionContent)."
Expand Down