initial commit

This commit is contained in:
Eero Holmala 2022-04-11 21:45:40 +03:00
commit c10bee95c3
62 changed files with 33024 additions and 0 deletions

View File

@ -0,0 +1,33 @@
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": ".NET Core Launch (web)",
"type": "coreclr",
"request": "launch",
"preLaunchTask": "build",
"program": "${workspaceFolder}/bin/Debug/net6.0/Play.Catalog.Service.dll",
"args": [],
"cwd": "${workspaceFolder}",
"stopAtEntry": false,
"serverReadyAction": {
"action": "openExternally",
"pattern": "\\bNow listening on:\\s+(https?://\\S+)"
},
"env": {
"ASPNETCORE_ENVIRONMENT": "Development"
},
"sourceFileMap": {
"/Views": "${workspaceFolder}/Views"
}
},
{
"name": ".NET Core Attach",
"type": "coreclr",
"request": "attach"
}
]
}

View File

@ -0,0 +1,45 @@
{
"version": "2.0.0",
"tasks": [
{
"label": "build",
"command": "dotnet",
"type": "process",
"args": [
"build",
"${workspaceFolder}/Play.Catalog.Service.csproj",
"/property:GenerateFullPaths=true",
"/consoleloggerparameters:NoSummary"
],
"problemMatcher": "$msCompile",
"group": {
"kind": "build",
"isDefault": true
}
},
{
"label": "publish",
"command": "dotnet",
"type": "process",
"args": [
"publish",
"${workspaceFolder}/Play.Catalog.Service.csproj",
"/property:GenerateFullPaths=true",
"/consoleloggerparameters:NoSummary"
],
"problemMatcher": "$msCompile"
},
{
"label": "watch",
"command": "dotnet",
"type": "process",
"args": [
"watch",
"run",
"--project",
"${workspaceFolder}/Play.Catalog.Service.csproj"
],
"problemMatcher": "$msCompile"
}
]
}

View File

@ -0,0 +1,80 @@
using System;
using System.Collections.Generic;
using System.Linq;
using Microsoft.AspNetCore.Mvc;
using Play.Catalog.Service.Dtos;
using Play.Catalog.Service.Repositories;
namespace Play.Catalog.Service.Controllers;
[ApiController]
[Route("items")]
public class ItemsContoller : ControllerBase
{
private readonly ItemsRepository itemsRepository = new();
public static readonly List<ItemDto> items = new(){
new ItemDto(Guid.NewGuid(), "Potion", "Heals HP.", 50, DateTimeOffset.UtcNow),
new ItemDto(Guid.NewGuid(), "Antidote", "Cures poison.", 75, DateTimeOffset.UtcNow),
new ItemDto(Guid.NewGuid(), "Sword", "Good quality sword.", 200, DateTimeOffset.UtcNow)
};
[HttpGet]
public IEnumerable<ItemDto> Get()
{
return items;
}
[HttpGet("{id}")]
public ActionResult<ItemDto> GetById(Guid id)
{
var item = items.Where(item => item.Id == id).SingleOrDefault();
if (item == null) return NotFound();
return item;
}
[HttpPost]
public ActionResult<ItemDto> Post(CreateItemDto createItemDto)
{
var item = new ItemDto(
Guid.NewGuid(),
createItemDto.Name,
(createItemDto.Description!=null) ? createItemDto.Description:"",
createItemDto.Price,
DateTimeOffset.UtcNow
);
items.Add(item);
return CreatedAtAction(nameof(GetById), new {Id = item.Id}, item);
}
[HttpPut("{id}")]
public IActionResult Put(Guid id, UpdateItemDto updateItemDto)
{
var existingItem = items.Where(item => item.Id == id).SingleOrDefault();
if (existingItem == null)
return NotFound();
var updatedItem = existingItem with {
Name = (updateItemDto.Name != null) ? updateItemDto.Name : existingItem.Name,
Description = (updateItemDto.Description != null) ? updateItemDto.Description : existingItem.Description,
Price = updateItemDto.Price
};
var index = items.FindIndex(item => item.Id == id);
items[index] = updatedItem;
return NoContent();
}
[HttpDelete("{id}")]
public IActionResult Delete(Guid id)
{
var index = items.FindIndex(item => item.Id == id);
if (index < 0)
return NotFound();
items.RemoveAt(index);
return NoContent();
}
}

View File

@ -0,0 +1,10 @@
using System;
using System.ComponentModel.DataAnnotations;
namespace Play.Catalog.Service.Dtos;
public record ItemDto(Guid Id, string Name, string Description, decimal Price, DateTimeOffset CreatedDate);
public record CreateItemDto([Required] string Name, string Description, [Range(0, double.MaxValue)] decimal Price);
public record UpdateItemDto(string Name, string Description, [Range(0, double.MaxValue)] decimal Price);

View File

@ -0,0 +1,12 @@
using System;
namespace Play.Catalog.Service.Entities;
public class Item
{
public Guid Id { get; set; }
public string Name { get; set; }
public string Description { get; set; }
public decimal Price { get; set; }
public DateTimeOffset CreatedDate { get; set; }
}

View File

@ -0,0 +1,13 @@
using Play.Catalog.Service.Dtos;
using Play.Catalog.Service.Entities;
namespace Play.Catalog.Service;
public static class Extensions
{
public static ItemDto AsDto(this Item item)
{
return new ItemDto(item.Id, item.Name, item.Description, item.Price, item.CreatedDate);
}
}

View File

@ -0,0 +1,11 @@
<Project Sdk="Microsoft.NET.Sdk.Web">
<PropertyGroup>
<TargetFramework>net6.0</TargetFramework>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Swashbuckle.AspNetCore" Version="6.3.0" />
</ItemGroup>
</Project>

View File

