Skip to content

Commit

Permalink
Merge pull request #320 from saidone75/dev
Browse files Browse the repository at this point in the history
get-version-rendition-info
  • Loading branch information
saidone75 authored Jun 24, 2024
2 parents d82bc70 + d7aad29 commit cc92180
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion src/cral/api/core/versions.clj
Original file line number Diff line number Diff line change
Expand Up @@ -147,4 +147,15 @@
(format "%s/nodes/%s/versions/%s/renditions" (config/get-url 'core) node-id version-id)
ticket
{:query-params query-params}
opts)))
opts)))

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

0 comments on commit cc92180

Please sign in to comment.