git clone https://@opensourceprojects.eu/git/p/alfredeu/code-0 alfredeu-code-0



File Date Author Commit
src 2016-10-19 Tobias Hardes Tobias Hardes [c84839] apps
tools 2016-10-19 Tobias Hardes Tobias Hardes [c84839] apps
.classpath 2016-10-19 Tobias Hardes Tobias Hardes [c84839] apps
.gitignore 2016-10-19 Tobias Hardes Tobias Hardes [c84839] apps
.project 2016-10-19 Tobias Hardes Tobias Hardes [c84839] apps
.tern-project 2016-10-19 Tobias Hardes Tobias Hardes [c84839] apps
README.md 2016-10-19 Tobias Hardes Tobias Hardes [c84839] apps
pom.xml 2016-10-19 Tobias Hardes Tobias Hardes [c84839] apps

Read Me

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