@ -0,0 +1,26 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Hosting;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.Hosting;
using Microsoft.Extensions.Logging;
namespace Play.Catalog.Service
{
public class Program
{
public static void Main(string[] args)
{
CreateHostBuilder(args).Build().Run();
}
public static IHostBuilder CreateHostBuilder(string[] args) =>
Host.CreateDefaultBuilder(args)
.ConfigureWebHostDefaults(webBuilder =>
{
webBuilder.UseStartup<Startup>();
});
}
}

View File

@ -0,0 +1,31 @@
{
"$schema": "http://json.schemastore.org/launchsettings.json",
"iisSettings": {
"windowsAuthentication": false,
"anonymousAuthentication": true,
"iisExpress": {
"applicationUrl": "http://localhost:19029",
"sslPort": 44346
}
},
"profiles": {
"IIS Express": {
"commandName": "IISExpress",
"launchBrowser": true,
"launchUrl": "swagger",
"environmentVariables": {
"ASPNETCORE_ENVIRONMENT": "Development"
}
},
"Play.Catalog.Service": {
"commandName": "Project",
"dotnetRunMessages": "true",
"launchBrowser": true,
"launchUrl": "swagger",
"applicationUrl": "https://localhost:5001;http://localhost:5000",
"environmentVariables": {
"ASPNETCORE_ENVIRONMENT": "Development"
}
}
}
}

View File

@ -0,0 +1,9 @@
namespace Play.Catalog.Service.Repositories;
public class ItemsRepository {
public ItemsRepository()
{
}
}

View File

@ -0,0 +1,59 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Hosting;
using Microsoft.AspNetCore.HttpsPolicy;
using Microsoft.AspNetCore.Mvc;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Hosting;
using Microsoft.Extensions.Logging;
using Microsoft.OpenApi.Models;
namespace Play.Catalog.Service
{
public class Startup
{
public Startup(IConfiguration configuration)
{
Configuration = configuration;
}
public IConfiguration Configuration { get; }
// This method gets called by the runtime. Use this method to add services to the container.
public void ConfigureServices(IServiceCollection services)
{
services.AddControllers();
services.AddSwaggerGen(c =>
{
c.SwaggerDoc("v1", new OpenApiInfo { Title = "Play.Catalog.Service", Version = "v1" });
});
}
// This method gets called by the runtime. Use this method to configure the HTTP request pipeline.
public void Configure(IApplicationBuilder app, IWebHostEnvironment env)
{
if (env.IsDevelopment())
{
app.UseDeveloperExceptionPage();
app.UseSwagger();
app.UseSwaggerUI(c => c.SwaggerEndpoint("/swagger/v1/swagger.json", "Play.Catalog.Service v1"));
}
app.UseHttpsRedirection();
app.UseRouting();
app.UseAuthorization();
app.UseEndpoints(endpoints =>
{
endpoints.MapControllers();
});
}
}
}

View File

@ -0,0 +1,9 @@
{
"Logging": {
"LogLevel": {
"Default": "Information",
"Microsoft": "Warning",
"Microsoft.Hosting.Lifetime": "Information"
}
}
}

View File

@ -0,0 +1,10 @@
{
"Logging": {
"LogLevel": {
"Default": "Information",
"Microsoft": "Warning",
"Microsoft.Hosting.Lifetime": "Information"
}
},
"AllowedHosts": "*"
}

View File

