This document provides an overview of the endpoints available in the Game API. The API allows users to retrieve information about games, including their platforms, genres, banners, landing page images, top games for specific years, a random game for use in a slider, and details of specific games.
For any questions or inquiries regarding this API, please contact the Amazing Developer.
- Endpoint:
/api/game
- Method: GET
- Description: Retrieve the list of games based on platform and genre.
platform
: The platform of the games. (e.g., playstation, xbox, steam)genre
: The genre of the games. (e.g., action, adventure, fps)
200
: Successful operation400
: Bad Request404
: Not Found500
: Internal Server Error
- Endpoint:
/api/banner
- Method: GET
- Description: Retrieve the banner.
200
: Successful operation400
: Bad Request404
: Not Found500
: Internal Server Error
- Endpoint:
/api/gamelanding
- Method: GET
- Description: Retrieve the landing page images.
200
: Successful operation400
: Bad Request404
: Not Found500
: Internal Server Error
- Endpoint:
/api/platform
- Method: GET
- Description: Retrieve the list of game platforms.
200
: Successful operation400
: Bad Request404
: Not Found500
: Internal Server Error
- Endpoint:
/api/genre
- Method: GET
- Description: Retrieve the list of game genres.
200
: Successful operation400
: Bad Request404
: Not Found500
: Internal Server Error
- Endpoint:
/api/topGames/{year}
- Method: GET
- Description: Returns the top games for the specified year.
year
(path parameter): The year of the top games. (e.g., 2021, 2022, 2023, ...)
200
: Successful operation400
: Bad Request404
: Not Found500
: Internal Server Error
- Endpoint:
/api/randomGame
- Method: GET
- Description: Retrieve a random game for use in a slider.
200
: Successful operation400
: Bad Request404
: Not Found500
: Internal Server Error
- Endpoint:
/api/game/{gameId}
- Method: GET
- Description: Retrieve the details of a specific game by its ID.
gameId
(path parameter): The unique identifier of the game.
200
: Successful operation400
: Bad Request404
: Not Found500
: Internal Server Error