Включил OpenAPI
All checks were successful
Create and publish a Docker image / Publish image (push) Successful in 2m17s

This commit is contained in:
2025-08-31 15:56:35 +03:00
parent 1a630bdfab
commit 48e65a8648
3 changed files with 37 additions and 5 deletions

View File

@@ -19,13 +19,9 @@ builder.Services.AddHttpClient<ModeusService>();
builder.Services.AddMicrosoftIdentityWebAppAuthentication(builder.Configuration);
var app = builder.Build();
if (app.Environment.IsDevelopment())
{
app.MapOpenApi();
}
app.MapScalarApiReference(options =>
{
options.WithTitle("Расписание занятий ЮФУ");

View File

@@ -0,0 +1,21 @@
@SfeduSchedule_HostAddress = http://localhost:5087
###
[Получить расписание по списку GUID]
GET {{SfeduSchedule_HostAddress}}/api/schedule?attendeePersonId={{guid1}}&attendeePersonId={{guid2}}
Accept: application/json
###
[Получить расписание через POST]
POST {{SfeduSchedule_HostAddress}}/api/schedule
Content-Type: application/json
Accept: application/json
{
"maxResults": 500,
"startDate": "2025-08-31T00:00:00Z",
"endDate": "2025-09-20T00:00:00Z",
"attendeePersonId": ["{{guid1}}", "{{guid2}}"]
}
###

15
docker-compose-prod.yml Normal file
View File

@@ -0,0 +1,15 @@
services:
app:
ports:
- '8088:8080'
container_name: SfeduSchedule
environment:
- AzureAd:Instance=https://login.microsoftonline.com/
- AzureAd:TenantId=sfedu.ru
- AzureAd:ClientId=
- AzureAd:ClientSecret=
- AzureAd:Domain=sfedu.onmicrosoft.com
- AzureAd:CallbackPath=/signin-oidc
- TOKEN=
restart: always
image: git.zetcraft.ru/serega404/sfeduschedule:main