GithubHelp home page GithubHelp logo

pokedex-clone's Introduction

pokedex-clone

How to Run it?

Building the docker image

-> docker build --tag pokedex-clone .

Running and attaching to the docker image locally

-> docker run -p 5000:5000 --name test pokedex-clone

Assumptions

TBD

Pokemon API

Endpoint 1 - Basic Pokemon Information

Given a Pokemon name, returns standard Pokemon description and additional information.

/HTTP/GET /pokemon/<pokemon name>

Example call (using curl): curl http://localhost:5000/pokemon/mewtwo

Example API response:

{
 "name": "mewtwo",
 "description": "It was created by a scientist after years of horrific gene
 splicing and DNA engineering experiments.",
 "habitat": "rare",
 "isLegendary": true
}

Endpoint 2 - Translated Pokemon Description

Given a Pokemon name, return translated Pokemon description and other basic information using the following rules:

  • If the Pokemon’s habitat is cave or it’s a legendary Pokemon then Yoda translation is applied.
  • For all other Pokemon, Shakespeare translation is applied.
  • Otherwise a standard description is returned.

HTTP/GET /pokemon/translated/<pokemon name>

Example call (using curl): curl http://localhost:5000/pokemon/translated/mewtwo

Example response:

{
 "name": "mewtwo",
 "description": "Created by a scientist after years of horrific gene
 splicing and dna engineering experiments, it was.",
 "habitat": "rare",
 "isLegendary": true
}

pokedex-clone's People

Contributors

keremgocen avatar

Stargazers

 avatar

Watchers

 avatar James Cloos avatar  avatar

pokedex-clone's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.