Skip to content

Nanditab/Microservice-BookService

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

BookService

This is working example of Microsoft article on RestFull API with attribute routing.

Prerequisite

Visual studio 2017

Before the run

In the Package Manager Console window, run the following
add-migration Initial
update-database

API

http://localhost:61559/api/books
http://localhost:61559/api/books/1
http://localhost:61559/api/books/1/details
http://localhost:61559/api/author/2/books
http://localhost:61559/api/books/fantasy
Full article
https://docs.microsoft.com/en-us/aspnet/web-api/overview/web-api-routing-and-actions/create-a-rest-api-with-attribute-routing