August 2017
Intermediate to advanced
330 pages
7h 26m
English
The web API has many actions, some of which were covered in Chapter 2, Understanding HTTP and REST, with examples. As a refresher, we will go over them again as we will want to use these actions when we create our controller. The Action attributes will be used to decorate a method.
Every action should be thought about from a consumer's point of view; for example, for Post, the client is posting something.
If we had created ShoesController, the route for this would be as follows:
[Route("api/[controller]")]