- Download the repository
git clone https://github.com/jcpenap/mutantes.git
- Go to mutantes resources
cd mutantes/src/main/resources
- Edit file application.properties and choose the enviroment
DEVELOP
spring.profiles.active=dev
PROD
spring.profiles.active=prod
- Edit file application-env.yml for develop and change db properties
- JUnit Test
src/test/java/com/mercadolibre/controller/MutantControllerTest.java
src/test/java/com/mercadolibre/service/MutantServiceImplTest.java
- Endpoints
POST - http://localhost:8083/mutant/
Body:
{
"dna": [
"ATGCGA","CAGTGC","TTATGT","AGAAGG","CCCCTA","TCACTG"
]
}
GET - http://localhost:8083/stats