Skip to content

Simple Service For Book Shop written in ASP .NET Core .

License

Notifications You must be signed in to change notification settings

profjordanov/BookShop

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

55 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Book Shop Service

Endpoints

  • GET - /api/authors/{id} - Gets author with id, first name, last name and a list of all his/her book titles.
  • POST - /api/authors - Creates a new author with first name and last name (mandatory).
  • GET - /api/authors/{id}/books - Gets books from author by id. Returns all data about the book + category names.

Features

  • AutoMapper
  • EntityFramework Core with SQL Server and ASP.NET Identity
  • JWT authentication/authorization
  • File logging with Serilog
  • Stylecop
  • Neat folder structure
├───src
│   ├───configuration
│   └───server
│       ├───BookShop.Api
│       ├───BookShop.Business
│       ├───BookShop.Core
│       ├───BookShop.Data
│       └───BookShop.Data.EntityFramework
└───tests
    └───BookShop.Business.Tests

  • Swagger UI + Fully Documented Controllers
  • Global Model Errors Handler
  • Global Environment-Dependent Exception Handler

Test Suite

  • xUnit
  • Autofixture
  • Moq
  • Shouldly
  • Arrange Act Assert Pattern

Releases

No releases published

Packages

No packages published

Languages