【文件属性】:
文件名称:yellow-foods:C#ASP.NET Core中的数据库支持的REST API
文件大小:350KB
文件格式:ZIP
更新时间:2021-04-05 19:07:05
database csharp rest-api mssql aspnet-core
黄色食品
C#ASP.NET Core中由数据库支持的REST API:
GET api/foods/ 1
{
"id" : 1 ,
"name" : "Banana"
}
GET api/foods/ 1 /nutriententries
[
{
"id" : 1 ,
"nutrientId" : 7 ,
"foodId" : 1 ,
"unitId" : 2 ,
"amount" : 1.10
} ,
{
"id" : 21 ,
"nutrientId" : 1 ,
"foodId" : 1 ,
"unitId" : 1 ,
"amount" : 89.00
} ,
{ ... }
]
先决条件:
.NET Core 3.1
Visual Studio 2019(已安
【文件预览】:
yellow-foods-master
----YellowFoodsContext.bak(3.4MB)
----YellowFoods.Data()
--------YellowFoods.Data.csproj(601B)
--------Models()
--------Migrations()
--------YellowFoodsContext.cs(747B)
----YellowFoods.sln(2KB)
----.gitignore(6KB)
----README.md(1KB)
----.gitattributes(2KB)
----YellowFoods()
--------Program.cs(518B)
--------Controllers()
--------Startup.cs(1KB)
--------appsettings.Development.json(159B)
--------YellowFoods.csproj(484B)
--------Dtos()
--------appsettings.json(352B)
--------Profiles()
--------Properties()