developers

Denis Yuen edited this page Nov 3, 2015 · 1 revision

Coding

Coding standards match those used in the SeqWare project

Release Process

Use the standard mvn release:prepare and mvn release:perform procedures with maven 3

Updating Auto-Generated Code

Schema

The schema is generated by dumping the auto-generated schema from Dropwizard/Hibernate.

pg_dump queue_status --schema-only &> schema.sql
mv schema.sql consonance-arch/sql

Swagger Client

The basis for the swagger client is auto-generated from Dropwizard. While you have the web service running, create the classes here using the https://github.com/swagger-api/swagger-codegen/blob/master/README.md project.

git clone https://github.com/swagger-api/swagger-codegen.git
cd swagger-codegen
./run-in-docker.sh generate   -i http://10.0.3.18:8080/swagger.json   -l java   -o test_swagger_output --library jersey2                                          
cp -R  test_swagger_output/src ~/consonance/swagger-java-client/

We modified the pom.xml to be compatible with our parent pom, but otherwise no files in here should be manually changed in case we wish to automatically regenerate the classes above based on changes in the web service.

You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.
Press h to open a hovercard with more details.