Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
team_origin
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Tejesh Kandregula
team_origin
Merge requests
!24
added webapi by sripathi
Code
Review changes
Check out branch
Download
Patches
Plain diff
Closed
added webapi by sripathi
master
into
main
Overview
0
Commits
3
Pipelines
0
Changes
30
Closed
Ghost User
requested to merge
master
into
main
1 year ago
Overview
0
Commits
3
Pipelines
0
Changes
30
Expand
0
0
Merge request reports
Compare
main
main (base)
and
latest version
latest version
944cc460
3 commits,
1 year ago
30 files
+
43
−
696
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
30
Search (e.g. *.vue) (Ctrl+P)
api/Program.cs
0 → 100644
+
27
−
0
Options
var
builder
=
WebApplication
.
CreateBuilder
(
args
);
// Add services to the container.
// 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
.
Run
();
record
WeatherForecast
(
DateOnly
Date
,
int
TemperatureC
,
string
?
Summary
)
{
public
int
TemperatureF
=>
32
+
(
int
)(
TemperatureC
/
0.5556
);
}
Loading