Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
MPAI-MMM
mmm-tec
Commits
3bcb053c
Commit
3bcb053c
authored
Oct 14, 2024
by
cann-alberto
Browse files
first commit
parent
5b225556
Changes
55
Expand all
Hide whitespace changes
Inline
Side-by-side
WebApplication1/.vs/WebApplication1/config/applicationhost.config
0 → 100644
View file @
3bcb053c
This diff is collapsed.
Click to expand it.
WebApplication1/.vs/WebApplication1/v17/.suo
0 → 100644
View file @
3bcb053c
File added
WebApplication1/.vs/WebApplication1/v17/DocumentLayout.backup.json
0 → 100644
View file @
3bcb053c
{
"Version"
:
1
,
"WorkspaceRootPath"
:
"C:
\\
Users
\\
lab2a
\\
Documents
\\
Visual Studio 2022
\\
Projects
\\
MPAI-MMM
\\
MMM-Server
\\
WebApplication1
\\
"
,
"Documents"
:
[],
"DocumentGroupContainers"
:
[
{
"Orientation"
:
0
,
"VerticalTabListWidth"
:
256
,
"DocumentGroups"
:
[]
}
]
}
\ No newline at end of file
WebApplication1/.vs/WebApplication1/v17/DocumentLayout.json
0 → 100644
View file @
3bcb053c
{
"Version"
:
1
,
"WorkspaceRootPath"
:
"C:
\\
Users
\\
lab2a
\\
Documents
\\
Visual Studio 2022
\\
Projects
\\
MPAI-MMM
\\
MMM-Server
\\
WebApplication1
\\
"
,
"Documents"
:
[],
"DocumentGroupContainers"
:
[
{
"Orientation"
:
0
,
"VerticalTabListWidth"
:
256
,
"DocumentGroups"
:
[]
}
]
}
\ No newline at end of file
WebApplication1/WebApplication1.sln
0 → 100644
View file @
3bcb053c
Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 17
VisualStudioVersion = 17.11.35312.102
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "WebApplication1", "WebApplication1\WebApplication1.csproj", "{6F661852-364B-4030-AA18-3C29F916DFA7}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{6F661852-364B-4030-AA18-3C29F916DFA7}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{6F661852-364B-4030-AA18-3C29F916DFA7}.Debug|Any CPU.Build.0 = Debug|Any CPU
{6F661852-364B-4030-AA18-3C29F916DFA7}.Release|Any CPU.ActiveCfg = Release|Any CPU
{6F661852-364B-4030-AA18-3C29F916DFA7}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {709D5799-6258-4FCC-A435-E29E9A942BE2}
EndGlobalSection
EndGlobal
WebApplication1/WebApplication1/Controllers/WeatherForecastController.cs
0 → 100644
View file @
3bcb053c
using
Microsoft.AspNetCore.Mvc
;
namespace
WebApplication1.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
<
WeatherForecastController
>
_logger
;
public
WeatherForecastController
(
ILogger
<
WeatherForecastController
>
logger
)
{
_logger
=
logger
;
}
[
HttpGet
(
Name
=
"GetWeatherForecast"
)]
public
IEnumerable
<
WeatherForecast
>
Get
()
{
return
Enumerable
.
Range
(
1
,
5
).
Select
(
index
=>
new
WeatherForecast
{
Date
=
DateOnly
.
FromDateTime
(
DateTime
.
Now
.
AddDays
(
index
)),
TemperatureC
=
Random
.
Shared
.
Next
(-
20
,
55
),
Summary
=
Summaries
[
Random
.
Shared
.
Next
(
Summaries
.
Length
)]
})
.
ToArray
();
}
}
}
WebApplication1/WebApplication1/Program.cs
0 → 100644
View file @
3bcb053c
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
();
WebApplication1/WebApplication1/Properties/launchSettings.json
0 → 100644
View file @
3bcb053c
{
"$schema"
:
"http://json.schemastore.org/launchsettings.json"
,
"iisSettings"
:
{
"windowsAuthentication"
:
false
,
"anonymousAuthentication"
:
true
,
"iisExpress"
:
{
"applicationUrl"
:
"http://localhost:37479"
,
"sslPort"
:
44346
}
},
"profiles"
:
{
"http"
:
{
"commandName"
:
"Project"
,
"dotnetRunMessages"
:
true
,
"launchBrowser"
:
true
,
"launchUrl"
:
"swagger"
,
"applicationUrl"
:
"http://localhost:5042"
,
"environmentVariables"
:
{
"ASPNETCORE_ENVIRONMENT"
:
"Development"
}
},
"https"
:
{
"commandName"
:
"Project"
,
"dotnetRunMessages"
:
true
,
"launchBrowser"
:
true
,
"launchUrl"
:
"swagger"
,
"applicationUrl"
:
"https://localhost:7273;http://localhost:5042"
,
"environmentVariables"
:
{
"ASPNETCORE_ENVIRONMENT"
:
"Development"
}
},
"IIS Express"
:
{
"commandName"
:
"IISExpress"
,
"launchBrowser"
:
true
,
"launchUrl"
:
"swagger"
,
"environmentVariables"
:
{
"ASPNETCORE_ENVIRONMENT"
:
"Development"
}
}
}
}
WebApplication1/WebApplication1/WeatherForecast.cs
0 → 100644
View file @
3bcb053c
namespace
WebApplication1
{
public
class
WeatherForecast
{
public
DateOnly
Date
{
get
;
set
;
}
public
int
TemperatureC
{
get
;
set
;
}
public
int
TemperatureF
=>
32
+
(
int
)(
TemperatureC
/
0.5556
);
public
string
?
Summary
{
get
;
set
;
}
}
}
WebApplication1/WebApplication1/WebApplication1.csproj
0 → 100644
View file @
3bcb053c
<Project Sdk="Microsoft.NET.Sdk.Web">
<PropertyGroup>
<TargetFramework>net8.0</TargetFramework>
<Nullable>enable</Nullable>
<ImplicitUsings>enable</ImplicitUsings>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Swashbuckle.AspNetCore" Version="6.4.0" />
</ItemGroup>
</Project>
WebApplication1/WebApplication1/WebApplication1.csproj.user
0 → 100644
View file @
3bcb053c
<?xml version="1.0" encoding="utf-8"?>
<Project
ToolsVersion=
"Current"
xmlns=
"http://schemas.microsoft.com/developer/msbuild/2003"
>
<PropertyGroup>
<ActiveDebugProfile>
https
</ActiveDebugProfile>
</PropertyGroup>
</Project>
\ No newline at end of file
WebApplication1/WebApplication1/WebApplication1.http
0 → 100644
View file @
3bcb053c
@WebApplication1_HostAddress = http://localhost:5042
GET {{WebApplication1_HostAddress}}/weatherforecast/
Accept: application/json
###
WebApplication1/WebApplication1/appsettings.Development.json
0 → 100644
View file @
3bcb053c
{
"Logging"
:
{
"LogLevel"
:
{
"Default"
:
"Information"
,
"Microsoft.AspNetCore"
:
"Warning"
}
}
}
WebApplication1/WebApplication1/appsettings.json
0 → 100644
View file @
3bcb053c
{
"Logging"
:
{
"LogLevel"
:
{
"Default"
:
"Information"
,
"Microsoft.AspNetCore"
:
"Warning"
}
},
"AllowedHosts"
:
"*"
}
WebApplication1/WebApplication1/bin/Debug/net8.0/Microsoft.OpenApi.dll
0 → 100644
View file @
3bcb053c
File added
WebApplication1/WebApplication1/bin/Debug/net8.0/Swashbuckle.AspNetCore.Swagger.dll
0 → 100644
View file @
3bcb053c
File added
WebApplication1/WebApplication1/bin/Debug/net8.0/Swashbuckle.AspNetCore.SwaggerGen.dll
0 → 100644
View file @
3bcb053c
File added
WebApplication1/WebApplication1/bin/Debug/net8.0/Swashbuckle.AspNetCore.SwaggerUI.dll
0 → 100644
View file @
3bcb053c
File added
WebApplication1/WebApplication1/bin/Debug/net8.0/WebApplication1.deps.json
0 → 100644
View file @
3bcb053c
{
"runtimeTarget"
:
{
"name"
:
".NETCoreApp,Version=v8.0"
,
"signature"
:
""
},
"compilationOptions"
:
{},
"targets"
:
{
".NETCoreApp,Version=v8.0"
:
{
"WebApplication1/1.0.0"
:
{
"dependencies"
:
{
"Swashbuckle.AspNetCore"
:
"6.4.0"
},
"runtime"
:
{
"WebApplication1.dll"
:
{}
}
},
"Microsoft.Extensions.ApiDescription.Server/6.0.5"
:
{},
"Microsoft.OpenApi/1.2.3"
:
{
"runtime"
:
{
"lib/netstandard2.0/Microsoft.OpenApi.dll"
:
{
"assemblyVersion"
:
"1.2.3.0"
,
"fileVersion"
:
"1.2.3.0"
}
}
},
"Swashbuckle.AspNetCore/6.4.0"
:
{
"dependencies"
:
{
"Microsoft.Extensions.ApiDescription.Server"
:
"6.0.5"
,
"Swashbuckle.AspNetCore.Swagger"
:
"6.4.0"
,
"Swashbuckle.AspNetCore.SwaggerGen"
:
"6.4.0"
,
"Swashbuckle.AspNetCore.SwaggerUI"
:
"6.4.0"
}
},
"Swashbuckle.AspNetCore.Swagger/6.4.0"
:
{
"dependencies"
:
{
"Microsoft.OpenApi"
:
"1.2.3"
},
"runtime"
:
{
"lib/net6.0/Swashbuckle.AspNetCore.Swagger.dll"
:
{
"assemblyVersion"
:
"6.4.0.0"
,
"fileVersion"
:
"6.4.0.0"
}
}
},
"Swashbuckle.AspNetCore.SwaggerGen/6.4.0"
:
{
"dependencies"
:
{
"Swashbuckle.AspNetCore.Swagger"
:
"6.4.0"
},
"runtime"
:
{
"lib/net6.0/Swashbuckle.AspNetCore.SwaggerGen.dll"
:
{
"assemblyVersion"
:
"6.4.0.0"
,
"fileVersion"
:
"6.4.0.0"
}
}
},
"Swashbuckle.AspNetCore.SwaggerUI/6.4.0"
:
{
"runtime"
:
{
"lib/net6.0/Swashbuckle.AspNetCore.SwaggerUI.dll"
:
{
"assemblyVersion"
:
"6.4.0.0"
,
"fileVersion"
:
"6.4.0.0"
}
}
}
}
},
"libraries"
:
{
"WebApplication1/1.0.0"
:
{
"type"
:
"project"
,
"serviceable"
:
false
,
"sha512"
:
""
},
"Microsoft.Extensions.ApiDescription.Server/6.0.5"
:
{
"type"
:
"package"
,
"serviceable"
:
true
,
"sha512"
:
"sha512-Ckb5EDBUNJdFWyajfXzUIMRkhf52fHZOQuuZg/oiu8y7zDCVwD0iHhew6MnThjHmevanpxL3f5ci2TtHQEN6bw=="
,
"path"
:
"microsoft.extensions.apidescription.server/6.0.5"
,
"hashPath"
:
"microsoft.extensions.apidescription.server.6.0.5.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"
},
"Swashbuckle.AspNetCore/6.4.0"
:
{
"type"
:
"package"
,
"serviceable"
:
true
,
"sha512"
:
"sha512-eUBr4TW0up6oKDA5Xwkul289uqSMgY0xGN4pnbOIBqCcN9VKGGaPvHX3vWaG/hvocfGDP+MGzMA0bBBKz2fkmQ=="
,
"path"
:
"swashbuckle.aspnetcore/6.4.0"
,
"hashPath"
:
"swashbuckle.aspnetcore.6.4.0.nupkg.sha512"
},
"Swashbuckle.AspNetCore.Swagger/6.4.0"
:
{
"type"
:
"package"
,
"serviceable"
:
true
,
"sha512"
:
"sha512-nl4SBgGM+cmthUcpwO/w1lUjevdDHAqRvfUoe4Xp/Uvuzt9mzGUwyFCqa3ODBAcZYBiFoKvrYwz0rabslJvSmQ=="
,
"path"
:
"swashbuckle.aspnetcore.swagger/6.4.0"
,
"hashPath"
:
"swashbuckle.aspnetcore.swagger.6.4.0.nupkg.sha512"
},
"Swashbuckle.AspNetCore.SwaggerGen/6.4.0"
:
{
"type"
:
"package"
,
"serviceable"
:
true
,
"sha512"
:
"sha512-lXhcUBVqKrPFAQF7e/ZeDfb5PMgE8n5t6L5B6/BQSpiwxgHzmBcx8Msu42zLYFTvR5PIqE9Q9lZvSQAcwCxJjw=="
,
"path"
:
"swashbuckle.aspnetcore.swaggergen/6.4.0"
,
"hashPath"
:
"swashbuckle.aspnetcore.swaggergen.6.4.0.nupkg.sha512"
},
"Swashbuckle.AspNetCore.SwaggerUI/6.4.0"
:
{
"type"
:
"package"
,
"serviceable"
:
true
,
"sha512"
:
"sha512-1Hh3atb3pi8c+v7n4/3N80Jj8RvLOXgWxzix6w3OZhB7zBGRwsy7FWr4e3hwgPweSBpwfElqj4V4nkjYabH9nQ=="
,
"path"
:
"swashbuckle.aspnetcore.swaggerui/6.4.0"
,
"hashPath"
:
"swashbuckle.aspnetcore.swaggerui.6.4.0.nupkg.sha512"
}
}
}
\ No newline at end of file
WebApplication1/WebApplication1/bin/Debug/net8.0/WebApplication1.dll
0 → 100644
View file @
3bcb053c
File added
Prev
1
2
3
Next
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment