项目作者: profjordanov

项目描述 :
Simple Service For Book Shop written in ASP .NET Core .
高级语言: C#
项目地址: git://github.com/profjordanov/BookShop.git
创建时间: 2018-07-23T15:58:44Z
项目社区:https://github.com/profjordanov/BookShop

开源协议:MIT License

下载


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
  1. ├───src
  2. ├───configuration
  3. └───server
  4. ├───BookShop.Api
  5. ├───BookShop.Business
  6. ├───BookShop.Core
  7. ├───BookShop.Data
  8. └───BookShop.Data.EntityFramework
  9. └───tests
  10. └───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