Can I extend REST API?

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

Can I extend REST API?

Now this api curl -utest:test -X POST hostSmiley Tongueort/alfresco/api/-default-/public/alfresco/versions/1/nodes/-my-/children -F filedata=@test.txt

not support uploading base64 file.

Can I extend this api that to be able to upload files in base 64 encoding?

1 Reply
afaust
Master

Re: Can I extend REST API?

That API is not meant for extension. It is supposed to be a stable, consistent API on which you can rely between versions of Alfresco and different instances of Alfresco. Of course you can try to create a patch / PR and submit that to Alfresco for inclusion in the next iteration of the Public ReST API.

Technically you might be able to extend it by meddling with some of the Java classes in Alfresco, but that would defeat the purpose of the public API. You can always create your own web script to extend the ReST API with any specific support that you need.