diff --git a/StudentApi/Controllers/StudentController.cs b/StudentApi/Controllers/StudentController.cs new file mode 100644 index 0000000..c3c76b2 --- /dev/null +++ b/StudentApi/Controllers/StudentController.cs @@ -0,0 +1,92 @@ +using Microsoft.AspNetCore.Mvc; +using Models; +using Services.Interfaces; + +namespace Controllers; + +[ApiController] +[Route("api/[controller]")] +public class StudentController : ControllerBase +{ + private readonly IStudentService _studentService; + + public StudentController(IStudentService studentService) + { + _studentService = studentService; + } + + // GET: api/student + [HttpGet] + public IActionResult GetAllStudents() + { + var allStudents = _studentService.GetAllStudents(); + + if (allStudents == null || allStudents.Count == 0) + { + return NotFound("No Student Found"); + } + + return Ok(allStudents); + } + + // GET: api/student/{id} + [HttpGet("{id}")] + public IActionResult GetStudentById(long id) + { + var foundStudent = _studentService.GetStudentById(id); + + if (foundStudent == null) + { + return NotFound($"Student {id} is not found"); + } + + return Ok(foundStudent); + } + + // POST: api/student + [HttpPost] + public IActionResult AddStudent([FromBody] Student student) + { + if (string.IsNullOrWhiteSpace(student.Name) || string.IsNullOrWhiteSpace(student.Course)) + { + return BadRequest("Name and course are required"); + } + + Student savedStudent = _studentService.AddStudent(student); + return Ok(savedStudent); + } + + // PUT: api/student/{id} + [HttpPut("{id}")] + public IActionResult UpdateStudent(long id, [FromBody] Student student) + { + if (string.IsNullOrEmpty(student.Name) || string.IsNullOrEmpty(student.Course)) + return BadRequest("Incomplete Fields!"); + + student.StudentId = id; + + + var updatedStudent = _studentService.UpdateStudent(student); + + if (updatedStudent == null) + { + return NotFound($"Student {id} not found"); + } + + return Ok(updatedStudent); + } + + // DELETE: api/student/{id} + [HttpDelete("{id}")] + public IActionResult DeleteStudent(long id) + { + var deleted = _studentService.DeleteStudent(id); + + if (!deleted) + { + return NotFound($"Student {id} is not found"); + } + + return NoContent(); + } +} diff --git a/StudentApi/Models/Student.cs b/StudentApi/Models/Student.cs new file mode 100644 index 0000000..57cd6ee --- /dev/null +++ b/StudentApi/Models/Student.cs @@ -0,0 +1,22 @@ +namespace Models; + +public class Student +{ + public long StudentId { get; set; } + public string Name { get; set; } = null!; + public string Course { get; set; } = null!; + + // Default constructor + public Student() + { + } + + // Constructor with parameters + public Student(long studentId, string name, string course) + { + StudentId = studentId; + Name = name; + Course = course; + } + +} diff --git a/StudentApi/Program.cs b/StudentApi/Program.cs new file mode 100644 index 0000000..0e5d601 --- /dev/null +++ b/StudentApi/Program.cs @@ -0,0 +1,33 @@ +using Models; +using Services.Interfaces; + +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(); + + + + + diff --git a/StudentApi/Properties/launchSettings.json b/StudentApi/Properties/launchSettings.json new file mode 100644 index 0000000..d787283 --- /dev/null +++ b/StudentApi/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:7118;http://localhost:9090", + "environmentVariables": { + "ASPNETCORE_ENVIRONMENT": "Development" + } + } + } +} diff --git a/StudentApi/Services/Implementations/StudentService.cs b/StudentApi/Services/Implementations/StudentService.cs new file mode 100644 index 0000000..4a46a8e --- /dev/null +++ b/StudentApi/Services/Implementations/StudentService.cs @@ -0,0 +1,65 @@ +using Models; +using Services.Interfaces; + +public class StudentService : IStudentService +{ + // In-memory db + private readonly Dictionary studentsDB = new Dictionary(); + + long studentCount = 1; + + + public Student AddStudent(Student student) + { + + if (student.StudentId == 0) + { + student.StudentId = studentCount++; + } + + long studentId = student.StudentId; + studentsDB[studentId] = student; + + return student; + } + + public List GetAllStudents() + { + return studentsDB.Values.ToList(); + } + + public Student? GetStudentById(long id) + { + Student? foundStudent = studentsDB.TryGetValue(id, out Student? student) ? student : null; + + if (foundStudent == null) + { + return null; + } + + return foundStudent; + } + + public Student? UpdateStudent(Student student) + { + long studentId = student.StudentId; + + if (!studentsDB.ContainsKey(studentId)) + { + return null; + } + + if (string.IsNullOrWhiteSpace(student.Name) || string.IsNullOrWhiteSpace(student.Course)) + { + return null; + } + + studentsDB[studentId] = student; + return student; + } + + public bool DeleteStudent(long id) + { + return studentsDB.Remove(id); + } +} \ No newline at end of file diff --git a/StudentApi/Services/Interfaces/IStudentService.cs b/StudentApi/Services/Interfaces/IStudentService.cs new file mode 100644 index 0000000..a640007 --- /dev/null +++ b/StudentApi/Services/Interfaces/IStudentService.cs @@ -0,0 +1,15 @@ +using Models; + +namespace Services.Interfaces; + +public interface IStudentService +{ + Student AddStudent(Student student); + List GetAllStudents(); + Student? GetStudentById(long id); + + Student? UpdateStudent(Student student); + bool DeleteStudent(long id); + + +} \ No newline at end of file diff --git a/StudentApi/StudentApi.csproj b/StudentApi/StudentApi.csproj new file mode 100644 index 0000000..e17a73d --- /dev/null +++ b/StudentApi/StudentApi.csproj @@ -0,0 +1,13 @@ + + + + net9.0 + enable + enable + + + + + + + diff --git a/StudentApi/StudentApi.http b/StudentApi/StudentApi.http new file mode 100644 index 0000000..5b44f52 --- /dev/null +++ b/StudentApi/StudentApi.http @@ -0,0 +1,6 @@ +@StudentApi_HostAddress = http://localhost:5189 + +GET {{StudentApi_HostAddress}}/weatherforecast/ +Accept: application/json + +### diff --git a/StudentApi/appsettings.Development.json b/StudentApi/appsettings.Development.json new file mode 100644 index 0000000..0c208ae --- /dev/null +++ b/StudentApi/appsettings.Development.json @@ -0,0 +1,8 @@ +{ + "Logging": { + "LogLevel": { + "Default": "Information", + "Microsoft.AspNetCore": "Warning" + } + } +} diff --git a/StudentApi/appsettings.json b/StudentApi/appsettings.json new file mode 100644 index 0000000..10f68b8 --- /dev/null +++ b/StudentApi/appsettings.json @@ -0,0 +1,9 @@ +{ + "Logging": { + "LogLevel": { + "Default": "Information", + "Microsoft.AspNetCore": "Warning" + } + }, + "AllowedHosts": "*" +} diff --git a/StudentApi/bin/Debug/net9.0/Microsoft.AspNetCore.OpenApi.dll b/StudentApi/bin/Debug/net9.0/Microsoft.AspNetCore.OpenApi.dll new file mode 100644 index 0000000..31300df Binary files /dev/null and b/StudentApi/bin/Debug/net9.0/Microsoft.AspNetCore.OpenApi.dll differ diff --git a/StudentApi/bin/Debug/net9.0/Microsoft.OpenApi.dll b/StudentApi/bin/Debug/net9.0/Microsoft.OpenApi.dll new file mode 100644 index 0000000..d9f09da Binary files /dev/null and b/StudentApi/bin/Debug/net9.0/Microsoft.OpenApi.dll differ diff --git a/StudentApi/bin/Debug/net9.0/StudentApi.deps.json b/StudentApi/bin/Debug/net9.0/StudentApi.deps.json new file mode 100644 index 0000000..4a60c0b --- /dev/null +++ b/StudentApi/bin/Debug/net9.0/StudentApi.deps.json @@ -0,0 +1,59 @@ +{ + "runtimeTarget": { + "name": ".NETCoreApp,Version=v9.0", + "signature": "" + }, + "compilationOptions": {}, + "targets": { + ".NETCoreApp,Version=v9.0": { + "StudentApi/1.0.0": { + "dependencies": { + "Microsoft.AspNetCore.OpenApi": "9.0.2" + }, + "runtime": { + "StudentApi.dll": {} + } + }, + "Microsoft.AspNetCore.OpenApi/9.0.2": { + "dependencies": { + "Microsoft.OpenApi": "1.6.17" + }, + "runtime": { + "lib/net9.0/Microsoft.AspNetCore.OpenApi.dll": { + "assemblyVersion": "9.0.2.0", + "fileVersion": "9.0.225.6704" + } + } + }, + "Microsoft.OpenApi/1.6.17": { + "runtime": { + "lib/netstandard2.0/Microsoft.OpenApi.dll": { + "assemblyVersion": "1.6.17.0", + "fileVersion": "1.6.17.0" + } + } + } + } + }, + "libraries": { + "StudentApi/1.0.0": { + "type": "project", + "serviceable": false, + "sha512": "" + }, + "Microsoft.AspNetCore.OpenApi/9.0.2": { + "type": "package", + "serviceable": true, + "sha512": "sha512-JUndpjRNdG8GvzBLH/J4hen4ehWaPcshtiQ6+sUs1Bcj3a7dOsmWpDloDlpPeMOVSlhHwUJ3Xld0ClZjsFLgFQ==", + "path": "microsoft.aspnetcore.openapi/9.0.2", + "hashPath": "microsoft.aspnetcore.openapi.9.0.2.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/StudentApi/bin/Debug/net9.0/StudentApi.dll b/StudentApi/bin/Debug/net9.0/StudentApi.dll new file mode 100644 index 0000000..503f22a Binary files /dev/null and b/StudentApi/bin/Debug/net9.0/StudentApi.dll differ diff --git a/StudentApi/bin/Debug/net9.0/StudentApi.exe b/StudentApi/bin/Debug/net9.0/StudentApi.exe new file mode 100644 index 0000000..91a999c Binary files /dev/null and b/StudentApi/bin/Debug/net9.0/StudentApi.exe differ diff --git a/StudentApi/bin/Debug/net9.0/StudentApi.pdb b/StudentApi/bin/Debug/net9.0/StudentApi.pdb new file mode 100644 index 0000000..1c7c8ab Binary files /dev/null and b/StudentApi/bin/Debug/net9.0/StudentApi.pdb differ diff --git a/StudentApi/bin/Debug/net9.0/StudentApi.runtimeconfig.json b/StudentApi/bin/Debug/net9.0/StudentApi.runtimeconfig.json new file mode 100644 index 0000000..6925b65 --- /dev/null +++ b/StudentApi/bin/Debug/net9.0/StudentApi.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/StudentApi/bin/Debug/net9.0/StudentApi.staticwebassets.endpoints.json b/StudentApi/bin/Debug/net9.0/StudentApi.staticwebassets.endpoints.json new file mode 100644 index 0000000..2b6c535 --- /dev/null +++ b/StudentApi/bin/Debug/net9.0/StudentApi.staticwebassets.endpoints.json @@ -0,0 +1,5 @@ +{ + "Version": 1, + "ManifestType": "Build", + "Endpoints": [] +} \ No newline at end of file diff --git a/StudentApi/bin/Debug/net9.0/appsettings.Development.json b/StudentApi/bin/Debug/net9.0/appsettings.Development.json new file mode 100644 index 0000000..0c208ae --- /dev/null +++ b/StudentApi/bin/Debug/net9.0/appsettings.Development.json @@ -0,0 +1,8 @@ +{ + "Logging": { + "LogLevel": { + "Default": "Information", + "Microsoft.AspNetCore": "Warning" + } + } +} diff --git a/StudentApi/bin/Debug/net9.0/appsettings.json b/StudentApi/bin/Debug/net9.0/appsettings.json new file mode 100644 index 0000000..10f68b8 --- /dev/null +++ b/StudentApi/bin/Debug/net9.0/appsettings.json @@ -0,0 +1,9 @@ +{ + "Logging": { + "LogLevel": { + "Default": "Information", + "Microsoft.AspNetCore": "Warning" + } + }, + "AllowedHosts": "*" +} diff --git a/StudentApi/obj/Debug/net9.0/.NETCoreApp,Version=v9.0.AssemblyAttributes.cs b/StudentApi/obj/Debug/net9.0/.NETCoreApp,Version=v9.0.AssemblyAttributes.cs new file mode 100644 index 0000000..feda5e9 --- /dev/null +++ b/StudentApi/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/StudentApi/obj/Debug/net9.0/StudentApi.AssemblyInfo.cs b/StudentApi/obj/Debug/net9.0/StudentApi.AssemblyInfo.cs new file mode 100644 index 0000000..b981788 --- /dev/null +++ b/StudentApi/obj/Debug/net9.0/StudentApi.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("StudentApi")] +[assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")] +[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")] +[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+dde19d5dc66fbb75406744622d4ea3c37f05f82a")] +[assembly: System.Reflection.AssemblyProductAttribute("StudentApi")] +[assembly: System.Reflection.AssemblyTitleAttribute("StudentApi")] +[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")] + +// Generated by the MSBuild WriteCodeFragment class. + diff --git a/StudentApi/obj/Debug/net9.0/StudentApi.AssemblyInfoInputs.cache b/StudentApi/obj/Debug/net9.0/StudentApi.AssemblyInfoInputs.cache new file mode 100644 index 0000000..8786b26 --- /dev/null +++ b/StudentApi/obj/Debug/net9.0/StudentApi.AssemblyInfoInputs.cache @@ -0,0 +1 @@ +10aa005e798cf9289060da49953516ef5c360b6b4650373d6a8074314ca44112 diff --git a/StudentApi/obj/Debug/net9.0/StudentApi.GeneratedMSBuildEditorConfig.editorconfig b/StudentApi/obj/Debug/net9.0/StudentApi.GeneratedMSBuildEditorConfig.editorconfig new file mode 100644 index 0000000..34c729f --- /dev/null +++ b/StudentApi/obj/Debug/net9.0/StudentApi.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 = StudentApi +build_property.RootNamespace = StudentApi +build_property.ProjectDir = C:\Users\Ginand\Desktop\csharp-asp.net-api\StudentApi\ +build_property.EnableComHosting = +build_property.EnableGeneratedComInterfaceComImportInterop = +build_property.RazorLangVersion = 9.0 +build_property.SupportLocalizedComponentNames = +build_property.GenerateRazorMetadataSourceChecksumAttributes = +build_property.MSBuildProjectDirectory = C:\Users\Ginand\Desktop\csharp-asp.net-api\StudentApi +build_property._RazorSourceGeneratorDebug = +build_property.EffectiveAnalysisLevelStyle = 9.0 +build_property.EnableCodeStyleSeverity = diff --git a/StudentApi/obj/Debug/net9.0/StudentApi.GlobalUsings.g.cs b/StudentApi/obj/Debug/net9.0/StudentApi.GlobalUsings.g.cs new file mode 100644 index 0000000..025530a --- /dev/null +++ b/StudentApi/obj/Debug/net9.0/StudentApi.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/StudentApi/obj/Debug/net9.0/StudentApi.MvcApplicationPartsAssemblyInfo.cache b/StudentApi/obj/Debug/net9.0/StudentApi.MvcApplicationPartsAssemblyInfo.cache new file mode 100644 index 0000000..e69de29 diff --git a/StudentApi/obj/Debug/net9.0/StudentApi.MvcApplicationPartsAssemblyInfo.cs b/StudentApi/obj/Debug/net9.0/StudentApi.MvcApplicationPartsAssemblyInfo.cs new file mode 100644 index 0000000..1c3041b --- /dev/null +++ b/StudentApi/obj/Debug/net9.0/StudentApi.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/StudentApi/obj/Debug/net9.0/StudentApi.assets.cache b/StudentApi/obj/Debug/net9.0/StudentApi.assets.cache new file mode 100644 index 0000000..2e1cf36 Binary files /dev/null and b/StudentApi/obj/Debug/net9.0/StudentApi.assets.cache differ diff --git a/StudentApi/obj/Debug/net9.0/StudentApi.csproj.AssemblyReference.cache b/StudentApi/obj/Debug/net9.0/StudentApi.csproj.AssemblyReference.cache new file mode 100644 index 0000000..b924ad1 Binary files /dev/null and b/StudentApi/obj/Debug/net9.0/StudentApi.csproj.AssemblyReference.cache differ diff --git a/StudentApi/obj/Debug/net9.0/StudentApi.csproj.CoreCompileInputs.cache b/StudentApi/obj/Debug/net9.0/StudentApi.csproj.CoreCompileInputs.cache new file mode 100644 index 0000000..61be7b2 --- /dev/null +++ b/StudentApi/obj/Debug/net9.0/StudentApi.csproj.CoreCompileInputs.cache @@ -0,0 +1 @@ +c80b261b03db1b0510eb8fc33bb070a7ed04cd5cdb4c395c5f9bcf7727c2c953 diff --git a/StudentApi/obj/Debug/net9.0/StudentApi.csproj.FileListAbsolute.txt b/StudentApi/obj/Debug/net9.0/StudentApi.csproj.FileListAbsolute.txt new file mode 100644 index 0000000..de3141e --- /dev/null +++ b/StudentApi/obj/Debug/net9.0/StudentApi.csproj.FileListAbsolute.txt @@ -0,0 +1,34 @@ +C:\Users\Ginand\Desktop\csharp-asp.net-api\StudentApi\bin\Debug\net9.0\appsettings.Development.json +C:\Users\Ginand\Desktop\csharp-asp.net-api\StudentApi\bin\Debug\net9.0\appsettings.json +C:\Users\Ginand\Desktop\csharp-asp.net-api\StudentApi\bin\Debug\net9.0\StudentApi.staticwebassets.endpoints.json +C:\Users\Ginand\Desktop\csharp-asp.net-api\StudentApi\bin\Debug\net9.0\StudentApi.exe +C:\Users\Ginand\Desktop\csharp-asp.net-api\StudentApi\bin\Debug\net9.0\StudentApi.deps.json +C:\Users\Ginand\Desktop\csharp-asp.net-api\StudentApi\bin\Debug\net9.0\StudentApi.runtimeconfig.json +C:\Users\Ginand\Desktop\csharp-asp.net-api\StudentApi\bin\Debug\net9.0\StudentApi.dll +C:\Users\Ginand\Desktop\csharp-asp.net-api\StudentApi\bin\Debug\net9.0\StudentApi.pdb +C:\Users\Ginand\Desktop\csharp-asp.net-api\StudentApi\bin\Debug\net9.0\Microsoft.AspNetCore.OpenApi.dll +C:\Users\Ginand\Desktop\csharp-asp.net-api\StudentApi\bin\Debug\net9.0\Microsoft.OpenApi.dll +C:\Users\Ginand\Desktop\csharp-asp.net-api\StudentApi\obj\Debug\net9.0\StudentApi.csproj.AssemblyReference.cache +C:\Users\Ginand\Desktop\csharp-asp.net-api\StudentApi\obj\Debug\net9.0\StudentApi.GeneratedMSBuildEditorConfig.editorconfig +C:\Users\Ginand\Desktop\csharp-asp.net-api\StudentApi\obj\Debug\net9.0\StudentApi.AssemblyInfoInputs.cache +C:\Users\Ginand\Desktop\csharp-asp.net-api\StudentApi\obj\Debug\net9.0\StudentApi.AssemblyInfo.cs +C:\Users\Ginand\Desktop\csharp-asp.net-api\StudentApi\obj\Debug\net9.0\StudentApi.csproj.CoreCompileInputs.cache +C:\Users\Ginand\Desktop\csharp-asp.net-api\StudentApi\obj\Debug\net9.0\StudentApi.MvcApplicationPartsAssemblyInfo.cs +C:\Users\Ginand\Desktop\csharp-asp.net-api\StudentApi\obj\Debug\net9.0\StudentApi.MvcApplicationPartsAssemblyInfo.cache +C:\Users\Ginand\Desktop\csharp-asp.net-api\StudentApi\obj\Debug\net9.0\StudentApi.sourcelink.json +C:\Users\Ginand\Desktop\csharp-asp.net-api\StudentApi\obj\Debug\net9.0\scopedcss\bundle\StudentApi.styles.css +C:\Users\Ginand\Desktop\csharp-asp.net-api\StudentApi\obj\Debug\net9.0\staticwebassets.build.json +C:\Users\Ginand\Desktop\csharp-asp.net-api\StudentApi\obj\Debug\net9.0\staticwebassets.development.json +C:\Users\Ginand\Desktop\csharp-asp.net-api\StudentApi\obj\Debug\net9.0\staticwebassets.build.endpoints.json +C:\Users\Ginand\Desktop\csharp-asp.net-api\StudentApi\obj\Debug\net9.0\staticwebassets\msbuild.StudentApi.Microsoft.AspNetCore.StaticWebAssets.props +C:\Users\Ginand\Desktop\csharp-asp.net-api\StudentApi\obj\Debug\net9.0\staticwebassets\msbuild.StudentApi.Microsoft.AspNetCore.StaticWebAssetEndpoints.props +C:\Users\Ginand\Desktop\csharp-asp.net-api\StudentApi\obj\Debug\net9.0\staticwebassets\msbuild.build.StudentApi.props +C:\Users\Ginand\Desktop\csharp-asp.net-api\StudentApi\obj\Debug\net9.0\staticwebassets\msbuild.buildMultiTargeting.StudentApi.props +C:\Users\Ginand\Desktop\csharp-asp.net-api\StudentApi\obj\Debug\net9.0\staticwebassets\msbuild.buildTransitive.StudentApi.props +C:\Users\Ginand\Desktop\csharp-asp.net-api\StudentApi\obj\Debug\net9.0\staticwebassets.pack.json +C:\Users\Ginand\Desktop\csharp-asp.net-api\StudentApi\obj\Debug\net9.0\StudentApi.csproj.Up2Date +C:\Users\Ginand\Desktop\csharp-asp.net-api\StudentApi\obj\Debug\net9.0\StudentApi.dll +C:\Users\Ginand\Desktop\csharp-asp.net-api\StudentApi\obj\Debug\net9.0\refint\StudentApi.dll +C:\Users\Ginand\Desktop\csharp-asp.net-api\StudentApi\obj\Debug\net9.0\StudentApi.pdb +C:\Users\Ginand\Desktop\csharp-asp.net-api\StudentApi\obj\Debug\net9.0\StudentApi.genruntimeconfig.cache +C:\Users\Ginand\Desktop\csharp-asp.net-api\StudentApi\obj\Debug\net9.0\ref\StudentApi.dll diff --git a/StudentApi/obj/Debug/net9.0/StudentApi.csproj.Up2Date b/StudentApi/obj/Debug/net9.0/StudentApi.csproj.Up2Date new file mode 100644 index 0000000..e69de29 diff --git a/StudentApi/obj/Debug/net9.0/StudentApi.dll b/StudentApi/obj/Debug/net9.0/StudentApi.dll new file mode 100644 index 0000000..503f22a Binary files /dev/null and b/StudentApi/obj/Debug/net9.0/StudentApi.dll differ diff --git a/StudentApi/obj/Debug/net9.0/StudentApi.genruntimeconfig.cache b/StudentApi/obj/Debug/net9.0/StudentApi.genruntimeconfig.cache new file mode 100644 index 0000000..72c0d24 --- /dev/null +++ b/StudentApi/obj/Debug/net9.0/StudentApi.genruntimeconfig.cache @@ -0,0 +1 @@ +bdd37f1f56c47eef8fe9b56dad79901492cb83d70b0e2d191ff21e7eef0ed4e1 diff --git a/StudentApi/obj/Debug/net9.0/StudentApi.pdb b/StudentApi/obj/Debug/net9.0/StudentApi.pdb new file mode 100644 index 0000000..1c7c8ab Binary files /dev/null and b/StudentApi/obj/Debug/net9.0/StudentApi.pdb differ diff --git a/StudentApi/obj/Debug/net9.0/StudentApi.sourcelink.json b/StudentApi/obj/Debug/net9.0/StudentApi.sourcelink.json new file mode 100644 index 0000000..8da532b --- /dev/null +++ b/StudentApi/obj/Debug/net9.0/StudentApi.sourcelink.json @@ -0,0 +1 @@ +{"documents":{"C:\\Users\\Ginand\\Desktop\\csharp-asp.net-api\\*":"https://raw.githubusercontent.com/roginandd/csharp-asp.net-api/dde19d5dc66fbb75406744622d4ea3c37f05f82a/*"}} \ No newline at end of file diff --git a/StudentApi/obj/Debug/net9.0/apphost.exe b/StudentApi/obj/Debug/net9.0/apphost.exe new file mode 100644 index 0000000..91a999c Binary files /dev/null and b/StudentApi/obj/Debug/net9.0/apphost.exe differ diff --git a/StudentApi/obj/Debug/net9.0/ref/StudentApi.dll b/StudentApi/obj/Debug/net9.0/ref/StudentApi.dll new file mode 100644 index 0000000..da3b2c3 Binary files /dev/null and b/StudentApi/obj/Debug/net9.0/ref/StudentApi.dll differ diff --git a/StudentApi/obj/Debug/net9.0/refint/StudentApi.dll b/StudentApi/obj/Debug/net9.0/refint/StudentApi.dll new file mode 100644 index 0000000..da3b2c3 Binary files /dev/null and b/StudentApi/obj/Debug/net9.0/refint/StudentApi.dll differ diff --git a/StudentApi/obj/Debug/net9.0/staticwebassets.build.endpoints.json b/StudentApi/obj/Debug/net9.0/staticwebassets.build.endpoints.json new file mode 100644 index 0000000..2b6c535 --- /dev/null +++ b/StudentApi/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/StudentApi/obj/Debug/net9.0/staticwebassets.build.json b/StudentApi/obj/Debug/net9.0/staticwebassets.build.json new file mode 100644 index 0000000..ef15332 --- /dev/null +++ b/StudentApi/obj/Debug/net9.0/staticwebassets.build.json @@ -0,0 +1,12 @@ +{ + "Version": 1, + "Hash": "fn4hy/RIz4yQ/5Xe2a0AU5xM1/yFC+Ojpas2TnsTAPg=", + "Source": "StudentApi", + "BasePath": "_content/StudentApi", + "Mode": "Default", + "ManifestType": "Build", + "ReferencedProjectsConfiguration": [], + "DiscoveryPatterns": [], + "Assets": [], + "Endpoints": [] +} \ No newline at end of file diff --git a/StudentApi/obj/Debug/net9.0/staticwebassets/msbuild.build.StudentApi.props b/StudentApi/obj/Debug/net9.0/staticwebassets/msbuild.build.StudentApi.props new file mode 100644 index 0000000..ddaed44 --- /dev/null +++ b/StudentApi/obj/Debug/net9.0/staticwebassets/msbuild.build.StudentApi.props @@ -0,0 +1,4 @@ + + + + \ No newline at end of file diff --git a/StudentApi/obj/Debug/net9.0/staticwebassets/msbuild.buildMultiTargeting.StudentApi.props b/StudentApi/obj/Debug/net9.0/staticwebassets/msbuild.buildMultiTargeting.StudentApi.props new file mode 100644 index 0000000..15089f2 --- /dev/null +++ b/StudentApi/obj/Debug/net9.0/staticwebassets/msbuild.buildMultiTargeting.StudentApi.props @@ -0,0 +1,3 @@ + + + \ No newline at end of file diff --git a/StudentApi/obj/Debug/net9.0/staticwebassets/msbuild.buildTransitive.StudentApi.props b/StudentApi/obj/Debug/net9.0/staticwebassets/msbuild.buildTransitive.StudentApi.props new file mode 100644 index 0000000..e35fdb1 --- /dev/null +++ b/StudentApi/obj/Debug/net9.0/staticwebassets/msbuild.buildTransitive.StudentApi.props @@ -0,0 +1,3 @@ + + + \ No newline at end of file diff --git a/StudentApi/obj/StudentApi.csproj.nuget.dgspec.json b/StudentApi/obj/StudentApi.csproj.nuget.dgspec.json new file mode 100644 index 0000000..6e3bae0 --- /dev/null +++ b/StudentApi/obj/StudentApi.csproj.nuget.dgspec.json @@ -0,0 +1,82 @@ +{ + "format": 1, + "restore": { + "C:\\Users\\Ginand\\Desktop\\csharp-asp.net-api\\StudentApi\\StudentApi.csproj": {} + }, + "projects": { + "C:\\Users\\Ginand\\Desktop\\csharp-asp.net-api\\StudentApi\\StudentApi.csproj": { + "version": "1.0.0", + "restore": { + "projectUniqueName": "C:\\Users\\Ginand\\Desktop\\csharp-asp.net-api\\StudentApi\\StudentApi.csproj", + "projectName": "StudentApi", + "projectPath": "C:\\Users\\Ginand\\Desktop\\csharp-asp.net-api\\StudentApi\\StudentApi.csproj", + "packagesPath": "C:\\Users\\Ginand\\.nuget\\packages\\", + "outputPath": "C:\\Users\\Ginand\\Desktop\\csharp-asp.net-api\\StudentApi\\obj\\", + "projectStyle": "PackageReference", + "fallbackFolders": [ + "C:\\Program Files (x86)\\Microsoft Visual Studio\\Shared\\NuGetPackages" + ], + "configFilePaths": [ + "C:\\Users\\Ginand\\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.2, )" + } + }, + "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.200/PortableRuntimeIdentifierGraph.json" + } + } + } + } +} \ No newline at end of file diff --git a/StudentApi/obj/StudentApi.csproj.nuget.g.props b/StudentApi/obj/StudentApi.csproj.nuget.g.props new file mode 100644 index 0000000..b94419c --- /dev/null +++ b/StudentApi/obj/StudentApi.csproj.nuget.g.props @@ -0,0 +1,16 @@ + + + + True + NuGet + $(MSBuildThisFileDirectory)project.assets.json + $(UserProfile)\.nuget\packages\ + C:\Users\Ginand\.nuget\packages\;C:\Program Files (x86)\Microsoft Visual Studio\Shared\NuGetPackages + PackageReference + 6.13.0 + + + + + + \ No newline at end of file diff --git a/StudentApi/obj/StudentApi.csproj.nuget.g.targets b/StudentApi/obj/StudentApi.csproj.nuget.g.targets new file mode 100644 index 0000000..3dc06ef --- /dev/null +++ b/StudentApi/obj/StudentApi.csproj.nuget.g.targets @@ -0,0 +1,2 @@ + + \ No newline at end of file diff --git a/StudentApi/obj/project.assets.json b/StudentApi/obj/project.assets.json new file mode 100644 index 0000000..9e4f349 --- /dev/null +++ b/StudentApi/obj/project.assets.json @@ -0,0 +1,155 @@ +{ + "version": 3, + "targets": { + "net9.0": { + "Microsoft.AspNetCore.OpenApi/9.0.2": { + "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.2": { + "sha512": "JUndpjRNdG8GvzBLH/J4hen4ehWaPcshtiQ6+sUs1Bcj3a7dOsmWpDloDlpPeMOVSlhHwUJ3Xld0ClZjsFLgFQ==", + "type": "package", + "path": "microsoft.aspnetcore.openapi/9.0.2", + "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.2.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.2" + ] + }, + "packageFolders": { + "C:\\Users\\Ginand\\.nuget\\packages\\": {}, + "C:\\Program Files (x86)\\Microsoft Visual Studio\\Shared\\NuGetPackages": {} + }, + "project": { + "version": "1.0.0", + "restore": { + "projectUniqueName": "C:\\Users\\Ginand\\Desktop\\csharp-asp.net-api\\StudentApi\\StudentApi.csproj", + "projectName": "StudentApi", + "projectPath": "C:\\Users\\Ginand\\Desktop\\csharp-asp.net-api\\StudentApi\\StudentApi.csproj", + "packagesPath": "C:\\Users\\Ginand\\.nuget\\packages\\", + "outputPath": "C:\\Users\\Ginand\\Desktop\\csharp-asp.net-api\\StudentApi\\obj\\", + "projectStyle": "PackageReference", + "fallbackFolders": [ + "C:\\Program Files (x86)\\Microsoft Visual Studio\\Shared\\NuGetPackages" + ], + "configFilePaths": [ + "C:\\Users\\Ginand\\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.2, )" + } + }, + "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.200/PortableRuntimeIdentifierGraph.json" + } + } + } +} \ No newline at end of file diff --git a/StudentApi/obj/project.nuget.cache b/StudentApi/obj/project.nuget.cache new file mode 100644 index 0000000..f2e9804 --- /dev/null +++ b/StudentApi/obj/project.nuget.cache @@ -0,0 +1,11 @@ +{ + "version": 2, + "dgSpecHash": "ePwUUFgkMF0=", + "success": true, + "projectFilePath": "C:\\Users\\Ginand\\Desktop\\csharp-asp.net-api\\StudentApi\\StudentApi.csproj", + "expectedPackageFiles": [ + "C:\\Users\\Ginand\\.nuget\\packages\\microsoft.aspnetcore.openapi\\9.0.2\\microsoft.aspnetcore.openapi.9.0.2.nupkg.sha512", + "C:\\Users\\Ginand\\.nuget\\packages\\microsoft.openapi\\1.6.17\\microsoft.openapi.1.6.17.nupkg.sha512" + ], + "logs": [] +} \ No newline at end of file