Skip to content

OriginalDCAM/fastapi-game-api

Repository files navigation

SteamDB Game API

This is a simple API built with FastAPI that allows users to retrieve information about games. The API uses a MongoDB database to store and retrieve game data.

Endpoints

  • GET /game/{name}: Returns information about the game with the specified name
  • GET /games/top/{amount}: Returns the top amount highest rated games

Installation

  1. Clone the repository:
  git clone https://github.com/OriginalDCAM/fastapi-game-api.git
  1. Install the dependencies:
  pip install -r requirements.txt
  1. Set up a MongoDB database and update the connection string in: games.py

  2. Import the steamdb.json file into the MongoDB Database

Usage

  1. Start the API:
  uvicorn  main:app
  1. Send requests to the endpoints listed above.

Dependencies

  • FastAPI
  • Motor (asyncio-base Python driver for MongoDB)

Authors

About

This is a simple API built with FastAPI that allows users to retrieve information about games

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages