This project is a sample application for managing books and categories using ASP.NET Core Web API.
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.
- Visual Studio
- .NET Core 5.0 or later
- SQL Server
- Clone the repository
git clone https://github.com/BerkayMehmetSert/nArchitecture-eBook-api.git
-
Open the solution file
nArchitecture.eBook.sln
in Visual Studio or runningdotnet run
in a terminal window -
Use a tool like Postman to interact with the API endpoints
The following endpoints are available:
-
GET /api/books
- Retrieves a list of all books with pagination support -
GET /api/books/get-by-id
: Retrieves a book by its ID -
POST /api/books
: Creates a new book -
PUT /api/books
: Updates an existing book -
DELETE /api/books
: Deletes a book by its ID
-
GET /api/categories
- Retrieves a list of all categories with pagination support -
GET /api/categories/get-by-id
: Retrieves a category by its ID -
POST /api/categories
: Creates a new category -
PUT /api/categories
: Updates an existing category -
DELETE /api/categories
: Deletes a category by its ID
- ASP.NET Core - The web framework used
- Entity Framework Core - The ORM used
- AutoMapper - The object-object mapper used
- FluentValidation - The validation library used
- MediatR - The mediator pattern implementation used
- Swager - The API documentation tool used