Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
H
HIAST-Clinics
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
almohanad.hafez
HIAST-Clinics
Commits
1883d347
Commit
1883d347
authored
Aug 15, 2024
by
Almouhannad
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(B) Add API project
parent
f35a959e
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
111 additions
and
0 deletions
+111
-0
API.csproj
Clinics.Backend/API/API.csproj
+20
-0
API.http
Clinics.Backend/API/API.http
+6
-0
Program.cs
Clinics.Backend/API/Program.cs
+27
-0
launchSettings.json
Clinics.Backend/API/Properties/launchSettings.json
+41
-0
appsettings.Development.json
Clinics.Backend/API/appsettings.Development.json
+8
-0
appsettings.json
Clinics.Backend/API/appsettings.json
+9
-0
No files found.
Clinics.Backend/API/API.csproj
0 → 100644
View file @
1883d347
<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.7.0" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\Application\Application.csproj" />
<ProjectReference Include="..\Domain\Domain.csproj" />
<ProjectReference Include="..\Persistence\Persistence.csproj" />
<ProjectReference Include="..\Presentation\Presentation.csproj" />
</ItemGroup>
</Project>
Clinics.Backend/API/API.http
0 → 100644
View file @
1883d347
@API_HostAddress = http://localhost:5276
# GET {{API_HostAddress}}/weatherforecast/
# Accept: application/json
###
Clinics.Backend/API/Program.cs
0 → 100644
View file @
1883d347
var
builder
=
WebApplication
.
CreateBuilder
(
args
);
// Add services to the container.
builder
.
Services
.
AddControllers
()
.
AddApplicationPart
(
typeof
(
Presentation
.
AssemblyReference
).
Assembly
);
// 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
();
Clinics.Backend/API/Properties/launchSettings.json
0 → 100644
View file @
1883d347
{
"$schema"
:
"http://json.schemastore.org/launchsettings.json"
,
"iisSettings"
:
{
"windowsAuthentication"
:
false
,
"anonymousAuthentication"
:
true
,
"iisExpress"
:
{
"applicationUrl"
:
"http://localhost:61331"
,
"sslPort"
:
44332
}
},
"profiles"
:
{
"http"
:
{
"commandName"
:
"Project"
,
"dotnetRunMessages"
:
true
,
"launchBrowser"
:
true
,
"launchUrl"
:
"swagger"
,
"applicationUrl"
:
"http://localhost:5276"
,
"environmentVariables"
:
{
"ASPNETCORE_ENVIRONMENT"
:
"Development"
}
},
"https"
:
{
"commandName"
:
"Project"
,
"dotnetRunMessages"
:
true
,
"launchBrowser"
:
true
,
"launchUrl"
:
"swagger"
,
"applicationUrl"
:
"https://localhost:7046;http://localhost:5276"
,
"environmentVariables"
:
{
"ASPNETCORE_ENVIRONMENT"
:
"Development"
}
},
"IIS Express"
:
{
"commandName"
:
"IISExpress"
,
"launchBrowser"
:
true
,
"launchUrl"
:
"swagger"
,
"environmentVariables"
:
{
"ASPNETCORE_ENVIRONMENT"
:
"Development"
}
}
}
}
Clinics.Backend/API/appsettings.Development.json
0 → 100644
View file @
1883d347
{
"Logging"
:
{
"LogLevel"
:
{
"Default"
:
"Information"
,
"Microsoft.AspNetCore"
:
"Warning"
}
}
}
Clinics.Backend/API/appsettings.json
0 → 100644
View file @
1883d347
{
"Logging"
:
{
"LogLevel"
:
{
"Default"
:
"Information"
,
"Microsoft.AspNetCore"
:
"Warning"
}
},
"AllowedHosts"
:
"*"
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a 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