Включил OpenAPI
All checks were successful
Create and publish a Docker image / Publish image (push) Successful in 2m17s
All checks were successful
Create and publish a Docker image / Publish image (push) Successful in 2m17s
This commit is contained in:
@@ -19,13 +19,9 @@ builder.Services.AddHttpClient<ModeusService>();
|
|||||||
|
|
||||||
builder.Services.AddMicrosoftIdentityWebAppAuthentication(builder.Configuration);
|
builder.Services.AddMicrosoftIdentityWebAppAuthentication(builder.Configuration);
|
||||||
|
|
||||||
|
|
||||||
var app = builder.Build();
|
var app = builder.Build();
|
||||||
|
|
||||||
if (app.Environment.IsDevelopment())
|
app.MapOpenApi();
|
||||||
{
|
|
||||||
app.MapOpenApi();
|
|
||||||
}
|
|
||||||
app.MapScalarApiReference(options =>
|
app.MapScalarApiReference(options =>
|
||||||
{
|
{
|
||||||
options.WithTitle("Расписание занятий ЮФУ");
|
options.WithTitle("Расписание занятий ЮФУ");
|
||||||
|
21
SfeduSchedule/SfeduSchedule.http
Normal file
21
SfeduSchedule/SfeduSchedule.http
Normal 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
15
docker-compose-prod.yml
Normal 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
|
Reference in New Issue
Block a user