Skip to content

Kanan02/LibraryAPI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Library API

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)

Technologies

This project is built using CODE FIRST approach so it better to firstly remove Migrations folder and rerun:

Add-Migration Initial

then run the project.

Except default technologies such as .NET core, EF core, MSSQL other technologies were used:

  • Lazy Loading

  • AutoMapper

Usage

When the project is running you can do a POST request for registration to Authorize (only restriction is password length>=5) and use BooksController.

/api/Auth/Register

Then you can login using your credentials:

/api/Auth/Login

When you will get token just put it in Authorize section of SwaggerUI like:

Bearer your_token

Now you can call requests from Swagger.

Here some other projects for you to check:

https://github.com/Kanan02/ToDoListWebApi

https://github.com/Kanan02/RabbitMQUserWebapi

https://github.com/Kanan02/MyMonefyApp_WPF_MVVM

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages