Giter Club home page Giter Club logo

videogamedatabaseapi's Introduction

Video Game Database API

This project is a RESTful API, written in C# .NET MVC, which provides information on video games, game consoles, and more.

Paths

Here is a list of the most common paths. All paths begin with api/.

GET api/Game

Retrieves list of games. Example:

{
    "gameId": 3,
    "gameName": "Sonic the Hedgehog",
    "releaseDate": "1991-06-23T00:00:00",
    "publisherId": 9,
    "consoleId": 15,
    "publisherName": "Sega Enterprises Ltd.",
    "consoleName": "Sega Genesis",
    "genres": [
        "Action",
        "Platformer"
    ]
},
{
    "gameId": 4,
    "gameName": "Sonic the Hedgehog 2",
    "releaseDate": "1992-11-21T00:00:00",
    "publisherId": null,
    "consoleId": 15,
    "publisherName": "Sega Enterprises Ltd.",
    "consoleName": "Sega Genesis",
    "genres": [
        "Action",
        "Platformer"
    ]
}

GET api/Game/{id}

Retrieves a single game with the specified ID. Example, with the ID 3 specified:

{
    "gameId": 3,
    "gameName": "Sonic the Hedgehog",
    "releaseDate": "1991-06-23T00:00:00",
    "publisherId": 9,
    "consoleId": 15,
    "publisherName": "Sega Enterprises Ltd.",
    "consoleName": "Sega Genesis",
    "genres": [
        "Action",
        "Platformer"
    ]
}

PUT api/Game/{id}

Updates a game with the specified ID with the JSON contained in the body of the request. The ID in the path and the object must match. Will return nothing on successful update. Example body:

{
    "gameId": 3,
    "gameName": "Sonic the Hedgehog. With Update"
}

POST api/Game

Inserts a new game. Game ID and Publisher ID need not be specified. Publisher ID will automatically be mapped based on PublisherName, and if publisher doesn't exist in the database, it will be added. Example:

{
    "gameName": "Sonic the Hedgehog 3",
    "releaseDate": "1994-02-02T00:00:00",
    "consoleId": 15,
    "publisherName": "Sega Enterprises Ltd.",
}

videogamedatabaseapi's People

Contributors

billy2600 avatar

Stargazers

 avatar SPHYNX avatar  avatar

Watchers

James Cloos avatar  avatar

Forkers

ssshake

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.