@ -0,0 +1,115 @@
{
"runtimeTarget": {
"name": ".NETCoreApp,Version=v6.0",
"signature": ""
},
"compilationOptions": {},
"targets": {
".NETCoreApp,Version=v6.0": {
"Play.Catalog.Service/1.0.0": {
"dependencies": {
"Swashbuckle.AspNetCore": "6.3.0"
},
"runtime": {
"Play.Catalog.Service.dll": {}
}
},
"Microsoft.Extensions.ApiDescription.Server/3.0.0": {},
"Microsoft.OpenApi/1.2.3": {
"runtime": {
"lib/netstandard2.0/Microsoft.OpenApi.dll": {
"assemblyVersion": "1.2.3.0",
"fileVersion": "1.2.3.0"
}
}
},
"Swashbuckle.AspNetCore/6.3.0": {
"dependencies": {
"Microsoft.Extensions.ApiDescription.Server": "3.0.0",
"Swashbuckle.AspNetCore.Swagger": "6.3.0",
"Swashbuckle.AspNetCore.SwaggerGen": "6.3.0",
"Swashbuckle.AspNetCore.SwaggerUI": "6.3.0"
}
},
"Swashbuckle.AspNetCore.Swagger/6.3.0": {
"dependencies": {
"Microsoft.OpenApi": "1.2.3"
},
"runtime": {
"lib/net6.0/Swashbuckle.AspNetCore.Swagger.dll": {
"assemblyVersion": "6.3.0.0",
"fileVersion": "6.3.0.0"
}
}
},
"Swashbuckle.AspNetCore.SwaggerGen/6.3.0": {
"dependencies": {
"Swashbuckle.AspNetCore.Swagger": "6.3.0"
},
"runtime": {
"lib/net6.0/Swashbuckle.AspNetCore.SwaggerGen.dll": {
"assemblyVersion": "6.3.0.0",
"fileVersion": "6.3.0.0"
}
}
},
"Swashbuckle.AspNetCore.SwaggerUI/6.3.0": {
"runtime": {
"lib/net6.0/Swashbuckle.AspNetCore.SwaggerUI.dll": {
"assemblyVersion": "6.3.0.0",
"fileVersion": "6.3.0.0"
}
}
}
}
},
"libraries": {
"Play.Catalog.Service/1.0.0": {
"type": "project",
"serviceable": false,
"sha512": ""
},
"Microsoft.Extensions.ApiDescription.Server/3.0.0": {
"type": "package",
"serviceable": true,
"sha512": "sha512-LH4OE/76F6sOCslif7+Xh3fS/wUUrE5ryeXAMcoCnuwOQGT5Smw0p57IgDh/pHgHaGz/e+AmEQb7pRgb++wt0w==",
"path": "microsoft.extensions.apidescription.server/3.0.0",
"hashPath": "microsoft.extensions.apidescription.server.3.0.0.nupkg.sha512"
},
"Microsoft.OpenApi/1.2.3": {
"type": "package",
"serviceable": true,
"sha512": "sha512-Nug3rO+7Kl5/SBAadzSMAVgqDlfGjJZ0GenQrLywJ84XGKO0uRqkunz5Wyl0SDwcR71bAATXvSdbdzPrYRYKGw==",
"path": "microsoft.openapi/1.2.3",
"hashPath": "microsoft.openapi.1.2.3.nupkg.sha512"
},
"Swashbuckle.AspNetCore/6.3.0": {
"type": "package",
"serviceable": true,
"sha512": "sha512-3TAV6JqsJF2F5e5d/tiQuW/TlzKXB/n2IcL5QR1FP8ArmLhmPkpeHiLZ3+1YnJ5840/X5ApvpRRJpM9809IjTg==",
"path": "swashbuckle.aspnetcore/6.3.0",
"hashPath": "swashbuckle.aspnetcore.6.3.0.nupkg.sha512"
},
"Swashbuckle.AspNetCore.Swagger/6.3.0": {
"type": "package",
"serviceable": true,
"sha512": "sha512-+taHh7kowNF+tQo9a82avwDtfqhAC82jTZTqZwypDpauPvwavyVtJ7+ERxE+yDb6U/nOcMicMmDAGbqbJ2Pc+Q==",
"path": "swashbuckle.aspnetcore.swagger/6.3.0",
"hashPath": "swashbuckle.aspnetcore.swagger.6.3.0.nupkg.sha512"
},
"Swashbuckle.AspNetCore.SwaggerGen/6.3.0": {
"type": "package",
"serviceable": true,
"sha512": "sha512-8PRLtqCXTIfc+W/pcyab8GqHzHuFRZ3L+9/fix/ssVknwy/pbgkOqgzq9DGWfKz+MZReIp5ajZLR7bXioDdacQ==",
"path": "swashbuckle.aspnetcore.swaggergen/6.3.0",
"hashPath": "swashbuckle.aspnetcore.swaggergen.6.3.0.nupkg.sha512"
},
"Swashbuckle.AspNetCore.SwaggerUI/6.3.0": {
"type": "package",
"serviceable": true,
"sha512": "sha512-OmVLGzyeNBFUAx6E/bqrZW4uxfv9q2MtegYzeHv5Dj8N34ry8104d6OcyRIV4BhwHBSFD1rMvDlPciguFMtQ5w==",
"path": "swashbuckle.aspnetcore.swaggerui/6.3.0",
"hashPath": "swashbuckle.aspnetcore.swaggerui.6.3.0.nupkg.sha512"
}
}
}

View File

@ -0,0 +1,19 @@
{
"runtimeOptions": {
"tfm": "net6.0",
"frameworks": [
{
"name": "Microsoft.NETCore.App",
"version": "6.0.0"
},
{
"name": "Microsoft.AspNetCore.App",
"version": "6.0.0"
}
],
"configProperties": {
"System.GC.Server": true,
"System.Runtime.Serialization.EnableUnsafeBinaryFormatterSerialization": false
}
}
}

View File

@ -0,0 +1,9 @@
{
"Logging": {
"LogLevel": {
"Default": "Information",
"Microsoft": "Warning",
"Microsoft.Hosting.Lifetime": "Information"
}
}
}

View File

@ -0,0 +1,10 @@
{
"Logging": {
"LogLevel": {
"Default": "Information",
"Microsoft": "Warning",
"Microsoft.Hosting.Lifetime": "Information"
}
},
"AllowedHosts": "*"
}

View File

@ -0,0 +1,11 @@
{
"Version": 1,
"Hash": "bDPgq/2ovvA8f9jWwx1Rjd45Z+2a+z7SoHPEmALQFzQ=",
"Source": "Play.Catalog.Service",
"BasePath": "_content/Play.Catalog.Service",
"Mode": "Default",
"ManifestType": "Build",
"ReferencedProjectsConfiguration": [],
"DiscoveryPatterns": [],
"Assets": []
}

View File

@ -0,0 +1,77 @@
{
"format": 1,
"restore": {
"C:\\dev\\csharp\\Play.Catalog\\src\\Play.Catalog.Service\\Play.Catalog.Service.csproj": {}
},
"projects": {
"C:\\dev\\csharp\\Play.Catalog\\src\\Play.Catalog.Service\\Play.Catalog.Service.csproj": {
"version": "1.0.0",
"restore": {
"projectUniqueName": "C:\\dev\\csharp\\Play.Catalog\\src\\Play.Catalog.Service\\Play.Catalog.Service.csproj",
"projectName": "Play.Catalog.Service",
"projectPath": "C:\\dev\\csharp\\Play.Catalog\\src\\Play.Catalog.Service\\Play.Catalog.Service.csproj",
"packagesPath": "C:\\Users\\Eero\\.nuget\\packages\\",
"outputPath": "C:\\dev\\csharp\\Play.Catalog\\src\\Play.Catalog.Service\\obj\\",
"projectStyle": "PackageReference",
"fallbackFolders": [
"C:\\Program Files (x86)\\Microsoft Visual Studio\\Shared\\NuGetPackages",
"C:\\Program Files\\dotnet\\sdk\\NuGetFallbackFolder"
],
"configFilePaths": [
"C:\\Users\\Eero\\AppData\\Roaming\\NuGet\\NuGet.Config",
"C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.FallbackLocation.config",
"C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.Offline.config"
],
"originalTargetFrameworks": [
"net6.0"
],
"sources": {
"C:\\Program Files (x86)\\Microsoft SDKs\\NuGetPackages\\": {},
"https://api.nuget.org/v3/index.json": {},
"https://packages.stride3d.net/nuget": {}
},
"frameworks": {
"net6.0": {
"targetAlias": "net6.0",
"projectReferences": {}
}
},
"warningProperties": {
"warnAsError": [
"NU1605"
]
}
},
"frameworks": {
"net6.0": {
"targetAlias": "net6.0",
"dependencies": {
"Swashbuckle.AspNetCore": {
"target": "Package",
"version": "[6.3.0, )"
}
},
"imports": [
"net461",
"net462",
"net47",
"net471",
"net472",
"net48"
],
"assetTargetFallback": true,
"warn": true,
"frameworkReferences": {
"Microsoft.AspNetCore.App": {
"privateAssets": "none"
},
"Microsoft.NETCore.App": {
"privateAssets": "all"
}
},
"runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\6.0.201\\RuntimeIdentifierGraph.json"
}
}
}
}
}

