A simple RESTful API built with ASP.NET Core for managing a product inventory. This project demonstrates basic CRUD operations, data persistence with SQLite and Entity Framework Core, and a clean project structure.
- CRUD Operations: Create, Read, Update, and Delete products.
- Database Persistence: Uses SQLite and Entity Framework Core to store data.
- Swagger Documentation: Includes Swagger/OpenAPI documentation for easy API exploration and testing.
- Clone the repository:
git clone https://github.com/your-username/Example_RESTApi.git
- Navigate to the project directory:
cd Example_RESTApi - Restore dependencies:
dotnet restore
- Apply database migrations:
dotnet ef database update
- Run the application:
dotnet run
The API will be running at https://localhost:7083 and http://localhost:5017.
The following endpoints are available:
GET /api/Product: Retrieves a list of all products.GET /api/Product/{id}:can