Your task is to use ASP.NET WebAPI Controllers to create Application Programming Interfaces (APIs) which implement the described functionality. In addition, make sure to document each method with a...

Your task is to use ASP.NET WebAPI Controllers to create Application Programming Interfaces (APIs) which implement the described functionality. In addition, make sure to document each method with a block, including examples and tests, a description of parameter inputs, and readable variable names. Question 1 GET http://localhost/api/AddTen/{id} Returns 10 more than the integer input {id}. Request Response GET localhost/AddTen/21 31 GET localhost/AddTen/0 10 GET localhost/AddTen/-9 1 Question 2 GET http://localhost/api/Square/{id} Returns the square of the integer input {id}. Request Response GET localhost/Square/2 4 GET localhost/Square/-2 4 GET localhost/Square/10 100 Question 3 POST http://localhost/api/Greeting Returns the string “Hello World!” Request POST DATA Response POST localhost/Greeting “Hello World!”

Dec 10, 2021
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here