View File

@ -0,0 +1,24 @@
<?xml version="1.0" encoding="utf-8" standalone="no"?>
<Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
<RestoreSuccess Condition=" '$(RestoreSuccess)' == '' ">True</RestoreSuccess>
<RestoreTool Condition=" '$(RestoreTool)' == '' ">NuGet</RestoreTool>
<ProjectAssetsFile Condition=" '$(ProjectAssetsFile)' == '' ">$(MSBuildThisFileDirectory)project.assets.json</ProjectAssetsFile>
<NuGetPackageRoot Condition=" '$(NuGetPackageRoot)' == '' ">$(UserProfile)\.nuget\packages\</NuGetPackageRoot>
<NuGetPackageFolders Condition=" '$(NuGetPackageFolders)' == '' ">C:\Users\Eero\.nuget\packages\;C:\Program Files (x86)\Microsoft Visual Studio\Shared\NuGetPackages;C:\Program Files\dotnet\sdk\NuGetFallbackFolder</NuGetPackageFolders>
<NuGetProjectStyle Condition=" '$(NuGetProjectStyle)' == '' ">PackageReference</NuGetProjectStyle>
<NuGetToolVersion Condition=" '$(NuGetToolVersion)' == '' ">6.1.0</NuGetToolVersion>
</PropertyGroup>
<ItemGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
<SourceRoot Include="C:\Users\Eero\.nuget\packages\" />
<SourceRoot Include="C:\Program Files (x86)\Microsoft Visual Studio\Shared\NuGetPackages\" />
<SourceRoot Include="C:\Program Files\dotnet\sdk\NuGetFallbackFolder\" />
</ItemGroup>
<ImportGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
<Import Project="$(NuGetPackageRoot)microsoft.extensions.apidescription.server\3.0.0\build\Microsoft.Extensions.ApiDescription.Server.props" Condition="Exists('$(NuGetPackageRoot)microsoft.extensions.apidescription.server\3.0.0\build\Microsoft.Extensions.ApiDescription.Server.props')" />
<Import Project="$(NuGetPackageRoot)swashbuckle.aspnetcore\6.3.0\build\Swashbuckle.AspNetCore.props" Condition="Exists('$(NuGetPackageRoot)swashbuckle.aspnetcore\6.3.0\build\Swashbuckle.AspNetCore.props')" />
</ImportGroup>
<PropertyGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
<PkgMicrosoft_Extensions_ApiDescription_Server Condition=" '$(PkgMicrosoft_Extensions_ApiDescription_Server)' == '' ">C:\Users\Eero\.nuget\packages\microsoft.extensions.apidescription.server\3.0.0</PkgMicrosoft_Extensions_ApiDescription_Server>
</PropertyGroup>
</Project>

View File

@ -0,0 +1,6 @@
<?xml version="1.0" encoding="utf-8" standalone="no"?>
<Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<ImportGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
<Import Project="$(NuGetPackageRoot)microsoft.extensions.apidescription.server\3.0.0\build\Microsoft.Extensions.ApiDescription.Server.targets" Condition="Exists('$(NuGetPackageRoot)microsoft.extensions.apidescription.server\3.0.0\build\Microsoft.Extensions.ApiDescription.Server.targets')" />
</ImportGroup>
</Project>

View File

