Allows to validate a DNA to distinguish if it is a mutant or not, allowing manegto to get candidates for his army and to face the X-men.
Dillinger requires Node.js v14+ to run.
Install the dependencies and devDependencies and start the server.
npm install
npm run dev
For production environments...
npm install
npm run tsc
npm run start:prod
- Detects a mutant sequence in DNA
- Indicates statistics for mutants and non-mutants
The REST API to the example app is described below.
For consulting the statistics for mutants
POST /api/mutant
{
"dna":["ATGCGA","CGGTGC","TTATGT","AGAAGG","CCCCTA","TCACTG"]
}
200-OK
Es un mutante
403-Forbidden
No es un mutante
400-Bad-Request
Debe proporsionar un ADN
400-Bad-Request
La secuencia de adn no es correcta
For consulting the statistics for mutants
GET /api/stats
HTTP/1.1 200 OK
{
"count_human_dna":8094,
"count_mutant_dna":7413,
"ratio":0.9158636026686434
}
- For Stast http://3.14.5.171/api/stats
- For Mutant http://3.14.5.171/api/mutant