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
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.