Skip to content

Commit

Permalink
get-version-rendition-info
Browse files Browse the repository at this point in the history
  • Loading branch information
Marco Marini committed Jun 24, 2024
1 parent fcee535 commit d7aad29
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 d7aad29

Please sign in to comment.