Release v1.0.0 #16

Merged
Wesser merged 492 commits from release/v1.0.0 into master 2025-02-12 09:19:32 +03:00
302 changed files with 15818 additions and 99 deletions
Showing only changes of commit 7d6b21c5bb - Show all commits
.editorconfig.env
.gitea/workflows
.gitignore
ApiDto
Backend.slnDockerfile
Endpoint
Backend.http
Common
Configuration
Controllers
Endpoint.csprojProgram.cs
Sync
WeatherForecast.cs
wwwroot/css/swagger
README.md
Security
SqlData
Application
Application.csproj
Common
Cqrs
Campus/Queries
Discipline/Queries
Faculty/Queries/GetFacultyList
Group/Queries
LectureHall/Queries
Professor/Queries
Schedule/Queries/GetScheduleList
TypeOfOccupation/Queries/GetTypeOfOccupationList
DependencyInjection.cs
Interfaces/DbContexts
Domain
Migrations
Persistence
nuget.config

@ -46,7 +46,7 @@ public class ScheduleController(ILogger<ScheduleController> logger, IOptionsSnap
/// <returns>Cron expression and the list of next scheduled task dates.</returns>
/// <exception cref="ControllerArgumentException">Thrown if the provided cron expression is invalid.</exception>
[HttpPost("CronUpdateSchedule")]
public ActionResult<CronUpdateScheduleResponse> CronUpdateSchedule([FromBody] string cron)
public ActionResult<CronUpdateScheduleResponse> CronUpdateSchedule([FromQuery] string cron)
{
cron = cron.Trim();
if (!CronExpression.TryParse(cron, CronFormat.Standard, out _))
@ -77,7 +77,7 @@ public class ScheduleController(ILogger<ScheduleController> logger, IOptionsSnap
/// <returns>Success or failure.</returns>
/// <exception cref="ControllerArgumentException">Thrown if the start term date is more than 6 months in the past or future.</exception>
[HttpPost("StartTerm")]
public ActionResult StartTerm([FromBody] DateOnly startTerm, [FromQuery] bool force = false)
public ActionResult StartTerm([FromQuery] DateOnly startTerm, [FromQuery] bool force = false)
{
var differentByTime = DateTime.Now - startTerm.ToDateTime(new TimeOnly(0, 0, 0));
if (differentByTime > TimeSpan.FromDays(190) || differentByTime.Multiply(-1) > TimeSpan.FromDays(190))