DRAG DROP
You are developing an ASP.NET MVC Web API application. The method names of the Web
API must match naming guidelines for RESTful services. You need to create methods to
support standard insert, select, update, and delete operations in an HTTP service. What
should you do? (To answer, drag the appropriate HTTP methods to the correct row in the
table in the answer area. Each HTTP method may be used once, more than once, or not at
all. You may need to drag the split bar between panes or scroll to view content.)
Explanation:
http://msdn.microsoft.com/en-us/library/ff478141.aspx
As I understand it, you should be able to use POST instead of PUT but I’m having a hard time finding any good answer on the web. So if the questions pops up and there is no PUT option, use the POST instead.
Should be put but if no PUT option present, it should be POST
The correct is:
GET
GET
GET
POST
POST
DELETE
http://www.asp.net/web-api/overview/older-versions/creating-a-web-api-that-supports-crud-operations
Action HTTP method Relative URI
Get a list of all products GET /api/products
Get a product by ID GET /api/products/id
Get a product by category GET /api/products?category=category
Create a new product POST /api/products
Update a product PUT /api/products/id
Delete a product DELETE /api/products/id
Correct is:
GET
GET
GET
POST
PUT / POST
DELETE
Accoding to https://docs.microsoft.com/en-us/aspnet/web-api/overview/older-versions/creating-a-web-api-that-supports-crud-operations you can create resourse by method PUT.
So right answer is:
GET
GET
GET
PUT/POST
POST
DELETE
GET
GET
GET
PUT/POST
PUT
DELETE