skip to content
27/12/2018

Rest global webservice

Javlo contains a set of service rest by default.

static-config.properties: security.rest-servlet = true should be enabled, on a base server default security is "true".

Default Rest Service

ContentRest

Basic url: / rest / content / #path #

returns the contents of a page accessible via # path # in json.

ContentRest (recursive)

Basic url: / rest / content-children / #path #

returns the content of a page and child pages accessible via # path # in json.

ComponentRest

Basic url: / rest / component / # type #? # params #

returns the list of # type # components, the possible params change depending on the type of component:

  • content: search in the content of a component (for all components)
  • max: maximum number of responses (10 by default)
  • # fieldname #: for dynamicComponent

FileRest

Basic url: / rest / file / #path #

returns the metadata of a file that is identified by #path #