Download this file

README.md    43 lines (31 with data), 1.6 kB

Swagger: http://alfred.eu:8080/personalization-manager/swagger-ui.html
Raw JSON definition file (used for client generation): http://alfred.eu:8080/personalization-manager/v2/api-docs

Service startup config: sudo mcedit /etc/default/tomcat7
To restart Tomcat: sudo service tomcat7 restart
Tomcat config: /var/lib/tomcat7/conf

Logs: /var/log/tomcat7

===== DEPLOYMENT on alfred.eu:
Via GUI: http://alfred.eu:8080/manager/html (ask TIE for credentials)
or via maven: mvn tomcat7:redeploy (sometimes gets stuck, need to restart the tomcat service)

For the latter you need to provide authentication details in the C:\Users\your_account.m2\settings.xml, like:



alfred-tomcat
ask_TIE
ask_TIE


===== To generate the REST client:

Description of the tool: https://github.com/swagger-api/swagger-codegen

Download the tool: http://repo1.maven.org/maven2/io/swagger/swagger-codegen-cli/2.1.4/swagger-codegen-cli-2.1.4.jar

Command to generate the client (create a .bat file in the same folder as swagger-codegen.jar):

java -jar swagger-codegen-cli-2.1.4.jar generate ^
-i http://alfred.eu:8080/personalization-manager/v2/api-docs ^
-l java ^
-o alfred/client/personalization-manager/java

See the languages the generator supports: java -jar swagger-codegen-cli-2.1.4.jar langs