Fórum

It's possible to generate a description for Mobile SDK generated classes ?

thumbnail
Denis Signoretto, modificado 8 Anos atrás.

It's possible to generate a description for Mobile SDK generated classes ?

Expert Postagens: 375 Data de Entrada: 21/04/09 Postagens Recentes
Hi,

I'd like to know if exist a way to add a description for mobile SDK generated services and methods.
If not, I'm thinking if it make sense create a specific JSONWS annotation (or read jsonws javadoc comment) to include a description in generated JSONWS services to include in generated API (e.g. javadoc for Android).

In this way Mobile developers can find a "standard way" to know how to use some API.

Bye,
Denis.
thumbnail
Bruno Farache, modificado 8 Anos atrás.

RE: It's possible to generate a description for Mobile SDK generated classe

Liferay Master Postagens: 603 Data de Entrada: 14/05/07 Postagens Recentes
Hey Denis,

That's a good idea, I also thought about it. Unfortunately the Discovery service we use (http://localhost:8080/api/jsonws?discover) to generate classes doesn't contain the description of the service.
thumbnail
Daniele Baggio, modificado 8 Anos atrás.

RE: It's possible to generate a description for Mobile SDK generated classe

Expert Postagens: 336 Data de Entrada: 05/12/08 Postagens Recentes
Yes it's just possible to see javadoc from the API of a custom plugin.
I am fixing the /api/jsonws documentation page in these days about this issue.

You have to run
ant format-javadoc
before to generate some xml files necessary.

Then, with an hook plugin and some fix to the jsp pages you can see javadoc comments.

For the hook see the code here:
https://github.com/baxtheman/mqtt-liferay-plugins/tree/master/base-services-portlet/docroot/custom_jsps/html/portal/api/jsonws

See the results:


Bruno, i think it's necessary to open an issue on jira to fix these pages.
In LF7 there are some improvements? or the api/jsonws pages are the ond ones?

bye,
thumbnail
Bruno Farache, modificado 8 Anos atrás.

RE: It's possible to generate a description for Mobile SDK generated classe

Liferay Master Postagens: 603 Data de Entrada: 14/05/07 Postagens Recentes
Hi Daniele,

The discovery service (used to generated code for the SDK) has changed a lot on 7.0 and it does include javadocs by default.