Quantcast
Channel: Alfresco Forums - Alfresco API
Viewing all articles
Browse latest Browse all 252

How to retrieve content via REST

$
0
0

I'd like to retrieve some content via REST but specifying a particular version, or other data

I can get the content
http://127.0.0.1:8080/alfresco/api/-default-/public/cmis/versions/1.1/browser/root/Sites/TEST/fragment.html

This returns exactly what I want (the content of 'fragment.html'), but I'd like to be able to specify a particular version (or other such metadata), for example return version 1.0 of file or version 1.1 of the file

Is this possible?

I see there's another way of doing this
http://127.0.0.1:8080/alfresco/api/-default-/public/cmis/versions/1.1/browser?cmisaction=query&statement=select * from cmis:document where cmis:name='fragment.html'

but it return only the metadata of file 'fragment.html', not the content, and i can't include cmis:versionLabel in the where clause

5.1.x

Viewing all articles
Browse latest Browse all 252

Trending Articles