GithubHelp home page GithubHelp logo

victormessina / api-pokemon Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 30.56 MB

Application Programming Interface to handling data about pokemon

C# 54.88% CSS 0.77% ASP 0.01% JavaScript 2.70% PowerShell 24.12% Pascal 17.39% Puppet 0.13%

api-pokemon's Introduction

API - Pokemon

This project is about things that are special to me, like my favorite anime and learn a new programming language, in that case C# with EntityFramework.

The purpose of this initiative is to provide an API REST that will allow users to get all kinds of information about the anime.

Tech Sources

Data Sources

Routes

Routes Description Methods HTTP Params and type
/pokemon/AllPokemons return all pokemons of the anime GET Don't need
/pokemon/AllTypes return all types of pokemons GET Don't need
/pokemon/AllRegions return all regions GET Don't need
/pokemon/AllLegendaryPokemons return all legendary pokemons the anime GET Don't need
/pokemon/AllMythicalPokemons return all mythical pokemons the anime GET Don't need
/pokemon/PokemonByPodexNumber/#PokedexNumber return a specific pokemon GET PokedexNumber: int
/pokemon/PokemonByName/#Name return a specific pokemon or all pokemons starts with that words GET Name: string
/pokemon/PokemonsByGeneration/#Generation return all pokemons of a specific generation GET Generation: string
/pokemon/LegendaryPokemonsByGeneration/#Generation return all legendary pokemons by a specific generation GET Generation: string
/pokemon/MythicalPokemonsByGeneration/#Generation return all mythical pokemons by a specific generation GET Generation: string
/pokemon/PokemonsByTypeID/#TypeID return all pokemons of a specific type ID GET TypeID: int
/pokemon/PokemonsByTypeIDAndGeneration/#TypeID/#Generation return all pokemons of a specific typeID and a specific generation GET TypeID: int and Generation: string
/pokemon/PokemonsByTypeName/#TypeName return all pokemons of a specific type name GET TypeName: string
/pokemon/PokemonsByTypeNameAndGeneration/#TypeName/#Generation return all pokemons of a specific typeName and a specific generation GET TypeName: string and Generation: string

Example

/pokemon/PokemonByPodexNumber/25

{
    "Pokemon": [
        {
            "PokemonID": 25,
            "NationalPokedexNumber": 25,
            "Name": "Pikachu",
            "Generation": "First",
            "Evolve": true,
            "Legendary": false,
            "Mythical": false,
            "Image": "https://assets.pokemon.com/assets/cms2/img/pokedex/detail/025.png",
            "RegionID": 1,
            "PokemonTypeID": 5
        }
    ]
}

Instructions to install

if you use windows

Frist you need install the Visual Studio


Now you can install SQL Server


Clone this project

git clone [email protected]:VictorMessina/API-Pokemon.git

Run the application

  • API_Pokemon

Create the database with the schema

  • 1 - Change the connection string in the file Web.config for your connection string and save the changes.
  • 2 - Go to the Visual Studio package manager and write this: update-database.
  • 3 - press enter and wait the migrations finish the job.

Start the server

  • select the project and lauch the application

Finaly you can use any route with the right params.

  • localhost:50594/pokemon/MythicalPokemonsByGeneration/second

If you use linux or macOX

  • 1 - install the Visual Studio
  • 2 - Choose one database and install
  • 3:
    • 3.1 - Change the connection string in the file Web.config for your connection string and save the changes.
    • 3.2 - Go to the Visual Studio package manager and write this: update-database.
    • 3.3 - press enter and wait the migrations finish the job.
  • 4 - select the project and lauch the application
  • 5 - Finaly you can use any route with the right params. Example: localhost:50594/pokemon/MythicalPokemonsByGeneration/second

api-pokemon's People

Contributors

victormessina avatar

Watchers

James Cloos avatar  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.