cancel
Showing results for 
Search instead for 
Did you mean: 

Custom API for document upload

sipapp
Champ in-the-making
Champ in-the-making

Hi,

I want to develop API in alfresco which will enable to upload documents in Alfresco repository along with custom metadata/properties. My current alfresco version is 5.2.

I found that this can be achieved by either CMIS APIs or REST APIs. Not sure which option is best for below  some sample requirement scenarios:

  1. Upload document with custom metadata/attributes/properties.
  2. Update custom metadata/attributes/properties.
  3. Increment version numbers if new file is uploaded for same document id.
  4. Initiate custom workflow based on document metadata/attributes/properties.
  5. Fetch only document metadata/attributes/properties OR file OR both by document unique id.
  6. Apply custome permissions to enable restricted access.
1 ACCEPTED ANSWER

janv
Employee
Employee

Hi,

Yes, you can use the Alfresco Content Services REST API for your examples (1 to 6).

To find out more, please see: 

Alfresco public REST APIs (provides links to various resources - including a useful tutorial)

REST API | Alfresco Documentation 

Alfresco Content Services REST API Explorer (with "Try it out" using public sandbox)

If you'd like to compare with CMIS then see also:

Alfresco CMIS  (also provides access to same public sandbox)

Regards,

Jan

View answer in original post

2 REPLIES 2

janv
Employee
Employee

Hi,

Yes, you can use the Alfresco Content Services REST API for your examples (1 to 6).

To find out more, please see: 

Alfresco public REST APIs (provides links to various resources - including a useful tutorial)

REST API | Alfresco Documentation 

Alfresco Content Services REST API Explorer (with "Try it out" using public sandbox)

If you'd like to compare with CMIS then see also:

Alfresco CMIS  (also provides access to same public sandbox)

Regards,

Jan

cyrose22
Star Contributor
Star Contributor

thanks (y)