diff --git a/liferay-plugins-sdk-6.2/portlets/sicilia-sue-connector-portlet/.settings/org.eclipse.wst.common.component b/liferay-plugins-sdk-6.2/portlets/sicilia-sue-connector-portlet/.settings/org.eclipse.wst.common.component
index 26ffb99f..d234eb69 100644
--- a/liferay-plugins-sdk-6.2/portlets/sicilia-sue-connector-portlet/.settings/org.eclipse.wst.common.component
+++ b/liferay-plugins-sdk-6.2/portlets/sicilia-sue-connector-portlet/.settings/org.eclipse.wst.common.component
@@ -6,6 +6,9 @@
uses
+
+ uses
+
diff --git a/liferay-plugins-sdk-6.2/portlets/sicilia-sue-connector-portlet/docroot/WEB-INF/src/it/mwg/sicilia/sue/api/v1/command/impl/ManualHtml.java b/liferay-plugins-sdk-6.2/portlets/sicilia-sue-connector-portlet/docroot/WEB-INF/src/it/mwg/sicilia/sue/api/v1/command/impl/ManualHtml.java
index b067b54e..c741bad2 100644
--- a/liferay-plugins-sdk-6.2/portlets/sicilia-sue-connector-portlet/docroot/WEB-INF/src/it/mwg/sicilia/sue/api/v1/command/impl/ManualHtml.java
+++ b/liferay-plugins-sdk-6.2/portlets/sicilia-sue-connector-portlet/docroot/WEB-INF/src/it/mwg/sicilia/sue/api/v1/command/impl/ManualHtml.java
@@ -35,64 +35,126 @@ public class ManualHtml extends Manual {
public void run(HttpServletRequest request, HttpServletResponse response) throws Exception {
String cssFile = "/css/api/v1/api.css";
+ String bootstrapFile = "/css/bootstrap.css";
StringBuilder result = new StringBuilder();
result.append("").append("")
.append("")
.append("
Manual").append("")
- .append("");
- for (Command command : CommandList.getList()) {
- result.append("Comando:
/").append(command.getVerb()).append("");
- if (command.isSecure()) {
- result.append(" [T]");
- }
- result.append("
").append(command.getDescription()).append(".
");
- result.append("
Metodi: ")
- .append(StringUtils.join(command.getMethods(), StringPool.COMMA_AND_SPACE)).append("
");
- result.append("
Parametri:");
- List
parameters = command.getInputParameters();
- if (parameters.isEmpty()) {
- result.append(" Nessuno");
- } else {
- for (Parameter parameter : parameters) {
- result.append("
").append(parameter.getName());
- if (parameter.isRequired()) {
- result.append(StringPool.STAR);
- }
- result.append(" (").append(parameter.getType().toString()).append(") - ")
- .append(parameter.getDescription()).append("
");
- }
+ .append("
")
+ .append("");
+ result.append("
");
+ result.append("
");
+ result.append("
");
+ result.append("
Sicilia SUE API v1
");
result.append("");
- }
- parameters = command.getOutputParameters();
- if (!parameters.isEmpty()) {
- result.append("
Restituisce:");
- for (Parameter parameter : parameters) {
- result.append("
").append(parameter.getName()).append(" (")
- .append(parameter.getType().toString()).append(") - ").append(parameter.getDescription());
- if (parameter.getType().equals(TYPES.ARRAY)) {
- for (Parameter subParameter : parameter.getSubParameters()) {
- result.append("
").append(subParameter.getName()).append(" (")
- .append(subParameter.getType().toString()).append(") - ")
- .append(subParameter.getDescription()).append("
");
+ result.append("
");
+ for (Command command : CommandList.getList()) {
+ result.append("
");
+ result.append("
");
+ result.append("
/").append(command.getVerb());
+ if (command.isSecure())
+ result.append(" [T]");
+ result.append("
");
+
+ result.append("
").append(command.getDescription()).append(".
");
+
+ result.append("
");
+ for(String cmd : command.getMethods() ){
+ result.append(""+cmd+"");
}
- }
+ result.append("
");
+
+ result.append("
");
+ result.append(getCurlExample(command, getBaseUrl(request)));
+ result.append("
");
+
+ List
parameters = command.getInputParameters();
+ result.append("");
+ result.append("
Parametri
");
+ if (parameters.isEmpty()) {
+ result.append("
Nessuno
");
+ } else {
+ result.append("
");
+ result.append("");
+ result.append("");
+ result.append("Campo | ");
+ result.append("Obbligatorio | ");
+ result.append("Tipo | ");
+ result.append("Descrizione | ");
+ result.append("
");
+ result.append("");
+ result.append("");
+ result.append(printTableParameters(parameters, 1));
+ result.append("");
+ result.append("
");
+ }
+ result.append("
");
+
+ parameters = command.getOutputParameters();
+ result.append("");
+ result.append("
Risposta
");
+ if (parameters.isEmpty()) {
+ result.append("
Nessuno
");
+ } else {
+ result.append("
");
+ result.append("");
+ result.append("");
+ result.append("Campo | ");
+ result.append("Obbligatorio | ");
+ result.append("Tipo | ");
+ result.append("Descrizione | ");
+ result.append("
");
+ result.append("");
+ result.append("");
+ result.append(printTableParameters(parameters, 1));
+ result.append("");
+ result.append("
");
+ }
+ result.append("
");
result.append("");
- }
result.append("
");
}
- result.append("
Esempio:
").append(getCurlExample(command, getBaseUrl(request)))
- .append("
");
- result.append("
"); // class="command"
- }
- result.append("
Note:
[T] = Richiede token di autenticazione: header di richiesta \"")
- .append(Parameters.X_AUTH_TOKEN).append("\" oppure parametro \"").append(Parameters.TOKEN)
- .append("\"
* = Parametro obbligatorio
");
+ result.append("
");
+ result.append("
");
+ result.append("
");
+ result.append("Note
[T] = Richiede token di autenticazione: header di richiesta \"");
+ result.append(Parameters.X_AUTH_TOKEN).append("\" oppure parametro \"").append(Parameters.TOKEN);
+ result.append("\"
");
+ result.append("
");
+ result.append("
");
+ result.append("
");
result.append("