├── CRUDWebApiWithSwagger
├── obj
│ ├── rider.project.restore.info
│ ├── Debug
│ │ ├── net6.0
│ │ │ ├── CRUDWebApiWithSwagger.AssemblyInfoInputs.cache
│ │ │ ├── CRUDWebApiWithSwagger.assets.cache
│ │ │ ├── CRUDWebApiWithSwagger.csproj.AssemblyReference.cache
│ │ │ ├── .NETCoreApp,Version=v6.0.AssemblyAttributes.cs
│ │ │ ├── CRUDWebApiWithSwagger.GeneratedMSBuildEditorConfig.editorconfig
│ │ │ └── CRUDWebApiWithSwagger.AssemblyInfo.cs
│ │ └── netcoreapp2.1
│ │ │ ├── CRUDWebApiWithSwagger.AssemblyInfoInputs.cache
│ │ │ ├── CRUDWebApiWithSwagger.RazorAssemblyInfo.cache
│ │ │ ├── CRUDWebApiWithSwagger.assets.cache
│ │ │ ├── CRUDWebApiWithSwagger.csproj.AssemblyReference.cache
│ │ │ ├── CRUDWebApiWithSwagger.GeneratedMSBuildEditorConfig.editorconfig
│ │ │ ├── .NETCoreApp,Version=v2.1.AssemblyAttributes.cs
│ │ │ ├── CRUDWebApiWithSwagger.RazorAssemblyInfo.cs
│ │ │ └── CRUDWebApiWithSwagger.AssemblyInfo.cs
│ ├── CRUDWebApiWithSwagger.csproj.nuget.g.targets
│ ├── project.packagespec.json
│ ├── project.nuget.cache
│ ├── CRUDWebApiWithSwagger.csproj.nuget.g.props
│ ├── CRUDWebApiWithSwagger.csproj.nuget.dgspec.json
│ └── project.assets.json
├── appsettings.json
├── appsettings.Development.json
├── Models
│ ├── ValueSamples.cs
│ └── CrudSampleContext.cs
├── Program.cs
├── CRUDWebApiWithSwagger.csproj
├── Properties
│ └── launchSettings.json
├── Migrations
│ ├── 20190717223123_Initial.cs
│ ├── CrudSampleContextModelSnapshot.cs
│ └── 20190717223123_Initial.Designer.cs
├── Startup.cs
└── Controllers
│ └── ValuesController.cs
├── .idea
└── .idea.CRUDWebApiWithSwagger
│ └── .idea
│ ├── encodings.xml
│ ├── vcs.xml
│ ├── indexLayout.xml
│ ├── .gitignore
│ └── git_toolbox_prj.xml
└── CRUDWebApiWithSwagger.sln
/CRUDWebApiWithSwagger/obj/rider.project.restore.info:
--------------------------------------------------------------------------------
1 | 16552305355956140
--------------------------------------------------------------------------------
/CRUDWebApiWithSwagger/obj/Debug/net6.0/CRUDWebApiWithSwagger.AssemblyInfoInputs.cache:
--------------------------------------------------------------------------------
1 | ff443cea2e9d4ef1a1271a29a7dc5d067e0567a0
2 |
--------------------------------------------------------------------------------
/CRUDWebApiWithSwagger/obj/Debug/netcoreapp2.1/CRUDWebApiWithSwagger.AssemblyInfoInputs.cache:
--------------------------------------------------------------------------------
1 | ff443cea2e9d4ef1a1271a29a7dc5d067e0567a0
2 |
--------------------------------------------------------------------------------
/CRUDWebApiWithSwagger/obj/Debug/netcoreapp2.1/CRUDWebApiWithSwagger.RazorAssemblyInfo.cache:
--------------------------------------------------------------------------------
1 | 8dbe82c91a316321f4b0c903d5267a62351f8e25
2 |
--------------------------------------------------------------------------------
/CRUDWebApiWithSwagger/appsettings.json:
--------------------------------------------------------------------------------
1 | {
2 | "Logging": {
3 | "LogLevel": {
4 | "Default": "Warning"
5 | }
6 | },
7 | "AllowedHosts": "*"
8 | }
9 |
--------------------------------------------------------------------------------
/CRUDWebApiWithSwagger/obj/Debug/net6.0/CRUDWebApiWithSwagger.assets.cache:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/nirzaf/CRUDWebApiWithSwagger/HEAD/CRUDWebApiWithSwagger/obj/Debug/net6.0/CRUDWebApiWithSwagger.assets.cache
--------------------------------------------------------------------------------
/CRUDWebApiWithSwagger/obj/Debug/netcoreapp2.1/CRUDWebApiWithSwagger.assets.cache:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/nirzaf/CRUDWebApiWithSwagger/HEAD/CRUDWebApiWithSwagger/obj/Debug/netcoreapp2.1/CRUDWebApiWithSwagger.assets.cache
--------------------------------------------------------------------------------
/CRUDWebApiWithSwagger/appsettings.Development.json:
--------------------------------------------------------------------------------
1 | {
2 | "Logging": {
3 | "LogLevel": {
4 | "Default": "Debug",
5 | "System": "Information",
6 | "Microsoft": "Information"
7 | }
8 | }
9 | }
10 |
--------------------------------------------------------------------------------
/.idea/.idea.CRUDWebApiWithSwagger/.idea/encodings.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
--------------------------------------------------------------------------------
/.idea/.idea.CRUDWebApiWithSwagger/.idea/vcs.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/CRUDWebApiWithSwagger/obj/Debug/net6.0/CRUDWebApiWithSwagger.csproj.AssemblyReference.cache:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/nirzaf/CRUDWebApiWithSwagger/HEAD/CRUDWebApiWithSwagger/obj/Debug/net6.0/CRUDWebApiWithSwagger.csproj.AssemblyReference.cache
--------------------------------------------------------------------------------
/CRUDWebApiWithSwagger/obj/Debug/netcoreapp2.1/CRUDWebApiWithSwagger.csproj.AssemblyReference.cache:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/nirzaf/CRUDWebApiWithSwagger/HEAD/CRUDWebApiWithSwagger/obj/Debug/netcoreapp2.1/CRUDWebApiWithSwagger.csproj.AssemblyReference.cache
--------------------------------------------------------------------------------
/.idea/.idea.CRUDWebApiWithSwagger/.idea/indexLayout.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/CRUDWebApiWithSwagger/obj/Debug/net6.0/.NETCoreApp,Version=v6.0.AssemblyAttributes.cs:
--------------------------------------------------------------------------------
1 | //
2 | using System;
3 | using System.Reflection;
4 | [assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETCoreApp,Version=v6.0", FrameworkDisplayName = "")]
5 |
--------------------------------------------------------------------------------
/CRUDWebApiWithSwagger/obj/Debug/netcoreapp2.1/CRUDWebApiWithSwagger.GeneratedMSBuildEditorConfig.editorconfig:
--------------------------------------------------------------------------------
1 | is_global = true
2 | build_property.RootNamespace = CRUDWebApiWithSwagger
3 | build_property.ProjectDir = E:\Repos\Articles-master\CRUDWebApiWithSwagger\CRUDWebApiWithSwagger\
4 |
--------------------------------------------------------------------------------
/CRUDWebApiWithSwagger/obj/Debug/netcoreapp2.1/.NETCoreApp,Version=v2.1.AssemblyAttributes.cs:
--------------------------------------------------------------------------------
1 | //
2 | using System;
3 | using System.Reflection;
4 | [assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETCoreApp,Version=v2.1", FrameworkDisplayName = "")]
5 |
--------------------------------------------------------------------------------
/CRUDWebApiWithSwagger/Models/ValueSamples.cs:
--------------------------------------------------------------------------------
1 | using System.ComponentModel.DataAnnotations;
2 |
3 | namespace WebApiWithSwagger.Models
4 | {
5 | public class ValueSamples
6 | {
7 | [Key]
8 | public int Id { get; set; }
9 | public string Name { get; set; }
10 |
11 | }
12 | }
--------------------------------------------------------------------------------
/.idea/.idea.CRUDWebApiWithSwagger/.idea/.gitignore:
--------------------------------------------------------------------------------
1 | # Default ignored files
2 | /shelf/
3 | /workspace.xml
4 | # Rider ignored files
5 | /modules.xml
6 | /projectSettingsUpdater.xml
7 | /.idea.CRUDWebApiWithSwagger.iml
8 | /contentModel.xml
9 | # Editor-based HTTP Client requests
10 | /httpRequests/
11 | # Datasource local storage ignored files
12 | /dataSources/
13 | /dataSources.local.xml
14 |
--------------------------------------------------------------------------------
/CRUDWebApiWithSwagger/Models/CrudSampleContext.cs:
--------------------------------------------------------------------------------
1 | using WebApiWithSwagger.Models;
2 |
3 | namespace CRUDWebApiWithSwagger.Models
4 | {
5 | public class CrudSampleContext : DbContext
6 | {
7 | public CrudSampleContext(DbContextOptions options) : base(options)
8 | {
9 | }
10 |
11 | public DbSet ValueSamples { get; set; }
12 | }
13 | }
14 |
--------------------------------------------------------------------------------
/CRUDWebApiWithSwagger/Program.cs:
--------------------------------------------------------------------------------
1 | using Microsoft.AspNetCore;
2 | using Microsoft.AspNetCore.Hosting;
3 |
4 | namespace WebApiWithSwagger
5 | {
6 | public class Program
7 | {
8 | public static void Main( string[] args )
9 | {
10 | CreateWebHostBuilder( args ).Build().Run();
11 | }
12 |
13 | public static IWebHostBuilder CreateWebHostBuilder( string[] args ) =>
14 | WebHost.CreateDefaultBuilder( args )
15 | .UseStartup();
16 | }
17 | }
18 |
--------------------------------------------------------------------------------
/.idea/.idea.CRUDWebApiWithSwagger/.idea/git_toolbox_prj.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
--------------------------------------------------------------------------------
/CRUDWebApiWithSwagger/obj/CRUDWebApiWithSwagger.csproj.nuget.g.targets:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/CRUDWebApiWithSwagger/CRUDWebApiWithSwagger.csproj:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | net6.0
5 | 10
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
--------------------------------------------------------------------------------
/CRUDWebApiWithSwagger/Properties/launchSettings.json:
--------------------------------------------------------------------------------
1 | {
2 | "$schema": "http://json.schemastore.org/launchsettings.json",
3 | "iisSettings": {
4 | "windowsAuthentication": false,
5 | "anonymousAuthentication": true,
6 | "iisExpress": {
7 | "applicationUrl": "http://localhost:61986",
8 | "sslPort": 0
9 | }
10 | },
11 | "profiles": {
12 | "IIS Express": {
13 | "commandName": "IISExpress",
14 | "launchBrowser": true,
15 | "launchUrl": "api/values",
16 | "environmentVariables": {
17 | "ASPNETCORE_ENVIRONMENT": "Development"
18 | }
19 | },
20 | "WebApiWithSwagger": {
21 | "commandName": "Project",
22 | "launchBrowser": true,
23 | "launchUrl": "api/values",
24 | "applicationUrl": "http://localhost:5000",
25 | "environmentVariables": {
26 | "ASPNETCORE_ENVIRONMENT": "Development"
27 | }
28 | }
29 | }
30 | }
--------------------------------------------------------------------------------
/CRUDWebApiWithSwagger/obj/Debug/net6.0/CRUDWebApiWithSwagger.GeneratedMSBuildEditorConfig.editorconfig:
--------------------------------------------------------------------------------
1 | is_global = true
2 | build_property.TargetFramework = net6.0
3 | build_property.TargetPlatformMinVersion =
4 | build_property.UsingMicrosoftNETSdkWeb = true
5 | build_property.ProjectTypeGuids =
6 | build_property.InvariantGlobalization =
7 | build_property.PlatformNeutralAssembly =
8 | build_property._SupportedPlatformList = Linux,macOS,Windows
9 | build_property.RootNamespace = CRUDWebApiWithSwagger
10 | build_property.RootNamespace = CRUDWebApiWithSwagger
11 | build_property.ProjectDir = E:\Repos\Articles-master\CRUDWebApiWithSwagger\CRUDWebApiWithSwagger\
12 | build_property.RazorLangVersion = 2.1
13 | build_property.SupportLocalizedComponentNames =
14 | build_property.GenerateRazorMetadataSourceChecksumAttributes =
15 | build_property.MSBuildProjectDirectory = E:\Repos\Articles-master\CRUDWebApiWithSwagger\CRUDWebApiWithSwagger
16 | build_property._RazorSourceGeneratorDebug =
17 |
--------------------------------------------------------------------------------
/CRUDWebApiWithSwagger/obj/Debug/netcoreapp2.1/CRUDWebApiWithSwagger.RazorAssemblyInfo.cs:
--------------------------------------------------------------------------------
1 | //------------------------------------------------------------------------------
2 | //
3 | // This code was generated by a tool.
4 | //
5 | // Changes to this file may cause incorrect behavior and will be lost if
6 | // the code is regenerated.
7 | //
8 | //------------------------------------------------------------------------------
9 |
10 | using System;
11 | using System.Reflection;
12 |
13 | [assembly: Microsoft.AspNetCore.Mvc.ApplicationParts.RelatedAssemblyAttribute("CRUDWebApiWithSwagger.Views")]
14 | [assembly: Microsoft.AspNetCore.Razor.Hosting.RazorLanguageVersionAttribute("2.1")]
15 | [assembly: Microsoft.AspNetCore.Razor.Hosting.RazorConfigurationNameAttribute("MVC-2.1")]
16 | [assembly: Microsoft.AspNetCore.Razor.Hosting.RazorExtensionAssemblyNameAttribute("MVC-2.1", "Microsoft.AspNetCore.Mvc.Razor.Extensions")]
17 |
18 | // Generated by the MSBuild WriteCodeFragment class.
19 |
20 |
--------------------------------------------------------------------------------
/CRUDWebApiWithSwagger/obj/Debug/net6.0/CRUDWebApiWithSwagger.AssemblyInfo.cs:
--------------------------------------------------------------------------------
1 | //------------------------------------------------------------------------------
2 | //
3 | // This code was generated by a tool.
4 | //
5 | // Changes to this file may cause incorrect behavior and will be lost if
6 | // the code is regenerated.
7 | //
8 | //------------------------------------------------------------------------------
9 |
10 | using System;
11 | using System.Reflection;
12 |
13 | [assembly: System.Reflection.AssemblyCompanyAttribute("CRUDWebApiWithSwagger")]
14 | [assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")]
15 | [assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")]
16 | [assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0")]
17 | [assembly: System.Reflection.AssemblyProductAttribute("CRUDWebApiWithSwagger")]
18 | [assembly: System.Reflection.AssemblyTitleAttribute("CRUDWebApiWithSwagger")]
19 | [assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")]
20 |
21 | // Generated by the MSBuild WriteCodeFragment class.
22 |
23 |
--------------------------------------------------------------------------------
/CRUDWebApiWithSwagger/obj/Debug/netcoreapp2.1/CRUDWebApiWithSwagger.AssemblyInfo.cs:
--------------------------------------------------------------------------------
1 | //------------------------------------------------------------------------------
2 | //
3 | // This code was generated by a tool.
4 | //
5 | // Changes to this file may cause incorrect behavior and will be lost if
6 | // the code is regenerated.
7 | //
8 | //------------------------------------------------------------------------------
9 |
10 | using System;
11 | using System.Reflection;
12 |
13 | [assembly: System.Reflection.AssemblyCompanyAttribute("CRUDWebApiWithSwagger")]
14 | [assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")]
15 | [assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")]
16 | [assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0")]
17 | [assembly: System.Reflection.AssemblyProductAttribute("CRUDWebApiWithSwagger")]
18 | [assembly: System.Reflection.AssemblyTitleAttribute("CRUDWebApiWithSwagger")]
19 | [assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")]
20 |
21 | // Generated by the MSBuild WriteCodeFragment class.
22 |
23 |
--------------------------------------------------------------------------------
/CRUDWebApiWithSwagger/Migrations/20190717223123_Initial.cs:
--------------------------------------------------------------------------------
1 | using Microsoft.EntityFrameworkCore.Metadata;
2 | using Microsoft.EntityFrameworkCore.Migrations;
3 |
4 | namespace CRUDWebApiWithSwagger.Migrations
5 | {
6 | public partial class Initial : Migration
7 | {
8 | protected override void Up(MigrationBuilder migrationBuilder)
9 | {
10 | migrationBuilder.CreateTable(
11 | name: "ValueSamples",
12 | columns: table => new
13 | {
14 | Id = table.Column(nullable: false)
15 | .Annotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn),
16 | Name = table.Column(nullable: true)
17 | },
18 | constraints: table =>
19 | {
20 | table.PrimaryKey("PK_ValueSamples", x => x.Id);
21 | });
22 | }
23 |
24 | protected override void Down(MigrationBuilder migrationBuilder)
25 | {
26 | migrationBuilder.DropTable(
27 | name: "ValueSamples");
28 | }
29 | }
30 | }
31 |
--------------------------------------------------------------------------------
/CRUDWebApiWithSwagger.sln:
--------------------------------------------------------------------------------
1 |
2 | Microsoft Visual Studio Solution File, Format Version 12.00
3 | # Visual Studio 15
4 | VisualStudioVersion = 15.0.28307.168
5 | MinimumVisualStudioVersion = 10.0.40219.1
6 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "CRUDWebApiWithSwagger", "CRUDWebApiWithSwagger\CRUDWebApiWithSwagger.csproj", "{8B731736-246A-458C-B762-DF61951908EE}"
7 | EndProject
8 | Global
9 | GlobalSection(SolutionConfigurationPlatforms) = preSolution
10 | Debug|Any CPU = Debug|Any CPU
11 | Release|Any CPU = Release|Any CPU
12 | EndGlobalSection
13 | GlobalSection(ProjectConfigurationPlatforms) = postSolution
14 | {8B731736-246A-458C-B762-DF61951908EE}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
15 | {8B731736-246A-458C-B762-DF61951908EE}.Debug|Any CPU.Build.0 = Debug|Any CPU
16 | {8B731736-246A-458C-B762-DF61951908EE}.Release|Any CPU.ActiveCfg = Release|Any CPU
17 | {8B731736-246A-458C-B762-DF61951908EE}.Release|Any CPU.Build.0 = Release|Any CPU
18 | EndGlobalSection
19 | GlobalSection(SolutionProperties) = preSolution
20 | HideSolutionNode = FALSE
21 | EndGlobalSection
22 | GlobalSection(ExtensibilityGlobals) = postSolution
23 | SolutionGuid = {81138E89-C2DD-4DC5-A1C1-0713DDB798D1}
24 | EndGlobalSection
25 | EndGlobal
26 |
--------------------------------------------------------------------------------
/CRUDWebApiWithSwagger/obj/project.packagespec.json:
--------------------------------------------------------------------------------
1 | "restore":{"projectUniqueName":"E:\\Repos\\Articles-master\\CRUDWebApiWithSwagger\\CRUDWebApiWithSwagger\\CRUDWebApiWithSwagger.csproj","projectName":"CRUDWebApiWithSwagger","projectPath":"E:\\Repos\\Articles-master\\CRUDWebApiWithSwagger\\CRUDWebApiWithSwagger\\CRUDWebApiWithSwagger.csproj","outputPath":"E:\\Repos\\Articles-master\\CRUDWebApiWithSwagger\\CRUDWebApiWithSwagger\\obj\\","projectStyle":"PackageReference","originalTargetFrameworks":["net6.0"],"sources":{"C:\\Program Files (x86)\\Microsoft SDKs\\NuGetPackages\\":{},"https://api.nuget.org/v3/index.json":{}},"frameworks":{"net6.0":{"targetAlias":"net6.0","projectReferences":{}}},"warningProperties":{"warnAsError":["NU1605"]}}"frameworks":{"net6.0":{"targetAlias":"net6.0","dependencies":{"Microsoft.AspNetCore.Razor.Design":{"suppressParent":"All","target":"Package","version":"[2.2.0, )"},"Swashbuckle.AspNetCore":{"target":"Package","version":"[6.3.1, )"}},"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.300\\RuntimeIdentifierGraph.json"}}
--------------------------------------------------------------------------------
/CRUDWebApiWithSwagger/obj/project.nuget.cache:
--------------------------------------------------------------------------------
1 | {
2 | "version": 2,
3 | "dgSpecHash": "D+00OUR+UGPjgfweAZ0TDXdefMq9tPabxbo5UikItpptLHMVaP16l5gUAqq76XwrosGJEv8wKjCQFCxq7tNLtQ==",
4 | "success": true,
5 | "projectFilePath": "E:\\Repos\\Articles-master\\CRUDWebApiWithSwagger\\CRUDWebApiWithSwagger\\CRUDWebApiWithSwagger.csproj",
6 | "expectedPackageFiles": [
7 | "C:\\Users\\Fazrin\\.nuget\\packages\\microsoft.aspnetcore.razor.design\\2.2.0\\microsoft.aspnetcore.razor.design.2.2.0.nupkg.sha512",
8 | "C:\\Users\\Fazrin\\.nuget\\packages\\microsoft.extensions.apidescription.server\\3.0.0\\microsoft.extensions.apidescription.server.3.0.0.nupkg.sha512",
9 | "C:\\Users\\Fazrin\\.nuget\\packages\\microsoft.openapi\\1.2.3\\microsoft.openapi.1.2.3.nupkg.sha512",
10 | "C:\\Users\\Fazrin\\.nuget\\packages\\swashbuckle.aspnetcore\\6.3.1\\swashbuckle.aspnetcore.6.3.1.nupkg.sha512",
11 | "C:\\Users\\Fazrin\\.nuget\\packages\\swashbuckle.aspnetcore.swagger\\6.3.1\\swashbuckle.aspnetcore.swagger.6.3.1.nupkg.sha512",
12 | "C:\\Users\\Fazrin\\.nuget\\packages\\swashbuckle.aspnetcore.swaggergen\\6.3.1\\swashbuckle.aspnetcore.swaggergen.6.3.1.nupkg.sha512",
13 | "C:\\Users\\Fazrin\\.nuget\\packages\\swashbuckle.aspnetcore.swaggerui\\6.3.1\\swashbuckle.aspnetcore.swaggerui.6.3.1.nupkg.sha512"
14 | ],
15 | "logs": []
16 | }
--------------------------------------------------------------------------------
/CRUDWebApiWithSwagger/Migrations/CrudSampleContextModelSnapshot.cs:
--------------------------------------------------------------------------------
1 | //
2 | using CRUDWebApiWithSwagger.Models;
3 | using Microsoft.EntityFrameworkCore;
4 | using Microsoft.EntityFrameworkCore.Infrastructure;
5 | using Microsoft.EntityFrameworkCore.Metadata;
6 | using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
7 |
8 | namespace CRUDWebApiWithSwagger.Migrations
9 | {
10 | [DbContext(typeof(CrudSampleContext))]
11 | partial class CrudSampleContextModelSnapshot : ModelSnapshot
12 | {
13 | protected override void BuildModel(ModelBuilder modelBuilder)
14 | {
15 | #pragma warning disable 612, 618
16 | modelBuilder
17 | .HasAnnotation("ProductVersion", "2.1.11-servicing-32099")
18 | .HasAnnotation("Relational:MaxIdentifierLength", 128)
19 | .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
20 |
21 | modelBuilder.Entity("WebApiWithSwagger.Models.ValueSamples", b =>
22 | {
23 | b.Property("Id")
24 | .ValueGeneratedOnAdd()
25 | .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
26 |
27 | b.Property("Name");
28 |
29 | b.HasKey("Id");
30 |
31 | b.ToTable("ValueSamples");
32 | });
33 | #pragma warning restore 612, 618
34 | }
35 | }
36 | }
37 |
--------------------------------------------------------------------------------
/CRUDWebApiWithSwagger/Migrations/20190717223123_Initial.Designer.cs:
--------------------------------------------------------------------------------
1 | //
2 | using CRUDWebApiWithSwagger.Models;
3 | using Microsoft.EntityFrameworkCore;
4 | using Microsoft.EntityFrameworkCore.Infrastructure;
5 | using Microsoft.EntityFrameworkCore.Metadata;
6 | using Microsoft.EntityFrameworkCore.Migrations;
7 | using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
8 |
9 | namespace CRUDWebApiWithSwagger.Migrations
10 | {
11 | [DbContext(typeof(CrudSampleContext))]
12 | [Migration("20190717223123_Initial")]
13 | partial class Initial
14 | {
15 | protected override void BuildTargetModel(ModelBuilder modelBuilder)
16 | {
17 | #pragma warning disable 612, 618
18 | modelBuilder
19 | .HasAnnotation("ProductVersion", "2.1.11-servicing-32099")
20 | .HasAnnotation("Relational:MaxIdentifierLength", 128)
21 | .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
22 |
23 | modelBuilder.Entity("WebApiWithSwagger.Models.ValueSamples", b =>
24 | {
25 | b.Property("Id")
26 | .ValueGeneratedOnAdd()
27 | .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
28 |
29 | b.Property("Name");
30 |
31 | b.HasKey("Id");
32 |
33 | b.ToTable("ValueSamples");
34 | });
35 | #pragma warning restore 612, 618
36 | }
37 | }
38 | }
39 |
--------------------------------------------------------------------------------
/CRUDWebApiWithSwagger/Startup.cs:
--------------------------------------------------------------------------------
1 | using CRUDWebApiWithSwagger.Models;
2 | using Microsoft.AspNetCore.Builder;
3 | using Microsoft.AspNetCore.Hosting;
4 | using Microsoft.AspNetCore.Mvc;
5 | using Microsoft.Extensions.Configuration;
6 | using Microsoft.Extensions.DependencyInjection;
7 |
8 | namespace WebApiWithSwagger
9 | {
10 | public class Startup
11 | {
12 | public Startup( IConfiguration configuration )
13 | {
14 | Configuration = configuration;
15 | }
16 |
17 | public IConfiguration Configuration { get; }
18 |
19 | // This method gets called by the runtime. Use this method to add services to the container.
20 | public void ConfigureServices( IServiceCollection services )
21 | {
22 | services.AddMvc().SetCompatibilityVersion( CompatibilityVersion.Version_2_1 );
23 | services.AddDbContext(options => options.UseSqlServer(@""));
24 |
25 | // Register Swagger
26 | services.AddSwaggerGen( c =>
27 | {
28 | c.SwaggerDoc( "v1", new Info { Title = "Sample API", Version = "version 1" } );
29 | } );
30 | }
31 |
32 | // This method gets called by the runtime. Use this method to configure the HTTP request pipeline.
33 | public void Configure( IApplicationBuilder app, IHostingEnvironment env )
34 | {
35 | if ( env.IsDevelopment() )
36 | {
37 | app.UseDeveloperExceptionPage();
38 |
39 | // Enable middleware to serve generated Swagger as a JSON endpoint.
40 | app.UseSwagger();
41 |
42 | // Enable middleware to serve swagger-ui (HTML, JS, CSS, etc.),
43 | // specifying the Swagger JSON endpoint.
44 | app.UseSwaggerUI( c =>
45 | {
46 | c.SwaggerEndpoint( "/swagger/v1/swagger.json", "My API V1" );
47 | } );
48 | }
49 |
50 | app.UseMvc();
51 | }
52 | }
53 | }
--------------------------------------------------------------------------------
/CRUDWebApiWithSwagger/Controllers/ValuesController.cs:
--------------------------------------------------------------------------------
1 | using System.Collections.Generic;
2 | using CRUDWebApiWithSwagger.Models;
3 | using Microsoft.AspNetCore.Mvc;
4 | using WebApiWithSwagger.Models;
5 |
6 | namespace CRUDWebApiWithSwagger.Controllers
7 | {
8 | [Route("api/[controller]")]
9 | [ApiController]
10 | public class ValuesController : ControllerBase
11 | {
12 | private readonly CrudSampleContext _crudSampleContext;
13 | public ValuesController(CrudSampleContext crudSampleContext)
14 | {
15 | _crudSampleContext = crudSampleContext;
16 | }
17 |
18 | // GET api/values
19 | [HttpGet]
20 | public ActionResult> Get()
21 | {
22 | var itemLst = _crudSampleContext.ValueSamples.ToList();
23 | return new List(itemLst);
24 | }
25 |
26 | // GET api/values/5
27 | [HttpGet("{id}")]
28 | public ActionResult Get(int id)
29 | {
30 | var itemToReturn = _crudSampleContext.ValueSamples.FirstOrDefault(x => x.Id == id);
31 | return itemToReturn?.Name;
32 | }
33 |
34 | // POST api/values
35 | [HttpPost]
36 | public void Post([FromBody] ValueSamples createSample)
37 | {
38 | _crudSampleContext.ValueSamples.Add(createSample);
39 | _crudSampleContext.SaveChangesAsync();
40 | }
41 |
42 | // PUT api/values/5
43 | [HttpPut]
44 | public void Put([FromBody] ValueSamples updateSample)
45 | {
46 | _crudSampleContext.ValueSamples.Update(updateSample);
47 | _crudSampleContext.SaveChanges();
48 | }
49 |
50 | // DELETE api/values/5
51 | [HttpDelete("{id}")]
52 | public void Delete(int id)
53 | {
54 | var itemToDelete = _crudSampleContext.ValueSamples.Where(x => x.Id == id).FirstOrDefault();
55 | _crudSampleContext.ValueSamples.Remove(itemToDelete);
56 | _crudSampleContext.SaveChanges();
57 | }
58 | }
59 | }
--------------------------------------------------------------------------------
/CRUDWebApiWithSwagger/obj/CRUDWebApiWithSwagger.csproj.nuget.g.props:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | True
5 | NuGet
6 | $(MSBuildThisFileDirectory)project.assets.json
7 | $(UserProfile)\.nuget\packages\
8 | C:\Users\Fazrin\.nuget\packages\
9 | PackageReference
10 | 6.0.0
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 | C:\Users\Fazrin\.nuget\packages\microsoft.extensions.apidescription.server\3.0.0
22 | C:\Users\Fazrin\.nuget\packages\microsoft.aspnetcore.razor.design\2.2.0
23 |
24 |
--------------------------------------------------------------------------------
/CRUDWebApiWithSwagger/obj/CRUDWebApiWithSwagger.csproj.nuget.dgspec.json:
--------------------------------------------------------------------------------
1 | {
2 | "format": 1,
3 | "restore": {
4 | "E:\\Repos\\Articles-master\\CRUDWebApiWithSwagger\\CRUDWebApiWithSwagger\\CRUDWebApiWithSwagger.csproj": {}
5 | },
6 | "projects": {
7 | "E:\\Repos\\Articles-master\\CRUDWebApiWithSwagger\\CRUDWebApiWithSwagger\\CRUDWebApiWithSwagger.csproj": {
8 | "version": "1.0.0",
9 | "restore": {
10 | "projectUniqueName": "E:\\Repos\\Articles-master\\CRUDWebApiWithSwagger\\CRUDWebApiWithSwagger\\CRUDWebApiWithSwagger.csproj",
11 | "projectName": "CRUDWebApiWithSwagger",
12 | "projectPath": "E:\\Repos\\Articles-master\\CRUDWebApiWithSwagger\\CRUDWebApiWithSwagger\\CRUDWebApiWithSwagger.csproj",
13 | "packagesPath": "C:\\Users\\Fazrin\\.nuget\\packages\\",
14 | "outputPath": "E:\\Repos\\Articles-master\\CRUDWebApiWithSwagger\\CRUDWebApiWithSwagger\\obj\\",
15 | "projectStyle": "PackageReference",
16 | "configFilePaths": [
17 | "C:\\Users\\Fazrin\\AppData\\Roaming\\NuGet\\NuGet.Config",
18 | "C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.Offline.config"
19 | ],
20 | "originalTargetFrameworks": [
21 | "net6.0"
22 | ],
23 | "sources": {
24 | "C:\\Program Files (x86)\\Microsoft SDKs\\NuGetPackages\\": {},
25 | "https://api.nuget.org/v3/index.json": {}
26 | },
27 | "frameworks": {
28 | "net6.0": {
29 | "targetAlias": "net6.0",
30 | "projectReferences": {}
31 | }
32 | },
33 | "warningProperties": {
34 | "warnAsError": [
35 | "NU1605"
36 | ]
37 | }
38 | },
39 | "frameworks": {
40 | "net6.0": {
41 | "targetAlias": "net6.0",
42 | "dependencies": {
43 | "Microsoft.AspNetCore.Razor.Design": {
44 | "suppressParent": "All",
45 | "target": "Package",
46 | "version": "[2.2.0, )"
47 | },
48 | "Swashbuckle.AspNetCore": {
49 | "target": "Package",
50 | "version": "[6.3.1, )"
51 | }
52 | },
53 | "imports": [
54 | "net461",
55 | "net462",
56 | "net47",
57 | "net471",
58 | "net472",
59 | "net48"
60 | ],
61 | "assetTargetFallback": true,
62 | "warn": true,
63 | "frameworkReferences": {
64 | "Microsoft.AspNetCore.App": {
65 | "privateAssets": "none"
66 | },
67 | "Microsoft.NETCore.App": {
68 | "privateAssets": "all"
69 | }
70 | },
71 | "runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\6.0.300\\RuntimeIdentifierGraph.json"
72 | }
73 | }
74 | }
75 | }
76 | }
--------------------------------------------------------------------------------
/CRUDWebApiWithSwagger/obj/project.assets.json:
--------------------------------------------------------------------------------
1 | {
2 | "version": 3,
3 | "targets": {
4 | "net6.0": {
5 | "Microsoft.AspNetCore.Razor.Design/2.2.0": {
6 | "type": "package",
7 | "build": {
8 | "build/netstandard2.0/Microsoft.AspNetCore.Razor.Design.props": {}
9 | },
10 | "buildMultiTargeting": {
11 | "buildMultiTargeting/Microsoft.AspNetCore.Razor.Design.props": {}
12 | }
13 | },
14 | "Microsoft.Extensions.ApiDescription.Server/3.0.0": {
15 | "type": "package",
16 | "build": {
17 | "build/Microsoft.Extensions.ApiDescription.Server.props": {},
18 | "build/Microsoft.Extensions.ApiDescription.Server.targets": {}
19 | },
20 | "buildMultiTargeting": {
21 | "buildMultiTargeting/Microsoft.Extensions.ApiDescription.Server.props": {},
22 | "buildMultiTargeting/Microsoft.Extensions.ApiDescription.Server.targets": {}
23 | }
24 | },
25 | "Microsoft.OpenApi/1.2.3": {
26 | "type": "package",
27 | "compile": {
28 | "lib/netstandard2.0/Microsoft.OpenApi.dll": {}
29 | },
30 | "runtime": {
31 | "lib/netstandard2.0/Microsoft.OpenApi.dll": {}
32 | }
33 | },
34 | "Swashbuckle.AspNetCore/6.3.1": {
35 | "type": "package",
36 | "dependencies": {
37 | "Microsoft.Extensions.ApiDescription.Server": "3.0.0",
38 | "Swashbuckle.AspNetCore.Swagger": "6.3.1",
39 | "Swashbuckle.AspNetCore.SwaggerGen": "6.3.1",
40 | "Swashbuckle.AspNetCore.SwaggerUI": "6.3.1"
41 | },
42 | "build": {
43 | "build/Swashbuckle.AspNetCore.props": {}
44 | }
45 | },
46 | "Swashbuckle.AspNetCore.Swagger/6.3.1": {
47 | "type": "package",
48 | "dependencies": {
49 | "Microsoft.OpenApi": "1.2.3"
50 | },
51 | "compile": {
52 | "lib/net6.0/Swashbuckle.AspNetCore.Swagger.dll": {}
53 | },
54 | "runtime": {
55 | "lib/net6.0/Swashbuckle.AspNetCore.Swagger.dll": {}
56 | },
57 | "frameworkReferences": [
58 | "Microsoft.AspNetCore.App"
59 | ]
60 | },
61 | "Swashbuckle.AspNetCore.SwaggerGen/6.3.1": {
62 | "type": "package",
63 | "dependencies": {
64 | "Swashbuckle.AspNetCore.Swagger": "6.3.1"
65 | },
66 | "compile": {
67 | "lib/net6.0/Swashbuckle.AspNetCore.SwaggerGen.dll": {}
68 | },
69 | "runtime": {
70 | "lib/net6.0/Swashbuckle.AspNetCore.SwaggerGen.dll": {}
71 | }
72 | },
73 | "Swashbuckle.AspNetCore.SwaggerUI/6.3.1": {
74 | "type": "package",
75 | "compile": {
76 | "lib/net6.0/Swashbuckle.AspNetCore.SwaggerUI.dll": {}
77 | },
78 | "runtime": {
79 | "lib/net6.0/Swashbuckle.AspNetCore.SwaggerUI.dll": {}
80 | },
81 | "frameworkReferences": [
82 | "Microsoft.AspNetCore.App"
83 | ]
84 | }
85 | }
86 | },
87 | "libraries": {
88 | "Microsoft.AspNetCore.Razor.Design/2.2.0": {
89 | "sha512": "VLWK+ZtMMNukY6XjxYHc7mz33vkquoEzQJHm/LCF5REVxIaexLr+UTImljRRJBdUDJluDAQwU+59IX0rFDfURA==",
90 | "type": "package",
91 | "path": "microsoft.aspnetcore.razor.design/2.2.0",
92 | "hasTools": true,
93 | "files": [
94 | ".nupkg.metadata",
95 | ".signature.p7s",
96 | "build/netstandard2.0/Microsoft.AspNetCore.Razor.Design.CodeGeneration.targets",
97 | "build/netstandard2.0/Microsoft.AspNetCore.Razor.Design.props",
98 | "buildMultiTargeting/Microsoft.AspNetCore.Razor.Design.props",
99 | "microsoft.aspnetcore.razor.design.2.2.0.nupkg.sha512",
100 | "microsoft.aspnetcore.razor.design.nuspec",
101 | "tools/Microsoft.AspNetCore.Razor.Language.dll",
102 | "tools/Microsoft.CodeAnalysis.CSharp.dll",
103 | "tools/Microsoft.CodeAnalysis.Razor.dll",
104 | "tools/Microsoft.CodeAnalysis.dll",
105 | "tools/Newtonsoft.Json.dll",
106 | "tools/runtimes/unix/lib/netstandard1.3/System.Text.Encoding.CodePages.dll",
107 | "tools/runtimes/win/lib/netstandard1.3/System.Text.Encoding.CodePages.dll",
108 | "tools/rzc.deps.json",
109 | "tools/rzc.dll",
110 | "tools/rzc.runtimeconfig.json"
111 | ]
112 | },
113 | "Microsoft.Extensions.ApiDescription.Server/3.0.0": {
114 | "sha512": "LH4OE/76F6sOCslif7+Xh3fS/wUUrE5ryeXAMcoCnuwOQGT5Smw0p57IgDh/pHgHaGz/e+AmEQb7pRgb++wt0w==",
115 | "type": "package",
116 | "path": "microsoft.extensions.apidescription.server/3.0.0",
117 | "hasTools": true,
118 | "files": [
119 | ".nupkg.metadata",
120 | ".signature.p7s",
121 | "build/Microsoft.Extensions.ApiDescription.Server.props",
122 | "build/Microsoft.Extensions.ApiDescription.Server.targets",
123 | "buildMultiTargeting/Microsoft.Extensions.ApiDescription.Server.props",
124 | "buildMultiTargeting/Microsoft.Extensions.ApiDescription.Server.targets",
125 | "microsoft.extensions.apidescription.server.3.0.0.nupkg.sha512",
126 | "microsoft.extensions.apidescription.server.nuspec",
127 | "tools/Newtonsoft.Json.dll",
128 | "tools/dotnet-getdocument.deps.json",
129 | "tools/dotnet-getdocument.dll",
130 | "tools/dotnet-getdocument.runtimeconfig.json",
131 | "tools/net461-x86/GetDocument.Insider.exe",
132 | "tools/net461-x86/GetDocument.Insider.exe.config",
133 | "tools/net461/GetDocument.Insider.exe",
134 | "tools/net461/GetDocument.Insider.exe.config",
135 | "tools/netcoreapp2.1/GetDocument.Insider.deps.json",
136 | "tools/netcoreapp2.1/GetDocument.Insider.dll",
137 | "tools/netcoreapp2.1/GetDocument.Insider.runtimeconfig.json"
138 | ]
139 | },
140 | "Microsoft.OpenApi/1.2.3": {
141 | "sha512": "Nug3rO+7Kl5/SBAadzSMAVgqDlfGjJZ0GenQrLywJ84XGKO0uRqkunz5Wyl0SDwcR71bAATXvSdbdzPrYRYKGw==",
142 | "type": "package",
143 | "path": "microsoft.openapi/1.2.3",
144 | "files": [
145 | ".nupkg.metadata",
146 | ".signature.p7s",
147 | "lib/net46/Microsoft.OpenApi.dll",
148 | "lib/net46/Microsoft.OpenApi.pdb",
149 | "lib/net46/Microsoft.OpenApi.xml",
150 | "lib/netstandard2.0/Microsoft.OpenApi.dll",
151 | "lib/netstandard2.0/Microsoft.OpenApi.pdb",
152 | "lib/netstandard2.0/Microsoft.OpenApi.xml",
153 | "microsoft.openapi.1.2.3.nupkg.sha512",
154 | "microsoft.openapi.nuspec"
155 | ]
156 | },
157 | "Swashbuckle.AspNetCore/6.3.1": {
158 | "sha512": "JFk0+HHUPdjYuPhkpGBMLi2JtnEuWkE2pp0yXQp64DmeMe+Fb0hZyVNq/ENJ2vQNso7Zg+C758WmR/xyAl36bA==",
159 | "type": "package",
160 | "path": "swashbuckle.aspnetcore/6.3.1",
161 | "files": [
162 | ".nupkg.metadata",
163 | ".signature.p7s",
164 | "build/Swashbuckle.AspNetCore.props",
165 | "swashbuckle.aspnetcore.6.3.1.nupkg.sha512",
166 | "swashbuckle.aspnetcore.nuspec"
167 | ]
168 | },
169 | "Swashbuckle.AspNetCore.Swagger/6.3.1": {
170 | "sha512": "idAFh4xhyJHYHfdLVOOn+BmscBul1OQbWsnL6YPJE8tO/0y6S79hDCvs6OY5VI093/9+1pYY3j31Zet9yaDZjA==",
171 | "type": "package",
172 | "path": "swashbuckle.aspnetcore.swagger/6.3.1",
173 | "files": [
174 | ".nupkg.metadata",
175 | ".signature.p7s",
176 | "lib/net5.0/Swashbuckle.AspNetCore.Swagger.dll",
177 | "lib/net5.0/Swashbuckle.AspNetCore.Swagger.pdb",
178 | "lib/net5.0/Swashbuckle.AspNetCore.Swagger.xml",
179 | "lib/net6.0/Swashbuckle.AspNetCore.Swagger.dll",
180 | "lib/net6.0/Swashbuckle.AspNetCore.Swagger.pdb",
181 | "lib/net6.0/Swashbuckle.AspNetCore.Swagger.xml",
182 | "lib/netcoreapp3.0/Swashbuckle.AspNetCore.Swagger.dll",
183 | "lib/netcoreapp3.0/Swashbuckle.AspNetCore.Swagger.pdb",
184 | "lib/netcoreapp3.0/Swashbuckle.AspNetCore.Swagger.xml",
185 | "lib/netstandard2.0/Swashbuckle.AspNetCore.Swagger.dll",
186 | "lib/netstandard2.0/Swashbuckle.AspNetCore.Swagger.pdb",
187 | "lib/netstandard2.0/Swashbuckle.AspNetCore.Swagger.xml",
188 | "swashbuckle.aspnetcore.swagger.6.3.1.nupkg.sha512",
189 | "swashbuckle.aspnetcore.swagger.nuspec"
190 | ]
191 | },
192 | "Swashbuckle.AspNetCore.SwaggerGen/6.3.1": {
193 | "sha512": "+uoBV4h/6NhCPLoTofSmuOnZ+usu4PW1jP6l4OHwPyu2frbYXGNpJsHs5uUXXn929OiVQkT8wo3Lj/o+P99Ejg==",
194 | "type": "package",
195 | "path": "swashbuckle.aspnetcore.swaggergen/6.3.1",
196 | "files": [
197 | ".nupkg.metadata",
198 | ".signature.p7s",
199 | "lib/net5.0/Swashbuckle.AspNetCore.SwaggerGen.dll",
200 | "lib/net5.0/Swashbuckle.AspNetCore.SwaggerGen.pdb",
201 | "lib/net5.0/Swashbuckle.AspNetCore.SwaggerGen.xml",
202 | "lib/net6.0/Swashbuckle.AspNetCore.SwaggerGen.dll",
203 | "lib/net6.0/Swashbuckle.AspNetCore.SwaggerGen.pdb",
204 | "lib/net6.0/Swashbuckle.AspNetCore.SwaggerGen.xml",
205 | "lib/netcoreapp3.0/Swashbuckle.AspNetCore.SwaggerGen.dll",
206 | "lib/netcoreapp3.0/Swashbuckle.AspNetCore.SwaggerGen.pdb",
207 | "lib/netcoreapp3.0/Swashbuckle.AspNetCore.SwaggerGen.xml",
208 | "lib/netstandard2.0/Swashbuckle.AspNetCore.SwaggerGen.dll",
209 | "lib/netstandard2.0/Swashbuckle.AspNetCore.SwaggerGen.pdb",
210 | "lib/netstandard2.0/Swashbuckle.AspNetCore.SwaggerGen.xml",
211 | "swashbuckle.aspnetcore.swaggergen.6.3.1.nupkg.sha512",
212 | "swashbuckle.aspnetcore.swaggergen.nuspec"
213 | ]
214 | },
215 | "Swashbuckle.AspNetCore.SwaggerUI/6.3.1": {
216 | "sha512": "JLm9hN67jh7RHsX3H30+tb432Li8xm/qV5lRyMMkyHYMfWitIuKAAdrpo2ILcHOIeH7CLMuOO2hp/iLBmE+Bkw==",
217 | "type": "package",
218 | "path": "swashbuckle.aspnetcore.swaggerui/6.3.1",
219 | "files": [
220 | ".nupkg.metadata",
221 | ".signature.p7s",
222 | "lib/net5.0/Swashbuckle.AspNetCore.SwaggerUI.dll",
223 | "lib/net5.0/Swashbuckle.AspNetCore.SwaggerUI.pdb",
224 | "lib/net5.0/Swashbuckle.AspNetCore.SwaggerUI.xml",
225 | "lib/net6.0/Swashbuckle.AspNetCore.SwaggerUI.dll",
226 | "lib/net6.0/Swashbuckle.AspNetCore.SwaggerUI.pdb",
227 | "lib/net6.0/Swashbuckle.AspNetCore.SwaggerUI.xml",
228 | "lib/netcoreapp3.0/Swashbuckle.AspNetCore.SwaggerUI.dll",
229 | "lib/netcoreapp3.0/Swashbuckle.AspNetCore.SwaggerUI.pdb",
230 | "lib/netcoreapp3.0/Swashbuckle.AspNetCore.SwaggerUI.xml",
231 | "lib/netstandard2.0/Swashbuckle.AspNetCore.SwaggerUI.dll",
232 | "lib/netstandard2.0/Swashbuckle.AspNetCore.SwaggerUI.pdb",
233 | "lib/netstandard2.0/Swashbuckle.AspNetCore.SwaggerUI.xml",
234 | "swashbuckle.aspnetcore.swaggerui.6.3.1.nupkg.sha512",
235 | "swashbuckle.aspnetcore.swaggerui.nuspec"
236 | ]
237 | }
238 | },
239 | "projectFileDependencyGroups": {
240 | "net6.0": [
241 | "Microsoft.AspNetCore.Razor.Design >= 2.2.0",
242 | "Swashbuckle.AspNetCore >= 6.3.1"
243 | ]
244 | },
245 | "packageFolders": {
246 | "C:\\Users\\Fazrin\\.nuget\\packages\\": {}
247 | },
248 | "project": {
249 | "version": "1.0.0",
250 | "restore": {
251 | "projectUniqueName": "E:\\Repos\\Articles-master\\CRUDWebApiWithSwagger\\CRUDWebApiWithSwagger\\CRUDWebApiWithSwagger.csproj",
252 | "projectName": "CRUDWebApiWithSwagger",
253 | "projectPath": "E:\\Repos\\Articles-master\\CRUDWebApiWithSwagger\\CRUDWebApiWithSwagger\\CRUDWebApiWithSwagger.csproj",
254 | "packagesPath": "C:\\Users\\Fazrin\\.nuget\\packages\\",
255 | "outputPath": "E:\\Repos\\Articles-master\\CRUDWebApiWithSwagger\\CRUDWebApiWithSwagger\\obj\\",
256 | "projectStyle": "PackageReference",
257 | "configFilePaths": [
258 | "C:\\Users\\Fazrin\\AppData\\Roaming\\NuGet\\NuGet.Config",
259 | "C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.Offline.config"
260 | ],
261 | "originalTargetFrameworks": [
262 | "net6.0"
263 | ],
264 | "sources": {
265 | "C:\\Program Files (x86)\\Microsoft SDKs\\NuGetPackages\\": {},
266 | "https://api.nuget.org/v3/index.json": {}
267 | },
268 | "frameworks": {
269 | "net6.0": {
270 | "targetAlias": "net6.0",
271 | "projectReferences": {}
272 | }
273 | },
274 | "warningProperties": {
275 | "warnAsError": [
276 | "NU1605"
277 | ]
278 | }
279 | },
280 | "frameworks": {
281 | "net6.0": {
282 | "targetAlias": "net6.0",
283 | "dependencies": {
284 | "Microsoft.AspNetCore.Razor.Design": {
285 | "suppressParent": "All",
286 | "target": "Package",
287 | "version": "[2.2.0, )"
288 | },
289 | "Swashbuckle.AspNetCore": {
290 | "target": "Package",
291 | "version": "[6.3.1, )"
292 | }
293 | },
294 | "imports": [
295 | "net461",
296 | "net462",
297 | "net47",
298 | "net471",
299 | "net472",
300 | "net48"
301 | ],
302 | "assetTargetFallback": true,
303 | "warn": true,
304 | "frameworkReferences": {
305 | "Microsoft.AspNetCore.App": {
306 | "privateAssets": "none"
307 | },
308 | "Microsoft.NETCore.App": {
309 | "privateAssets": "all"
310 | }
311 | },
312 | "runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\6.0.300\\RuntimeIdentifierGraph.json"
313 | }
314 | }
315 | }
316 | }
--------------------------------------------------------------------------------