WebApi Concept

APIDescriptionRequest bodyResponse body
GET /api/TodoItemsGet all to-do itemsNoneArray of to-do items
GET /api/TodoItems/{id}Get an item by IDNoneTo-do item
POST /api/TodoItemsAdd a new itemTo-do itemTo-do item
PUT /api/TodoItems/{id}Update an existing item  To-do itemNone
DELETE /api/TodoItems/{id}    Delete an item    NoneNone

The client is represented by a box on the left. It submits a request and receives a response from the application, a box drawn on the right. Within the application box, three boxes represent the controller, the model, and the data access layer. The request comes into the application's controller, and read/write operations occur between the controller and the data access layer. The model is serialized and returned to the client in the response.

Comments

Popular posts from this blog

การตั้งเวลาระหว่าง Server และ Client

วิธีตั้งค่า NTP บน Primary Domain Controller

Installation and Run Node.JS on IIS