Createed a project with 5 API methods
-
Get - IActionResult Add(int first, int second)
-
Post - IActionResult Multiply(int first, int second)
-
Put - IActionResult Subtract(int first, int second)
-
Put - IActionResult Delete(int first, int second)
-
Get - IActionResult GetData() - should return List
class Person { public int Id { get; set; } public string Name { get; set; } }
It will work in dotnet5.0 and in this project, there are total 5 Web APIs.
As we can see in the above image the task of that 5 APIs.