cancel
Showing results for 
Search instead for 
Did you mean: 

Alfresco Service API install

mugurel_rata
Champ in-the-making
Champ in-the-making
Hi,

  I installed alfresco community edition and I want to access the repository using javascript API. All calls I found in documentation are like:
GET /alfresco/service/api/node/content{property}/{store_type}/{store_id}/{id}?a={attach?}
  The problem is that I don't have the "service" folder in my installation folder. I also search for "service" and "api" in the entire installation folder I received 0 results.
  D? I missed something when I installed the application or should I have to install some plugins to enable this functionality?
4 REPLIES 4

mrogers
Star Contributor
Star Contributor
You won't see a service or api folder  Those URLs points to a web script not files on a filesystem.   

Edit - and those files are for remote web script access.   The Java script API is something different.

mugurel_rata
Champ in-the-making
Champ in-the-making
Thanks for reply,

  Can you tell me please how can I access/install the Javascript API? There is a special module I need to install?

kaynezhang
World-Class Innovator
World-Class Innovator
You should under the difference between webscript api and javascript api first:
   1.API like
GET /alfresco/service/api/node/content{property}/{store_type}/{store_id}/{id}?a={attach?}
is a webscript api ,it is a         restful and  remote API .
   2.javascript api is a local api and should be executed in the same JVM as alfresco.
Both webscript api and javascript api are out-of-box ,you don't need to install anything.
For javascript api ,please refer to
http://docs.alfresco.com/4.1/concepts/API-JS-intro.html
https://wiki.alfresco.com/wiki/JavaScript_API

mugurel_rata
Champ in-the-making
Champ in-the-making
Thanks for answer
   It is clear and it is working.