diff --git a/Pondar/Pondar.sln b/Pondar/Pondar.sln new file mode 100644 index 0000000..04994e3 --- /dev/null +++ b/Pondar/Pondar.sln @@ -0,0 +1,24 @@ +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 17 +VisualStudioVersion = 17.5.2.0 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "StudentWebApi", "StudentWebApi\StudentWebApi.csproj", "{A8C92177-1350-965C-6BE8-531807497CF0}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {A8C92177-1350-965C-6BE8-531807497CF0}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {A8C92177-1350-965C-6BE8-531807497CF0}.Debug|Any CPU.Build.0 = Debug|Any CPU + {A8C92177-1350-965C-6BE8-531807497CF0}.Release|Any CPU.ActiveCfg = Release|Any CPU + {A8C92177-1350-965C-6BE8-531807497CF0}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {192F50C0-330E-48CF-ACE9-98131970497B} + EndGlobalSection +EndGlobal diff --git a/Pondar/StudentWebApi/Controllers/StudentController.cs b/Pondar/StudentWebApi/Controllers/StudentController.cs new file mode 100644 index 0000000..beb02e3 --- /dev/null +++ b/Pondar/StudentWebApi/Controllers/StudentController.cs @@ -0,0 +1,68 @@ +using Microsoft.AspNetCore.Mvc; +using StudentWebApi.Models; +using StudentWebApi.Services; + +[ApiController] +[Route("api/[controller]")] +public class StudentController : ControllerBase +{ + private IStudentService _studentService; + + public StudentController(IStudentService studentService) + { + _studentService = studentService; + } + + [HttpPost] + public IActionResult AddStudent([FromBody] Student student) + { + try + { + Student studentToAdd = _studentService.addStudent(student); + return Ok(studentToAdd); + } + catch (ArgumentException) + { + return BadRequest("ID is already taken!"); + } + } + + [HttpGet] + public ActionResult> GetAllStudent() + { + return Ok(_studentService.getAllStudents()); + } + + [HttpGet("{id}")] + public ActionResult GetStudentById(long id) + { + + var student = _studentService.getStudentById(id); + + if (student == null) + { + return NotFound($"Student with ID {id} not found."); + } + return Ok(student); + } + + [HttpPut("{id}")] + public IActionResult UpdateStudent(long id, [FromBody] Student student) + { + student.PkStudentID = id; + var updatedStudent = _studentService.updateStudent(id, student); + + if (updatedStudent == null) + { + return NotFound($"Student {id} not found"); + } + + return Ok(updatedStudent); + } + [HttpDelete("{id}")] + public ActionResult DeleteStudent(long id) + { + return _studentService.deleteStudent(id) ? Ok($"Student is removed successfully") : NotFound($"Student ID not found"); + } + +} \ No newline at end of file diff --git a/Pondar/StudentWebApi/Models/Student.cs b/Pondar/StudentWebApi/Models/Student.cs new file mode 100644 index 0000000..6aa1a0a --- /dev/null +++ b/Pondar/StudentWebApi/Models/Student.cs @@ -0,0 +1,18 @@ +namespace StudentWebApi.Models +{ + public class Student + { + public long PkStudentID { get; set; } + public string Name { get; set; } = string.Empty; + public string Course { get; set; } = string.Empty; + + public Student() { } + + public Student(long pkStudentID, string name, string course) + { + PkStudentID = pkStudentID; + Name = name; + Course = course; + } + } +} \ No newline at end of file diff --git a/Pondar/StudentWebApi/Program.cs b/Pondar/StudentWebApi/Program.cs new file mode 100644 index 0000000..60f6117 --- /dev/null +++ b/Pondar/StudentWebApi/Program.cs @@ -0,0 +1,28 @@ +using StudentWebApi.Models; +using StudentWebApi.Services; + +var builder = WebApplication.CreateBuilder(args); + +// Add services to the container. +// Learn more about configuring OpenAPI at https://aka.ms/aspnet/openapi +builder.Services.AddOpenApi(); + +// For Dependency Injection (Uses a single instance of dictionary; which is the in-memory studentDb) +builder.Services.AddSingleton(); + +// For Controller +builder.Services.AddControllers(); + +var app = builder.Build(); +// Configure the HTTP request pipeline. +if (app.Environment.IsDevelopment()) + +{ + app.MapOpenApi(); + +} + +app.UseHttpsRedirection(); +app.MapControllers(); + +app.Run(); \ No newline at end of file diff --git a/Pondar/StudentWebApi/Properties/launchSettings.json b/Pondar/StudentWebApi/Properties/launchSettings.json new file mode 100644 index 0000000..e7c9e3a --- /dev/null +++ b/Pondar/StudentWebApi/Properties/launchSettings.json @@ -0,0 +1,23 @@ +{ + "$schema": "https://json.schemastore.org/launchsettings.json", + "profiles": { + "http": { + "commandName": "Project", + "dotnetRunMessages": true, + "launchBrowser": false, + "applicationUrl": "http://localhost:9090", + "environmentVariables": { + "ASPNETCORE_ENVIRONMENT": "Development" + } + }, + "https": { + "commandName": "Project", + "dotnetRunMessages": true, + "launchBrowser": false, + "applicationUrl": "https://localhost:7053;http://localhost:9090", + "environmentVariables": { + "ASPNETCORE_ENVIRONMENT": "Development" + } + } + } +} diff --git a/Pondar/StudentWebApi/Services/Implementations/IStudentService.cs b/Pondar/StudentWebApi/Services/Implementations/IStudentService.cs new file mode 100644 index 0000000..93da19b --- /dev/null +++ b/Pondar/StudentWebApi/Services/Implementations/IStudentService.cs @@ -0,0 +1,13 @@ +using StudentWebApi.Models; + +namespace StudentWebApi.Services +{ + public interface IStudentService + { + Student addStudent(Student student); + List getAllStudents(); + Student? getStudentById(long id); + Student? updateStudent(long id, Student student); + bool deleteStudent(long id); + } +} \ No newline at end of file diff --git a/Pondar/StudentWebApi/Services/Interface/StudentService.cs b/Pondar/StudentWebApi/Services/Interface/StudentService.cs new file mode 100644 index 0000000..4b73e91 --- /dev/null +++ b/Pondar/StudentWebApi/Services/Interface/StudentService.cs @@ -0,0 +1,66 @@ +using StudentWebApi.Models; +using StudentWebApi.Services; + +public class StudentService : IStudentService +{ + private Dictionary studentDB = new Dictionary(); + private long studentCount = 1; + + public Student addStudent(Student student) + { + if (student.PkStudentID == 0) + { + student.PkStudentID = studentCount++; + } + + if (studentDB.ContainsKey(student.PkStudentID)) + { + throw new ArgumentException("Student ID already exists"); + } + + studentDB.Add(student.PkStudentID, student); + return student; + } + public List getAllStudents() + { + return studentDB.Values.ToList(); + } + + public bool deleteStudent(long id) + { + return studentDB.Remove(id); + } + + public Student? getStudentById(long id) + { + return studentDB.TryGetValue(id, out Student? student) ? student : null; + + // Student? foundStudentID; + // if (studentDB.TryGetValue(id, out Student? student)) + // { + // foundStudentID = student; + // } + // else + // { + // foundStudentID = null; + // } + } + + public Student? updateStudent(long id, Student student) + { + long studentID = student.PkStudentID; + + if (studentDB.ContainsKey(studentID)) + { + studentDB[studentID].Name = student.Name; + studentDB[studentID].Course = student.Course; + + return studentDB[id]; + + } + else + { + return null; + } + } +} \ No newline at end of file diff --git a/Pondar/StudentWebApi/StudentWebApi.csproj b/Pondar/StudentWebApi/StudentWebApi.csproj new file mode 100644 index 0000000..4117b6a --- /dev/null +++ b/Pondar/StudentWebApi/StudentWebApi.csproj @@ -0,0 +1,13 @@ + + + + net9.0 + enable + enable + + + + + + + diff --git a/Pondar/StudentWebApi/StudentWebApi.http b/Pondar/StudentWebApi/StudentWebApi.http new file mode 100644 index 0000000..d9432a2 --- /dev/null +++ b/Pondar/StudentWebApi/StudentWebApi.http @@ -0,0 +1,6 @@ +@StudentWebApi_HostAddress = http://localhost:5052 + +GET {{StudentWebApi_HostAddress}}/weatherforecast/ +Accept: application/json + +### diff --git a/Pondar/StudentWebApi/appsettings.Development.json b/Pondar/StudentWebApi/appsettings.Development.json new file mode 100644 index 0000000..0c208ae --- /dev/null +++ b/Pondar/StudentWebApi/appsettings.Development.json @@ -0,0 +1,8 @@ +{ + "Logging": { + "LogLevel": { + "Default": "Information", + "Microsoft.AspNetCore": "Warning" + } + } +} diff --git a/Pondar/StudentWebApi/appsettings.json b/Pondar/StudentWebApi/appsettings.json new file mode 100644 index 0000000..10f68b8 --- /dev/null +++ b/Pondar/StudentWebApi/appsettings.json @@ -0,0 +1,9 @@ +{ + "Logging": { + "LogLevel": { + "Default": "Information", + "Microsoft.AspNetCore": "Warning" + } + }, + "AllowedHosts": "*" +} diff --git a/Pondar/StudentWebApi/bin/Debug/net9.0/Microsoft.AspNetCore.OpenApi.dll b/Pondar/StudentWebApi/bin/Debug/net9.0/Microsoft.AspNetCore.OpenApi.dll new file mode 100644 index 0000000..eff499a Binary files /dev/null and b/Pondar/StudentWebApi/bin/Debug/net9.0/Microsoft.AspNetCore.OpenApi.dll differ diff --git a/Pondar/StudentWebApi/bin/Debug/net9.0/Microsoft.OpenApi.dll b/Pondar/StudentWebApi/bin/Debug/net9.0/Microsoft.OpenApi.dll new file mode 100644 index 0000000..d9f09da Binary files /dev/null and b/Pondar/StudentWebApi/bin/Debug/net9.0/Microsoft.OpenApi.dll differ diff --git a/Pondar/StudentWebApi/bin/Debug/net9.0/StudentWebApi.deps.json b/Pondar/StudentWebApi/bin/Debug/net9.0/StudentWebApi.deps.json new file mode 100644 index 0000000..96c1d7f --- /dev/null +++ b/Pondar/StudentWebApi/bin/Debug/net9.0/StudentWebApi.deps.json @@ -0,0 +1,59 @@ +{ + "runtimeTarget": { + "name": ".NETCoreApp,Version=v9.0", + "signature": "" + }, + "compilationOptions": {}, + "targets": { + ".NETCoreApp,Version=v9.0": { + "StudentWebApi/1.0.0": { + "dependencies": { + "Microsoft.AspNetCore.OpenApi": "9.0.3" + }, + "runtime": { + "StudentWebApi.dll": {} + } + }, + "Microsoft.AspNetCore.OpenApi/9.0.3": { + "dependencies": { + "Microsoft.OpenApi": "1.6.17" + }, + "runtime": { + "lib/net9.0/Microsoft.AspNetCore.OpenApi.dll": { + "assemblyVersion": "9.0.3.0", + "fileVersion": "9.0.325.11220" + } + } + }, + "Microsoft.OpenApi/1.6.17": { + "runtime": { + "lib/netstandard2.0/Microsoft.OpenApi.dll": { + "assemblyVersion": "1.6.17.0", + "fileVersion": "1.6.17.0" + } + } + } + } + }, + "libraries": { + "StudentWebApi/1.0.0": { + "type": "project", + "serviceable": false, + "sha512": "" + }, + "Microsoft.AspNetCore.OpenApi/9.0.3": { + "type": "package", + "serviceable": true, + "sha512": "sha512-fKh0UyGMUE+lhbovMhh3g88b9bT+y2jfZIuJ8ljY7rcCaSJ9m2Qqqbh66oULFfzWE2BUAmimzTGcPcq3jXi/Ew==", + "path": "microsoft.aspnetcore.openapi/9.0.3", + "hashPath": "microsoft.aspnetcore.openapi.9.0.3.nupkg.sha512" + }, + "Microsoft.OpenApi/1.6.17": { + "type": "package", + "serviceable": true, + "sha512": "sha512-Le+kehlmrlQfuDFUt1zZ2dVwrhFQtKREdKBo+rexOwaCoYP0/qpgT9tLxCsZjsgR5Itk1UKPcbgO+FyaNid/bA==", + "path": "microsoft.openapi/1.6.17", + "hashPath": "microsoft.openapi.1.6.17.nupkg.sha512" + } + } +} \ No newline at end of file diff --git a/Pondar/StudentWebApi/bin/Debug/net9.0/StudentWebApi.dll b/Pondar/StudentWebApi/bin/Debug/net9.0/StudentWebApi.dll new file mode 100644 index 0000000..cf69164 Binary files /dev/null and b/Pondar/StudentWebApi/bin/Debug/net9.0/StudentWebApi.dll differ diff --git a/Pondar/StudentWebApi/bin/Debug/net9.0/StudentWebApi.exe b/Pondar/StudentWebApi/bin/Debug/net9.0/StudentWebApi.exe new file mode 100644 index 0000000..1c379f9 Binary files /dev/null and b/Pondar/StudentWebApi/bin/Debug/net9.0/StudentWebApi.exe differ diff --git a/Pondar/StudentWebApi/bin/Debug/net9.0/StudentWebApi.pdb b/Pondar/StudentWebApi/bin/Debug/net9.0/StudentWebApi.pdb new file mode 100644 index 0000000..493b0a1 Binary files /dev/null and b/Pondar/StudentWebApi/bin/Debug/net9.0/StudentWebApi.pdb differ diff --git a/Pondar/StudentWebApi/bin/Debug/net9.0/StudentWebApi.runtimeconfig.json b/Pondar/StudentWebApi/bin/Debug/net9.0/StudentWebApi.runtimeconfig.json new file mode 100644 index 0000000..6925b65 --- /dev/null +++ b/Pondar/StudentWebApi/bin/Debug/net9.0/StudentWebApi.runtimeconfig.json @@ -0,0 +1,19 @@ +{ + "runtimeOptions": { + "tfm": "net9.0", + "frameworks": [ + { + "name": "Microsoft.NETCore.App", + "version": "9.0.0" + }, + { + "name": "Microsoft.AspNetCore.App", + "version": "9.0.0" + } + ], + "configProperties": { + "System.GC.Server": true, + "System.Runtime.Serialization.EnableUnsafeBinaryFormatterSerialization": false + } + } +} \ No newline at end of file diff --git a/Pondar/StudentWebApi/bin/Debug/net9.0/StudentWebApi.staticwebassets.endpoints.json b/Pondar/StudentWebApi/bin/Debug/net9.0/StudentWebApi.staticwebassets.endpoints.json new file mode 100644 index 0000000..2b6c535 --- /dev/null +++ b/Pondar/StudentWebApi/bin/Debug/net9.0/StudentWebApi.staticwebassets.endpoints.json @@ -0,0 +1,5 @@ +{ + "Version": 1, + "ManifestType": "Build", + "Endpoints": [] +} \ No newline at end of file diff --git a/Pondar/StudentWebApi/bin/Debug/net9.0/appsettings.Development.json b/Pondar/StudentWebApi/bin/Debug/net9.0/appsettings.Development.json new file mode 100644 index 0000000..0c208ae --- /dev/null +++ b/Pondar/StudentWebApi/bin/Debug/net9.0/appsettings.Development.json @@ -0,0 +1,8 @@ +{ + "Logging": { + "LogLevel": { + "Default": "Information", + "Microsoft.AspNetCore": "Warning" + } + } +} diff --git a/Pondar/StudentWebApi/bin/Debug/net9.0/appsettings.json b/Pondar/StudentWebApi/bin/Debug/net9.0/appsettings.json new file mode 100644 index 0000000..10f68b8 --- /dev/null +++ b/Pondar/StudentWebApi/bin/Debug/net9.0/appsettings.json @@ -0,0 +1,9 @@ +{ + "Logging": { + "LogLevel": { + "Default": "Information", + "Microsoft.AspNetCore": "Warning" + } + }, + "AllowedHosts": "*" +} diff --git a/Pondar/StudentWebApi/obj/Debug/net9.0/.NETCoreApp,Version=v9.0.AssemblyAttributes.cs b/Pondar/StudentWebApi/obj/Debug/net9.0/.NETCoreApp,Version=v9.0.AssemblyAttributes.cs new file mode 100644 index 0000000..feda5e9 --- /dev/null +++ b/Pondar/StudentWebApi/obj/Debug/net9.0/.NETCoreApp,Version=v9.0.AssemblyAttributes.cs @@ -0,0 +1,4 @@ +// +using System; +using System.Reflection; +[assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETCoreApp,Version=v9.0", FrameworkDisplayName = ".NET 9.0")] diff --git a/Pondar/StudentWebApi/obj/Debug/net9.0/1ccee0fb-3913-4836-ad11-6ea986791963_StudentWebApi.pdb b/Pondar/StudentWebApi/obj/Debug/net9.0/1ccee0fb-3913-4836-ad11-6ea986791963_StudentWebApi.pdb new file mode 100644 index 0000000..57bc178 Binary files /dev/null and b/Pondar/StudentWebApi/obj/Debug/net9.0/1ccee0fb-3913-4836-ad11-6ea986791963_StudentWebApi.pdb differ diff --git a/Pondar/StudentWebApi/obj/Debug/net9.0/284b7a8a-1495-4a50-8c3c-d314663e6227_StudentWebApi.pdb b/Pondar/StudentWebApi/obj/Debug/net9.0/284b7a8a-1495-4a50-8c3c-d314663e6227_StudentWebApi.pdb new file mode 100644 index 0000000..f474700 Binary files /dev/null and b/Pondar/StudentWebApi/obj/Debug/net9.0/284b7a8a-1495-4a50-8c3c-d314663e6227_StudentWebApi.pdb differ diff --git a/Pondar/StudentWebApi/obj/Debug/net9.0/StudentW.D7606672.Up2Date b/Pondar/StudentWebApi/obj/Debug/net9.0/StudentW.D7606672.Up2Date new file mode 100644 index 0000000..e69de29 diff --git a/Pondar/StudentWebApi/obj/Debug/net9.0/StudentWebApi.AssemblyInfo.cs b/Pondar/StudentWebApi/obj/Debug/net9.0/StudentWebApi.AssemblyInfo.cs new file mode 100644 index 0000000..2e11cae --- /dev/null +++ b/Pondar/StudentWebApi/obj/Debug/net9.0/StudentWebApi.AssemblyInfo.cs @@ -0,0 +1,22 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// 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("StudentWebApi")] +[assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")] +[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")] +[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+962eff0b5317fee1572af26986c7377849c2b40d")] +[assembly: System.Reflection.AssemblyProductAttribute("StudentWebApi")] +[assembly: System.Reflection.AssemblyTitleAttribute("StudentWebApi")] +[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")] + +// Generated by the MSBuild WriteCodeFragment class. + diff --git a/Pondar/StudentWebApi/obj/Debug/net9.0/StudentWebApi.AssemblyInfoInputs.cache b/Pondar/StudentWebApi/obj/Debug/net9.0/StudentWebApi.AssemblyInfoInputs.cache new file mode 100644 index 0000000..ecd9771 --- /dev/null +++ b/Pondar/StudentWebApi/obj/Debug/net9.0/StudentWebApi.AssemblyInfoInputs.cache @@ -0,0 +1 @@ +4b0b73f6fcbc3f8d497556752ad817fe845643ccd0fd91ef9677e5639a495f5c diff --git a/Pondar/StudentWebApi/obj/Debug/net9.0/StudentWebApi.GeneratedMSBuildEditorConfig.editorconfig b/Pondar/StudentWebApi/obj/Debug/net9.0/StudentWebApi.GeneratedMSBuildEditorConfig.editorconfig new file mode 100644 index 0000000..977dd71 --- /dev/null +++ b/Pondar/StudentWebApi/obj/Debug/net9.0/StudentWebApi.GeneratedMSBuildEditorConfig.editorconfig @@ -0,0 +1,21 @@ +is_global = true +build_property.TargetFramework = net9.0 +build_property.TargetPlatformMinVersion = +build_property.UsingMicrosoftNETSdkWeb = true +build_property.ProjectTypeGuids = +build_property.InvariantGlobalization = +build_property.PlatformNeutralAssembly = +build_property.EnforceExtendedAnalyzerRules = +build_property._SupportedPlatformList = Linux,macOS,Windows +build_property.RootNamespace = StudentWebApi +build_property.RootNamespace = StudentWebApi +build_property.ProjectDir = C:\Users\User\Desktop\csharp-asp.net-api\Pondar\StudentWebApi\ +build_property.EnableComHosting = +build_property.EnableGeneratedComInterfaceComImportInterop = +build_property.RazorLangVersion = 9.0 +build_property.SupportLocalizedComponentNames = +build_property.GenerateRazorMetadataSourceChecksumAttributes = +build_property.MSBuildProjectDirectory = C:\Users\User\Desktop\csharp-asp.net-api\Pondar\StudentWebApi +build_property._RazorSourceGeneratorDebug = +build_property.EffectiveAnalysisLevelStyle = 9.0 +build_property.EnableCodeStyleSeverity = diff --git a/Pondar/StudentWebApi/obj/Debug/net9.0/StudentWebApi.GlobalUsings.g.cs b/Pondar/StudentWebApi/obj/Debug/net9.0/StudentWebApi.GlobalUsings.g.cs new file mode 100644 index 0000000..025530a --- /dev/null +++ b/Pondar/StudentWebApi/obj/Debug/net9.0/StudentWebApi.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/Pondar/StudentWebApi/obj/Debug/net9.0/StudentWebApi.MvcApplicationPartsAssemblyInfo.cache b/Pondar/StudentWebApi/obj/Debug/net9.0/StudentWebApi.MvcApplicationPartsAssemblyInfo.cache new file mode 100644 index 0000000..e69de29 diff --git a/Pondar/StudentWebApi/obj/Debug/net9.0/StudentWebApi.MvcApplicationPartsAssemblyInfo.cs b/Pondar/StudentWebApi/obj/Debug/net9.0/StudentWebApi.MvcApplicationPartsAssemblyInfo.cs new file mode 100644 index 0000000..1c3041b --- /dev/null +++ b/Pondar/StudentWebApi/obj/Debug/net9.0/StudentWebApi.MvcApplicationPartsAssemblyInfo.cs @@ -0,0 +1,16 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// 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("Microsoft.AspNetCore.OpenApi")] + +// Generated by the MSBuild WriteCodeFragment class. + diff --git a/Pondar/StudentWebApi/obj/Debug/net9.0/StudentWebApi.assets.cache b/Pondar/StudentWebApi/obj/Debug/net9.0/StudentWebApi.assets.cache new file mode 100644 index 0000000..7c0fd4f Binary files /dev/null and b/Pondar/StudentWebApi/obj/Debug/net9.0/StudentWebApi.assets.cache differ diff --git a/Pondar/StudentWebApi/obj/Debug/net9.0/StudentWebApi.csproj.AssemblyReference.cache b/Pondar/StudentWebApi/obj/Debug/net9.0/StudentWebApi.csproj.AssemblyReference.cache new file mode 100644 index 0000000..d63e77f Binary files /dev/null and b/Pondar/StudentWebApi/obj/Debug/net9.0/StudentWebApi.csproj.AssemblyReference.cache differ diff --git a/Pondar/StudentWebApi/obj/Debug/net9.0/StudentWebApi.csproj.CoreCompileInputs.cache b/Pondar/StudentWebApi/obj/Debug/net9.0/StudentWebApi.csproj.CoreCompileInputs.cache new file mode 100644 index 0000000..97b2a7b --- /dev/null +++ b/Pondar/StudentWebApi/obj/Debug/net9.0/StudentWebApi.csproj.CoreCompileInputs.cache @@ -0,0 +1 @@ +dc34a3748ee487f197701f98ab38ae51543789f574ba34041a163108c644e217 diff --git a/Pondar/StudentWebApi/obj/Debug/net9.0/StudentWebApi.csproj.FileListAbsolute.txt b/Pondar/StudentWebApi/obj/Debug/net9.0/StudentWebApi.csproj.FileListAbsolute.txt new file mode 100644 index 0000000..20d4439 --- /dev/null +++ b/Pondar/StudentWebApi/obj/Debug/net9.0/StudentWebApi.csproj.FileListAbsolute.txt @@ -0,0 +1,34 @@ +C:\Users\User\Desktop\csharp-asp.net-api\Pondar\StudentWebApi\bin\Debug\net9.0\appsettings.Development.json +C:\Users\User\Desktop\csharp-asp.net-api\Pondar\StudentWebApi\bin\Debug\net9.0\appsettings.json +C:\Users\User\Desktop\csharp-asp.net-api\Pondar\StudentWebApi\bin\Debug\net9.0\StudentWebApi.staticwebassets.endpoints.json +C:\Users\User\Desktop\csharp-asp.net-api\Pondar\StudentWebApi\bin\Debug\net9.0\StudentWebApi.exe +C:\Users\User\Desktop\csharp-asp.net-api\Pondar\StudentWebApi\bin\Debug\net9.0\StudentWebApi.deps.json +C:\Users\User\Desktop\csharp-asp.net-api\Pondar\StudentWebApi\bin\Debug\net9.0\StudentWebApi.runtimeconfig.json +C:\Users\User\Desktop\csharp-asp.net-api\Pondar\StudentWebApi\bin\Debug\net9.0\StudentWebApi.dll +C:\Users\User\Desktop\csharp-asp.net-api\Pondar\StudentWebApi\bin\Debug\net9.0\StudentWebApi.pdb +C:\Users\User\Desktop\csharp-asp.net-api\Pondar\StudentWebApi\bin\Debug\net9.0\Microsoft.AspNetCore.OpenApi.dll +C:\Users\User\Desktop\csharp-asp.net-api\Pondar\StudentWebApi\bin\Debug\net9.0\Microsoft.OpenApi.dll +C:\Users\User\Desktop\csharp-asp.net-api\Pondar\StudentWebApi\obj\Debug\net9.0\StudentWebApi.csproj.AssemblyReference.cache +C:\Users\User\Desktop\csharp-asp.net-api\Pondar\StudentWebApi\obj\Debug\net9.0\StudentWebApi.GeneratedMSBuildEditorConfig.editorconfig +C:\Users\User\Desktop\csharp-asp.net-api\Pondar\StudentWebApi\obj\Debug\net9.0\StudentWebApi.AssemblyInfoInputs.cache +C:\Users\User\Desktop\csharp-asp.net-api\Pondar\StudentWebApi\obj\Debug\net9.0\StudentWebApi.AssemblyInfo.cs +C:\Users\User\Desktop\csharp-asp.net-api\Pondar\StudentWebApi\obj\Debug\net9.0\StudentWebApi.csproj.CoreCompileInputs.cache +C:\Users\User\Desktop\csharp-asp.net-api\Pondar\StudentWebApi\obj\Debug\net9.0\StudentWebApi.MvcApplicationPartsAssemblyInfo.cs +C:\Users\User\Desktop\csharp-asp.net-api\Pondar\StudentWebApi\obj\Debug\net9.0\StudentWebApi.MvcApplicationPartsAssemblyInfo.cache +C:\Users\User\Desktop\csharp-asp.net-api\Pondar\StudentWebApi\obj\Debug\net9.0\StudentWebApi.sourcelink.json +C:\Users\User\Desktop\csharp-asp.net-api\Pondar\StudentWebApi\obj\Debug\net9.0\scopedcss\bundle\StudentWebApi.styles.css +C:\Users\User\Desktop\csharp-asp.net-api\Pondar\StudentWebApi\obj\Debug\net9.0\staticwebassets.build.json +C:\Users\User\Desktop\csharp-asp.net-api\Pondar\StudentWebApi\obj\Debug\net9.0\staticwebassets.development.json +C:\Users\User\Desktop\csharp-asp.net-api\Pondar\StudentWebApi\obj\Debug\net9.0\staticwebassets.build.endpoints.json +C:\Users\User\Desktop\csharp-asp.net-api\Pondar\StudentWebApi\obj\Debug\net9.0\staticwebassets\msbuild.StudentWebApi.Microsoft.AspNetCore.StaticWebAssets.props +C:\Users\User\Desktop\csharp-asp.net-api\Pondar\StudentWebApi\obj\Debug\net9.0\staticwebassets\msbuild.StudentWebApi.Microsoft.AspNetCore.StaticWebAssetEndpoints.props +C:\Users\User\Desktop\csharp-asp.net-api\Pondar\StudentWebApi\obj\Debug\net9.0\staticwebassets\msbuild.build.StudentWebApi.props +C:\Users\User\Desktop\csharp-asp.net-api\Pondar\StudentWebApi\obj\Debug\net9.0\staticwebassets\msbuild.buildMultiTargeting.StudentWebApi.props +C:\Users\User\Desktop\csharp-asp.net-api\Pondar\StudentWebApi\obj\Debug\net9.0\staticwebassets\msbuild.buildTransitive.StudentWebApi.props +C:\Users\User\Desktop\csharp-asp.net-api\Pondar\StudentWebApi\obj\Debug\net9.0\staticwebassets.pack.json +C:\Users\User\Desktop\csharp-asp.net-api\Pondar\StudentWebApi\obj\Debug\net9.0\StudentW.D7606672.Up2Date +C:\Users\User\Desktop\csharp-asp.net-api\Pondar\StudentWebApi\obj\Debug\net9.0\StudentWebApi.dll +C:\Users\User\Desktop\csharp-asp.net-api\Pondar\StudentWebApi\obj\Debug\net9.0\refint\StudentWebApi.dll +C:\Users\User\Desktop\csharp-asp.net-api\Pondar\StudentWebApi\obj\Debug\net9.0\StudentWebApi.pdb +C:\Users\User\Desktop\csharp-asp.net-api\Pondar\StudentWebApi\obj\Debug\net9.0\StudentWebApi.genruntimeconfig.cache +C:\Users\User\Desktop\csharp-asp.net-api\Pondar\StudentWebApi\obj\Debug\net9.0\ref\StudentWebApi.dll diff --git a/Pondar/StudentWebApi/obj/Debug/net9.0/StudentWebApi.dll b/Pondar/StudentWebApi/obj/Debug/net9.0/StudentWebApi.dll new file mode 100644 index 0000000..cf69164 Binary files /dev/null and b/Pondar/StudentWebApi/obj/Debug/net9.0/StudentWebApi.dll differ diff --git a/Pondar/StudentWebApi/obj/Debug/net9.0/StudentWebApi.genruntimeconfig.cache b/Pondar/StudentWebApi/obj/Debug/net9.0/StudentWebApi.genruntimeconfig.cache new file mode 100644 index 0000000..f16578b --- /dev/null +++ b/Pondar/StudentWebApi/obj/Debug/net9.0/StudentWebApi.genruntimeconfig.cache @@ -0,0 +1 @@ +bff8ae30dd036b296600001b74dba0ab062c844862cfbd5156f69dad56d4316a diff --git a/Pondar/StudentWebApi/obj/Debug/net9.0/StudentWebApi.pdb b/Pondar/StudentWebApi/obj/Debug/net9.0/StudentWebApi.pdb new file mode 100644 index 0000000..493b0a1 Binary files /dev/null and b/Pondar/StudentWebApi/obj/Debug/net9.0/StudentWebApi.pdb differ diff --git a/Pondar/StudentWebApi/obj/Debug/net9.0/StudentWebApi.sourcelink.json b/Pondar/StudentWebApi/obj/Debug/net9.0/StudentWebApi.sourcelink.json new file mode 100644 index 0000000..ddb3f10 --- /dev/null +++ b/Pondar/StudentWebApi/obj/Debug/net9.0/StudentWebApi.sourcelink.json @@ -0,0 +1 @@ +{"documents":{"C:\\Users\\User\\Desktop\\csharp-asp.net-api\\*":"https://raw.githubusercontent.com/Speender/csharp-asp.net-api/962eff0b5317fee1572af26986c7377849c2b40d/*"}} \ No newline at end of file diff --git a/Pondar/StudentWebApi/obj/Debug/net9.0/apphost.exe b/Pondar/StudentWebApi/obj/Debug/net9.0/apphost.exe new file mode 100644 index 0000000..1c379f9 Binary files /dev/null and b/Pondar/StudentWebApi/obj/Debug/net9.0/apphost.exe differ diff --git a/Pondar/StudentWebApi/obj/Debug/net9.0/ref/StudentWebApi.dll b/Pondar/StudentWebApi/obj/Debug/net9.0/ref/StudentWebApi.dll new file mode 100644 index 0000000..e9ff4ec Binary files /dev/null and b/Pondar/StudentWebApi/obj/Debug/net9.0/ref/StudentWebApi.dll differ diff --git a/Pondar/StudentWebApi/obj/Debug/net9.0/refint/StudentWebApi.dll b/Pondar/StudentWebApi/obj/Debug/net9.0/refint/StudentWebApi.dll new file mode 100644 index 0000000..e9ff4ec Binary files /dev/null and b/Pondar/StudentWebApi/obj/Debug/net9.0/refint/StudentWebApi.dll differ diff --git a/Pondar/StudentWebApi/obj/Debug/net9.0/staticwebassets.build.endpoints.json b/Pondar/StudentWebApi/obj/Debug/net9.0/staticwebassets.build.endpoints.json new file mode 100644 index 0000000..2b6c535 --- /dev/null +++ b/Pondar/StudentWebApi/obj/Debug/net9.0/staticwebassets.build.endpoints.json @@ -0,0 +1,5 @@ +{ + "Version": 1, + "ManifestType": "Build", + "Endpoints": [] +} \ No newline at end of file diff --git a/Pondar/StudentWebApi/obj/Debug/net9.0/staticwebassets.build.json b/Pondar/StudentWebApi/obj/Debug/net9.0/staticwebassets.build.json new file mode 100644 index 0000000..458001b --- /dev/null +++ b/Pondar/StudentWebApi/obj/Debug/net9.0/staticwebassets.build.json @@ -0,0 +1,12 @@ +{ + "Version": 1, + "Hash": "sxIeermNoQ5LKjCiVnLl+52BkHwJu2Pyo5EtC/ObtC0=", + "Source": "StudentWebApi", + "BasePath": "_content/StudentWebApi", + "Mode": "Default", + "ManifestType": "Build", + "ReferencedProjectsConfiguration": [], + "DiscoveryPatterns": [], + "Assets": [], + "Endpoints": [] +} \ No newline at end of file diff --git a/Pondar/StudentWebApi/obj/Debug/net9.0/staticwebassets/msbuild.build.StudentWebApi.props b/Pondar/StudentWebApi/obj/Debug/net9.0/staticwebassets/msbuild.build.StudentWebApi.props new file mode 100644 index 0000000..ddaed44 --- /dev/null +++ b/Pondar/StudentWebApi/obj/Debug/net9.0/staticwebassets/msbuild.build.StudentWebApi.props @@ -0,0 +1,4 @@ + + + + \ No newline at end of file diff --git a/Pondar/StudentWebApi/obj/Debug/net9.0/staticwebassets/msbuild.buildMultiTargeting.StudentWebApi.props b/Pondar/StudentWebApi/obj/Debug/net9.0/staticwebassets/msbuild.buildMultiTargeting.StudentWebApi.props new file mode 100644 index 0000000..772e668 --- /dev/null +++ b/Pondar/StudentWebApi/obj/Debug/net9.0/staticwebassets/msbuild.buildMultiTargeting.StudentWebApi.props @@ -0,0 +1,3 @@ + + + \ No newline at end of file diff --git a/Pondar/StudentWebApi/obj/Debug/net9.0/staticwebassets/msbuild.buildTransitive.StudentWebApi.props b/Pondar/StudentWebApi/obj/Debug/net9.0/staticwebassets/msbuild.buildTransitive.StudentWebApi.props new file mode 100644 index 0000000..567f008 --- /dev/null +++ b/Pondar/StudentWebApi/obj/Debug/net9.0/staticwebassets/msbuild.buildTransitive.StudentWebApi.props @@ -0,0 +1,3 @@ + + + \ No newline at end of file diff --git a/Pondar/StudentWebApi/obj/StudentWebApi.csproj.nuget.dgspec.json b/Pondar/StudentWebApi/obj/StudentWebApi.csproj.nuget.dgspec.json new file mode 100644 index 0000000..e0cfa50 --- /dev/null +++ b/Pondar/StudentWebApi/obj/StudentWebApi.csproj.nuget.dgspec.json @@ -0,0 +1,82 @@ +{ + "format": 1, + "restore": { + "C:\\Users\\User\\Desktop\\csharp-asp.net-api\\Pondar\\StudentWebApi\\StudentWebApi.csproj": {} + }, + "projects": { + "C:\\Users\\User\\Desktop\\csharp-asp.net-api\\Pondar\\StudentWebApi\\StudentWebApi.csproj": { + "version": "1.0.0", + "restore": { + "projectUniqueName": "C:\\Users\\User\\Desktop\\csharp-asp.net-api\\Pondar\\StudentWebApi\\StudentWebApi.csproj", + "projectName": "StudentWebApi", + "projectPath": "C:\\Users\\User\\Desktop\\csharp-asp.net-api\\Pondar\\StudentWebApi\\StudentWebApi.csproj", + "packagesPath": "C:\\Users\\User\\.nuget\\packages\\", + "outputPath": "C:\\Users\\User\\Desktop\\csharp-asp.net-api\\Pondar\\StudentWebApi\\obj\\", + "projectStyle": "PackageReference", + "fallbackFolders": [ + "C:\\Program Files (x86)\\Microsoft Visual Studio\\Shared\\NuGetPackages" + ], + "configFilePaths": [ + "C:\\Users\\User\\AppData\\Roaming\\NuGet\\NuGet.Config", + "C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.FallbackLocation.config", + "C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.Offline.config" + ], + "originalTargetFrameworks": [ + "net9.0" + ], + "sources": { + "C:\\Program Files (x86)\\Microsoft SDKs\\NuGetPackages\\": {}, + "https://api.nuget.org/v3/index.json": {} + }, + "frameworks": { + "net9.0": { + "targetAlias": "net9.0", + "projectReferences": {} + } + }, + "warningProperties": { + "warnAsError": [ + "NU1605" + ] + }, + "restoreAuditProperties": { + "enableAudit": "true", + "auditLevel": "low", + "auditMode": "direct" + }, + "SdkAnalysisLevel": "9.0.200" + }, + "frameworks": { + "net9.0": { + "targetAlias": "net9.0", + "dependencies": { + "Microsoft.AspNetCore.OpenApi": { + "target": "Package", + "version": "[9.0.3, )" + } + }, + "imports": [ + "net461", + "net462", + "net47", + "net471", + "net472", + "net48", + "net481" + ], + "assetTargetFallback": true, + "warn": true, + "frameworkReferences": { + "Microsoft.AspNetCore.App": { + "privateAssets": "none" + }, + "Microsoft.NETCore.App": { + "privateAssets": "all" + } + }, + "runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\9.0.202/PortableRuntimeIdentifierGraph.json" + } + } + } + } +} \ No newline at end of file diff --git a/Pondar/StudentWebApi/obj/StudentWebApi.csproj.nuget.g.props b/Pondar/StudentWebApi/obj/StudentWebApi.csproj.nuget.g.props new file mode 100644 index 0000000..562f11a --- /dev/null +++ b/Pondar/StudentWebApi/obj/StudentWebApi.csproj.nuget.g.props @@ -0,0 +1,16 @@ + + + + True + NuGet + $(MSBuildThisFileDirectory)project.assets.json + $(UserProfile)\.nuget\packages\ + C:\Users\User\.nuget\packages\;C:\Program Files (x86)\Microsoft Visual Studio\Shared\NuGetPackages + PackageReference + 6.13.1 + + + + + + \ No newline at end of file diff --git a/Pondar/StudentWebApi/obj/StudentWebApi.csproj.nuget.g.targets b/Pondar/StudentWebApi/obj/StudentWebApi.csproj.nuget.g.targets new file mode 100644 index 0000000..3dc06ef --- /dev/null +++ b/Pondar/StudentWebApi/obj/StudentWebApi.csproj.nuget.g.targets @@ -0,0 +1,2 @@ + + \ No newline at end of file diff --git a/Pondar/StudentWebApi/obj/project.assets.json b/Pondar/StudentWebApi/obj/project.assets.json new file mode 100644 index 0000000..8d344de --- /dev/null +++ b/Pondar/StudentWebApi/obj/project.assets.json @@ -0,0 +1,155 @@ +{ + "version": 3, + "targets": { + "net9.0": { + "Microsoft.AspNetCore.OpenApi/9.0.3": { + "type": "package", + "dependencies": { + "Microsoft.OpenApi": "1.6.17" + }, + "compile": { + "lib/net9.0/Microsoft.AspNetCore.OpenApi.dll": { + "related": ".xml" + } + }, + "runtime": { + "lib/net9.0/Microsoft.AspNetCore.OpenApi.dll": { + "related": ".xml" + } + }, + "frameworkReferences": [ + "Microsoft.AspNetCore.App" + ] + }, + "Microsoft.OpenApi/1.6.17": { + "type": "package", + "compile": { + "lib/netstandard2.0/Microsoft.OpenApi.dll": { + "related": ".pdb;.xml" + } + }, + "runtime": { + "lib/netstandard2.0/Microsoft.OpenApi.dll": { + "related": ".pdb;.xml" + } + } + } + } + }, + "libraries": { + "Microsoft.AspNetCore.OpenApi/9.0.3": { + "sha512": "fKh0UyGMUE+lhbovMhh3g88b9bT+y2jfZIuJ8ljY7rcCaSJ9m2Qqqbh66oULFfzWE2BUAmimzTGcPcq3jXi/Ew==", + "type": "package", + "path": "microsoft.aspnetcore.openapi/9.0.3", + "files": [ + ".nupkg.metadata", + ".signature.p7s", + "Icon.png", + "PACKAGE.md", + "THIRD-PARTY-NOTICES.TXT", + "lib/net9.0/Microsoft.AspNetCore.OpenApi.dll", + "lib/net9.0/Microsoft.AspNetCore.OpenApi.xml", + "microsoft.aspnetcore.openapi.9.0.3.nupkg.sha512", + "microsoft.aspnetcore.openapi.nuspec" + ] + }, + "Microsoft.OpenApi/1.6.17": { + "sha512": "Le+kehlmrlQfuDFUt1zZ2dVwrhFQtKREdKBo+rexOwaCoYP0/qpgT9tLxCsZjsgR5Itk1UKPcbgO+FyaNid/bA==", + "type": "package", + "path": "microsoft.openapi/1.6.17", + "files": [ + ".nupkg.metadata", + ".signature.p7s", + "README.md", + "lib/netstandard2.0/Microsoft.OpenApi.dll", + "lib/netstandard2.0/Microsoft.OpenApi.pdb", + "lib/netstandard2.0/Microsoft.OpenApi.xml", + "microsoft.openapi.1.6.17.nupkg.sha512", + "microsoft.openapi.nuspec" + ] + } + }, + "projectFileDependencyGroups": { + "net9.0": [ + "Microsoft.AspNetCore.OpenApi >= 9.0.3" + ] + }, + "packageFolders": { + "C:\\Users\\User\\.nuget\\packages\\": {}, + "C:\\Program Files (x86)\\Microsoft Visual Studio\\Shared\\NuGetPackages": {} + }, + "project": { + "version": "1.0.0", + "restore": { + "projectUniqueName": "C:\\Users\\User\\Desktop\\csharp-asp.net-api\\Pondar\\StudentWebApi\\StudentWebApi.csproj", + "projectName": "StudentWebApi", + "projectPath": "C:\\Users\\User\\Desktop\\csharp-asp.net-api\\Pondar\\StudentWebApi\\StudentWebApi.csproj", + "packagesPath": "C:\\Users\\User\\.nuget\\packages\\", + "outputPath": "C:\\Users\\User\\Desktop\\csharp-asp.net-api\\Pondar\\StudentWebApi\\obj\\", + "projectStyle": "PackageReference", + "fallbackFolders": [ + "C:\\Program Files (x86)\\Microsoft Visual Studio\\Shared\\NuGetPackages" + ], + "configFilePaths": [ + "C:\\Users\\User\\AppData\\Roaming\\NuGet\\NuGet.Config", + "C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.FallbackLocation.config", + "C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.Offline.config" + ], + "originalTargetFrameworks": [ + "net9.0" + ], + "sources": { + "C:\\Program Files (x86)\\Microsoft SDKs\\NuGetPackages\\": {}, + "https://api.nuget.org/v3/index.json": {} + }, + "frameworks": { + "net9.0": { + "targetAlias": "net9.0", + "projectReferences": {} + } + }, + "warningProperties": { + "warnAsError": [ + "NU1605" + ] + }, + "restoreAuditProperties": { + "enableAudit": "true", + "auditLevel": "low", + "auditMode": "direct" + }, + "SdkAnalysisLevel": "9.0.200" + }, + "frameworks": { + "net9.0": { + "targetAlias": "net9.0", + "dependencies": { + "Microsoft.AspNetCore.OpenApi": { + "target": "Package", + "version": "[9.0.3, )" + } + }, + "imports": [ + "net461", + "net462", + "net47", + "net471", + "net472", + "net48", + "net481" + ], + "assetTargetFallback": true, + "warn": true, + "frameworkReferences": { + "Microsoft.AspNetCore.App": { + "privateAssets": "none" + }, + "Microsoft.NETCore.App": { + "privateAssets": "all" + } + }, + "runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\9.0.202/PortableRuntimeIdentifierGraph.json" + } + } + } +} \ No newline at end of file diff --git a/Pondar/StudentWebApi/obj/project.nuget.cache b/Pondar/StudentWebApi/obj/project.nuget.cache new file mode 100644 index 0000000..0972775 --- /dev/null +++ b/Pondar/StudentWebApi/obj/project.nuget.cache @@ -0,0 +1,11 @@ +{ + "version": 2, + "dgSpecHash": "ZZDx4CGIxs4=", + "success": true, + "projectFilePath": "C:\\Users\\User\\Desktop\\csharp-asp.net-api\\Pondar\\StudentWebApi\\StudentWebApi.csproj", + "expectedPackageFiles": [ + "C:\\Users\\User\\.nuget\\packages\\microsoft.aspnetcore.openapi\\9.0.3\\microsoft.aspnetcore.openapi.9.0.3.nupkg.sha512", + "C:\\Users\\User\\.nuget\\packages\\microsoft.openapi\\1.6.17\\microsoft.openapi.1.6.17.nupkg.sha512" + ], + "logs": [] +} \ No newline at end of file