This is an ASP.NET Web API application for a Gaming Quiz.
The Gaming Quiz Web API provides three GET endpoints for accessing gaming-related questions and answers. The API can be used to build gaming quiz applications.
The following endpoints are currently available:
Returns a list of all the available gaming-related questions in the database.
Returns a specific gaming-related question by ID.
Returns a randomly selected gaming-related question.
The following is the schema of the Card
entity:
{
"id": int,
"question": string,
"answer": string
}
To run the API, you will need to have .NET 6 SDK installed on your machine. Then, follow these steps:
- Clone this repository
- Open the command prompt and navigate to the root directory of the cloned repository
- Run
dotnet run
command - The API will be available at
https://localhost:7014
- ASP.NET Web API
- Entity Framework
- Microsoft SQL Server
In the future, this API may be expanded to include more endpoints for managing and creating questions. Additionally, authentication and authorization may be added to protect the API and prevent unauthorized access.
Contributions to this project are welcome. If you find a bug or have a suggestion for improvement, please open an issue or submit a pull request.
This project is licensed under the MIT License. See the LICENSE
file for details.