DotNETCore 学习笔记 WebApi

APIDescriptionRequest bodyResponse body
GET /api/todo Get all to-do items None Array of to-do items
GET /api/todo/{id} Get an item by ID None To-do item
POST /api/todo Add a new item To-do item To-do item
PUT /api/todo/{id} Update an existing item To-do item None
PATCH /api/todo/{id} Update an existing item To-do item None
DELETE /api/todo/{id} Delete an item. None None      

The following diagram show the basic design of the app. https://docs.asp.net/en/latest/_images/architecture.png

原文地址:https://www.cnblogs.com/ziranquliu/p/5870805.html