What API to use
Basically Nuxeo 5 provides 3 flavors of APIs :- Rest API : simple http GET/POST
- Web Service API : JAX-RPC and JAX-WS
- Java API : available both localy or remotly via EJB3 remoting
Rest API
The RestAPI is the most simple API to use. On the client side, you don't require anything else than the possibility to issue HTTP requests. This means that you can use this API from any language. The current RestAPI provides you with a set of methods to search and extract content from Nuxeo5, but also to create some content. The RestAPI is very easily plugable, so if you need to do some specific task, you can simply contribute a restlet to the nuxeo server and call it from your client via http. You can find more information about Restlets and RestAPI here.Web Service API
WebService API is mainly used by external search engines that need to fetch some data from Nuxeo Server. For that purpose, Nuxeo exposes JAX-RPC WebServices that allow getting data from the Repository and from the Audit Service. Typically these WebServices will allow you to :- browse the repository
- get all the document meta-data
- get the security descriptor for one document
- get the list of document that where modified since a give date
- resolve a path to a uuid
- ...
Java API
Java API is the native Nuxeo API. In fact, almost all the APIs used inside Nuxeo are also available remotly. On the client side, using Nuxeo API will require you to embed the needed Nuxeo API jars and you may need to embed Nuxeo Runtime. Using Java API provides you with the most powerfull API : you can access everything. In termes of performances, this is also the best option : no http and xml marshaling is needed. Since Java remote API uses RMI you may have some troubles going throught firewalls or NAT. You may find additionnal informations hereAPIs comparison
Simplicity of use
In terme of usage simplicity the APIs can be sorted like this :- Rest API
- WS-API
- Java API
Dependecies requirements
Depending on the API you use you may need some additionnal libs on the client side.- 1- Rest API
- 2- WS-API
- 3- Java API
Speed :
- 1- Java API
- 2- Rest API
- 3- WS-API
Power
- 1- Java API
- 2- Rest API
- 3- WS-API
Accessibility
- 1- Rest API / WS-API
- 2- Java API
Version 9.1 last modified by Thierry Delprat on 24/07/2008 at 13:29
Document data
Attachments:
No attachments for this document
Comments: 0