How to get alfresco version number programmatically
3 answers
REST API that uses Share to get data from a repo (for example):
http://localhost:8081/share/proxy/alfresco/api/server
This returns:
{
data: {
edition: "Enterprise",
version: "5.0.0",
schema: "8002"
}
}
This website looks like this: https://github.com/Alfresco/community-edition/blob/master/projects/remote-api/config/alfresco/templates/webscripts/org/alfresco/repository/server.get. desc.xml
+5
source to share
You can use the Browser Interface API for the CMIS protocol.
In particular, read this property:
productVersion
Link: http://docs.oasis-open.org/cmis/CMIS/v1.1/cs01/CMIS-v1.1-cs01.html#x1-1660002 paragraph 2.2.2.2.2
Advantage over other methods: CMIS is standard, so this operation will always be available, as opposed to Share web scripts, which can change. Also, your code will be compatible with any other CMIS implementation.
Here's an example of how CMIS works through JavaScript .
+1
source to share