Refactored repo for Goci rest api to move away from Spring Data rest to microservices which can be customized. API uses spring Jpa query DSL for filtering reducing the lines of code required with JPA repository methods . API has been documented using Open API Swagger. Api supports as new feature of filtering based on child traits for a parent efo term . This need prepopulating parent child efo mapping & assigning parent term for association & studies . The pre-population logic is implemented using the below components
Before you begin, ensure you have met the following requirements:
- You have a MacOSX/Linux/Windows machine.
- You have Java 8 installed.
- Install Java and JDK8
- Clone the application from https://github.com/EBISPOT/gwas-rest-api.git
- Run
mvn clean installto build the application and generate executable jar - The application uses default profile as
local - java -Dspring.datasource.username=**** -Dspring.datasource.password=****** -jar gwas-rest-api-*.jar
- After step 2 above
- Go to Run > Edit Configurations
- A dialog box will appear.
- Insert in the VM Options text field: java -Dspring.datasource.username=**** -Dspring.datasource.password=******
- Access the app on url: localhost:{port}/gwas/rest/api/swagger-ui/index.html#
Submitting changes to the data follows this workfow:
- Create a branch with using issue number and brief issue description using kebab-case, eg.
git checkout -b 'goci-rest-71-rest-api-documentation' - Do the work to fix the issue or add a new feature and commit message as appropriate
- Summarize the change in less than 50 characters
- Because: - Explain the reasons you made this change
- Make a new bullet for each reason - Each line should be under 72 characters
- Explain exactly what was done in this commit with more depth than the 50 character subject line. Remember to wrap at 72 characters!
- Push local changes to the remote feature branch
- Create a Pull Request to merge the updates in the feature branch into
developbranch - Once the changes are merged into
developbranch, the Gitlab plan will automatically deploy these changes to the Kubernetes sandbox environment where User Acceptance Testing can be done - When the UAT is completed successfully, the updates in
developcan be merged intomaster, either through a Pull Request or using git merge from your local repo
- Check the contribution section here
If something goes wrong, please check the logs.

