Welcome to the My Gamestore API with ASP.NET project! This API is designed to provide basic CRUD (Create, Read, Update, Delete) operations for games and a read-only access for genres.
This endpoint allows users to perform CRUD operations on games.
- GET /games: Retrieve a list of all games.
- GET /games/{id}: Retrieve a specific game by its ID.
- POST /games: Create a new game.
- PUT /games/{id}: Update an existing game by its ID.
- DELETE /games/{id}: Delete a game by its ID.
This endpoint allows users to read genres.
- GET /genres: Retrieve a list of all genres.
- GET /genres/{id}: Retrieve a specific genre by its ID.
The project uses SQLite as its database, managed through the Entity Framework Core (Microsoft.EntityFrameworkCore.SQLite). The ORM (Object-Relational Mapping) concept is utilized for seamless interaction between the application and the database.
- Clone the repository:
git clone [email protected]:nonchain/asp.net-game-store.git
- Navigate to the project directory:
cd /asp.net-game-store
- Restore the dependencies:
dotnet restore
- Update the database:
dotnet ef database update
Start the API by running:
dotnet run
The API will be available at https://localhost:5001
.
You can use tools like Postman or curl to interact with the API endpoints.
Contributions are welcome! Please open an issue or submit a pull request for any improvements or bug fixes.
This project is licensed under the MIT License - see the LICENSE file for details.
Thank you for checking out this project! If you have any questions or need further assistance, feel free to open an issue in the repository.