Pkthunder / pokedex-api

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

pokedex-api

pokedex-api is a RESTful API designed for educational purposes. It serves "Pokedex" data which meant to be consumed by a frontend client written in any framework of one's choosing, i.e.: jQuery, AngularJS, Angular, Vue or React

Installation

$ git clone https://github.com/Pkthunder/pokedex-api.git
$ cd pokedex-api
$ npm install

Getting Started

To start the API server

$ cd pokedex-api
$ npm start

Configuration

The only configuration is the port number the RESET API is hosted on. This is set via a environment variable NG_POKEDEX_PORT. Default is 4000

RESTful Endpoints

All endpoints start with the base uri http://localhost:4000/api/v1

  • /items returns all items
  • /items/i/:id returns the item with the corresponding id
  • /skills returns all skills
  • /skills/s/:id returns the skill with the corresponding id
  • /pokemon returns all pokemon
  • /pokemon/p/:id returns the pokemon with the corresponding id (aka PokeIndex)

About


Languages

Language:JavaScript 100.0%