CMIS VS REST API

cancel
Showing results for 
Search instead for 
Did you mean: 
antonio_sanchez
Active Member

CMIS VS REST API

I want to integrate a .NET Desktop Application with Alfresco.

From this decktop application I want to create, modify, delete, search for documents and folders, etc.

I'm evaluating 2 options:

  • CMIS: use Apache Chemistry PortCMIS client library for .NET
  • REST API

What is Alfresco's recommendation in this regard?

1 Reply
jpotts
Advanced II

Re: CMIS VS REST API

If you ask Alfresco they would probably say "REST API" because they've been putting a lot of engineering effort into improving it lately so it will work better with client-side frameworks such as their own Alfresco Developer Framework (ADF).

But the decision should be more about what exactly it is that you need to do and how easy it is for you to work with either of the APIs using your skills and preferred toolets and frameworks. From the high level requirements you've given, either one will work, but I suspect once you dive into the details and line those up against the capabilities of each API, you will start to develop your own preference.

The biggest driver is how closely coupled do you want to be to the Alfresco repository. If you go with the Alfresco REST API and then later decide to use a different repository, everywhere you've made a call to the repo will have to be refactored. If you go with CMIS, there will still likely be some refactoring but it could be less.