Custom API for document upload

cancel
Showing results for 
Search instead for 
Did you mean: 
sipapp
Member II

Custom API for document upload

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.
2 Replies
Highlighted
janv
Senior Member II

Re: Custom API for document upload

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
Active Member II

Re: Custom API for document upload

thanks (y)