{"id":19519132,"url":"https://github.com/rahulmule/dotnetwebapi-inmemory-database","last_synced_at":"2025-02-26T00:15:28.686Z","repository":{"id":217172984,"uuid":"743235018","full_name":"RahulMule/DotNetWebAPI-InMemory-Database","owner":"RahulMule","description":"This is a simple .NET Web API project for managing books, created to explore .NET 8 with Entity Framework Core using an in-memory database. The project follows the repository pattern to handle book-related operations.","archived":false,"fork":false,"pushed_at":"2024-05-03T21:40:24.000Z","size":15,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-08T12:54:53.843Z","etag":null,"topics":["aspnetcore","csharp","dotnet-8","dotnetwebapi","entity-framework-core","inmemory-db","repository-pattern","rest-api","web-api"],"latest_commit_sha":null,"homepage":"","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/RahulMule.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2024-01-14T18:22:43.000Z","updated_at":"2024-05-03T21:40:28.000Z","dependencies_parsed_at":null,"dependency_job_id":"9cfae7ab-11bd-4517-b745-c5303708efc6","html_url":"https://github.com/RahulMule/DotNetWebAPI-InMemory-Database","commit_stats":null,"previous_names":["rahulmule/dotnetwebapi_inmemorydatabase","rahulmule/dotnetwebapi-inmemory-database"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RahulMule%2FDotNetWebAPI-InMemory-Database","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RahulMule%2FDotNetWebAPI-InMemory-Database/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RahulMule%2FDotNetWebAPI-InMemory-Database/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RahulMule%2FDotNetWebAPI-InMemory-Database/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/RahulMule","download_url":"https://codeload.github.com/RahulMule/DotNetWebAPI-InMemory-Database/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240766606,"owners_count":19854119,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["aspnetcore","csharp","dotnet-8","dotnetwebapi","entity-framework-core","inmemory-db","repository-pattern","rest-api","web-api"],"created_at":"2024-11-11T00:16:29.669Z","updated_at":"2025-02-26T00:15:28.629Z","avatar_url":"https://github.com/RahulMule.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# DotNetWebAPI_InMemoryDatabase\n\nThis is a simple .NET Web API project for managing books, created to explore .NET 8 with Entity Framework Core using an in-memory database. The project follows the repository pattern to handle book-related operations.\n\n## Table of Contents\n\n- [Introduction](#introduction)\n- [Features](#features)\n- [Prerequisites](#prerequisites)\n- [Getting Started](#getting-started)\n- [Usage](#usage)\n- [Contributing](#contributing)\n- [License](#license)\n\n## Introduction\n\nThe project is a RESTful Web API that provides endpoints to perform CRUD operations on books. It utilizes Entity Framework Core with an in-memory database for data storage.\n\n## Features\n\n- **Get All Books**: Retrieve a list of all books.\n- **Add Book**: Add a new book to the database.\n- **Delete Book**: Delete a book by its ID.\n- **Update Book**: Update an existing book.\n- **Get Book by ID**: Retrieve a specific book by its ID.\n\n## Prerequisites\n\nBefore you begin, ensure you have the following prerequisites:\n\n- .NET 8 SDK installed. [Download here](https://dotnet.microsoft.com/download)\n- An Integrated Development Environment (IDE) like Visual Studio or Visual Studio Code.\n- Git installed. [Download here](https://git-scm.com/downloads)\n\n## Getting Started\n\n1. Clone the repository:\n\n    ```bash\n    git clone https://github.com/RahulMule/DotNetWebAPI_InMemoryDatabase.git\n    ```\n\n2. Open the project in your preferred IDE.\n\n3. Build the solution.\n\n4. Run the application.\n\n## Usage\n\nThe API provides the following endpoints:\n\n- **GET /api/books**: Retrieve a list of all books.\n\n- **POST /api/books**: Add a new book to the database.\n\n    Example Request:\n    ```json\n    {\n        \"title\": \"The Great Gatsby\",\n        \"description\": \"A novel by F. Scott Fitzgerald\",\n        \"author\": \"F. Scott Fitzgerald\",\n        \"price\": 10.99\n    }\n    ```\n\n    Example Response:\n    ```json\n    {\n        \"status\": \"OK\"\n    }\n    ```\n- **GET /api/books/{id}**: Retrieve a specific book by its ID.\n\n    Example Response:\n    ```json\n    {\n        \"id\": 1,\n        \"title\": \"The Great Gatsby\",\n        \"description\": \"A novel by F. Scott Fitzgerald\",\n        \"author\": \"F. Scott Fitzgerald\",\n        \"price\": 10.99\n    }\n    ```\n- **DELETE /api/books/{id}**: Delete a book by its ID.\n\n- **PUT /api/books**: Update an existing book.\n\n    Example Request:\n    ```json\n    {\n        \"id\": 1,\n        \"title\": \"New Title\",\n        \"description\": \"Updated description\",\n        \"author\": \"Updated Author\",\n        \"price\": 19.99\n    }\n    ```\n\n    Example Response:\n    ```json\n    {\n        \"status\": \"OK\"\n    }\n    ```\n\nFeel free to explore and customize the code to suit your needs.\n\n## Contributing\n\nContributions are welcome! Fork the repository, make your changes, and submit a pull request.\n\n## License\n\nThis project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frahulmule%2Fdotnetwebapi-inmemory-database","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frahulmule%2Fdotnetwebapi-inmemory-database","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frahulmule%2Fdotnetwebapi-inmemory-database/lists"}