@ -0,0 +1,284 @@
{
"version": 3,
"targets": {
"net6.0": {
"Microsoft.Extensions.ApiDescription.Server/3.0.0": {
"type": "package",
"build": {
"build/Microsoft.Extensions.ApiDescription.Server.props": {},
"build/Microsoft.Extensions.ApiDescription.Server.targets": {}
},
"buildMultiTargeting": {
"buildMultiTargeting/Microsoft.Extensions.ApiDescription.Server.props": {},
"buildMultiTargeting/Microsoft.Extensions.ApiDescription.Server.targets": {}
}
},
"Microsoft.OpenApi/1.2.3": {
"type": "package",
"compile": {
"lib/netstandard2.0/Microsoft.OpenApi.dll": {}
},
"runtime": {
"lib/netstandard2.0/Microsoft.OpenApi.dll": {}
}
},
"Swashbuckle.AspNetCore/6.3.0": {
"type": "package",
"dependencies": {
"Microsoft.Extensions.ApiDescription.Server": "3.0.0",
"Swashbuckle.AspNetCore.Swagger": "6.3.0",
"Swashbuckle.AspNetCore.SwaggerGen": "6.3.0",
"Swashbuckle.AspNetCore.SwaggerUI": "6.3.0"
},
"build": {
"build/Swashbuckle.AspNetCore.props": {}
}
},
"Swashbuckle.AspNetCore.Swagger/6.3.0": {
"type": "package",
"dependencies": {
"Microsoft.OpenApi": "1.2.3"
},
"compile": {
"lib/net6.0/Swashbuckle.AspNetCore.Swagger.dll": {}
},
"runtime": {
"lib/net6.0/Swashbuckle.AspNetCore.Swagger.dll": {}
},
"frameworkReferences": [
"Microsoft.AspNetCore.App"
]
},
"Swashbuckle.AspNetCore.SwaggerGen/6.3.0": {
"type": "package",
"dependencies": {
"Swashbuckle.AspNetCore.Swagger": "6.3.0"
},
"compile": {
"lib/net6.0/Swashbuckle.AspNetCore.SwaggerGen.dll": {}
},
"runtime": {
"lib/net6.0/Swashbuckle.AspNetCore.SwaggerGen.dll": {}
}
},
"Swashbuckle.AspNetCore.SwaggerUI/6.3.0": {
"type": "package",
"compile": {
"lib/net6.0/Swashbuckle.AspNetCore.SwaggerUI.dll": {}
},
"runtime": {
"lib/net6.0/Swashbuckle.AspNetCore.SwaggerUI.dll": {}
},
"frameworkReferences": [
"Microsoft.AspNetCore.App"
]
}
}
},
"libraries": {
"Microsoft.Extensions.ApiDescription.Server/3.0.0": {
"sha512": "LH4OE/76F6sOCslif7+Xh3fS/wUUrE5ryeXAMcoCnuwOQGT5Smw0p57IgDh/pHgHaGz/e+AmEQb7pRgb++wt0w==",
"type": "package",
"path": "microsoft.extensions.apidescription.server/3.0.0",
"hasTools": true,
"files": [
".nupkg.metadata",
".signature.p7s",
"build/Microsoft.Extensions.ApiDescription.Server.props",
"build/Microsoft.Extensions.ApiDescription.Server.targets",
"buildMultiTargeting/Microsoft.Extensions.ApiDescription.Server.props",
"buildMultiTargeting/Microsoft.Extensions.ApiDescription.Server.targets",
"microsoft.extensions.apidescription.server.3.0.0.nupkg.sha512",
"microsoft.extensions.apidescription.server.nuspec",
"tools/Newtonsoft.Json.dll",
"tools/dotnet-getdocument.deps.json",
"tools/dotnet-getdocument.dll",
"tools/dotnet-getdocument.runtimeconfig.json",
"tools/net461-x86/GetDocument.Insider.exe",
"tools/net461-x86/GetDocument.Insider.exe.config",
"tools/net461/GetDocument.Insider.exe",
"tools/net461/GetDocument.Insider.exe.config",
"tools/netcoreapp2.1/GetDocument.Insider.deps.json",
"tools/netcoreapp2.1/GetDocument.Insider.dll",
"tools/netcoreapp2.1/GetDocument.Insider.runtimeconfig.json"
]
},
"Microsoft.OpenApi/1.2.3": {
"sha512": "Nug3rO+7Kl5/SBAadzSMAVgqDlfGjJZ0GenQrLywJ84XGKO0uRqkunz5Wyl0SDwcR71bAATXvSdbdzPrYRYKGw==",
"type": "package",
"path": "microsoft.openapi/1.2.3",
"files": [
".nupkg.metadata",
".signature.p7s",
"lib/net46/Microsoft.OpenApi.dll",
"lib/net46/Microsoft.OpenApi.pdb",
"lib/net46/Microsoft.OpenApi.xml",
"lib/netstandard2.0/Microsoft.OpenApi.dll",
"lib/netstandard2.0/Microsoft.OpenApi.pdb",
"lib/netstandard2.0/Microsoft.OpenApi.xml",
"microsoft.openapi.1.2.3.nupkg.sha512",
"microsoft.openapi.nuspec"
]
},
"Swashbuckle.AspNetCore/6.3.0": {
"sha512": "3TAV6JqsJF2F5e5d/tiQuW/TlzKXB/n2IcL5QR1FP8ArmLhmPkpeHiLZ3+1YnJ5840/X5ApvpRRJpM9809IjTg==",
"type": "package",
"path": "swashbuckle.aspnetcore/6.3.0",
"files": [
".nupkg.metadata",
".signature.p7s",
"build/Swashbuckle.AspNetCore.props",
"swashbuckle.aspnetcore.6.3.0.nupkg.sha512",
"swashbuckle.aspnetcore.nuspec"
]
},
"Swashbuckle.AspNetCore.Swagger/6.3.0": {
"sha512": "+taHh7kowNF+tQo9a82avwDtfqhAC82jTZTqZwypDpauPvwavyVtJ7+ERxE+yDb6U/nOcMicMmDAGbqbJ2Pc+Q==",
"type": "package",
"path": "swashbuckle.aspnetcore.swagger/6.3.0",
"files": [
".nupkg.metadata",
".signature.p7s",
"lib/net5.0/Swashbuckle.AspNetCore.Swagger.dll",
"lib/net5.0/Swashbuckle.AspNetCore.Swagger.pdb",
"lib/net5.0/Swashbuckle.AspNetCore.Swagger.xml",
"lib/net6.0/Swashbuckle.AspNetCore.Swagger.dll",
"lib/net6.0/Swashbuckle.AspNetCore.Swagger.pdb",
"lib/net6.0/Swashbuckle.AspNetCore.Swagger.xml",
"lib/netcoreapp3.0/Swashbuckle.AspNetCore.Swagger.dll",
"lib/netcoreapp3.0/Swashbuckle.AspNetCore.Swagger.pdb",
"lib/netcoreapp3.0/Swashbuckle.AspNetCore.Swagger.xml",
"lib/netstandard2.0/Swashbuckle.AspNetCore.Swagger.dll",
"lib/netstandard2.0/Swashbuckle.AspNetCore.Swagger.pdb",
"lib/netstandard2.0/Swashbuckle.AspNetCore.Swagger.xml",
"swashbuckle.aspnetcore.swagger.6.3.0.nupkg.sha512",
"swashbuckle.aspnetcore.swagger.nuspec"
]
},
"Swashbuckle.AspNetCore.SwaggerGen/6.3.0": {
"sha512": "8PRLtqCXTIfc+W/pcyab8GqHzHuFRZ3L+9/fix/ssVknwy/pbgkOqgzq9DGWfKz+MZReIp5ajZLR7bXioDdacQ==",
"type": "package",
"path": "swashbuckle.aspnetcore.swaggergen/6.3.0",
"files": [
".nupkg.metadata",
".signature.p7s",
"lib/net5.0/Swashbuckle.AspNetCore.SwaggerGen.dll",
"lib/net5.0/Swashbuckle.AspNetCore.SwaggerGen.pdb",
"lib/net5.0/Swashbuckle.AspNetCore.SwaggerGen.xml",
"lib/net6.0/Swashbuckle.AspNetCore.SwaggerGen.dll",
"lib/net6.0/Swashbuckle.AspNetCore.SwaggerGen.pdb",
"lib/net6.0/Swashbuckle.AspNetCore.SwaggerGen.xml",
"lib/netcoreapp3.0/Swashbuckle.AspNetCore.SwaggerGen.dll",
"lib/netcoreapp3.0/Swashbuckle.AspNetCore.SwaggerGen.pdb",
"lib/netcoreapp3.0/Swashbuckle.AspNetCore.SwaggerGen.xml",
"lib/netstandard2.0/Swashbuckle.AspNetCore.SwaggerGen.dll",
"lib/netstandard2.0/Swashbuckle.AspNetCore.SwaggerGen.pdb",
"lib/netstandard2.0/Swashbuckle.AspNetCore.SwaggerGen.xml",
"swashbuckle.aspnetcore.swaggergen.6.3.0.nupkg.sha512",
"swashbuckle.aspnetcore.swaggergen.nuspec"
]
},
"Swashbuckle.AspNetCore.SwaggerUI/6.3.0": {
"sha512": "OmVLGzyeNBFUAx6E/bqrZW4uxfv9q2MtegYzeHv5Dj8N34ry8104d6OcyRIV4BhwHBSFD1rMvDlPciguFMtQ5w==",
"type": "package",
"path": "swashbuckle.aspnetcore.swaggerui/6.3.0",
"files": [
".nupkg.metadata",
".signature.p7s",
"lib/net5.0/Swashbuckle.AspNetCore.SwaggerUI.dll",
"lib/net5.0/Swashbuckle.AspNetCore.SwaggerUI.pdb",
"lib/net5.0/Swashbuckle.AspNetCore.SwaggerUI.xml",
"lib/net6.0/Swashbuckle.AspNetCore.SwaggerUI.dll",
"lib/net6.0/Swashbuckle.AspNetCore.SwaggerUI.pdb",
"lib/net6.0/Swashbuckle.AspNetCore.SwaggerUI.xml",
"lib/netcoreapp3.0/Swashbuckle.AspNetCore.SwaggerUI.dll",
"lib/netcoreapp3.0/Swashbuckle.AspNetCore.SwaggerUI.pdb",
"lib/netcoreapp3.0/Swashbuckle.AspNetCore.SwaggerUI.xml",
"lib/netstandard2.0/Swashbuckle.AspNetCore.SwaggerUI.dll",
"lib/netstandard2.0/Swashbuckle.AspNetCore.SwaggerUI.pdb",
"lib/netstandard2.0/Swashbuckle.AspNetCore.SwaggerUI.xml",
"swashbuckle.aspnetcore.swaggerui.6.3.0.nupkg.sha512",
"swashbuckle.aspnetcore.swaggerui.nuspec"
]
}
},
"projectFileDependencyGroups": {
"net6.0": [
"Swashbuckle.AspNetCore >= 6.3.0"
]
},
"packageFolders": {
"C:\\Users\\Eero\\.nuget\\packages\\": {},
"C:\\Program Files (x86)\\Microsoft Visual Studio\\Shared\\NuGetPackages": {},
"C:\\Program Files\\dotnet\\sdk\\NuGetFallbackFolder": {}
},
"project": {
"version": "1.0.0",
"restore": {
"projectUniqueName": "c:\\dev\\csharp\\Play.Catalog\\src\\Play.Catalog.Service\\Play.Catalog.Service.csproj",
"projectName": "Play.Catalog.Service",
"projectPath": "c:\\dev\\csharp\\Play.Catalog\\src\\Play.Catalog.Service\\Play.Catalog.Service.csproj",
"packagesPath": "C:\\Users\\Eero\\.nuget\\packages\\",
"outputPath": "c:\\dev\\csharp\\Play.Catalog\\src\\Play.Catalog.Service\\obj\\",
"projectStyle": "PackageReference",
"fallbackFolders": [
"C:\\Program Files (x86)\\Microsoft Visual Studio\\Shared\\NuGetPackages",
"C:\\Program Files\\dotnet\\sdk\\NuGetFallbackFolder"
],
"configFilePaths": [
"C:\\Users\\Eero\\AppData\\Roaming\\NuGet\\NuGet.Config",
"C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.FallbackLocation.config",
"C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.Offline.config"
],
"originalTargetFrameworks": [
"net6.0"
],
"sources": {
"C:\\Program Files (x86)\\Microsoft SDKs\\NuGetPackages\\": {},
"https://api.nuget.org/v3/index.json": {},
"https://packages.stride3d.net/nuget": {}
},
"frameworks": {
"net6.0": {
"targetAlias": "net6.0",
"projectReferences": {}
}
},
"warningProperties": {
"warnAsError": [
"NU1605"
]
}
},
"frameworks": {
"net6.0": {
"targetAlias": "net6.0",
"dependencies": {
"Swashbuckle.AspNetCore": {
"target": "Package",
"version": "[6.3.0, )"
}
},
"imports": [
"net461",
"net462",
"net47",
"net471",
"net472",
"net48"
],
"assetTargetFallback": true,
"warn": true,
"frameworkReferences": {
"Microsoft.AspNetCore.App": {
"privateAssets": "none"
},
"Microsoft.NETCore.App": {
"privateAssets": "all"
}
},
"runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\6.0.201\\RuntimeIdentifierGraph.json"
}
}
}
}

