Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/nemeslaszlo/bookstore
Book Store application with book and author management with Customer and Administrator users. With .NET Core and Blazor.
https://github.com/nemeslaszlo/bookstore
blazor blazor-webassembly dotnet entity-framework mapper nlog swagger
Last synced: 21 days ago
JSON representation
Book Store application with book and author management with Customer and Administrator users. With .NET Core and Blazor.
- Host: GitHub
- URL: https://github.com/nemeslaszlo/bookstore
- Owner: NemesLaszlo
- Created: 2021-02-15T16:22:11.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2021-02-27T19:21:36.000Z (almost 4 years ago)
- Last Synced: 2024-12-01T06:44:05.087Z (3 months ago)
- Topics: blazor, blazor-webassembly, dotnet, entity-framework, mapper, nlog, swagger
- Language: C#
- Homepage:
- Size: 335 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# BookStore
Book Store application with book and author management with Customer and Administrator users. With .NET Core and Blazor.
- .NET Core
- AutoMapper
- NLog
- Swagger UI
- Entity Framework Core
- Repository Pattern
- Identity and Authentication
- Security with JSON Web Token#### Endpoints for the Backend
| Entity | Type | URL | Description | Success | Failure | Authorize |
| ------ | ------ | ------------------ | --------------------------------------------------------- | -------------------- | -------------------------------------------------------------------- | ------------------------ |
| User | POST | api/users/login | User Login. You are able to login with username or email. | 200 OK and the Token | 500 InternalServerError with a message | No |
| | POST | api/users/register | User Registration (as a Costumer) | 201 Created | 500 InternalServerError with a message | No |
| Author | GET | api/authors | Get all authors. | 200 OK | 500 InternalServerError with a message | Yes |
| | GET | api/authors/:id | Get an author by id. | 200 OK | 404 NotFound; 500 InternalServerError with a message | Yes |
| | POST | api/authors | Creates an author. | 201 Created | 400 BadRequest; 500 InternalServerError with a message | Yes (Only Administrator) |
| | PUT | api/authors/:id | Update an author by id. | 204 NoContent | 400 BadRequest; 404 NotFound; 500 InternalServerError with a message | Yes (Only Administrator) |
| | DELETE | api/authors/:id | Delete an author by id. | 204 NoContent | 400 BadRequest; 404 NotFound; 500 InternalServerError with a message | Yes (Only Administrator) |
| Book | GET | api/books | Get all books. | 200 OK | 500 InternalServerError with a message | Yes |
| | GET | api/books/:id | Get a Book by id. | 200 OK | 404 NotFound; 500 InternalServerError with a message | Yes |
| | POST | api/books | Creates a new book. | 201 Created | 400 BadRequest; 500 InternalServerError with a message | Yes (Only Administrator) |
| | PUT | api/books/:id | Update a book by id. | 204 NoContent | 400 BadRequest; 404 NotFound; 500 InternalServerError with a message | Yes (Only Administrator) |
| | DELETE | api/books/:id | Delete a book by id. | 204 NoContent | 500 InternalServerError with a message | Yes (Only Administrator) |