diff --git a/WebApplication4.sln b/WebApplication4.sln new file mode 100644 index 0000000..c14bbaf --- /dev/null +++ b/WebApplication4.sln @@ -0,0 +1,25 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 17 +VisualStudioVersion = 17.1.32421.90 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "WebApplication4", "WebApplication4\WebApplication4.csproj", "{E95014EE-311D-4740-B3A1-9DA25C9A67B4}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {E95014EE-311D-4740-B3A1-9DA25C9A67B4}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {E95014EE-311D-4740-B3A1-9DA25C9A67B4}.Debug|Any CPU.Build.0 = Debug|Any CPU + {E95014EE-311D-4740-B3A1-9DA25C9A67B4}.Release|Any CPU.ActiveCfg = Release|Any CPU + {E95014EE-311D-4740-B3A1-9DA25C9A67B4}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {CCFE820B-0A9D-4F01-BF0F-B6FD2D2F61A3} + EndGlobalSection +EndGlobal diff --git a/WebApplication4/Controllers/RegistrationsController.cs b/WebApplication4/Controllers/RegistrationsController.cs new file mode 100644 index 0000000..d3332d0 --- /dev/null +++ b/WebApplication4/Controllers/RegistrationsController.cs @@ -0,0 +1,246 @@ +using Microsoft.AspNetCore.Mvc; +using Newtonsoft.Json; +using Npgsql; +using System.Data; +using System.Net; + +// For more information on enabling Web API for empty projects, visit https://go.microsoft.com/fwlink/?LinkID=397860 + +namespace WebApplication4.Controllers +{ + [Route("api/[controller]")] + [ApiController] + public class RegistrationsController : ControllerBase + { + private IConfiguration _configuration; + + public RegistrationsController(IConfiguration configuration) + { + _configuration = configuration; + } + + + // GET: api/ + [HttpGet] + public string Get() + { + DataTable table = new DataTable(); + NpgsqlDataReader myReader; + + using (NpgsqlConnection myConn = new NpgsqlConnection(_configuration.GetConnectionString("DataBaseConfig"))) + { + myConn.Open(); + using (NpgsqlCommand command = new NpgsqlCommand("SELECT * FROM registrations;", myConn)) + { + myReader = command.ExecuteReader(); + table.Load(myReader); + + myReader.Close(); + myConn.Close(); + } + } + + return JsonConvert.SerializeObject(table); + } + + // GET api//5 + [HttpGet("{id}")] + public string Get(int id) + { + DataTable table = new DataTable(); + NpgsqlDataReader myReader; + + using(NpgsqlConnection myConn = new NpgsqlConnection(_configuration.GetConnectionString("DataBaseConfig"))) + { + myConn.Open(); + using(NpgsqlCommand command = new NpgsqlCommand(String.Format("SELECT * FROM registrations WHERE id = {0};",id),myConn)) + { + myReader = command.ExecuteReader(); + table.Load(myReader); + + myReader.Close(); + myConn.Close(); + + } + } + + if (table.Rows.Count == 0) + return JsonConvert.SerializeObject(new { status = "400", message = "invalid id" }); + + + return JsonConvert.SerializeObject(table); + } + + [HttpGet("search")] + public string Get([FromQuery] string? sort_by = "", [FromQuery] string? sort_type = "ASC", [FromQuery] string? search_string = "") + { + DataTable table = new DataTable(); + HttpResponseMessage response = new HttpResponseMessage(); + NpgsqlDataReader myReader; + string query = "SELECT * FROM registrations "; + + if (sort_by.Length > 0) + query+=String.Format("ORDER BY {0} {1};", sort_by, sort_type); + + using (NpgsqlConnection myConn = new NpgsqlConnection(_configuration.GetConnectionString("DataBaseConfig"))) + { + myConn.Open(); + using (NpgsqlCommand command = new NpgsqlCommand(query, myConn)) + { + try + { + myReader = command.ExecuteReader(); + }catch (Exception ex) + { + return JsonConvert.SerializeObject(new {status = "200", message = "invalid params"}); + } + + table.Load(myReader); + + myReader.Close(); + myConn.Close(); + + } + } + + if(search_string.Length < 1) + { + return JsonConvert.SerializeObject(table); + } + + + for (int i = 0; i < table.Rows.Count; i++) + { + bool deleteRow = true; + + for(int j = 0; j < table.Columns.Count; ++j) + { + if(table.Rows[i][j].ToString().Contains(search_string)) + { + deleteRow = false; + } + } + + + if (deleteRow) + { + table.Rows.Remove(table.Rows[i]); + i--; + } + } + return JsonConvert.SerializeObject(table); + + } + + // POST api/ + [HttpPost] + public string Post([FromBody] REGISTRATION_CERTIFICATE value) + { + try + { + value.validateWholeClass(); + }catch (Exception ex) + { + return JsonConvert.SerializeObject(new { status = "400", message = ex.Message }); + } + + int count = 0; + using (NpgsqlConnection myConn = new NpgsqlConnection(_configuration.GetConnectionString("DataBaseConfig"))) + { + string guery = String.Format("INSERT INTO registrations (registration_number,vin_code,car,date_of_registration,year_of_manufacture)" + + "VALUES ('{0}', '{1}', '{2}', '{3}', '{4}')", value.registration_number, value.vin_code, value.car, value.date_of_registration, value.year_of_manufacture); + + myConn.Open(); + using (NpgsqlCommand command = new NpgsqlCommand(guery, myConn)) + { + try + { + count = command.ExecuteNonQuery(); + }catch(Exception ex) + { + return JsonConvert.SerializeObject(new { status = "400", message = "Invalid values." }); + } + + myConn.Close(); + + } + + } + + if (count < 1) + { + return JsonConvert.SerializeObject(new { status = "200", message = "invalid id" }); + } + + return JsonConvert.SerializeObject(new { status = "200", message = "Customer has been successfully added" }); + } + + // PUT api//5 + [HttpPut("{id}")] + public string Put(int id, [FromBody] REGISTRATION_CERTIFICATE value) + { + try + { + value.validateWholeClass(); + } + catch (Exception ex) + { + return JsonConvert.SerializeObject(new { status = "400", message = ex.Message }); + } + + int count = 0; + using (NpgsqlConnection myConn = new NpgsqlConnection(_configuration.GetConnectionString("DataBaseConfig"))) + { + string guery = String.Format("update registrations set registration_number = '{0}' , vin_code = '{1}' ," + + " car = '{2}' , date_of_registration = '{3}' , year_of_manufacture = '{4}' " + + "WHERE id = {5};", value.registration_number, value.vin_code, value.car, value.date_of_registration, value.year_of_manufacture, id); + + myConn.Open(); + using (NpgsqlCommand command = new NpgsqlCommand(guery, myConn)) + { + count = command.ExecuteNonQuery(); + + + myConn.Close(); + + } + + } + + if (count < 1) + { + return JsonConvert.SerializeObject(new { status = "400", message = "invalid id" }); + } + + return JsonConvert.SerializeObject(new { status = "200", message = "Customer has been successfully updated" }); + } + + // DELETE api//5 + [HttpDelete("{id}")] + public Task Delete(int id) + { + int count = 0; + using (NpgsqlConnection myConn = new NpgsqlConnection(_configuration.GetConnectionString("DataBaseConfig"))) + { + myConn.Open(); + using (NpgsqlCommand command = new NpgsqlCommand(String.Format("DELETE FROM registrations WHERE id = {0};", id), myConn)) + { + count = command.ExecuteNonQuery(); + myConn.Close(); + + } + } + HttpResponseMessage response = new HttpResponseMessage(); + if (count < 1) + { + response.StatusCode = HttpStatusCode.BadRequest; + response.Content = new StringContent("Customer is not found"); + }else + { + response.StatusCode = HttpStatusCode.OK; + response.Content = new StringContent("Customer has been successfully deleted."); + } + return Task.FromResult(response); + } + } +} diff --git a/WebApplication4/Program.cs b/WebApplication4/Program.cs new file mode 100644 index 0000000..48863a6 --- /dev/null +++ b/WebApplication4/Program.cs @@ -0,0 +1,25 @@ +var builder = WebApplication.CreateBuilder(args); + +// Add services to the container. + +builder.Services.AddControllers(); +// Learn more about configuring Swagger/OpenAPI at https://aka.ms/aspnetcore/swashbuckle +builder.Services.AddEndpointsApiExplorer(); +builder.Services.AddSwaggerGen(); + +var app = builder.Build(); + +// Configure the HTTP request pipeline. +if (app.Environment.IsDevelopment()) +{ + app.UseSwagger(); + app.UseSwaggerUI(); +} + +app.UseHttpsRedirection(); + +app.UseAuthorization(); + +app.MapControllers(); + +app.Run(); diff --git a/WebApplication4/Properties/launchSettings.json b/WebApplication4/Properties/launchSettings.json new file mode 100644 index 0000000..13368ef --- /dev/null +++ b/WebApplication4/Properties/launchSettings.json @@ -0,0 +1,31 @@ +{ + "$schema": "https://json.schemastore.org/launchsettings.json", + "iisSettings": { + "windowsAuthentication": false, + "anonymousAuthentication": true, + "iisExpress": { + "applicationUrl": "http://localhost:29940", + "sslPort": 44344 + } + }, + "profiles": { + "WebApplication4": { + "commandName": "Project", + "dotnetRunMessages": true, + "launchBrowser": true, + "launchUrl": "swagger", + "applicationUrl": "https://localhost:7134;http://localhost:5134", + "environmentVariables": { + "ASPNETCORE_ENVIRONMENT": "Development" + } + }, + "IIS Express": { + "commandName": "IISExpress", + "launchBrowser": true, + "launchUrl": "swagger", + "environmentVariables": { + "ASPNETCORE_ENVIRONMENT": "Development" + } + } + } +} diff --git a/WebApplication4/Registration_certificate.cs b/WebApplication4/Registration_certificate.cs new file mode 100644 index 0000000..f1f9565 --- /dev/null +++ b/WebApplication4/Registration_certificate.cs @@ -0,0 +1,111 @@ +using System.Reflection; + +namespace WebApplication4; + + +public class REGISTRATION_CERTIFICATE +{ + public int id { get; set; } + public string registration_number { get; set; } + public DateTime date_of_registration { get; set; } + public string vin_code { get; set; } + public string car { get; set; } + public int year_of_manufacture { get; set; } + + + public void validateWholeClass() + { + Validation.ValidateRegistrationNumber(registration_number); + Validation.ValidateDateOfRegistration(date_of_registration.ToString()); + Validation.ValidateVINCode(vin_code); + } + public REGISTRATION_CERTIFICATE() { } + public override string ToString() + { + return $"ID:{id} \n" + + $"Registration number:{registration_number} \n" + + $"Date of registration:{date_of_registration} \n" + + $"VIN code:{vin_code} \n" + + $"Car:{car} \n" + + $"Year of manufacture:{year_of_manufacture} \n"; + } + + public REGISTRATION_CERTIFICATE(string id, string registration_number, string date_of_registration, string vinCode, string nameOfCar, string yearOfCar) + { + Set_id(id); + Set_registration_number(registration_number); + Set_date_of_registration(date_of_registration); + Set_VIN_code(vinCode); + Set_car(nameOfCar); + Set_year_of_manufacture(yearOfCar); + } + + + public void Set_id(string idStr) + { + var id = Convert.ToInt32(idStr); + this.id = Validation.ValidateId(id); + } + public void Set_registration_number(string number) + { + + registration_number = Validation.ValidateRegistrationNumber(number); + + } + + public void Set_date_of_registration(string date) + { + date_of_registration = Validation.ValidateDateOfRegistration(date); + } + + public void Set_VIN_code(string vinCode) + { + vin_code = Validation.ValidateVINCode(vinCode); + } + + public void Set_car(string car) + { + this.car = car; + } + + public void Set_year_of_manufacture(string yearStr) + { + var year = Convert.ToInt32(yearStr); + if (date_of_registration.Year < year) + { + var exception = new Exception("Invalid date of registration"); + throw exception; + } + + year_of_manufacture = year; + } + + public static REGISTRATION_CERTIFICATE readFromConsole() + { + var resultCertificate = new REGISTRATION_CERTIFICATE(); + + try + { + Console.WriteLine("Please enter ID: "); + resultCertificate.Set_id(Console.ReadLine()); + Console.WriteLine("Please enter car name: "); + resultCertificate.Set_car(Console.ReadLine()); + Console.WriteLine("Please enter registration number: "); + resultCertificate.Set_registration_number(Console.ReadLine()); + Console.WriteLine("Please enter date of registration: "); + resultCertificate.Set_date_of_registration(Console.ReadLine()); + Console.WriteLine("Please enter VIN code: "); + resultCertificate.Set_VIN_code(Console.ReadLine()); + Console.WriteLine("Please enter year of car: "); + resultCertificate.Set_year_of_manufacture(Console.ReadLine()); + } + catch (Exception e) + { + Console.WriteLine(e.Message.Trim('\n')); + return readFromConsole(); + } + + return resultCertificate; + } +} + diff --git a/WebApplication4/Validation.cs b/WebApplication4/Validation.cs new file mode 100644 index 0000000..84f2a9b --- /dev/null +++ b/WebApplication4/Validation.cs @@ -0,0 +1,42 @@ + +using System.Text.RegularExpressions; + +public class Validation +{ + public static int ValidateId(int id) + { + if (id < 0) + throw new Exception("Invalid ID"); + return id; + } + + public static string ValidateRegistrationNumber(string number) + { + Regex re = new Regex("[A-z]{2}\\d{4}[A-z]{2}"); + if (!re.IsMatch(number)) + { + throw new Exception("Invalid Registration Number"); + } + + return number; + } + + public static DateTime ValidateDateOfRegistration(string date) + { + if (!DateTime.TryParse(date, out var returnDate)) + throw new Exception("Invalid date of registration"); + + return returnDate; + } + + public static string ValidateVINCode(string vinCode) + { + Regex re = new Regex("[A-HJ-NPR-Za-hj-npr-z\\d]{8}[\\dX][A-HJ-NPR-Za-hj-npr-z\\d]{2}\\d{6}"); + if (vinCode.Length != 17 || !re.IsMatch(vinCode)) + { + throw new Exception("Invalid VIN Code"); + } + + return vinCode; + } +} \ No newline at end of file diff --git a/WebApplication4/WebApplication4.csproj b/WebApplication4/WebApplication4.csproj new file mode 100644 index 0000000..a31adfd --- /dev/null +++ b/WebApplication4/WebApplication4.csproj @@ -0,0 +1,15 @@ + + + + net6.0 + enable + enable + + + + + + + + + diff --git a/WebApplication4/WebApplication4.csproj.user b/WebApplication4/WebApplication4.csproj.user new file mode 100644 index 0000000..6b9f46b --- /dev/null +++ b/WebApplication4/WebApplication4.csproj.user @@ -0,0 +1,7 @@ + + + + ApiControllerWithActionsScaffolder + root/Common/Api + + \ No newline at end of file diff --git a/WebApplication4/appsettings.Development.json b/WebApplication4/appsettings.Development.json new file mode 100644 index 0000000..0c208ae --- /dev/null +++ b/WebApplication4/appsettings.Development.json @@ -0,0 +1,8 @@ +{ + "Logging": { + "LogLevel": { + "Default": "Information", + "Microsoft.AspNetCore": "Warning" + } + } +} diff --git a/WebApplication4/appsettings.json b/WebApplication4/appsettings.json new file mode 100644 index 0000000..75a61f2 --- /dev/null +++ b/WebApplication4/appsettings.json @@ -0,0 +1,12 @@ +{ + "ConnectionStrings": { + "DataBaseConfig": "Server=localhost;Port=5432;User Id=postgres;Password=test;Database=registrations;" + }, + "Logging": { + "LogLevel": { + "Default": "Information", + "Microsoft.AspNetCore": "Warning" + } + }, + "AllowedHosts": "*" +} diff --git a/WebApplication4/bin/Debug/net6.0/Microsoft.OpenApi.dll b/WebApplication4/bin/Debug/net6.0/Microsoft.OpenApi.dll new file mode 100644 index 0000000..14f3ded Binary files /dev/null and b/WebApplication4/bin/Debug/net6.0/Microsoft.OpenApi.dll differ diff --git a/WebApplication4/bin/Debug/net6.0/Newtonsoft.Json.dll b/WebApplication4/bin/Debug/net6.0/Newtonsoft.Json.dll new file mode 100644 index 0000000..1ffeabe Binary files /dev/null and b/WebApplication4/bin/Debug/net6.0/Newtonsoft.Json.dll differ diff --git a/WebApplication4/bin/Debug/net6.0/Npgsql.dll b/WebApplication4/bin/Debug/net6.0/Npgsql.dll new file mode 100644 index 0000000..3138daa Binary files /dev/null and b/WebApplication4/bin/Debug/net6.0/Npgsql.dll differ diff --git a/WebApplication4/bin/Debug/net6.0/Swashbuckle.AspNetCore.Swagger.dll b/WebApplication4/bin/Debug/net6.0/Swashbuckle.AspNetCore.Swagger.dll new file mode 100644 index 0000000..a30e6cc Binary files /dev/null and b/WebApplication4/bin/Debug/net6.0/Swashbuckle.AspNetCore.Swagger.dll differ diff --git a/WebApplication4/bin/Debug/net6.0/Swashbuckle.AspNetCore.SwaggerGen.dll b/WebApplication4/bin/Debug/net6.0/Swashbuckle.AspNetCore.SwaggerGen.dll new file mode 100644 index 0000000..ae35663 Binary files /dev/null and b/WebApplication4/bin/Debug/net6.0/Swashbuckle.AspNetCore.SwaggerGen.dll differ diff --git a/WebApplication4/bin/Debug/net6.0/Swashbuckle.AspNetCore.SwaggerUI.dll b/WebApplication4/bin/Debug/net6.0/Swashbuckle.AspNetCore.SwaggerUI.dll new file mode 100644 index 0000000..a26f458 Binary files /dev/null and b/WebApplication4/bin/Debug/net6.0/Swashbuckle.AspNetCore.SwaggerUI.dll differ diff --git a/WebApplication4/bin/Debug/net6.0/WebApplication4.deps.json b/WebApplication4/bin/Debug/net6.0/WebApplication4.deps.json new file mode 100644 index 0000000..12e12b6 --- /dev/null +++ b/WebApplication4/bin/Debug/net6.0/WebApplication4.deps.json @@ -0,0 +1,158 @@ +{ + "runtimeTarget": { + "name": ".NETCoreApp,Version=v6.0", + "signature": "" + }, + "compilationOptions": {}, + "targets": { + ".NETCoreApp,Version=v6.0": { + "WebApplication4/1.0.0": { + "dependencies": { + "Newtonsoft.Json": "13.0.1", + "Npgsql": "6.0.4", + "Swashbuckle.AspNetCore": "6.2.3" + }, + "runtime": { + "WebApplication4.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" + } + } + }, + "Newtonsoft.Json/13.0.1": { + "runtime": { + "lib/netstandard2.0/Newtonsoft.Json.dll": { + "assemblyVersion": "13.0.0.0", + "fileVersion": "13.0.1.25517" + } + } + }, + "Npgsql/6.0.4": { + "dependencies": { + "System.Runtime.CompilerServices.Unsafe": "6.0.0" + }, + "runtime": { + "lib/net6.0/Npgsql.dll": { + "assemblyVersion": "6.0.4.0", + "fileVersion": "6.0.4.0" + } + } + }, + "Swashbuckle.AspNetCore/6.2.3": { + "dependencies": { + "Microsoft.Extensions.ApiDescription.Server": "3.0.0", + "Swashbuckle.AspNetCore.Swagger": "6.2.3", + "Swashbuckle.AspNetCore.SwaggerGen": "6.2.3", + "Swashbuckle.AspNetCore.SwaggerUI": "6.2.3" + } + }, + "Swashbuckle.AspNetCore.Swagger/6.2.3": { + "dependencies": { + "Microsoft.OpenApi": "1.2.3" + }, + "runtime": { + "lib/net6.0/Swashbuckle.AspNetCore.Swagger.dll": { + "assemblyVersion": "6.2.3.0", + "fileVersion": "6.2.3.0" + } + } + }, + "Swashbuckle.AspNetCore.SwaggerGen/6.2.3": { + "dependencies": { + "Swashbuckle.AspNetCore.Swagger": "6.2.3" + }, + "runtime": { + "lib/net6.0/Swashbuckle.AspNetCore.SwaggerGen.dll": { + "assemblyVersion": "6.2.3.0", + "fileVersion": "6.2.3.0" + } + } + }, + "Swashbuckle.AspNetCore.SwaggerUI/6.2.3": { + "runtime": { + "lib/net6.0/Swashbuckle.AspNetCore.SwaggerUI.dll": { + "assemblyVersion": "6.2.3.0", + "fileVersion": "6.2.3.0" + } + } + }, + "System.Runtime.CompilerServices.Unsafe/6.0.0": {} + } + }, + "libraries": { + "WebApplication4/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" + }, + "Newtonsoft.Json/13.0.1": { + "type": "package", + "serviceable": true, + "sha512": "sha512-ppPFpBcvxdsfUonNcvITKqLl3bqxWbDCZIzDWHzjpdAHRFfZe0Dw9HmA0+za13IdyrgJwpkDTDA9fHaxOrt20A==", + "path": "newtonsoft.json/13.0.1", + "hashPath": "newtonsoft.json.13.0.1.nupkg.sha512" + }, + "Npgsql/6.0.4": { + "type": "package", + "serviceable": true, + "sha512": "sha512-SJMlOmFHr32oOzVXeHmarGaBKkhi0wHVN/rzuu2tUSJ4Qx2AkHCpr9R/DhLWwDiklqgzFU++9wkFyGJxbx/zzg==", + "path": "npgsql/6.0.4", + "hashPath": "npgsql.6.0.4.nupkg.sha512" + }, + "Swashbuckle.AspNetCore/6.2.3": { + "type": "package", + "serviceable": true, + "sha512": "sha512-cnzQDn0Le+hInsw2SYwlOhOCPXpYi/szcvnyqZJ12v+QyrLBwAmWXBg6RIyHB18s/mLeywC+Rg2O9ndz0IUNYQ==", + "path": "swashbuckle.aspnetcore/6.2.3", + "hashPath": "swashbuckle.aspnetcore.6.2.3.nupkg.sha512" + }, + "Swashbuckle.AspNetCore.Swagger/6.2.3": { + "type": "package", + "serviceable": true, + "sha512": "sha512-qOF7j1sL0bWm8g/qqHVPCvkO3JlVvUIB8WfC98kSh6BT5y5DAnBNctfac7XR5EZf+eD7/WasvANncTqwZYfmWQ==", + "path": "swashbuckle.aspnetcore.swagger/6.2.3", + "hashPath": "swashbuckle.aspnetcore.swagger.6.2.3.nupkg.sha512" + }, + "Swashbuckle.AspNetCore.SwaggerGen/6.2.3": { + "type": "package", + "serviceable": true, + "sha512": "sha512-+Xq7WdMCCfcXlnbLJVFNgY8ITdP2TRYIlpbt6IKzDw5FwFxdi9lBfNDtcT+/wkKwX70iBBFmXldnnd02/VO72A==", + "path": "swashbuckle.aspnetcore.swaggergen/6.2.3", + "hashPath": "swashbuckle.aspnetcore.swaggergen.6.2.3.nupkg.sha512" + }, + "Swashbuckle.AspNetCore.SwaggerUI/6.2.3": { + "type": "package", + "serviceable": true, + "sha512": "sha512-bCRI87uKJVb4G+KURWm8LQrL64St04dEFZcF6gIM67Zc0Sr/N47EO83ybLMYOvfNdO1DCv8xwPcrz9J/VEhQ5g==", + "path": "swashbuckle.aspnetcore.swaggerui/6.2.3", + "hashPath": "swashbuckle.aspnetcore.swaggerui.6.2.3.nupkg.sha512" + }, + "System.Runtime.CompilerServices.Unsafe/6.0.0": { + "type": "package", + "serviceable": true, + "sha512": "sha512-/iUeP3tq1S0XdNNoMz5C9twLSrM/TH+qElHkXWaPvuNOt+99G75NrV0OS2EqHx5wMN7popYjpc8oTjC1y16DLg==", + "path": "system.runtime.compilerservices.unsafe/6.0.0", + "hashPath": "system.runtime.compilerservices.unsafe.6.0.0.nupkg.sha512" + } + } +} \ No newline at end of file diff --git a/WebApplication4/bin/Debug/net6.0/WebApplication4.dll b/WebApplication4/bin/Debug/net6.0/WebApplication4.dll new file mode 100644 index 0000000..fb8e831 Binary files /dev/null and b/WebApplication4/bin/Debug/net6.0/WebApplication4.dll differ diff --git a/WebApplication4/bin/Debug/net6.0/WebApplication4.exe b/WebApplication4/bin/Debug/net6.0/WebApplication4.exe new file mode 100644 index 0000000..922e561 Binary files /dev/null and b/WebApplication4/bin/Debug/net6.0/WebApplication4.exe differ diff --git a/WebApplication4/bin/Debug/net6.0/WebApplication4.pdb b/WebApplication4/bin/Debug/net6.0/WebApplication4.pdb new file mode 100644 index 0000000..cea324f Binary files /dev/null and b/WebApplication4/bin/Debug/net6.0/WebApplication4.pdb differ diff --git a/WebApplication4/bin/Debug/net6.0/WebApplication4.runtimeconfig.json b/WebApplication4/bin/Debug/net6.0/WebApplication4.runtimeconfig.json new file mode 100644 index 0000000..dfb1b77 --- /dev/null +++ b/WebApplication4/bin/Debug/net6.0/WebApplication4.runtimeconfig.json @@ -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 + } + } +} \ No newline at end of file diff --git a/WebApplication4/bin/Debug/net6.0/appsettings.Development.json b/WebApplication4/bin/Debug/net6.0/appsettings.Development.json new file mode 100644 index 0000000..0c208ae --- /dev/null +++ b/WebApplication4/bin/Debug/net6.0/appsettings.Development.json @@ -0,0 +1,8 @@ +{ + "Logging": { + "LogLevel": { + "Default": "Information", + "Microsoft.AspNetCore": "Warning" + } + } +} diff --git a/WebApplication4/bin/Debug/net6.0/appsettings.json b/WebApplication4/bin/Debug/net6.0/appsettings.json new file mode 100644 index 0000000..75a61f2 --- /dev/null +++ b/WebApplication4/bin/Debug/net6.0/appsettings.json @@ -0,0 +1,12 @@ +{ + "ConnectionStrings": { + "DataBaseConfig": "Server=localhost;Port=5432;User Id=postgres;Password=test;Database=registrations;" + }, + "Logging": { + "LogLevel": { + "Default": "Information", + "Microsoft.AspNetCore": "Warning" + } + }, + "AllowedHosts": "*" +} diff --git a/WebApplication4/obj/Debug/net6.0/.NETCoreApp,Version=v6.0.AssemblyAttributes.cs b/WebApplication4/obj/Debug/net6.0/.NETCoreApp,Version=v6.0.AssemblyAttributes.cs new file mode 100644 index 0000000..36203c7 --- /dev/null +++ b/WebApplication4/obj/Debug/net6.0/.NETCoreApp,Version=v6.0.AssemblyAttributes.cs @@ -0,0 +1,4 @@ +// +using System; +using System.Reflection; +[assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETCoreApp,Version=v6.0", FrameworkDisplayName = "")] diff --git a/WebApplication4/obj/Debug/net6.0/WebApplication4.AssemblyInfo.cs b/WebApplication4/obj/Debug/net6.0/WebApplication4.AssemblyInfo.cs new file mode 100644 index 0000000..bbf6af9 --- /dev/null +++ b/WebApplication4/obj/Debug/net6.0/WebApplication4.AssemblyInfo.cs @@ -0,0 +1,23 @@ +//------------------------------------------------------------------------------ +// +// 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. +// +//------------------------------------------------------------------------------ + +using System; +using System.Reflection; + +[assembly: System.Reflection.AssemblyCompanyAttribute("WebApplication4")] +[assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")] +[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")] +[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0")] +[assembly: System.Reflection.AssemblyProductAttribute("WebApplication4")] +[assembly: System.Reflection.AssemblyTitleAttribute("WebApplication4")] +[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")] + +// Generated by the MSBuild WriteCodeFragment class. + diff --git a/WebApplication4/obj/Debug/net6.0/WebApplication4.AssemblyInfoInputs.cache b/WebApplication4/obj/Debug/net6.0/WebApplication4.AssemblyInfoInputs.cache new file mode 100644 index 0000000..d200d56 --- /dev/null +++ b/WebApplication4/obj/Debug/net6.0/WebApplication4.AssemblyInfoInputs.cache @@ -0,0 +1 @@ +67eb3bfa160556874ee84698067c3a352166efd5 diff --git a/WebApplication4/obj/Debug/net6.0/WebApplication4.GeneratedMSBuildEditorConfig.editorconfig b/WebApplication4/obj/Debug/net6.0/WebApplication4.GeneratedMSBuildEditorConfig.editorconfig new file mode 100644 index 0000000..884b653 --- /dev/null +++ b/WebApplication4/obj/Debug/net6.0/WebApplication4.GeneratedMSBuildEditorConfig.editorconfig @@ -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 = WebApplication4 +build_property.RootNamespace = WebApplication4 +build_property.ProjectDir = C:\Users\pahow\source\repos\WebApplication4\WebApplication4\ +build_property.RazorLangVersion = 6.0 +build_property.SupportLocalizedComponentNames = +build_property.GenerateRazorMetadataSourceChecksumAttributes = +build_property.MSBuildProjectDirectory = C:\Users\pahow\source\repos\WebApplication4\WebApplication4 +build_property._RazorSourceGeneratorDebug = diff --git a/WebApplication4/obj/Debug/net6.0/WebApplication4.GlobalUsings.g.cs b/WebApplication4/obj/Debug/net6.0/WebApplication4.GlobalUsings.g.cs new file mode 100644 index 0000000..025530a --- /dev/null +++ b/WebApplication4/obj/Debug/net6.0/WebApplication4.GlobalUsings.g.cs @@ -0,0 +1,17 @@ +// +global using global::Microsoft.AspNetCore.Builder; +global using global::Microsoft.AspNetCore.Hosting; +global using global::Microsoft.AspNetCore.Http; +global using global::Microsoft.AspNetCore.Routing; +global using global::Microsoft.Extensions.Configuration; +global using global::Microsoft.Extensions.DependencyInjection; +global using global::Microsoft.Extensions.Hosting; +global using global::Microsoft.Extensions.Logging; +global using global::System; +global using global::System.Collections.Generic; +global using global::System.IO; +global using global::System.Linq; +global using global::System.Net.Http; +global using global::System.Net.Http.Json; +global using global::System.Threading; +global using global::System.Threading.Tasks; diff --git a/WebApplication4/obj/Debug/net6.0/WebApplication4.MvcApplicationPartsAssemblyInfo.cache b/WebApplication4/obj/Debug/net6.0/WebApplication4.MvcApplicationPartsAssemblyInfo.cache new file mode 100644 index 0000000..e69de29 diff --git a/WebApplication4/obj/Debug/net6.0/WebApplication4.MvcApplicationPartsAssemblyInfo.cs b/WebApplication4/obj/Debug/net6.0/WebApplication4.MvcApplicationPartsAssemblyInfo.cs new file mode 100644 index 0000000..43d96a6 --- /dev/null +++ b/WebApplication4/obj/Debug/net6.0/WebApplication4.MvcApplicationPartsAssemblyInfo.cs @@ -0,0 +1,17 @@ +//------------------------------------------------------------------------------ +// +// 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. +// +//------------------------------------------------------------------------------ + +using System; +using System.Reflection; + +[assembly: Microsoft.AspNetCore.Mvc.ApplicationParts.ApplicationPartAttribute("Swashbuckle.AspNetCore.SwaggerGen")] + +// Generated by the MSBuild WriteCodeFragment class. + diff --git a/WebApplication4/obj/Debug/net6.0/WebApplication4.assets.cache b/WebApplication4/obj/Debug/net6.0/WebApplication4.assets.cache new file mode 100644 index 0000000..f18a7bb Binary files /dev/null and b/WebApplication4/obj/Debug/net6.0/WebApplication4.assets.cache differ diff --git a/WebApplication4/obj/Debug/net6.0/WebApplication4.csproj.AssemblyReference.cache b/WebApplication4/obj/Debug/net6.0/WebApplication4.csproj.AssemblyReference.cache new file mode 100644 index 0000000..017001e Binary files /dev/null and b/WebApplication4/obj/Debug/net6.0/WebApplication4.csproj.AssemblyReference.cache differ diff --git a/WebApplication4/obj/Debug/net6.0/WebApplication4.csproj.BuildWithSkipAnalyzers b/WebApplication4/obj/Debug/net6.0/WebApplication4.csproj.BuildWithSkipAnalyzers new file mode 100644 index 0000000..e69de29 diff --git a/WebApplication4/obj/Debug/net6.0/WebApplication4.csproj.CopyComplete b/WebApplication4/obj/Debug/net6.0/WebApplication4.csproj.CopyComplete new file mode 100644 index 0000000..e69de29 diff --git a/WebApplication4/obj/Debug/net6.0/WebApplication4.csproj.CoreCompileInputs.cache b/WebApplication4/obj/Debug/net6.0/WebApplication4.csproj.CoreCompileInputs.cache new file mode 100644 index 0000000..164574b --- /dev/null +++ b/WebApplication4/obj/Debug/net6.0/WebApplication4.csproj.CoreCompileInputs.cache @@ -0,0 +1 @@ +90e83e1f09f2b6956f8e55523e7ca27197ef44a3 diff --git a/WebApplication4/obj/Debug/net6.0/WebApplication4.csproj.FileListAbsolute.txt b/WebApplication4/obj/Debug/net6.0/WebApplication4.csproj.FileListAbsolute.txt new file mode 100644 index 0000000..17d2014 --- /dev/null +++ b/WebApplication4/obj/Debug/net6.0/WebApplication4.csproj.FileListAbsolute.txt @@ -0,0 +1,29 @@ +C:\Users\pahow\source\repos\WebApplication4\WebApplication4\bin\Debug\net6.0\appsettings.Development.json +C:\Users\pahow\source\repos\WebApplication4\WebApplication4\bin\Debug\net6.0\appsettings.json +C:\Users\pahow\source\repos\WebApplication4\WebApplication4\bin\Debug\net6.0\WebApplication4.exe +C:\Users\pahow\source\repos\WebApplication4\WebApplication4\bin\Debug\net6.0\WebApplication4.deps.json +C:\Users\pahow\source\repos\WebApplication4\WebApplication4\bin\Debug\net6.0\WebApplication4.runtimeconfig.json +C:\Users\pahow\source\repos\WebApplication4\WebApplication4\bin\Debug\net6.0\WebApplication4.dll +C:\Users\pahow\source\repos\WebApplication4\WebApplication4\bin\Debug\net6.0\WebApplication4.pdb +C:\Users\pahow\source\repos\WebApplication4\WebApplication4\bin\Debug\net6.0\Microsoft.OpenApi.dll +C:\Users\pahow\source\repos\WebApplication4\WebApplication4\bin\Debug\net6.0\Swashbuckle.AspNetCore.Swagger.dll +C:\Users\pahow\source\repos\WebApplication4\WebApplication4\bin\Debug\net6.0\Swashbuckle.AspNetCore.SwaggerGen.dll +C:\Users\pahow\source\repos\WebApplication4\WebApplication4\bin\Debug\net6.0\Swashbuckle.AspNetCore.SwaggerUI.dll +C:\Users\pahow\source\repos\WebApplication4\WebApplication4\obj\Debug\net6.0\WebApplication4.csproj.AssemblyReference.cache +C:\Users\pahow\source\repos\WebApplication4\WebApplication4\obj\Debug\net6.0\WebApplication4.GeneratedMSBuildEditorConfig.editorconfig +C:\Users\pahow\source\repos\WebApplication4\WebApplication4\obj\Debug\net6.0\WebApplication4.AssemblyInfoInputs.cache +C:\Users\pahow\source\repos\WebApplication4\WebApplication4\obj\Debug\net6.0\WebApplication4.AssemblyInfo.cs +C:\Users\pahow\source\repos\WebApplication4\WebApplication4\obj\Debug\net6.0\WebApplication4.csproj.CoreCompileInputs.cache +C:\Users\pahow\source\repos\WebApplication4\WebApplication4\obj\Debug\net6.0\WebApplication4.MvcApplicationPartsAssemblyInfo.cs +C:\Users\pahow\source\repos\WebApplication4\WebApplication4\obj\Debug\net6.0\WebApplication4.MvcApplicationPartsAssemblyInfo.cache +C:\Users\pahow\source\repos\WebApplication4\WebApplication4\obj\Debug\net6.0\staticwebassets.build.json +C:\Users\pahow\source\repos\WebApplication4\WebApplication4\obj\Debug\net6.0\staticwebassets.development.json +C:\Users\pahow\source\repos\WebApplication4\WebApplication4\obj\Debug\net6.0\scopedcss\bundle\WebApplication4.styles.css +C:\Users\pahow\source\repos\WebApplication4\WebApplication4\obj\Debug\net6.0\WebApplication4.csproj.CopyComplete +C:\Users\pahow\source\repos\WebApplication4\WebApplication4\obj\Debug\net6.0\WebApplication4.dll +C:\Users\pahow\source\repos\WebApplication4\WebApplication4\obj\Debug\net6.0\refint\WebApplication4.dll +C:\Users\pahow\source\repos\WebApplication4\WebApplication4\obj\Debug\net6.0\WebApplication4.pdb +C:\Users\pahow\source\repos\WebApplication4\WebApplication4\obj\Debug\net6.0\WebApplication4.genruntimeconfig.cache +C:\Users\pahow\source\repos\WebApplication4\WebApplication4\obj\Debug\net6.0\ref\WebApplication4.dll +C:\Users\pahow\source\repos\WebApplication4\WebApplication4\bin\Debug\net6.0\Npgsql.dll +C:\Users\pahow\source\repos\WebApplication4\WebApplication4\bin\Debug\net6.0\Newtonsoft.Json.dll diff --git a/WebApplication4/obj/Debug/net6.0/WebApplication4.dll b/WebApplication4/obj/Debug/net6.0/WebApplication4.dll new file mode 100644 index 0000000..fb8e831 Binary files /dev/null and b/WebApplication4/obj/Debug/net6.0/WebApplication4.dll differ diff --git a/WebApplication4/obj/Debug/net6.0/WebApplication4.genruntimeconfig.cache b/WebApplication4/obj/Debug/net6.0/WebApplication4.genruntimeconfig.cache new file mode 100644 index 0000000..56402bd --- /dev/null +++ b/WebApplication4/obj/Debug/net6.0/WebApplication4.genruntimeconfig.cache @@ -0,0 +1 @@ +84192c67e698cb92c53ed1b1d0f5d9102f5123c5 diff --git a/WebApplication4/obj/Debug/net6.0/WebApplication4.pdb b/WebApplication4/obj/Debug/net6.0/WebApplication4.pdb new file mode 100644 index 0000000..cea324f Binary files /dev/null and b/WebApplication4/obj/Debug/net6.0/WebApplication4.pdb differ diff --git a/WebApplication4/obj/Debug/net6.0/apphost.exe b/WebApplication4/obj/Debug/net6.0/apphost.exe new file mode 100644 index 0000000..922e561 Binary files /dev/null and b/WebApplication4/obj/Debug/net6.0/apphost.exe differ diff --git a/WebApplication4/obj/Debug/net6.0/ref/WebApplication4.dll b/WebApplication4/obj/Debug/net6.0/ref/WebApplication4.dll new file mode 100644 index 0000000..1c00de0 Binary files /dev/null and b/WebApplication4/obj/Debug/net6.0/ref/WebApplication4.dll differ diff --git a/WebApplication4/obj/Debug/net6.0/refint/WebApplication4.dll b/WebApplication4/obj/Debug/net6.0/refint/WebApplication4.dll new file mode 100644 index 0000000..1c00de0 Binary files /dev/null and b/WebApplication4/obj/Debug/net6.0/refint/WebApplication4.dll differ diff --git a/WebApplication4/obj/Debug/net6.0/staticwebassets.build.json b/WebApplication4/obj/Debug/net6.0/staticwebassets.build.json new file mode 100644 index 0000000..cadeb68 --- /dev/null +++ b/WebApplication4/obj/Debug/net6.0/staticwebassets.build.json @@ -0,0 +1,11 @@ +{ + "Version": 1, + "Hash": "OzGeDct1bdvHbcwcZNWnMAhofV634JfeAbgKlGY5K3M=", + "Source": "WebApplication4", + "BasePath": "_content/WebApplication4", + "Mode": "Default", + "ManifestType": "Build", + "ReferencedProjectsConfiguration": [], + "DiscoveryPatterns": [], + "Assets": [] +} \ No newline at end of file diff --git a/WebApplication4/obj/WebApplication4.csproj.nuget.dgspec.json b/WebApplication4/obj/WebApplication4.csproj.nuget.dgspec.json new file mode 100644 index 0000000..efb3e45 --- /dev/null +++ b/WebApplication4/obj/WebApplication4.csproj.nuget.dgspec.json @@ -0,0 +1,79 @@ +{ + "format": 1, + "restore": { + "C:\\Users\\pahow\\source\\repos\\WebApplication4\\WebApplication4\\WebApplication4.csproj": {} + }, + "projects": { + "C:\\Users\\pahow\\source\\repos\\WebApplication4\\WebApplication4\\WebApplication4.csproj": { + "version": "1.0.0", + "restore": { + "projectUniqueName": "C:\\Users\\pahow\\source\\repos\\WebApplication4\\WebApplication4\\WebApplication4.csproj", + "projectName": "WebApplication4", + "projectPath": "C:\\Users\\pahow\\source\\repos\\WebApplication4\\WebApplication4\\WebApplication4.csproj", + "packagesPath": "C:\\Users\\pahow\\.nuget\\packages\\", + "outputPath": "C:\\Users\\pahow\\source\\repos\\WebApplication4\\WebApplication4\\obj\\", + "projectStyle": "PackageReference", + "configFilePaths": [ + "C:\\Users\\pahow\\AppData\\Roaming\\NuGet\\NuGet.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": {} + }, + "frameworks": { + "net6.0": { + "targetAlias": "net6.0", + "projectReferences": {} + } + }, + "warningProperties": { + "warnAsError": [ + "NU1605" + ] + } + }, + "frameworks": { + "net6.0": { + "targetAlias": "net6.0", + "dependencies": { + "Newtonsoft.Json": { + "target": "Package", + "version": "[13.0.1, )" + }, + "Npgsql": { + "target": "Package", + "version": "[6.0.4, )" + }, + "Swashbuckle.AspNetCore": { + "target": "Package", + "version": "[6.2.3, )" + } + }, + "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.202\\RuntimeIdentifierGraph.json" + } + } + } + } +} \ No newline at end of file diff --git a/WebApplication4/obj/WebApplication4.csproj.nuget.g.props b/WebApplication4/obj/WebApplication4.csproj.nuget.g.props new file mode 100644 index 0000000..6d5746c --- /dev/null +++ b/WebApplication4/obj/WebApplication4.csproj.nuget.g.props @@ -0,0 +1,22 @@ + + + + True + NuGet + $(MSBuildThisFileDirectory)project.assets.json + $(UserProfile)\.nuget\packages\ + C:\Users\pahow\.nuget\packages\ + PackageReference + 6.1.0 + + + + + + + + + + C:\Users\pahow\.nuget\packages\microsoft.extensions.apidescription.server\3.0.0 + + \ No newline at end of file diff --git a/WebApplication4/obj/WebApplication4.csproj.nuget.g.targets b/WebApplication4/obj/WebApplication4.csproj.nuget.g.targets new file mode 100644 index 0000000..a03b337 --- /dev/null +++ b/WebApplication4/obj/WebApplication4.csproj.nuget.g.targets @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/WebApplication4/obj/project.assets.json b/WebApplication4/obj/project.assets.json new file mode 100644 index 0000000..4f946b5 --- /dev/null +++ b/WebApplication4/obj/project.assets.json @@ -0,0 +1,394 @@ +{ + "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": {} + } + }, + "Newtonsoft.Json/13.0.1": { + "type": "package", + "compile": { + "lib/netstandard2.0/Newtonsoft.Json.dll": {} + }, + "runtime": { + "lib/netstandard2.0/Newtonsoft.Json.dll": {} + } + }, + "Npgsql/6.0.4": { + "type": "package", + "dependencies": { + "System.Runtime.CompilerServices.Unsafe": "6.0.0" + }, + "compile": { + "lib/net6.0/Npgsql.dll": {} + }, + "runtime": { + "lib/net6.0/Npgsql.dll": {} + } + }, + "Swashbuckle.AspNetCore/6.2.3": { + "type": "package", + "dependencies": { + "Microsoft.Extensions.ApiDescription.Server": "3.0.0", + "Swashbuckle.AspNetCore.Swagger": "6.2.3", + "Swashbuckle.AspNetCore.SwaggerGen": "6.2.3", + "Swashbuckle.AspNetCore.SwaggerUI": "6.2.3" + }, + "build": { + "build/Swashbuckle.AspNetCore.props": {} + } + }, + "Swashbuckle.AspNetCore.Swagger/6.2.3": { + "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.2.3": { + "type": "package", + "dependencies": { + "Swashbuckle.AspNetCore.Swagger": "6.2.3" + }, + "compile": { + "lib/net6.0/Swashbuckle.AspNetCore.SwaggerGen.dll": {} + }, + "runtime": { + "lib/net6.0/Swashbuckle.AspNetCore.SwaggerGen.dll": {} + } + }, + "Swashbuckle.AspNetCore.SwaggerUI/6.2.3": { + "type": "package", + "compile": { + "lib/net6.0/Swashbuckle.AspNetCore.SwaggerUI.dll": {} + }, + "runtime": { + "lib/net6.0/Swashbuckle.AspNetCore.SwaggerUI.dll": {} + }, + "frameworkReferences": [ + "Microsoft.AspNetCore.App" + ] + }, + "System.Runtime.CompilerServices.Unsafe/6.0.0": { + "type": "package", + "compile": { + "lib/net6.0/System.Runtime.CompilerServices.Unsafe.dll": {} + }, + "runtime": { + "lib/net6.0/System.Runtime.CompilerServices.Unsafe.dll": {} + }, + "build": { + "buildTransitive/netcoreapp3.1/_._": {} + } + } + } + }, + "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" + ] + }, + "Newtonsoft.Json/13.0.1": { + "sha512": "ppPFpBcvxdsfUonNcvITKqLl3bqxWbDCZIzDWHzjpdAHRFfZe0Dw9HmA0+za13IdyrgJwpkDTDA9fHaxOrt20A==", + "type": "package", + "path": "newtonsoft.json/13.0.1", + "files": [ + ".nupkg.metadata", + ".signature.p7s", + "LICENSE.md", + "lib/net20/Newtonsoft.Json.dll", + "lib/net20/Newtonsoft.Json.xml", + "lib/net35/Newtonsoft.Json.dll", + "lib/net35/Newtonsoft.Json.xml", + "lib/net40/Newtonsoft.Json.dll", + "lib/net40/Newtonsoft.Json.xml", + "lib/net45/Newtonsoft.Json.dll", + "lib/net45/Newtonsoft.Json.xml", + "lib/netstandard1.0/Newtonsoft.Json.dll", + "lib/netstandard1.0/Newtonsoft.Json.xml", + "lib/netstandard1.3/Newtonsoft.Json.dll", + "lib/netstandard1.3/Newtonsoft.Json.xml", + "lib/netstandard2.0/Newtonsoft.Json.dll", + "lib/netstandard2.0/Newtonsoft.Json.xml", + "newtonsoft.json.13.0.1.nupkg.sha512", + "newtonsoft.json.nuspec", + "packageIcon.png" + ] + }, + "Npgsql/6.0.4": { + "sha512": "SJMlOmFHr32oOzVXeHmarGaBKkhi0wHVN/rzuu2tUSJ4Qx2AkHCpr9R/DhLWwDiklqgzFU++9wkFyGJxbx/zzg==", + "type": "package", + "path": "npgsql/6.0.4", + "files": [ + ".nupkg.metadata", + ".signature.p7s", + "README.md", + "lib/net5.0/Npgsql.dll", + "lib/net5.0/Npgsql.xml", + "lib/net6.0/Npgsql.dll", + "lib/net6.0/Npgsql.xml", + "lib/netcoreapp3.1/Npgsql.dll", + "lib/netcoreapp3.1/Npgsql.xml", + "lib/netstandard2.0/Npgsql.dll", + "lib/netstandard2.0/Npgsql.xml", + "lib/netstandard2.1/Npgsql.dll", + "lib/netstandard2.1/Npgsql.xml", + "npgsql.6.0.4.nupkg.sha512", + "npgsql.nuspec", + "postgresql.png" + ] + }, + "Swashbuckle.AspNetCore/6.2.3": { + "sha512": "cnzQDn0Le+hInsw2SYwlOhOCPXpYi/szcvnyqZJ12v+QyrLBwAmWXBg6RIyHB18s/mLeywC+Rg2O9ndz0IUNYQ==", + "type": "package", + "path": "swashbuckle.aspnetcore/6.2.3", + "files": [ + ".nupkg.metadata", + ".signature.p7s", + "build/Swashbuckle.AspNetCore.props", + "swashbuckle.aspnetcore.6.2.3.nupkg.sha512", + "swashbuckle.aspnetcore.nuspec" + ] + }, + "Swashbuckle.AspNetCore.Swagger/6.2.3": { + "sha512": "qOF7j1sL0bWm8g/qqHVPCvkO3JlVvUIB8WfC98kSh6BT5y5DAnBNctfac7XR5EZf+eD7/WasvANncTqwZYfmWQ==", + "type": "package", + "path": "swashbuckle.aspnetcore.swagger/6.2.3", + "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.2.3.nupkg.sha512", + "swashbuckle.aspnetcore.swagger.nuspec" + ] + }, + "Swashbuckle.AspNetCore.SwaggerGen/6.2.3": { + "sha512": "+Xq7WdMCCfcXlnbLJVFNgY8ITdP2TRYIlpbt6IKzDw5FwFxdi9lBfNDtcT+/wkKwX70iBBFmXldnnd02/VO72A==", + "type": "package", + "path": "swashbuckle.aspnetcore.swaggergen/6.2.3", + "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.2.3.nupkg.sha512", + "swashbuckle.aspnetcore.swaggergen.nuspec" + ] + }, + "Swashbuckle.AspNetCore.SwaggerUI/6.2.3": { + "sha512": "bCRI87uKJVb4G+KURWm8LQrL64St04dEFZcF6gIM67Zc0Sr/N47EO83ybLMYOvfNdO1DCv8xwPcrz9J/VEhQ5g==", + "type": "package", + "path": "swashbuckle.aspnetcore.swaggerui/6.2.3", + "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.2.3.nupkg.sha512", + "swashbuckle.aspnetcore.swaggerui.nuspec" + ] + }, + "System.Runtime.CompilerServices.Unsafe/6.0.0": { + "sha512": "/iUeP3tq1S0XdNNoMz5C9twLSrM/TH+qElHkXWaPvuNOt+99G75NrV0OS2EqHx5wMN7popYjpc8oTjC1y16DLg==", + "type": "package", + "path": "system.runtime.compilerservices.unsafe/6.0.0", + "files": [ + ".nupkg.metadata", + ".signature.p7s", + "Icon.png", + "LICENSE.TXT", + "THIRD-PARTY-NOTICES.TXT", + "buildTransitive/netcoreapp2.0/System.Runtime.CompilerServices.Unsafe.targets", + "buildTransitive/netcoreapp3.1/_._", + "lib/net461/System.Runtime.CompilerServices.Unsafe.dll", + "lib/net461/System.Runtime.CompilerServices.Unsafe.xml", + "lib/net6.0/System.Runtime.CompilerServices.Unsafe.dll", + "lib/net6.0/System.Runtime.CompilerServices.Unsafe.xml", + "lib/netcoreapp3.1/System.Runtime.CompilerServices.Unsafe.dll", + "lib/netcoreapp3.1/System.Runtime.CompilerServices.Unsafe.xml", + "lib/netstandard2.0/System.Runtime.CompilerServices.Unsafe.dll", + "lib/netstandard2.0/System.Runtime.CompilerServices.Unsafe.xml", + "system.runtime.compilerservices.unsafe.6.0.0.nupkg.sha512", + "system.runtime.compilerservices.unsafe.nuspec", + "useSharedDesignerContext.txt" + ] + } + }, + "projectFileDependencyGroups": { + "net6.0": [ + "Newtonsoft.Json >= 13.0.1", + "Npgsql >= 6.0.4", + "Swashbuckle.AspNetCore >= 6.2.3" + ] + }, + "packageFolders": { + "C:\\Users\\pahow\\.nuget\\packages\\": {} + }, + "project": { + "version": "1.0.0", + "restore": { + "projectUniqueName": "C:\\Users\\pahow\\source\\repos\\WebApplication4\\WebApplication4\\WebApplication4.csproj", + "projectName": "WebApplication4", + "projectPath": "C:\\Users\\pahow\\source\\repos\\WebApplication4\\WebApplication4\\WebApplication4.csproj", + "packagesPath": "C:\\Users\\pahow\\.nuget\\packages\\", + "outputPath": "C:\\Users\\pahow\\source\\repos\\WebApplication4\\WebApplication4\\obj\\", + "projectStyle": "PackageReference", + "configFilePaths": [ + "C:\\Users\\pahow\\AppData\\Roaming\\NuGet\\NuGet.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": {} + }, + "frameworks": { + "net6.0": { + "targetAlias": "net6.0", + "projectReferences": {} + } + }, + "warningProperties": { + "warnAsError": [ + "NU1605" + ] + } + }, + "frameworks": { + "net6.0": { + "targetAlias": "net6.0", + "dependencies": { + "Newtonsoft.Json": { + "target": "Package", + "version": "[13.0.1, )" + }, + "Npgsql": { + "target": "Package", + "version": "[6.0.4, )" + }, + "Swashbuckle.AspNetCore": { + "target": "Package", + "version": "[6.2.3, )" + } + }, + "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.202\\RuntimeIdentifierGraph.json" + } + } + } +} \ No newline at end of file diff --git a/WebApplication4/obj/project.nuget.cache b/WebApplication4/obj/project.nuget.cache new file mode 100644 index 0000000..9e26d7a --- /dev/null +++ b/WebApplication4/obj/project.nuget.cache @@ -0,0 +1,18 @@ +{ + "version": 2, + "dgSpecHash": "2U5wydcDUJBU0gDWx1Ts/WkwwsmAZD8NO4XaiK2wuzmubTXvOLXTNDiWOhsFgcpZ8f5KaNNWMN6p4zBli5urag==", + "success": true, + "projectFilePath": "C:\\Users\\pahow\\source\\repos\\WebApplication4\\WebApplication4\\WebApplication4.csproj", + "expectedPackageFiles": [ + "C:\\Users\\pahow\\.nuget\\packages\\microsoft.extensions.apidescription.server\\3.0.0\\microsoft.extensions.apidescription.server.3.0.0.nupkg.sha512", + "C:\\Users\\pahow\\.nuget\\packages\\microsoft.openapi\\1.2.3\\microsoft.openapi.1.2.3.nupkg.sha512", + "C:\\Users\\pahow\\.nuget\\packages\\newtonsoft.json\\13.0.1\\newtonsoft.json.13.0.1.nupkg.sha512", + "C:\\Users\\pahow\\.nuget\\packages\\npgsql\\6.0.4\\npgsql.6.0.4.nupkg.sha512", + "C:\\Users\\pahow\\.nuget\\packages\\swashbuckle.aspnetcore\\6.2.3\\swashbuckle.aspnetcore.6.2.3.nupkg.sha512", + "C:\\Users\\pahow\\.nuget\\packages\\swashbuckle.aspnetcore.swagger\\6.2.3\\swashbuckle.aspnetcore.swagger.6.2.3.nupkg.sha512", + "C:\\Users\\pahow\\.nuget\\packages\\swashbuckle.aspnetcore.swaggergen\\6.2.3\\swashbuckle.aspnetcore.swaggergen.6.2.3.nupkg.sha512", + "C:\\Users\\pahow\\.nuget\\packages\\swashbuckle.aspnetcore.swaggerui\\6.2.3\\swashbuckle.aspnetcore.swaggerui.6.2.3.nupkg.sha512", + "C:\\Users\\pahow\\.nuget\\packages\\system.runtime.compilerservices.unsafe\\6.0.0\\system.runtime.compilerservices.unsafe.6.0.0.nupkg.sha512" + ], + "logs": [] +} \ No newline at end of file diff --git a/WebApplication4/obj/staticwebassets.pack.sentinel b/WebApplication4/obj/staticwebassets.pack.sentinel new file mode 100644 index 0000000..3bad590 --- /dev/null +++ b/WebApplication4/obj/staticwebassets.pack.sentinel @@ -0,0 +1,68 @@ +2.0 +2.0 +2.0 +2.0 +2.0 +2.0 +2.0 +2.0 +2.0 +2.0 +2.0 +2.0 +2.0 +2.0 +2.0 +2.0 +2.0 +2.0 +2.0 +2.0 +2.0 +2.0 +2.0 +2.0 +2.0 +2.0 +2.0 +2.0 +2.0 +2.0 +2.0 +2.0 +2.0 +2.0 +2.0 +2.0 +2.0 +2.0 +2.0 +2.0 +2.0 +2.0 +2.0 +2.0 +2.0 +2.0 +2.0 +2.0 +2.0 +2.0 +2.0 +2.0 +2.0 +2.0 +2.0 +2.0 +2.0 +2.0 +2.0 +2.0 +2.0 +2.0 +2.0 +2.0 +2.0 +2.0 +2.0 +2.0