Skip to content

neckell/mutantes

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Mutants

Repository for testing purposes. This app consists in an API rest that checks if an array is mutant or not

How to install locally

  1. Clone the repository: git clone https://github.com/NicolasEckell/mutantes.git

  2. Install dependancies: npm install

  3. Run the app: npm start

  4. Use the API REST

How to use the API REST in the heroku-deployed environment:

  • Use GET "/" or "/health" for Health Check

  • Use POST "/mutant" for checking if an array is a mutant or not. You should get http status code 200 if data array it's mutant or 403 if it's not a mutant array.

    • Example of OK json: { "dna":["ATGCGA","CAGTGC","TTATGT","AGAAGG","CCCCTA","TCACTG"] }
    • Example of bad json: { "dna":["ATGCAA", "CAGTGC", "TTATGT", "AGATGG", "CCCATA", "TCACTG"] }
  • Use GET "/stats" for getting stats of the app.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published