View File

@ -0,0 +1,15 @@
{
"version": 2,
"dgSpecHash": "6DfAExahqOawAObHuRJCKWKZnYJSTcCYNo1OChmCHuoBAnTxAaug3F054k2WXuAIL+xr1szLdN7nXdR6OE/zfA==",
"success": true,
"projectFilePath": "C:\\dev\\csharp\\Play.Catalog\\src\\Play.Catalog.Service\\Play.Catalog.Service.csproj",
"expectedPackageFiles": [
"C:\\Users\\Eero\\.nuget\\packages\\microsoft.extensions.apidescription.server\\3.0.0\\microsoft.extensions.apidescription.server.3.0.0.nupkg.sha512",
"C:\\Users\\Eero\\.nuget\\packages\\microsoft.openapi\\1.2.3\\microsoft.openapi.1.2.3.nupkg.sha512",
"C:\\Users\\Eero\\.nuget\\packages\\swashbuckle.aspnetcore\\6.3.0\\swashbuckle.aspnetcore.6.3.0.nupkg.sha512",
"C:\\Users\\Eero\\.nuget\\packages\\swashbuckle.aspnetcore.swagger\\6.3.0\\swashbuckle.aspnetcore.swagger.6.3.0.nupkg.sha512",
"C:\\Users\\Eero\\.nuget\\packages\\swashbuckle.aspnetcore.swaggergen\\6.3.0\\swashbuckle.aspnetcore.swaggergen.6.3.0.nupkg.sha512",
"C:\\Users\\Eero\\.nuget\\packages\\swashbuckle.aspnetcore.swaggerui\\6.3.0\\swashbuckle.aspnetcore.swaggerui.6.3.0.nupkg.sha512"
],
"logs": []
}

