Giter Club home page Giter Club logo

crud-api's Introduction

Pokemon CRUD API

This API has the data of 150 pokemon. It consists of multiple objects which have a name and the url for more information about each Pokemon. It has full CRUD capabilities where you can search, update delete and even create a Pokemon.


Getting started

There is a base url that displays the whole APi. In order to search for specific Pokemon, it will need certain parameters at the end. This is explained below.

Url and Paths

GET

base url: https://dakom1-crud-api.herokuapp.com/lists

This allows you to search for Pokemon by their Pokedex number.

Ex:

/"Dex-Number"

This allows you to search for Pokemon by their specific name.

Ex:

/name/"name of Pokemon"

POST

url: https://dakom1-crud-api.herokuapp.com/lists/

This method allows you to create your very own Pokemon to this database.

Ex:

{ "name": "Pokemon name",

}

UPDATE

url: "https://dakom1-crud-api.herokuapp.com/lists/"ID

This method allows you to edit a Pokemon in this database.

Ex:

{ "name": "Pokemon name"

}

DELETE

url: "https://dakom1-crud-api.herokuapp.com/lists/"ID

This method allows you to delete a Pokemon from the database.

Technologies used

  1. Mongoose
  2. express
  3. node.js
  4. JSON

Examples

https://dakom1-crud-api.herokuapp.com/lists/150

will return

[
  {
    "_id": "5e986279ba1fc778e75fd4ef",
    "name": "mewtwo",
    "url": "https://pokeapi.co/api/v2/pokemon-species/150/",
    "__v": 0
  }
]

https://dakom1-crud-api.herokuapp.com/lists/name/bulbasaur

will return

[
  {
    "_id": "5e986279ba1fc778e75fd45a",
    "name": "bulbasaur",
    "url": "https://pokeapi.co/api/v2/pokemon-species/1/",
    "__v": 0
  }
]

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.