Skip to content

Commit

Permalink
Merge pull request #294 from saidone75/dev
Browse files Browse the repository at this point in the history
get-rendition-info
saidone75 authored Jun 9, 2024
2 parents 123cb36 + 5c581d1 commit 04d93dc
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/cral/api/core/renditions.clj
Original file line number Diff line number Diff line change
@@ -72,4 +72,15 @@
(format "%s/nodes/%s/renditions" (config/get-url 'core) node-id)
ticket
{:query-params query-params}
opts)))

(defn get-rendition-info
"Gets the rendition information for `rendition-id` of file `node-id`.\\
More info [here](https://api-explorer.alfresco.com/api-explorer/?urls.primaryName=Core%20API#/renditions/getRendition)."
([^Ticket ticket ^String node-id ^String rendition-id & [^PersistentHashMap opts]]
(utils/call-rest
client/get
(format "%s/nodes/%s/renditions/%s" (config/get-url 'core) node-id rendition-id)
ticket
{:query-params nil}
opts)))

0 comments on commit 04d93dc

Please sign in to comment.