diff --git a/BackEndAaaapero/.vs/BackEndAaaapero/DesignTimeBuild/.dtbcache.v2 b/BackEndAaaapero/.vs/BackEndAaaapero/DesignTimeBuild/.dtbcache.v2 new file mode 100644 index 0000000..39b1b87 Binary files /dev/null and b/BackEndAaaapero/.vs/BackEndAaaapero/DesignTimeBuild/.dtbcache.v2 differ diff --git a/BackEndAaaapero/.vs/BackEndAaaapero/v16/.suo b/BackEndAaaapero/.vs/BackEndAaaapero/v16/.suo new file mode 100644 index 0000000..aef6506 Binary files /dev/null and b/BackEndAaaapero/.vs/BackEndAaaapero/v16/.suo differ diff --git a/BackEndAaaapero/BackEndAaaapero.csproj b/BackEndAaaapero/BackEndAaaapero.csproj new file mode 100644 index 0000000..d12c450 --- /dev/null +++ b/BackEndAaaapero/BackEndAaaapero.csproj @@ -0,0 +1,8 @@ + + + + netcoreapp3.1 + + + + diff --git a/BackEndAaaapero/BackEndAaaapero.sln b/BackEndAaaapero/BackEndAaaapero.sln new file mode 100644 index 0000000..bd306ad --- /dev/null +++ b/BackEndAaaapero/BackEndAaaapero.sln @@ -0,0 +1,25 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 16 +VisualStudioVersion = 16.0.31025.194 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "BackEndAaaapero", "BackEndAaaapero.csproj", "{0F723D61-7926-4069-912F-28DFCBF2DC75}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {0F723D61-7926-4069-912F-28DFCBF2DC75}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {0F723D61-7926-4069-912F-28DFCBF2DC75}.Debug|Any CPU.Build.0 = Debug|Any CPU + {0F723D61-7926-4069-912F-28DFCBF2DC75}.Release|Any CPU.ActiveCfg = Release|Any CPU + {0F723D61-7926-4069-912F-28DFCBF2DC75}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {B2C1F3E5-5A7E-46B8-8FC1-78E79B4B3E84} + EndGlobalSection +EndGlobal diff --git a/BackEndAaaapero/Controllers/WeatherForecastController.cs b/BackEndAaaapero/Controllers/WeatherForecastController.cs new file mode 100644 index 0000000..0e3934d --- /dev/null +++ b/BackEndAaaapero/Controllers/WeatherForecastController.cs @@ -0,0 +1,39 @@ +using Microsoft.AspNetCore.Mvc; +using Microsoft.Extensions.Logging; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Threading.Tasks; + +namespace BackEndAaaapero.Controllers +{ + [ApiController] + [Route("[controller]")] + public class WeatherForecastController : ControllerBase + { + private static readonly string[] Summaries = new[] + { + "Freezing", "Bracing", "Chilly", "Cool", "Mild", "Warm", "Balmy", "Hot", "Sweltering", "Scorching" + }; + + private readonly ILogger _logger; + + public WeatherForecastController(ILogger logger) + { + _logger = logger; + } + + [HttpGet] + public IEnumerable Get() + { + var rng = new Random(); + return Enumerable.Range(1, 5).Select(index => new WeatherForecast + { + Date = DateTime.Now.AddDays(index), + TemperatureC = rng.Next(-20, 55), + Summary = Summaries[rng.Next(Summaries.Length)] + }) + .ToArray(); + } + } +} diff --git a/BackEndAaaapero/Program.cs b/BackEndAaaapero/Program.cs new file mode 100644 index 0000000..85ec24e --- /dev/null +++ b/BackEndAaaapero/Program.cs @@ -0,0 +1,26 @@ +using Microsoft.AspNetCore.Hosting; +using Microsoft.Extensions.Configuration; +using Microsoft.Extensions.Hosting; +using Microsoft.Extensions.Logging; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Threading.Tasks; + +namespace BackEndAaaapero +{ + public class Program + { + public static void Main(string[] args) + { + CreateHostBuilder(args).Build().Run(); + } + + public static IHostBuilder CreateHostBuilder(string[] args) => + Host.CreateDefaultBuilder(args) + .ConfigureWebHostDefaults(webBuilder => + { + webBuilder.UseStartup(); + }); + } +} diff --git a/BackEndAaaapero/Properties/launchSettings.json b/BackEndAaaapero/Properties/launchSettings.json new file mode 100644 index 0000000..f48489c --- /dev/null +++ b/BackEndAaaapero/Properties/launchSettings.json @@ -0,0 +1,30 @@ +{ + "$schema": "http://json.schemastore.org/launchsettings.json", + "iisSettings": { + "windowsAuthentication": false, + "anonymousAuthentication": true, + "iisExpress": { + "applicationUrl": "http://localhost:21914", + "sslPort": 44332 + } + }, + "profiles": { + "IIS Express": { + "commandName": "IISExpress", + "launchBrowser": true, + "launchUrl": "weatherforecast", + "environmentVariables": { + "ASPNETCORE_ENVIRONMENT": "Development" + } + }, + "BackEndAaaapero": { + "commandName": "Project", + "launchBrowser": true, + "launchUrl": "weatherforecast", + "applicationUrl": "https://localhost:5001;http://localhost:5000", + "environmentVariables": { + "ASPNETCORE_ENVIRONMENT": "Development" + } + } + } +} diff --git a/BackEndAaaapero/Startup.cs b/BackEndAaaapero/Startup.cs new file mode 100644 index 0000000..3348e99 --- /dev/null +++ b/BackEndAaaapero/Startup.cs @@ -0,0 +1,51 @@ +using Microsoft.AspNetCore.Builder; +using Microsoft.AspNetCore.Hosting; +using Microsoft.AspNetCore.HttpsPolicy; +using Microsoft.AspNetCore.Mvc; +using Microsoft.Extensions.Configuration; +using Microsoft.Extensions.DependencyInjection; +using Microsoft.Extensions.Hosting; +using Microsoft.Extensions.Logging; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Threading.Tasks; + +namespace BackEndAaaapero +{ + public class Startup + { + public Startup(IConfiguration configuration) + { + Configuration = configuration; + } + + public IConfiguration Configuration { get; } + + // This method gets called by the runtime. Use this method to add services to the container. + public void ConfigureServices(IServiceCollection services) + { + services.AddControllers(); + } + + // This method gets called by the runtime. Use this method to configure the HTTP request pipeline. + public void Configure(IApplicationBuilder app, IWebHostEnvironment env) + { + if (env.IsDevelopment()) + { + app.UseDeveloperExceptionPage(); + } + + app.UseHttpsRedirection(); + + app.UseRouting(); + + app.UseAuthorization(); + + app.UseEndpoints(endpoints => + { + endpoints.MapControllers(); + }); + } + } +} diff --git a/BackEndAaaapero/WeatherForecast.cs b/BackEndAaaapero/WeatherForecast.cs new file mode 100644 index 0000000..8812e8b --- /dev/null +++ b/BackEndAaaapero/WeatherForecast.cs @@ -0,0 +1,15 @@ +using System; + +namespace BackEndAaaapero +{ + public class WeatherForecast + { + public DateTime Date { get; set; } + + public int TemperatureC { get; set; } + + public int TemperatureF => 32 + (int)(TemperatureC / 0.5556); + + public string Summary { get; set; } + } +} diff --git a/BackEndAaaapero/appsettings.Development.json b/BackEndAaaapero/appsettings.Development.json new file mode 100644 index 0000000..8983e0f --- /dev/null +++ b/BackEndAaaapero/appsettings.Development.json @@ -0,0 +1,9 @@ +{ + "Logging": { + "LogLevel": { + "Default": "Information", + "Microsoft": "Warning", + "Microsoft.Hosting.Lifetime": "Information" + } + } +} diff --git a/BackEndAaaapero/appsettings.json b/BackEndAaaapero/appsettings.json new file mode 100644 index 0000000..d9d9a9b --- /dev/null +++ b/BackEndAaaapero/appsettings.json @@ -0,0 +1,10 @@ +{ + "Logging": { + "LogLevel": { + "Default": "Information", + "Microsoft": "Warning", + "Microsoft.Hosting.Lifetime": "Information" + } + }, + "AllowedHosts": "*" +} diff --git a/BackEndAaaapero/obj/BackEndAaaapero.csproj.nuget.dgspec.json b/BackEndAaaapero/obj/BackEndAaaapero.csproj.nuget.dgspec.json new file mode 100644 index 0000000..907fa56 --- /dev/null +++ b/BackEndAaaapero/obj/BackEndAaaapero.csproj.nuget.dgspec.json @@ -0,0 +1,65 @@ +{ + "format": 1, + "restore": { + "C:\\Users\\Lucas\\Desktop\\BackEndAaaapero\\BackEndAaaapero.csproj": {} + }, + "projects": { + "C:\\Users\\Lucas\\Desktop\\BackEndAaaapero\\BackEndAaaapero.csproj": { + "version": "1.0.0", + "restore": { + "projectUniqueName": "C:\\Users\\Lucas\\Desktop\\BackEndAaaapero\\BackEndAaaapero.csproj", + "projectName": "BackEndAaaapero", + "projectPath": "C:\\Users\\Lucas\\Desktop\\BackEndAaaapero\\BackEndAaaapero.csproj", + "packagesPath": "C:\\Users\\Lucas\\.nuget\\packages\\", + "outputPath": "C:\\Users\\Lucas\\Desktop\\BackEndAaaapero\\obj\\", + "projectStyle": "PackageReference", + "configFilePaths": [ + "C:\\Users\\Lucas\\AppData\\Roaming\\NuGet\\NuGet.Config", + "C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.Offline.config" + ], + "originalTargetFrameworks": [ + "netcoreapp3.1" + ], + "sources": { + "C:\\Program Files (x86)\\Microsoft SDKs\\NuGetPackages\\": {}, + "https://api.nuget.org/v3/index.json": {} + }, + "frameworks": { + "netcoreapp3.1": { + "targetAlias": "netcoreapp3.1", + "projectReferences": {} + } + }, + "warningProperties": { + "warnAsError": [ + "NU1605" + ] + } + }, + "frameworks": { + "netcoreapp3.1": { + "targetAlias": "netcoreapp3.1", + "imports": [ + "net461", + "net462", + "net47", + "net471", + "net472", + "net48" + ], + "assetTargetFallback": true, + "warn": true, + "frameworkReferences": { + "Microsoft.AspNetCore.App": { + "privateAssets": "none" + }, + "Microsoft.NETCore.App": { + "privateAssets": "all" + } + }, + "runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\5.0.200\\RuntimeIdentifierGraph.json" + } + } + } + } +} \ No newline at end of file diff --git a/BackEndAaaapero/obj/BackEndAaaapero.csproj.nuget.g.props b/BackEndAaaapero/obj/BackEndAaaapero.csproj.nuget.g.props new file mode 100644 index 0000000..973f046 --- /dev/null +++ b/BackEndAaaapero/obj/BackEndAaaapero.csproj.nuget.g.props @@ -0,0 +1,18 @@ + + + + True + NuGet + $(MSBuildThisFileDirectory)project.assets.json + $(UserProfile)\.nuget\packages\ + C:\Users\Lucas\.nuget\packages\ + PackageReference + 5.9.0 + + + + + + $(MSBuildAllProjects);$(MSBuildThisFileFullPath) + + \ No newline at end of file diff --git a/BackEndAaaapero/obj/BackEndAaaapero.csproj.nuget.g.targets b/BackEndAaaapero/obj/BackEndAaaapero.csproj.nuget.g.targets new file mode 100644 index 0000000..53cfaa1 --- /dev/null +++ b/BackEndAaaapero/obj/BackEndAaaapero.csproj.nuget.g.targets @@ -0,0 +1,6 @@ + + + + $(MSBuildAllProjects);$(MSBuildThisFileFullPath) + + \ No newline at end of file diff --git a/BackEndAaaapero/obj/Debug/netcoreapp3.1/.NETCoreApp,Version=v3.1.AssemblyAttributes.cs b/BackEndAaaapero/obj/Debug/netcoreapp3.1/.NETCoreApp,Version=v3.1.AssemblyAttributes.cs new file mode 100644 index 0000000..ad8dfe1 --- /dev/null +++ b/BackEndAaaapero/obj/Debug/netcoreapp3.1/.NETCoreApp,Version=v3.1.AssemblyAttributes.cs @@ -0,0 +1,4 @@ +// +using System; +using System.Reflection; +[assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETCoreApp,Version=v3.1", FrameworkDisplayName = "")] diff --git a/BackEndAaaapero/obj/Debug/netcoreapp3.1/BackEndAaaapero.AssemblyInfo.cs b/BackEndAaaapero/obj/Debug/netcoreapp3.1/BackEndAaaapero.AssemblyInfo.cs new file mode 100644 index 0000000..d6cc223 --- /dev/null +++ b/BackEndAaaapero/obj/Debug/netcoreapp3.1/BackEndAaaapero.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("BackEndAaaapero")] +[assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")] +[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")] +[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0")] +[assembly: System.Reflection.AssemblyProductAttribute("BackEndAaaapero")] +[assembly: System.Reflection.AssemblyTitleAttribute("BackEndAaaapero")] +[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")] + +// Generated by the MSBuild WriteCodeFragment class. + diff --git a/BackEndAaaapero/obj/Debug/netcoreapp3.1/BackEndAaaapero.AssemblyInfoInputs.cache b/BackEndAaaapero/obj/Debug/netcoreapp3.1/BackEndAaaapero.AssemblyInfoInputs.cache new file mode 100644 index 0000000..7dd0344 --- /dev/null +++ b/BackEndAaaapero/obj/Debug/netcoreapp3.1/BackEndAaaapero.AssemblyInfoInputs.cache @@ -0,0 +1 @@ +cb67179214226b3838a1c7653677dfcf347e25ed diff --git a/BackEndAaaapero/obj/Debug/netcoreapp3.1/BackEndAaaapero.assets.cache b/BackEndAaaapero/obj/Debug/netcoreapp3.1/BackEndAaaapero.assets.cache new file mode 100644 index 0000000..519bf88 Binary files /dev/null and b/BackEndAaaapero/obj/Debug/netcoreapp3.1/BackEndAaaapero.assets.cache differ diff --git a/BackEndAaaapero/obj/Debug/netcoreapp3.1/BackEndAaaapero.csprojAssemblyReference.cache b/BackEndAaaapero/obj/Debug/netcoreapp3.1/BackEndAaaapero.csprojAssemblyReference.cache new file mode 100644 index 0000000..38dffa9 Binary files /dev/null and b/BackEndAaaapero/obj/Debug/netcoreapp3.1/BackEndAaaapero.csprojAssemblyReference.cache differ diff --git a/BackEndAaaapero/obj/project.assets.json b/BackEndAaaapero/obj/project.assets.json new file mode 100644 index 0000000..964b215 --- /dev/null +++ b/BackEndAaaapero/obj/project.assets.json @@ -0,0 +1,70 @@ +{ + "version": 3, + "targets": { + ".NETCoreApp,Version=v3.1": {} + }, + "libraries": {}, + "projectFileDependencyGroups": { + ".NETCoreApp,Version=v3.1": [] + }, + "packageFolders": { + "C:\\Users\\Lucas\\.nuget\\packages\\": {} + }, + "project": { + "version": "1.0.0", + "restore": { + "projectUniqueName": "C:\\Users\\Lucas\\Desktop\\BackEndAaaapero\\BackEndAaaapero.csproj", + "projectName": "BackEndAaaapero", + "projectPath": "C:\\Users\\Lucas\\Desktop\\BackEndAaaapero\\BackEndAaaapero.csproj", + "packagesPath": "C:\\Users\\Lucas\\.nuget\\packages\\", + "outputPath": "C:\\Users\\Lucas\\Desktop\\BackEndAaaapero\\obj\\", + "projectStyle": "PackageReference", + "configFilePaths": [ + "C:\\Users\\Lucas\\AppData\\Roaming\\NuGet\\NuGet.Config", + "C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.Offline.config" + ], + "originalTargetFrameworks": [ + "netcoreapp3.1" + ], + "sources": { + "C:\\Program Files (x86)\\Microsoft SDKs\\NuGetPackages\\": {}, + "https://api.nuget.org/v3/index.json": {} + }, + "frameworks": { + "netcoreapp3.1": { + "targetAlias": "netcoreapp3.1", + "projectReferences": {} + } + }, + "warningProperties": { + "warnAsError": [ + "NU1605" + ] + } + }, + "frameworks": { + "netcoreapp3.1": { + "targetAlias": "netcoreapp3.1", + "imports": [ + "net461", + "net462", + "net47", + "net471", + "net472", + "net48" + ], + "assetTargetFallback": true, + "warn": true, + "frameworkReferences": { + "Microsoft.AspNetCore.App": { + "privateAssets": "none" + }, + "Microsoft.NETCore.App": { + "privateAssets": "all" + } + }, + "runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\5.0.200\\RuntimeIdentifierGraph.json" + } + } + } +} \ No newline at end of file diff --git a/BackEndAaaapero/obj/project.nuget.cache b/BackEndAaaapero/obj/project.nuget.cache new file mode 100644 index 0000000..666b653 --- /dev/null +++ b/BackEndAaaapero/obj/project.nuget.cache @@ -0,0 +1,8 @@ +{ + "version": 2, + "dgSpecHash": "nLbrUqQ8uGWfal8tTv6XnQP2Tjsq5MmCBOFMs35DDdqWd75kq+i7/dbcOtkbNv5GshRNjxM9EZls0/9Qld6/Vw==", + "success": true, + "projectFilePath": "C:\\Users\\Lucas\\Desktop\\BackEndAaaapero\\BackEndAaaapero.csproj", + "expectedPackageFiles": [], + "logs": [] +} \ No newline at end of file