Giter Club home page Giter Club logo

pokedex's Introduction

First of all, to run code properly, github.com/gorilla/mux package must be downloaded in the machine. Otherwise program will give error.
Other capabilities that the program has are listed below;

-> you can send requests in these two formats
   -http://localhost:8080/list/type=Bug/sortby=BaseAttack
   -http://localhost:8080/list?type=Bug?sortby=BaseAttack
	Both requests will run properly.

List Api
-> you can list all pokemons in all types with sorted or without sorted
	example requests:
	-http://localhost:8080/list/type=all
	-http://localhost:8080/list/type=all/sortby=baseattack

-> you can list pokemons in one type with sorted or without sorted
	example requests:
	-http://localhost:8080/list/type=bug/sortby=baseattack
	-http://localhost:8080/list/type=bug

-> you can list all types
	example request
	-http://localhost:8080/list/types

-> sort optionas are:
	-Base attack
	-Base stamina
	-Base defence
	-Height
	-Weight
	-Name


Get Api
-> you can get the details of a pokemon with its name
	example requests:
	-http://localhost:8080/get/name=raichu
	-http://localhost:8080/get/name=poliwrath

-> you can get the details of a type with its name
	example requsts:
	-http://localhost:8080/get/type=bug
	-http://localhost:8080/get/type=water

-> you can get the details of a move with its name
	example requests:
	-http://localhost:8080/get/move=blizzard
	-http://localhost:8080/get/move=transform

Other notes

-- All other requests will give an invalid request error
-- All requests are non-case sensitive
	example:
	-http://localhost:8080/list/type=Bug/sortby=BaseAttack
	-http://localhost:8080/list/type=bug/sortby=baseattack
	These two are identical to each other
-- '/' and '?' can be used interchangebly in requests
	example:
	-http://localhost:8080/list?type=bug?sortby=baseattack
	http://localhost:8080/list/type=bug/sortby=baseattack

pokedex's People

Contributors

ardatumay avatar

Watchers

 avatar

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.