This is Library api with 3 models (Author,Genre and Book) and 2 controllers (BooksController and AuthController). This project can be extended (AuthorController and GenreController can be added)
This project is built using CODE FIRST approach so it better to firstly remove Migrations folder and rerun:
then run the project.
Except default technologies such as .NET core, EF core, MSSQL other technologies were used:
-
Lazy Loading
-
AutoMapper
When the project is running you can do a POST request for registration to Authorize (only restriction is password length>=5) and use BooksController.
Then you can login using your credentials:
When you will get token just put it in Authorize section of SwaggerUI like:
Now you can call requests from Swagger.
Here some other projects for you to check:
https://github.com/Kanan02/ToDoListWebApi