Skip to content

simpledasz/Example_RESTApi

Repository files navigation

Example_RESTApi

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.

Features

  • 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.

Getting Started

Prerequisites

Installation

  1. Clone the repository:
    git clone https://github.com/your-username/Example_RESTApi.git
  2. Navigate to the project directory:
    cd Example_RESTApi
  3. Restore dependencies:
    dotnet restore
  4. Apply database migrations:
    dotnet ef database update
  5. Run the application:
    dotnet run

The API will be running at https://localhost:7083 and http://localhost:5017.

API Endpoints

The following endpoints are available:

  • GET /api/Product: Retrieves a list of all products.
  • GET /api/Product/{id}:can

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages