Code Monkey home page Code Monkey logo

asp.net-game-store's Introduction

Simple API with ASP.NET

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.

Endpoints

/games

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.

/genres

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.

Database

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.

Getting Started

Prerequisites

Installation

  1. Clone the repository:
    git clone [email protected]:nonchain/asp.net-game-store.git
  2. Navigate to the project directory:
    cd /asp.net-game-store
  3. Restore the dependencies:
    dotnet restore
  4. Update the database:
    dotnet ef database update

Running the API

Start the API by running:

dotnet run

The API will be available at https://localhost:5001.

Usage

You can use tools like Postman or curl to interact with the API endpoints.

Contributing

Contributions are welcome! Please open an issue or submit a pull request for any improvements or bug fixes.

License

This project is licensed under the MIT License - see the LICENSE file for details.

Acknowledgments


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.

asp.net-game-store's People

Contributors

nonchain avatar

Watchers

 avatar

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.