Fórum

create a liferay SITE and importing SITE template by SOAP/REST APIs

ser aus, modificado 8 Anos atrás.

create a liferay SITE and importing SITE template by SOAP/REST APIs

New Member Postagens: 2 Data de Entrada: 11/03/15 Postagens Recentes
Hi,

we are using liferay 6.1.1 in our production environment as a web portal for numerous

government agencies in the Piedmont region, Italy

We are trying to automate (using Liferays APIs) some of the administrative actions we usually

do with Liferay Control Panel: in particular we would like to programmatically import a new

site template and to generate a site from that template.

I've already seen those articles on the forum:

https://www.liferay.com/it/community/forums/-/message_boards/message/5345670
https://www.liferay.com/it/community/forums/-/message_boards/message/43054904

but unfortunately both of them use java methods and we need to use APIs which can be used by

different languages.

Do you know if Liferay offers any REST or SOAP API to import/upload a site template and to

generate a new site from that template?


Thanks in advance

Bye
Sergio A.
thumbnail
Jan Geißler, modificado 8 Anos atrás.

RE: create a liferay SITE and importing SITE template by SOAP/REST APIs

Liferay Master Postagens: 735 Data de Entrada: 05/07/11 Postagens Recentes
Welcome Sergio!
What you could do as a start is to take a look here:
http://yourserver/api/jsonws
There is a list of all available JSON WebServices Liferay offers.
Also here is some more information according Web Services and their use. I do not know if there is something similar for other supported WebServices, but I would think there is.
Luca Gioppo, modificado 8 Anos atrás.

RE: create a liferay SITE and importing SITE template by SOAP/REST APIs

New Member Mensagem: 1 Data de Entrada: 03/06/15 Postagens Recentes
Is there some more information about this feature?
Tools like puppet or chef needs some means to command that sort of operations and either a CLI or a API would be very usefull.
From the docs and the looking of the api is a bit difficult to understand how to accomplish the request from Sergio.
Some hints could be helpfull
Thanks
thumbnail
Jan Geißler, modificado 8 Anos atrás.

RE: create a liferay SITE and importing SITE template by SOAP/REST APIs

Liferay Master Postagens: 735 Data de Entrada: 05/07/11 Postagens Recentes
Well, JSON and REST are common Web Technologies. Nothing Liferay special here. If you want to implement something like this, you should investigate on the technologies involved. Actually I don't understand the question right now.
What has a CLI to do with it? You can send REST Commands via many ways. For example you could use CURL from a shell on a Linux Box.