View File

@ -0,0 +1,6 @@
2.0
2.0
2.0
2.0
2.0
2.0

View File

@ -0,0 +1,23 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Runtime Version:4.0.30319.42000
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
using System;
using System.Reflection;
[assembly: System.Reflection.AssemblyCompanyAttribute("Play.Catalog.Service")]
[assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")]
[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")]
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0")]
[assembly: System.Reflection.AssemblyProductAttribute("Play.Catalog.Service")]
[assembly: System.Reflection.AssemblyTitleAttribute("Play.Catalog.Service")]
[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")]
// Generated by the MSBuild WriteCodeFragment class.

View File

@ -0,0 +1 @@
348bb7192d5f56c517e93b545dd7b93fc6af6280

View File

@ -0,0 +1,3 @@
is_global = true
build_property.RootNamespace = Play.Catalog.Service
build_property.ProjectDir = c:\dev\csharp\Play.Catalog\src\Play.Catalog.Service\

View File

@ -0,0 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<startup>
<supportedRuntime version="v2.0.50727" />
</startup>
</configuration>

View File

@ -0,0 +1,19 @@
{
"FilePath": "c:\\dev\\csharp\\Play.Catalog\\src\\Play.Catalog.Service\\Play.Catalog.Service.csproj",
"Configuration": {
"ConfigurationName": "MVC-3.0",
"LanguageVersion": "6.0",
"Extensions": [
{
"ExtensionName": "MVC-3.0"
}
]
},
"ProjectWorkspaceState": {
"TagHelpers": [],
"CSharpLanguageVersion": 703
},
"RootNamespace": "Play.Catalog.Service",
"Documents": [],
"SerializationFormat": "0.2"
}

View File

@ -0,0 +1,4 @@
// <autogenerated />
using System;
using System.Reflection;
[assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETCoreApp,Version=v5.0", FrameworkDisplayName = "")]

View File

@ -0,0 +1,23 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Runtime Version:4.0.30319.42000
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
using System;
using System.Reflection;
[assembly: System.Reflection.AssemblyCompanyAttribute("Play.Catalog.Service")]
[assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")]
[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")]
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0")]
[assembly: System.Reflection.AssemblyProductAttribute("Play.Catalog.Service")]
[assembly: System.Reflection.AssemblyTitleAttribute("Play.Catalog.Service")]
[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")]
// Generated by the MSBuild WriteCodeFragment class.

View File

@ -0,0 +1 @@
348bb7192d5f56c517e93b545dd7b93fc6af6280

View File

@ -0,0 +1,10 @@
is_global = true
build_property.TargetFramework = net5.0
build_property.TargetPlatformMinVersion =
build_property.UsingMicrosoftNETSdkWeb = true
build_property.ProjectTypeGuids =
build_property.InvariantGlobalization =
build_property.PlatformNeutralAssembly =
build_property._SupportedPlatformList = Linux,macOS,Windows
build_property.RootNamespace = Play.Catalog.Service
build_property.ProjectDir = c:\dev\csharp\Play.Catalog\src\Play.Catalog.Service\

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,4 @@
// <autogenerated />
using System;
using System.Reflection;
[assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETCoreApp,Version=v6.0", FrameworkDisplayName = "")]

View File

@ -0,0 +1,23 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Runtime Version:4.0.30319.42000
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
using System;
using System.Reflection;
[assembly: System.Reflection.AssemblyCompanyAttribute("Play.Catalog.Service")]
[assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")]
[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")]
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0")]
[assembly: System.Reflection.AssemblyProductAttribute("Play.Catalog.Service")]
[assembly: System.Reflection.AssemblyTitleAttribute("Play.Catalog.Service")]
[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")]
// Generated by the MSBuild WriteCodeFragment class.

View File

@ -0,0 +1 @@
348bb7192d5f56c517e93b545dd7b93fc6af6280

View File

@ -0,0 +1,16 @@
is_global = true
build_property.TargetFramework = net6.0
build_property.TargetPlatformMinVersion =
build_property.UsingMicrosoftNETSdkWeb = true
build_property.ProjectTypeGuids =
build_property.InvariantGlobalization =
build_property.PlatformNeutralAssembly =
build_property._SupportedPlatformList = Linux,macOS,Windows
build_property.RootNamespace = Play.Catalog.Service
build_property.RootNamespace = Play.Catalog.Service
build_property.ProjectDir = C:\dev\csharp\Play.Catalog\src\Play.Catalog.Service\
build_property.RazorLangVersion = 6.0
build_property.SupportLocalizedComponentNames =
build_property.GenerateRazorMetadataSourceChecksumAttributes =
build_property.MSBuildProjectDirectory = C:\dev\csharp\Play.Catalog\src\Play.Catalog.Service
build_property._RazorSourceGeneratorDebug =

View File

@ -0,0 +1,16 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
using System;
using System.Reflection;
[assembly: Microsoft.AspNetCore.Mvc.ApplicationParts.ApplicationPartAttribute("Swashbuckle.AspNetCore.SwaggerGen")]
// Generated by the MSBuild WriteCodeFragment class.

View File

@ -0,0 +1 @@
4e111408ca69d70e1ddb08cea7063e4fe2923fb7

View File

@ -0,0 +1,25 @@
C:\dev\csharp\Play.Catalog\src\Play.Catalog.Service\bin\x64\Debug\net6.0\appsettings.Development.json
C:\dev\csharp\Play.Catalog\src\Play.Catalog.Service\bin\x64\Debug\net6.0\appsettings.json
C:\dev\csharp\Play.Catalog\src\Play.Catalog.Service\bin\x64\Debug\net6.0\Play.Catalog.Service.exe
C:\dev\csharp\Play.Catalog\src\Play.Catalog.Service\bin\x64\Debug\net6.0\Play.Catalog.Service.deps.json
C:\dev\csharp\Play.Catalog\src\Play.Catalog.Service\bin\x64\Debug\net6.0\Play.Catalog.Service.runtimeconfig.json
C:\dev\csharp\Play.Catalog\src\Play.Catalog.Service\bin\x64\Debug\net6.0\Play.Catalog.Service.dll
C:\dev\csharp\Play.Catalog\src\Play.Catalog.Service\bin\x64\Debug\net6.0\Play.Catalog.Service.pdb
C:\dev\csharp\Play.Catalog\src\Play.Catalog.Service\bin\x64\Debug\net6.0\Microsoft.OpenApi.dll
C:\dev\csharp\Play.Catalog\src\Play.Catalog.Service\bin\x64\Debug\net6.0\Swashbuckle.AspNetCore.Swagger.dll
C:\dev\csharp\Play.Catalog\src\Play.Catalog.Service\bin\x64\Debug\net6.0\Swashbuckle.AspNetCore.SwaggerGen.dll
C:\dev\csharp\Play.Catalog\src\Play.Catalog.Service\bin\x64\Debug\net6.0\Swashbuckle.AspNetCore.SwaggerUI.dll
C:\dev\csharp\Play.Catalog\src\Play.Catalog.Service\obj\x64\Debug\net6.0\Play.Catalog.Service.csproj.AssemblyReference.cache
C:\dev\csharp\Play.Catalog\src\Play.Catalog.Service\obj\x64\Debug\net6.0\Play.Catalog.Service.GeneratedMSBuildEditorConfig.editorconfig
C:\dev\csharp\Play.Catalog\src\Play.Catalog.Service\obj\x64\Debug\net6.0\Play.Catalog.Service.AssemblyInfoInputs.cache
C:\dev\csharp\Play.Catalog\src\Play.Catalog.Service\obj\x64\Debug\net6.0\Play.Catalog.Service.AssemblyInfo.cs
C:\dev\csharp\Play.Catalog\src\Play.Catalog.Service\obj\x64\Debug\net6.0\Play.Catalog.Service.csproj.CoreCompileInputs.cache
C:\dev\csharp\Play.Catalog\src\Play.Catalog.Service\obj\x64\Debug\net6.0\Play.Catalog.Service.MvcApplicationPartsAssemblyInfo.cs
C:\dev\csharp\Play.Catalog\src\Play.Catalog.Service\obj\x64\Debug\net6.0\Play.Catalog.Service.MvcApplicationPartsAssemblyInfo.cache
C:\dev\csharp\Play.Catalog\src\Play.Catalog.Service\obj\x64\Debug\net6.0\scopedcss\bundle\Play.Catalog.Service.styles.css
C:\dev\csharp\Play.Catalog\src\Play.Catalog.Service\obj\x64\Debug\net6.0\Play.Catalog.Service.csproj.CopyComplete
C:\dev\csharp\Play.Catalog\src\Play.Catalog.Service\obj\x64\Debug\net6.0\Play.Catalog.Service.dll
C:\dev\csharp\Play.Catalog\src\Play.Catalog.Service\obj\x64\Debug\net6.0\refint\Play.Catalog.Service.dll
C:\dev\csharp\Play.Catalog\src\Play.Catalog.Service\obj\x64\Debug\net6.0\Play.Catalog.Service.pdb
C:\dev\csharp\Play.Catalog\src\Play.Catalog.Service\obj\x64\Debug\net6.0\Play.Catalog.Service.genruntimeconfig.cache
C:\dev\csharp\Play.Catalog\src\Play.Catalog.Service\obj\x64\Debug\net6.0\ref\Play.Catalog.Service.dll

View File

@ -0,0 +1 @@
104d4a1f86ace7fa7d5d084369cfbfd359d258ed

File diff suppressed because it is too large Load Diff