Compare commits
2 Commits
165addd785
...
ec5149b6da
Author | SHA1 | Date | |
---|---|---|---|
ec5149b6da | |||
8d0c2aa3f6 |
@@ -2,8 +2,8 @@
|
||||
|
||||
public class CreateSoundTimecodeDto
|
||||
{
|
||||
public int? ShowId { get; set; }
|
||||
public int? SoundId { get; set; }
|
||||
public string? Start { get; set; }
|
||||
public string? End { get; set; }
|
||||
public int ShowId { get; set; }
|
||||
public int SoundId { get; set; }
|
||||
public int Start { get; set; }
|
||||
public int End { get; set; }
|
||||
}
|
@@ -3,8 +3,8 @@
|
||||
public class UpdateSoundTimecodeDto
|
||||
{
|
||||
public int? Id { get; set; }
|
||||
public int? ShowId { get; set; }
|
||||
public int? SoundId { get; set; }
|
||||
public string? Start { get; set; }
|
||||
public string? End { get; set; }
|
||||
public int ShowId { get; set; }
|
||||
public int SoundId { get; set; }
|
||||
public int Start { get; set; }
|
||||
public int End { get; set; }
|
||||
}
|
@@ -5,6 +5,6 @@ public class ReadSoundTimecodeDto
|
||||
public int? Id { get; set; }
|
||||
public int? ShowId { get; set; }
|
||||
public int? SoundId { get; set; }
|
||||
public string? Start { get; set; }
|
||||
public string? End { get; set; }
|
||||
public int Start { get; set; }
|
||||
public int End { get; set; }
|
||||
}
|
@@ -3,8 +3,8 @@
|
||||
public class CreateTruckDto
|
||||
{
|
||||
public string? Type { get; set; }
|
||||
public double? MaxExplosiveCapacity { get; set; }
|
||||
public string? MaxExplosiveCapacity { get; set; }
|
||||
public string? Sizes { get; set; }
|
||||
public bool? Statut { get; set; }
|
||||
public string? Statut { get; set; }
|
||||
public int? ShowId { get; set; }
|
||||
}
|
@@ -6,6 +6,6 @@ public class UpdateTruckDto
|
||||
public string? Type { get; set; }
|
||||
public string? MaxExplosiveCapacity { get; set; }
|
||||
public string? Sizes { get; set; }
|
||||
public bool? Statut { get; set; }
|
||||
public string? Statut { get; set; }
|
||||
public int? ShowId { get; set; }
|
||||
}
|
@@ -6,6 +6,6 @@ public class ReadTruckDto
|
||||
public string? Type { get; set; }
|
||||
public string? MaxExplosiveCapacity { get; set; }
|
||||
public string? Sizes { get; set; }
|
||||
public bool? Statut { get; set; }
|
||||
public string? Statut { get; set; }
|
||||
public int? ShowId { get; set; }
|
||||
}
|
34
PF3/Endpoints/SoundCategory/CreateSoundCategoryEndpoint.cs
Normal file
34
PF3/Endpoints/SoundCategory/CreateSoundCategoryEndpoint.cs
Normal file
@@ -0,0 +1,34 @@
|
||||
using FastEndpoints;
|
||||
using PF3.DTO.SoundCategory.Request;
|
||||
using PF3.DTO.SoundCategory.Response;
|
||||
using PF3.Models;
|
||||
|
||||
namespace PF3.Endpoints.SoundCategory;
|
||||
|
||||
public class CreateSoundCategoryEndpoint(PF3DbContext pf3DbContext) : Endpoint<CreateSoundCategoryDto, ReadSoundCategoryDto>
|
||||
{
|
||||
public override void Configure()
|
||||
{
|
||||
Post("/api/soundcategorys");
|
||||
AllowAnonymous();
|
||||
}
|
||||
|
||||
public override async Task HandleAsync(CreateSoundCategoryDto req, CancellationToken ct)
|
||||
{
|
||||
var soundCategory = new Models.SoundCategory
|
||||
{
|
||||
Name = req.Name,
|
||||
};
|
||||
|
||||
pf3DbContext.SoundsCategorys.Add(soundCategory);
|
||||
await pf3DbContext.SaveChangesAsync(ct);
|
||||
|
||||
var result = new ReadSoundCategoryDto
|
||||
{
|
||||
Id = soundCategory.Id,
|
||||
Name = soundCategory.Name
|
||||
};
|
||||
|
||||
await Send.OkAsync(result, ct);
|
||||
}
|
||||
}
|
29
PF3/Endpoints/SoundCategory/DeleteSoundCategoryEndpoint.cs
Normal file
29
PF3/Endpoints/SoundCategory/DeleteSoundCategoryEndpoint.cs
Normal file
@@ -0,0 +1,29 @@
|
||||
using FastEndpoints;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using PF3.DTO.SoundCategory.Request;
|
||||
|
||||
namespace PF3.Endpoints.SoundCategory;
|
||||
|
||||
public class DeleteSoundCategoryEndpoint(PF3DbContext pf3DbContext) : Endpoint<IdSoundCategoryDto>
|
||||
{
|
||||
public override void Configure()
|
||||
{
|
||||
Delete("/api/soundcategorys/{Id}");
|
||||
AllowAnonymous();
|
||||
}
|
||||
|
||||
public override async Task HandleAsync(IdSoundCategoryDto req, CancellationToken ct)
|
||||
{
|
||||
var soundCategory = await pf3DbContext.SoundsCategorys.FirstOrDefaultAsync(st => st.Id == req.Id, ct);
|
||||
if (soundCategory is null)
|
||||
{
|
||||
await Send.NotFoundAsync(ct);
|
||||
return;
|
||||
}
|
||||
|
||||
pf3DbContext.SoundsCategorys.Remove(soundCategory);
|
||||
await pf3DbContext.SaveChangesAsync(ct);
|
||||
|
||||
await Send.OkAsync(ct);
|
||||
}
|
||||
}
|
27
PF3/Endpoints/SoundCategory/GetAllSoundCategoryEndpoint.cs
Normal file
27
PF3/Endpoints/SoundCategory/GetAllSoundCategoryEndpoint.cs
Normal file
@@ -0,0 +1,27 @@
|
||||
using FastEndpoints;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using PF3.DTO.SoundCategory.Response;
|
||||
|
||||
namespace PF3.Endpoints.SoundCategory;
|
||||
|
||||
public class GetAllSoundCategorysEndpoint(PF3DbContext pf3DbContext) : EndpointWithoutRequest<List<ReadSoundCategoryDto>>
|
||||
{
|
||||
public override void Configure()
|
||||
{
|
||||
Get("/api/soundcategorys");
|
||||
AllowAnonymous();
|
||||
}
|
||||
|
||||
public override async Task HandleAsync(CancellationToken ct)
|
||||
{
|
||||
var soundCategorys = await pf3DbContext.SoundsCategorys.ToListAsync(ct);
|
||||
|
||||
var result = soundCategorys.Select(sC => new ReadSoundCategoryDto
|
||||
{
|
||||
Id = sC.Id,
|
||||
Name = sC.Name
|
||||
}).ToList();
|
||||
|
||||
await Send.OkAsync(result, ct);
|
||||
}
|
||||
}
|
35
PF3/Endpoints/SoundCategory/GetSoundCategoryEndpoint.cs
Normal file
35
PF3/Endpoints/SoundCategory/GetSoundCategoryEndpoint.cs
Normal file
@@ -0,0 +1,35 @@
|
||||
using FastEndpoints;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using PF3.DTO.SoundCategory.Request;
|
||||
using PF3.DTO.SoundCategory.Response;
|
||||
|
||||
namespace PF3.Endpoints.SoundCategory;
|
||||
|
||||
public class GetSoundCategoryEndpoint(PF3DbContext pf3DbContext) : Endpoint<IdSoundCategoryDto, ReadSoundCategoryDto>
|
||||
{
|
||||
public override void Configure()
|
||||
{
|
||||
Get("/api/soundcategorys/{Id}");
|
||||
AllowAnonymous();
|
||||
}
|
||||
|
||||
public override async Task HandleAsync(IdSoundCategoryDto req, CancellationToken ct)
|
||||
{
|
||||
var soundCategory = await pf3DbContext.SoundsCategorys
|
||||
.Where(sc => sc.Id == req.Id)
|
||||
.Select(sc => new ReadSoundCategoryDto
|
||||
{
|
||||
Id = sc.Id,
|
||||
Name = sc.Name,
|
||||
})
|
||||
.FirstOrDefaultAsync(ct);
|
||||
|
||||
if (soundCategory is null)
|
||||
{
|
||||
await Send.NotFoundAsync(ct);
|
||||
return;
|
||||
}
|
||||
|
||||
await Send.OkAsync(soundCategory, ct);
|
||||
}
|
||||
}
|
37
PF3/Endpoints/SoundCategory/UpdateSoundCategoryEndpoint.cs
Normal file
37
PF3/Endpoints/SoundCategory/UpdateSoundCategoryEndpoint.cs
Normal file
@@ -0,0 +1,37 @@
|
||||
using FastEndpoints;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using PF3.DTO.SoundCategory.Request;
|
||||
using PF3.DTO.SoundCategory.Response;
|
||||
|
||||
namespace PF3.Endpoints.SoundCategory;
|
||||
|
||||
public class UpdateSoundCategoryEndpoint(PF3DbContext pf3DbContext) : Endpoint<UpdateSoundCategoryDto, ReadSoundCategoryDto>
|
||||
{
|
||||
public override void Configure()
|
||||
{
|
||||
Patch("/api/soundcategorys/{Id}/name");
|
||||
AllowAnonymous();
|
||||
}
|
||||
|
||||
public override async Task HandleAsync(UpdateSoundCategoryDto req, CancellationToken ct)
|
||||
{
|
||||
var soundCategory = await pf3DbContext.SoundsCategorys.FirstOrDefaultAsync(st => st.Id == req.Id, ct);
|
||||
if (soundCategory is null)
|
||||
{
|
||||
await Send.NotFoundAsync(ct);
|
||||
return;
|
||||
}
|
||||
|
||||
soundCategory.Name = req.Name;
|
||||
|
||||
await pf3DbContext.SaveChangesAsync(ct);
|
||||
|
||||
var result = new ReadSoundCategoryDto
|
||||
{
|
||||
Id = soundCategory.Id,
|
||||
Name = soundCategory.Name
|
||||
};
|
||||
|
||||
await Send.OkAsync(result, ct);
|
||||
}
|
||||
}
|
40
PF3/Endpoints/Staff/CreateStaffEndpoint.cs
Normal file
40
PF3/Endpoints/Staff/CreateStaffEndpoint.cs
Normal file
@@ -0,0 +1,40 @@
|
||||
using FastEndpoints;
|
||||
using PF3.DTO.Staff.Request;
|
||||
using PF3.DTO.Staff.Response;
|
||||
|
||||
namespace PF3.Endpoints.Staff;
|
||||
|
||||
public class CreateStaffEndpoint(PF3DbContext pf3DbContext):Endpoint<CreateStaffDto, ReadStaffDto>
|
||||
{
|
||||
public override void Configure()
|
||||
{
|
||||
Post("/api/staff");
|
||||
AllowAnonymous();
|
||||
}
|
||||
|
||||
public override async Task HandleAsync(CreateStaffDto req, CancellationToken ct)
|
||||
{
|
||||
var staff = new Models.Staff
|
||||
{
|
||||
FirstName = req.FirstName,
|
||||
LastName = req.LastName,
|
||||
Profession = req.Profession,
|
||||
Email = req.Email
|
||||
};
|
||||
|
||||
pf3DbContext.Staffs.Add(staff);
|
||||
await pf3DbContext.SaveChangesAsync(ct);
|
||||
|
||||
var result = new ReadStaffDto()
|
||||
{
|
||||
Id = staff.Id,
|
||||
FirstName = req.FirstName,
|
||||
LastName = req.LastName,
|
||||
Profession = req.Profession,
|
||||
Email = req.Email
|
||||
};
|
||||
|
||||
await Send.OkAsync(result, ct);
|
||||
|
||||
}
|
||||
}
|
29
PF3/Endpoints/Staff/DeleteStaffEndpoint.cs
Normal file
29
PF3/Endpoints/Staff/DeleteStaffEndpoint.cs
Normal file
@@ -0,0 +1,29 @@
|
||||
using FastEndpoints;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using PF3.DTO.Staff.Request;
|
||||
|
||||
namespace PF3.Endpoints.Staff;
|
||||
|
||||
public class DeleteStaffEndpoint(PF3DbContext pf3DbContext) : Endpoint<IdStaffDto>
|
||||
{
|
||||
public override void Configure()
|
||||
{
|
||||
Delete("/api/staff/{Id}");
|
||||
AllowAnonymous();
|
||||
}
|
||||
|
||||
public override async Task HandleAsync(IdStaffDto req, CancellationToken ct)
|
||||
{
|
||||
var staff = await pf3DbContext.Staffs.FirstOrDefaultAsync(s => s.Id == req.Id, ct);
|
||||
if (staff is null)
|
||||
{
|
||||
await Send.NotFoundAsync(ct);
|
||||
return;
|
||||
}
|
||||
|
||||
pf3DbContext.Staffs.Remove(staff);
|
||||
await pf3DbContext.SaveChangesAsync(ct);
|
||||
|
||||
await Send.OkAsync(ct);
|
||||
}
|
||||
}
|
30
PF3/Endpoints/Staff/GetAllStaffEndpoint.cs
Normal file
30
PF3/Endpoints/Staff/GetAllStaffEndpoint.cs
Normal file
@@ -0,0 +1,30 @@
|
||||
using FastEndpoints;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using PF3.DTO.Staff.Response;
|
||||
|
||||
namespace PF3.Endpoints.Staff;
|
||||
|
||||
public class GetAllStaffEndpoint(PF3DbContext pf3DbContext) : EndpointWithoutRequest<List<ReadStaffDto>>
|
||||
{
|
||||
public override void Configure()
|
||||
{
|
||||
Get("/api/staff");
|
||||
AllowAnonymous();
|
||||
}
|
||||
|
||||
public override async Task HandleAsync(CancellationToken ct)
|
||||
{
|
||||
var staffs = await pf3DbContext.Staffs.ToListAsync(ct);
|
||||
|
||||
var result = staffs.Select(s => new ReadStaffDto
|
||||
{
|
||||
Id = s.Id,
|
||||
FirstName = s.FirstName,
|
||||
LastName = s.LastName,
|
||||
Profession = s.Profession,
|
||||
Email = s.Email
|
||||
}).ToList();
|
||||
|
||||
await Send.OkAsync(result, ct);
|
||||
}
|
||||
}
|
38
PF3/Endpoints/Staff/GetStaffEndpoint.cs
Normal file
38
PF3/Endpoints/Staff/GetStaffEndpoint.cs
Normal file
@@ -0,0 +1,38 @@
|
||||
using FastEndpoints;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using PF3.DTO.Staff.Request;
|
||||
using PF3.DTO.Staff.Response;
|
||||
|
||||
namespace PF3.Endpoints.Staff;
|
||||
|
||||
public class GetStaffEndpoint(PF3DbContext pf3DbContext) : Endpoint<IdStaffDto, ReadStaffDto>
|
||||
{
|
||||
public override void Configure()
|
||||
{
|
||||
Get("/api/staff/{Id}");
|
||||
AllowAnonymous();
|
||||
}
|
||||
|
||||
public override async Task HandleAsync(IdStaffDto req, CancellationToken ct)
|
||||
{
|
||||
var staff = await pf3DbContext.Staffs
|
||||
.Where(s => s.Id == req.Id)
|
||||
.Select(s => new ReadStaffDto
|
||||
{
|
||||
Id = s.Id,
|
||||
FirstName = s.FirstName,
|
||||
LastName = s.LastName,
|
||||
Profession = s.Profession,
|
||||
Email = s.Email
|
||||
})
|
||||
.FirstOrDefaultAsync(ct);
|
||||
|
||||
if (staff is null)
|
||||
{
|
||||
await Send.NotFoundAsync(ct);
|
||||
return;
|
||||
}
|
||||
|
||||
await Send.OkAsync(staff, ct);
|
||||
}
|
||||
}
|
43
PF3/Endpoints/Staff/UpdateStaffEndpoint.cs
Normal file
43
PF3/Endpoints/Staff/UpdateStaffEndpoint.cs
Normal file
@@ -0,0 +1,43 @@
|
||||
using FastEndpoints;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using PF3.DTO.Staff.Request;
|
||||
using PF3.DTO.Staff.Response;
|
||||
|
||||
namespace PF3.Endpoints.Staff;
|
||||
|
||||
public class UpdateStaffEndpoint(PF3DbContext pf3DbContext) : Endpoint<UpdateStaffDto, ReadStaffDto>
|
||||
{
|
||||
public override void Configure()
|
||||
{
|
||||
Put("/api/staff/{Id}");
|
||||
AllowAnonymous();
|
||||
}
|
||||
|
||||
public override async Task HandleAsync(UpdateStaffDto req, CancellationToken ct)
|
||||
{
|
||||
var staff = await pf3DbContext.Staffs.FirstOrDefaultAsync(s => s.Id == req.Id, ct);
|
||||
if (staff is null)
|
||||
{
|
||||
await Send.NotFoundAsync(ct);
|
||||
return;
|
||||
}
|
||||
|
||||
staff.FirstName = req.FirstName;
|
||||
staff.LastName = req.LastName;
|
||||
staff.Profession = req.Profession;
|
||||
staff.Email = req.Email;
|
||||
|
||||
await pf3DbContext.SaveChangesAsync(ct);
|
||||
|
||||
var result = new ReadStaffDto
|
||||
{
|
||||
Id = staff.Id,
|
||||
FirstName = staff.FirstName,
|
||||
LastName = staff.LastName,
|
||||
Profession = staff.Profession,
|
||||
Email = staff.Email
|
||||
};
|
||||
|
||||
await Send.OkAsync(result, ct);
|
||||
}
|
||||
}
|
40
PF3/Endpoints/Truck/CreateTruckEndpoint.cs
Normal file
40
PF3/Endpoints/Truck/CreateTruckEndpoint.cs
Normal file
@@ -0,0 +1,40 @@
|
||||
using FastEndpoints;
|
||||
using PF3.DTO.Truck.Request;
|
||||
using PF3.DTO.Truck.Response;
|
||||
|
||||
namespace PF3.Endpoints.Truck;
|
||||
|
||||
public class CreateTruckEndpoint(PF3DbContext pf3DbContext):Endpoint<CreateTruckDto, ReadTruckDto>
|
||||
{
|
||||
public override void Configure()
|
||||
{
|
||||
Post("/api/truck");
|
||||
AllowAnonymous();
|
||||
}
|
||||
|
||||
public override async Task HandleAsync(CreateTruckDto req, CancellationToken ct)
|
||||
{
|
||||
var truck = new Models.Truck
|
||||
{
|
||||
Type = req.Type,
|
||||
MaxExplosiveCapacity = req.MaxExplosiveCapacity,
|
||||
Sizes = req.Sizes,
|
||||
Statut = req.Statut
|
||||
};
|
||||
|
||||
pf3DbContext.Trucks.Add(truck);
|
||||
await pf3DbContext.SaveChangesAsync(ct);
|
||||
|
||||
var result = new ReadTruckDto()
|
||||
{
|
||||
Id = truck.Id,
|
||||
Type = truck.Type,
|
||||
MaxExplosiveCapacity = truck.MaxExplosiveCapacity,
|
||||
Sizes = truck.Sizes,
|
||||
Statut = truck.Statut
|
||||
};
|
||||
|
||||
await Send.OkAsync(result, ct);
|
||||
|
||||
}
|
||||
}
|
24
PF3/Endpoints/Truck/DeleteTruckEndpoint.cs
Normal file
24
PF3/Endpoints/Truck/DeleteTruckEndpoint.cs
Normal file
@@ -0,0 +1,24 @@
|
||||
using PF3.DTO.Truck.Request;
|
||||
using FastEndpoints;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using PF3;
|
||||
|
||||
namespace ApiLibrary.Endpoints.Truck;
|
||||
|
||||
public class DeleteTruckEndpoint(PF3DbContext pf3DbContext) : Endpoint<IdTruckDto>
|
||||
{
|
||||
public override void Configure()
|
||||
{
|
||||
Delete("/api/trucks/{@Id}", x => new { x.Id });
|
||||
}
|
||||
|
||||
public override async Task HandleAsync(IdTruckDto req, CancellationToken ct)
|
||||
{
|
||||
var truck = await pf3DbContext.Trucks.FirstOrDefaultAsync(a => a.Id == req.Id, ct);
|
||||
|
||||
pf3DbContext.Trucks.Remove(truck);
|
||||
await pf3DbContext.SaveChangesAsync(ct);
|
||||
|
||||
await Send.OkAsync(ct);
|
||||
}
|
||||
}
|
33
PF3/Endpoints/Truck/GetAllTruckEndpoint.cs
Normal file
33
PF3/Endpoints/Truck/GetAllTruckEndpoint.cs
Normal file
@@ -0,0 +1,33 @@
|
||||
using PF3.DTO.Truck.Response;
|
||||
using FastEndpoints;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using PF3;
|
||||
|
||||
namespace PF3.Endpoints.Truck;
|
||||
|
||||
public class GetAllTrucksEndpoint(PF3DbContext pf3DbContext) : EndpointWithoutRequest<List<ReadTruckDto>>
|
||||
{
|
||||
public override void Configure()
|
||||
{
|
||||
Get("/api/trucks");
|
||||
}
|
||||
|
||||
public override async Task HandleAsync(CancellationToken ct)
|
||||
{
|
||||
var trucks = await pf3DbContext.Trucks.ToListAsync(ct);
|
||||
|
||||
var result = trucks
|
||||
.Select(truck => new ReadTruckDto
|
||||
{
|
||||
Id = truck.Id,
|
||||
Type = truck.Type,
|
||||
MaxExplosiveCapacity = truck.MaxExplosiveCapacity,
|
||||
Sizes = truck.Sizes,
|
||||
Statut = truck.Statut,
|
||||
ShowId = truck.ShowId
|
||||
})
|
||||
.ToList();
|
||||
|
||||
await Send.OkAsync(result, ct);
|
||||
}
|
||||
}
|
39
PF3/Endpoints/Truck/GetTruckEndpoint.cs
Normal file
39
PF3/Endpoints/Truck/GetTruckEndpoint.cs
Normal file
@@ -0,0 +1,39 @@
|
||||
using PF3.DTO.Truck.Request;
|
||||
using PF3.DTO.Truck.Response;
|
||||
using FastEndpoints;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using PF3;
|
||||
|
||||
namespace PF3.Endpoints.Truck;
|
||||
|
||||
public class GetTruckEndpoint(PF3DbContext pf3DbContext) : Endpoint<IdTruckDto, ReadTruckDto>
|
||||
{
|
||||
public override void Configure()
|
||||
{
|
||||
Get("/api/trucks/{@Id}");
|
||||
}
|
||||
|
||||
public override async Task HandleAsync(IdTruckDto req, CancellationToken ct)
|
||||
{
|
||||
var truck = await pf3DbContext.Trucks
|
||||
.Where(t => t.Id == req.Id)
|
||||
.Select(t => new ReadTruckDto
|
||||
{
|
||||
Id = t.Id,
|
||||
Type = t.Type,
|
||||
MaxExplosiveCapacity = t.MaxExplosiveCapacity,
|
||||
Sizes = t.Sizes,
|
||||
Statut = t.Statut,
|
||||
ShowId = t.ShowId
|
||||
})
|
||||
.FirstOrDefaultAsync(ct);
|
||||
|
||||
if (truck is null)
|
||||
{
|
||||
await Send.NotFoundAsync(ct);
|
||||
return;
|
||||
}
|
||||
|
||||
await Send.OkAsync(truck, ct);
|
||||
}
|
||||
}
|
48
PF3/Endpoints/Truck/UpdateTruckEndpoint.cs
Normal file
48
PF3/Endpoints/Truck/UpdateTruckEndpoint.cs
Normal file
@@ -0,0 +1,48 @@
|
||||
using PF3.DTO.Truck.Request;
|
||||
using PF3.DTO.Truck.Response;
|
||||
using FastEndpoints;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using PF3;
|
||||
|
||||
namespace PF3.Endpoints.Truck;
|
||||
|
||||
public class UpdateTruckEndpoint(PF3DbContext pf3DbContext) : Endpoint<UpdateTruckDto, ReadTruckDto>
|
||||
{
|
||||
public override void Configure()
|
||||
{
|
||||
Put("/api/trucks/{id}");
|
||||
}
|
||||
|
||||
public override async Task HandleAsync(UpdateTruckDto req, CancellationToken ct)
|
||||
{
|
||||
var id = Route<int>("id");
|
||||
|
||||
var truck = await pf3DbContext.Trucks.FirstOrDefaultAsync(t => t.Id == id, ct);
|
||||
|
||||
if (truck is null)
|
||||
{
|
||||
await Send.NotFoundAsync(ct);
|
||||
return;
|
||||
}
|
||||
|
||||
truck.Type = req.Type;
|
||||
truck.MaxExplosiveCapacity = req.MaxExplosiveCapacity;
|
||||
truck.Sizes = req.Sizes;
|
||||
truck.Statut = req.Statut;
|
||||
truck.ShowId = req.ShowId;
|
||||
|
||||
await pf3DbContext.SaveChangesAsync(ct);
|
||||
|
||||
var result = new ReadTruckDto
|
||||
{
|
||||
Id = truck.Id,
|
||||
Type = truck.Type,
|
||||
MaxExplosiveCapacity = truck.MaxExplosiveCapacity,
|
||||
Sizes = truck.Sizes,
|
||||
Statut = truck.Statut,
|
||||
ShowId = truck.ShowId
|
||||
};
|
||||
|
||||
await Send.OkAsync(result, ct);
|
||||
}
|
||||
}
|
@@ -7,10 +7,10 @@ public class Staff
|
||||
[Key] public int Id { get; set; }
|
||||
|
||||
[Required, MaxLength(60)]
|
||||
public string FirstName { get; set; } = null!;
|
||||
public string? FirstName { get; set; } = null!;
|
||||
|
||||
[Required, MaxLength(60)]
|
||||
public string LastName { get; set; } = null!;
|
||||
public string? LastName { get; set; } = null!;
|
||||
|
||||
[Required, MaxLength(100)]
|
||||
public string? Profession { get; set; }
|
||||
|
@@ -7,10 +7,10 @@ public class Truck
|
||||
[Key] public int Id { get; set; }
|
||||
|
||||
[Required, MaxLength(40)]
|
||||
public string Type { get; set; } = null!;
|
||||
public string? Type { get; set; } = null!;
|
||||
|
||||
[Range(0, double.MaxValue)]
|
||||
public double? MaxExplosiveCapacity { get; set; }
|
||||
public string? MaxExplosiveCapacity { get; set; }
|
||||
|
||||
[Required, MaxLength(80)]
|
||||
public string? Sizes { get; set; }
|
||||
@@ -19,6 +19,6 @@ public class Truck
|
||||
public string? Statut { get; set; }
|
||||
|
||||
[Required]
|
||||
public int ShowId { get; set; }
|
||||
public int? ShowId { get; set; }
|
||||
public Show? Show { get; set; }
|
||||
}
|
@@ -7,7 +7,15 @@
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="FastEndpoints" Version="7.0.1" />
|
||||
<PackageReference Include="FastEndpoints.Swagger" Version="7.0.1" />
|
||||
<PackageReference Include="Microsoft.AspNetCore.OpenApi" Version="8.0.20"/>
|
||||
<PackageReference Include="Microsoft.EntityFrameworkCore" Version="8.0.20" />
|
||||
<PackageReference Include="Microsoft.EntityFrameworkCore.Design" Version="8.0.20">
|
||||
<PrivateAssets>all</PrivateAssets>
|
||||
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
|
||||
</PackageReference>
|
||||
<PackageReference Include="Microsoft.EntityFrameworkCore.SqlServer" Version="8.0.20" />
|
||||
<PackageReference Include="Swashbuckle.AspNetCore" Version="6.6.2"/>
|
||||
</ItemGroup>
|
||||
|
||||
@@ -15,7 +23,9 @@
|
||||
<Folder Include="DTO\Show\" />
|
||||
<Folder Include="DTO\SoundCategory\" />
|
||||
<Folder Include="DTO\SoundTimecode\" />
|
||||
<Folder Include="Endpoint\" />
|
||||
<Folder Include="Endpoints\Show\" />
|
||||
<Folder Include="Endpoints\SoundTimecode\" />
|
||||
<Folder Include="Endpoints\Sound\" />
|
||||
</ItemGroup>
|
||||
|
||||
</Project>
|
||||
|
33
PF3/PF3DbContext.cs
Normal file
33
PF3/PF3DbContext.cs
Normal file
@@ -0,0 +1,33 @@
|
||||
using PF3.Models;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
|
||||
namespace PF3;
|
||||
|
||||
public class PF3DbContext : DbContext
|
||||
{
|
||||
public DbSet<Show> Shows { get; set; }
|
||||
public DbSet<Sound> Sounds { get; set; }
|
||||
public DbSet<SoundCategory> SoundsCategorys { get; set; }
|
||||
public DbSet<SoundTimecode> SoundsTimecodes { get; set; }
|
||||
public DbSet<Staff> Staffs { get; set; }
|
||||
public DbSet<Truck> Trucks { get; set; }
|
||||
|
||||
protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder)//Configuration de la connexion à la BDD
|
||||
{
|
||||
/*
|
||||
string connectionString =
|
||||
"Server=romaric-thibault.fr;" +
|
||||
"Database=timothe_EfCoreLibrary;" +
|
||||
"User Id=timothe;" +
|
||||
"Password=Onto9-Cage-Afflicted;" +
|
||||
"TrustServerCertificate=true;";
|
||||
|
||||
optionsBuilder.UseSqlServer(connectionString);
|
||||
*/
|
||||
}
|
||||
|
||||
protected override void OnModelCreating(ModelBuilder modelBuilder)
|
||||
{
|
||||
//Vide pour le moment
|
||||
}
|
||||
}
|
@@ -13,7 +13,7 @@ using System.Reflection;
|
||||
[assembly: System.Reflection.AssemblyCompanyAttribute("PF3")]
|
||||
[assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")]
|
||||
[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")]
|
||||
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+c16eba08827f01fcea3f0239460ae6e6545a6391")]
|
||||
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+8d0c2aa3f65ecf346de689fc5cf245d03bdfa389")]
|
||||
[assembly: System.Reflection.AssemblyProductAttribute("PF3")]
|
||||
[assembly: System.Reflection.AssemblyTitleAttribute("PF3")]
|
||||
[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")]
|
||||
|
@@ -1 +1 @@
|
||||
c64d534fc592784bab27bfe1baf1dd346f89292103323f949322a81fd17722c6
|
||||
ee982ef4ec9c48c98f177c2b539dc42b46b252a39b493b307728df084d0fdc9e
|
||||
|
Binary file not shown.
Binary file not shown.
@@ -49,10 +49,32 @@
|
||||
"net8.0": {
|
||||
"targetAlias": "net8.0",
|
||||
"dependencies": {
|
||||
"FastEndpoints": {
|
||||
"target": "Package",
|
||||
"version": "[7.0.1, )"
|
||||
},
|
||||
"FastEndpoints.Swagger": {
|
||||
"target": "Package",
|
||||
"version": "[7.0.1, )"
|
||||
},
|
||||
"Microsoft.AspNetCore.OpenApi": {
|
||||
"target": "Package",
|
||||
"version": "[8.0.20, )"
|
||||
},
|
||||
"Microsoft.EntityFrameworkCore": {
|
||||
"target": "Package",
|
||||
"version": "[8.0.20, )"
|
||||
},
|
||||
"Microsoft.EntityFrameworkCore.Design": {
|
||||
"include": "Runtime, Build, Native, ContentFiles, Analyzers, BuildTransitive",
|
||||
"suppressParent": "All",
|
||||
"target": "Package",
|
||||
"version": "[8.0.20, )"
|
||||
},
|
||||
"Microsoft.EntityFrameworkCore.SqlServer": {
|
||||
"target": "Package",
|
||||
"version": "[8.0.20, )"
|
||||
},
|
||||
"Swashbuckle.AspNetCore": {
|
||||
"target": "Package",
|
||||
"version": "[6.6.2, )"
|
||||
|
@@ -14,10 +14,13 @@
|
||||
<SourceRoot Include="C:\Program Files (x86)\Microsoft Visual Studio\Shared\NuGetPackages\" />
|
||||
</ItemGroup>
|
||||
<ImportGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
|
||||
<Import Project="$(NuGetPackageRoot)microsoft.extensions.apidescription.server\6.0.5\build\Microsoft.Extensions.ApiDescription.Server.props" Condition="Exists('$(NuGetPackageRoot)microsoft.extensions.apidescription.server\6.0.5\build\Microsoft.Extensions.ApiDescription.Server.props')" />
|
||||
<Import Project="$(NuGetPackageRoot)microsoft.extensions.apidescription.server\8.0.14\build\Microsoft.Extensions.ApiDescription.Server.props" Condition="Exists('$(NuGetPackageRoot)microsoft.extensions.apidescription.server\8.0.14\build\Microsoft.Extensions.ApiDescription.Server.props')" />
|
||||
<Import Project="$(NuGetPackageRoot)swashbuckle.aspnetcore\6.6.2\build\Swashbuckle.AspNetCore.props" Condition="Exists('$(NuGetPackageRoot)swashbuckle.aspnetcore\6.6.2\build\Swashbuckle.AspNetCore.props')" />
|
||||
<Import Project="$(NuGetPackageRoot)microsoft.entityframeworkcore\8.0.20\buildTransitive\net8.0\Microsoft.EntityFrameworkCore.props" Condition="Exists('$(NuGetPackageRoot)microsoft.entityframeworkcore\8.0.20\buildTransitive\net8.0\Microsoft.EntityFrameworkCore.props')" />
|
||||
<Import Project="$(NuGetPackageRoot)microsoft.entityframeworkcore.design\8.0.20\build\net8.0\Microsoft.EntityFrameworkCore.Design.props" Condition="Exists('$(NuGetPackageRoot)microsoft.entityframeworkcore.design\8.0.20\build\net8.0\Microsoft.EntityFrameworkCore.Design.props')" />
|
||||
</ImportGroup>
|
||||
<PropertyGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
|
||||
<PkgMicrosoft_Extensions_ApiDescription_Server Condition=" '$(PkgMicrosoft_Extensions_ApiDescription_Server)' == '' ">C:\Users\timot\.nuget\packages\microsoft.extensions.apidescription.server\6.0.5</PkgMicrosoft_Extensions_ApiDescription_Server>
|
||||
<PkgMicrosoft_Extensions_ApiDescription_Server Condition=" '$(PkgMicrosoft_Extensions_ApiDescription_Server)' == '' ">C:\Users\timot\.nuget\packages\microsoft.extensions.apidescription.server\8.0.14</PkgMicrosoft_Extensions_ApiDescription_Server>
|
||||
<PkgMicrosoft_CodeAnalysis_Analyzers Condition=" '$(PkgMicrosoft_CodeAnalysis_Analyzers)' == '' ">C:\Users\timot\.nuget\packages\microsoft.codeanalysis.analyzers\3.3.3</PkgMicrosoft_CodeAnalysis_Analyzers>
|
||||
</PropertyGroup>
|
||||
</Project>
|
@@ -1,6 +1,8 @@
|
||||
<?xml version="1.0" encoding="utf-8" standalone="no"?>
|
||||
<Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<ImportGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
|
||||
<Import Project="$(NuGetPackageRoot)microsoft.extensions.apidescription.server\6.0.5\build\Microsoft.Extensions.ApiDescription.Server.targets" Condition="Exists('$(NuGetPackageRoot)microsoft.extensions.apidescription.server\6.0.5\build\Microsoft.Extensions.ApiDescription.Server.targets')" />
|
||||
<Import Project="$(NuGetPackageRoot)microsoft.extensions.apidescription.server\8.0.14\build\Microsoft.Extensions.ApiDescription.Server.targets" Condition="Exists('$(NuGetPackageRoot)microsoft.extensions.apidescription.server\8.0.14\build\Microsoft.Extensions.ApiDescription.Server.targets')" />
|
||||
<Import Project="$(NuGetPackageRoot)microsoft.extensions.options\8.0.2\buildTransitive\net6.0\Microsoft.Extensions.Options.targets" Condition="Exists('$(NuGetPackageRoot)microsoft.extensions.options\8.0.2\buildTransitive\net6.0\Microsoft.Extensions.Options.targets')" />
|
||||
<Import Project="$(NuGetPackageRoot)microsoft.extensions.logging.abstractions\8.0.2\buildTransitive\net6.0\Microsoft.Extensions.Logging.Abstractions.targets" Condition="Exists('$(NuGetPackageRoot)microsoft.extensions.logging.abstractions\8.0.2\buildTransitive\net6.0\Microsoft.Extensions.Logging.Abstractions.targets')" />
|
||||
</ImportGroup>
|
||||
</Project>
|
File diff suppressed because it is too large
Load Diff
@@ -1,16 +1,111 @@
|
||||
{
|
||||
"version": 2,
|
||||
"dgSpecHash": "PTOV/VCB8nk=",
|
||||
"dgSpecHash": "bpb8bwc/Oyg=",
|
||||
"success": true,
|
||||
"projectFilePath": "C:\\Users\\timot\\RiderProjects\\PF3\\AP-WEB-PF3\\PF3\\PF3.csproj",
|
||||
"expectedPackageFiles": [
|
||||
"C:\\Users\\timot\\.nuget\\packages\\azure.core\\1.38.0\\azure.core.1.38.0.nupkg.sha512",
|
||||
"C:\\Users\\timot\\.nuget\\packages\\azure.identity\\1.11.4\\azure.identity.1.11.4.nupkg.sha512",
|
||||
"C:\\Users\\timot\\.nuget\\packages\\fastendpoints\\7.0.1\\fastendpoints.7.0.1.nupkg.sha512",
|
||||
"C:\\Users\\timot\\.nuget\\packages\\fastendpoints.attributes\\7.0.1\\fastendpoints.attributes.7.0.1.nupkg.sha512",
|
||||
"C:\\Users\\timot\\.nuget\\packages\\fastendpoints.messaging.core\\7.0.1\\fastendpoints.messaging.core.7.0.1.nupkg.sha512",
|
||||
"C:\\Users\\timot\\.nuget\\packages\\fastendpoints.swagger\\7.0.1\\fastendpoints.swagger.7.0.1.nupkg.sha512",
|
||||
"C:\\Users\\timot\\.nuget\\packages\\fluentvalidation\\12.0.0\\fluentvalidation.12.0.0.nupkg.sha512",
|
||||
"C:\\Users\\timot\\.nuget\\packages\\humanizer.core\\2.14.1\\humanizer.core.2.14.1.nupkg.sha512",
|
||||
"C:\\Users\\timot\\.nuget\\packages\\microsoft.aspnetcore.openapi\\8.0.20\\microsoft.aspnetcore.openapi.8.0.20.nupkg.sha512",
|
||||
"C:\\Users\\timot\\.nuget\\packages\\microsoft.extensions.apidescription.server\\6.0.5\\microsoft.extensions.apidescription.server.6.0.5.nupkg.sha512",
|
||||
"C:\\Users\\timot\\.nuget\\packages\\microsoft.bcl.asyncinterfaces\\6.0.0\\microsoft.bcl.asyncinterfaces.6.0.0.nupkg.sha512",
|
||||
"C:\\Users\\timot\\.nuget\\packages\\microsoft.codeanalysis.analyzers\\3.3.3\\microsoft.codeanalysis.analyzers.3.3.3.nupkg.sha512",
|
||||
"C:\\Users\\timot\\.nuget\\packages\\microsoft.codeanalysis.common\\4.5.0\\microsoft.codeanalysis.common.4.5.0.nupkg.sha512",
|
||||
"C:\\Users\\timot\\.nuget\\packages\\microsoft.codeanalysis.csharp\\4.5.0\\microsoft.codeanalysis.csharp.4.5.0.nupkg.sha512",
|
||||
"C:\\Users\\timot\\.nuget\\packages\\microsoft.codeanalysis.csharp.workspaces\\4.5.0\\microsoft.codeanalysis.csharp.workspaces.4.5.0.nupkg.sha512",
|
||||
"C:\\Users\\timot\\.nuget\\packages\\microsoft.codeanalysis.workspaces.common\\4.5.0\\microsoft.codeanalysis.workspaces.common.4.5.0.nupkg.sha512",
|
||||
"C:\\Users\\timot\\.nuget\\packages\\microsoft.csharp\\4.5.0\\microsoft.csharp.4.5.0.nupkg.sha512",
|
||||
"C:\\Users\\timot\\.nuget\\packages\\microsoft.data.sqlclient\\5.1.6\\microsoft.data.sqlclient.5.1.6.nupkg.sha512",
|
||||
"C:\\Users\\timot\\.nuget\\packages\\microsoft.data.sqlclient.sni.runtime\\5.1.1\\microsoft.data.sqlclient.sni.runtime.5.1.1.nupkg.sha512",
|
||||
"C:\\Users\\timot\\.nuget\\packages\\microsoft.entityframeworkcore\\8.0.20\\microsoft.entityframeworkcore.8.0.20.nupkg.sha512",
|
||||
"C:\\Users\\timot\\.nuget\\packages\\microsoft.entityframeworkcore.abstractions\\8.0.20\\microsoft.entityframeworkcore.abstractions.8.0.20.nupkg.sha512",
|
||||
"C:\\Users\\timot\\.nuget\\packages\\microsoft.entityframeworkcore.analyzers\\8.0.20\\microsoft.entityframeworkcore.analyzers.8.0.20.nupkg.sha512",
|
||||
"C:\\Users\\timot\\.nuget\\packages\\microsoft.entityframeworkcore.design\\8.0.20\\microsoft.entityframeworkcore.design.8.0.20.nupkg.sha512",
|
||||
"C:\\Users\\timot\\.nuget\\packages\\microsoft.entityframeworkcore.relational\\8.0.20\\microsoft.entityframeworkcore.relational.8.0.20.nupkg.sha512",
|
||||
"C:\\Users\\timot\\.nuget\\packages\\microsoft.entityframeworkcore.sqlserver\\8.0.20\\microsoft.entityframeworkcore.sqlserver.8.0.20.nupkg.sha512",
|
||||
"C:\\Users\\timot\\.nuget\\packages\\microsoft.extensions.apidescription.server\\8.0.14\\microsoft.extensions.apidescription.server.8.0.14.nupkg.sha512",
|
||||
"C:\\Users\\timot\\.nuget\\packages\\microsoft.extensions.caching.abstractions\\8.0.0\\microsoft.extensions.caching.abstractions.8.0.0.nupkg.sha512",
|
||||
"C:\\Users\\timot\\.nuget\\packages\\microsoft.extensions.caching.memory\\8.0.1\\microsoft.extensions.caching.memory.8.0.1.nupkg.sha512",
|
||||
"C:\\Users\\timot\\.nuget\\packages\\microsoft.extensions.configuration.abstractions\\8.0.0\\microsoft.extensions.configuration.abstractions.8.0.0.nupkg.sha512",
|
||||
"C:\\Users\\timot\\.nuget\\packages\\microsoft.extensions.dependencyinjection\\8.0.1\\microsoft.extensions.dependencyinjection.8.0.1.nupkg.sha512",
|
||||
"C:\\Users\\timot\\.nuget\\packages\\microsoft.extensions.dependencyinjection.abstractions\\8.0.2\\microsoft.extensions.dependencyinjection.abstractions.8.0.2.nupkg.sha512",
|
||||
"C:\\Users\\timot\\.nuget\\packages\\microsoft.extensions.dependencymodel\\8.0.2\\microsoft.extensions.dependencymodel.8.0.2.nupkg.sha512",
|
||||
"C:\\Users\\timot\\.nuget\\packages\\microsoft.extensions.fileproviders.abstractions\\8.0.0\\microsoft.extensions.fileproviders.abstractions.8.0.0.nupkg.sha512",
|
||||
"C:\\Users\\timot\\.nuget\\packages\\microsoft.extensions.fileproviders.embedded\\8.0.0\\microsoft.extensions.fileproviders.embedded.8.0.0.nupkg.sha512",
|
||||
"C:\\Users\\timot\\.nuget\\packages\\microsoft.extensions.logging\\8.0.1\\microsoft.extensions.logging.8.0.1.nupkg.sha512",
|
||||
"C:\\Users\\timot\\.nuget\\packages\\microsoft.extensions.logging.abstractions\\8.0.2\\microsoft.extensions.logging.abstractions.8.0.2.nupkg.sha512",
|
||||
"C:\\Users\\timot\\.nuget\\packages\\microsoft.extensions.options\\8.0.2\\microsoft.extensions.options.8.0.2.nupkg.sha512",
|
||||
"C:\\Users\\timot\\.nuget\\packages\\microsoft.extensions.primitives\\8.0.0\\microsoft.extensions.primitives.8.0.0.nupkg.sha512",
|
||||
"C:\\Users\\timot\\.nuget\\packages\\microsoft.identity.client\\4.61.3\\microsoft.identity.client.4.61.3.nupkg.sha512",
|
||||
"C:\\Users\\timot\\.nuget\\packages\\microsoft.identity.client.extensions.msal\\4.61.3\\microsoft.identity.client.extensions.msal.4.61.3.nupkg.sha512",
|
||||
"C:\\Users\\timot\\.nuget\\packages\\microsoft.identitymodel.abstractions\\6.35.0\\microsoft.identitymodel.abstractions.6.35.0.nupkg.sha512",
|
||||
"C:\\Users\\timot\\.nuget\\packages\\microsoft.identitymodel.jsonwebtokens\\6.35.0\\microsoft.identitymodel.jsonwebtokens.6.35.0.nupkg.sha512",
|
||||
"C:\\Users\\timot\\.nuget\\packages\\microsoft.identitymodel.logging\\6.35.0\\microsoft.identitymodel.logging.6.35.0.nupkg.sha512",
|
||||
"C:\\Users\\timot\\.nuget\\packages\\microsoft.identitymodel.protocols\\6.35.0\\microsoft.identitymodel.protocols.6.35.0.nupkg.sha512",
|
||||
"C:\\Users\\timot\\.nuget\\packages\\microsoft.identitymodel.protocols.openidconnect\\6.35.0\\microsoft.identitymodel.protocols.openidconnect.6.35.0.nupkg.sha512",
|
||||
"C:\\Users\\timot\\.nuget\\packages\\microsoft.identitymodel.tokens\\6.35.0\\microsoft.identitymodel.tokens.6.35.0.nupkg.sha512",
|
||||
"C:\\Users\\timot\\.nuget\\packages\\microsoft.netcore.platforms\\1.1.0\\microsoft.netcore.platforms.1.1.0.nupkg.sha512",
|
||||
"C:\\Users\\timot\\.nuget\\packages\\microsoft.netcore.targets\\1.1.0\\microsoft.netcore.targets.1.1.0.nupkg.sha512",
|
||||
"C:\\Users\\timot\\.nuget\\packages\\microsoft.openapi\\1.6.14\\microsoft.openapi.1.6.14.nupkg.sha512",
|
||||
"C:\\Users\\timot\\.nuget\\packages\\microsoft.sqlserver.server\\1.0.0\\microsoft.sqlserver.server.1.0.0.nupkg.sha512",
|
||||
"C:\\Users\\timot\\.nuget\\packages\\microsoft.win32.systemevents\\6.0.0\\microsoft.win32.systemevents.6.0.0.nupkg.sha512",
|
||||
"C:\\Users\\timot\\.nuget\\packages\\mono.texttemplating\\2.2.1\\mono.texttemplating.2.2.1.nupkg.sha512",
|
||||
"C:\\Users\\timot\\.nuget\\packages\\namotion.reflection\\3.4.2\\namotion.reflection.3.4.2.nupkg.sha512",
|
||||
"C:\\Users\\timot\\.nuget\\packages\\newtonsoft.json\\13.0.3\\newtonsoft.json.13.0.3.nupkg.sha512",
|
||||
"C:\\Users\\timot\\.nuget\\packages\\njsonschema\\11.3.2\\njsonschema.11.3.2.nupkg.sha512",
|
||||
"C:\\Users\\timot\\.nuget\\packages\\njsonschema.annotations\\11.3.2\\njsonschema.annotations.11.3.2.nupkg.sha512",
|
||||
"C:\\Users\\timot\\.nuget\\packages\\njsonschema.newtonsoftjson\\11.3.2\\njsonschema.newtonsoftjson.11.3.2.nupkg.sha512",
|
||||
"C:\\Users\\timot\\.nuget\\packages\\njsonschema.yaml\\11.3.2\\njsonschema.yaml.11.3.2.nupkg.sha512",
|
||||
"C:\\Users\\timot\\.nuget\\packages\\nswag.annotations\\14.4.0\\nswag.annotations.14.4.0.nupkg.sha512",
|
||||
"C:\\Users\\timot\\.nuget\\packages\\nswag.aspnetcore\\14.4.0\\nswag.aspnetcore.14.4.0.nupkg.sha512",
|
||||
"C:\\Users\\timot\\.nuget\\packages\\nswag.core\\14.4.0\\nswag.core.14.4.0.nupkg.sha512",
|
||||
"C:\\Users\\timot\\.nuget\\packages\\nswag.core.yaml\\14.4.0\\nswag.core.yaml.14.4.0.nupkg.sha512",
|
||||
"C:\\Users\\timot\\.nuget\\packages\\nswag.generation\\14.4.0\\nswag.generation.14.4.0.nupkg.sha512",
|
||||
"C:\\Users\\timot\\.nuget\\packages\\nswag.generation.aspnetcore\\14.4.0\\nswag.generation.aspnetcore.14.4.0.nupkg.sha512",
|
||||
"C:\\Users\\timot\\.nuget\\packages\\swashbuckle.aspnetcore\\6.6.2\\swashbuckle.aspnetcore.6.6.2.nupkg.sha512",
|
||||
"C:\\Users\\timot\\.nuget\\packages\\swashbuckle.aspnetcore.swagger\\6.6.2\\swashbuckle.aspnetcore.swagger.6.6.2.nupkg.sha512",
|
||||
"C:\\Users\\timot\\.nuget\\packages\\swashbuckle.aspnetcore.swaggergen\\6.6.2\\swashbuckle.aspnetcore.swaggergen.6.6.2.nupkg.sha512",
|
||||
"C:\\Users\\timot\\.nuget\\packages\\swashbuckle.aspnetcore.swaggerui\\6.6.2\\swashbuckle.aspnetcore.swaggerui.6.6.2.nupkg.sha512"
|
||||
"C:\\Users\\timot\\.nuget\\packages\\swashbuckle.aspnetcore.swaggerui\\6.6.2\\swashbuckle.aspnetcore.swaggerui.6.6.2.nupkg.sha512",
|
||||
"C:\\Users\\timot\\.nuget\\packages\\system.clientmodel\\1.0.0\\system.clientmodel.1.0.0.nupkg.sha512",
|
||||
"C:\\Users\\timot\\.nuget\\packages\\system.codedom\\4.4.0\\system.codedom.4.4.0.nupkg.sha512",
|
||||
"C:\\Users\\timot\\.nuget\\packages\\system.collections.immutable\\6.0.0\\system.collections.immutable.6.0.0.nupkg.sha512",
|
||||
"C:\\Users\\timot\\.nuget\\packages\\system.composition\\6.0.0\\system.composition.6.0.0.nupkg.sha512",
|
||||
"C:\\Users\\timot\\.nuget\\packages\\system.composition.attributedmodel\\6.0.0\\system.composition.attributedmodel.6.0.0.nupkg.sha512",
|
||||
"C:\\Users\\timot\\.nuget\\packages\\system.composition.convention\\6.0.0\\system.composition.convention.6.0.0.nupkg.sha512",
|
||||
"C:\\Users\\timot\\.nuget\\packages\\system.composition.hosting\\6.0.0\\system.composition.hosting.6.0.0.nupkg.sha512",
|
||||
"C:\\Users\\timot\\.nuget\\packages\\system.composition.runtime\\6.0.0\\system.composition.runtime.6.0.0.nupkg.sha512",
|
||||
"C:\\Users\\timot\\.nuget\\packages\\system.composition.typedparts\\6.0.0\\system.composition.typedparts.6.0.0.nupkg.sha512",
|
||||
"C:\\Users\\timot\\.nuget\\packages\\system.configuration.configurationmanager\\6.0.1\\system.configuration.configurationmanager.6.0.1.nupkg.sha512",
|
||||
"C:\\Users\\timot\\.nuget\\packages\\system.diagnostics.diagnosticsource\\6.0.1\\system.diagnostics.diagnosticsource.6.0.1.nupkg.sha512",
|
||||
"C:\\Users\\timot\\.nuget\\packages\\system.drawing.common\\6.0.0\\system.drawing.common.6.0.0.nupkg.sha512",
|
||||
"C:\\Users\\timot\\.nuget\\packages\\system.formats.asn1\\8.0.2\\system.formats.asn1.8.0.2.nupkg.sha512",
|
||||
"C:\\Users\\timot\\.nuget\\packages\\system.identitymodel.tokens.jwt\\6.35.0\\system.identitymodel.tokens.jwt.6.35.0.nupkg.sha512",
|
||||
"C:\\Users\\timot\\.nuget\\packages\\system.io.pipelines\\6.0.3\\system.io.pipelines.6.0.3.nupkg.sha512",
|
||||
"C:\\Users\\timot\\.nuget\\packages\\system.memory\\4.5.4\\system.memory.4.5.4.nupkg.sha512",
|
||||
"C:\\Users\\timot\\.nuget\\packages\\system.memory.data\\1.0.2\\system.memory.data.1.0.2.nupkg.sha512",
|
||||
"C:\\Users\\timot\\.nuget\\packages\\system.numerics.vectors\\4.5.0\\system.numerics.vectors.4.5.0.nupkg.sha512",
|
||||
"C:\\Users\\timot\\.nuget\\packages\\system.reflection.metadata\\6.0.1\\system.reflection.metadata.6.0.1.nupkg.sha512",
|
||||
"C:\\Users\\timot\\.nuget\\packages\\system.runtime\\4.3.0\\system.runtime.4.3.0.nupkg.sha512",
|
||||
"C:\\Users\\timot\\.nuget\\packages\\system.runtime.caching\\6.0.0\\system.runtime.caching.6.0.0.nupkg.sha512",
|
||||
"C:\\Users\\timot\\.nuget\\packages\\system.runtime.compilerservices.unsafe\\6.0.0\\system.runtime.compilerservices.unsafe.6.0.0.nupkg.sha512",
|
||||
"C:\\Users\\timot\\.nuget\\packages\\system.security.accesscontrol\\6.0.0\\system.security.accesscontrol.6.0.0.nupkg.sha512",
|
||||
"C:\\Users\\timot\\.nuget\\packages\\system.security.cryptography.cng\\5.0.0\\system.security.cryptography.cng.5.0.0.nupkg.sha512",
|
||||
"C:\\Users\\timot\\.nuget\\packages\\system.security.cryptography.protecteddata\\6.0.0\\system.security.cryptography.protecteddata.6.0.0.nupkg.sha512",
|
||||
"C:\\Users\\timot\\.nuget\\packages\\system.security.permissions\\6.0.0\\system.security.permissions.6.0.0.nupkg.sha512",
|
||||
"C:\\Users\\timot\\.nuget\\packages\\system.security.principal.windows\\5.0.0\\system.security.principal.windows.5.0.0.nupkg.sha512",
|
||||
"C:\\Users\\timot\\.nuget\\packages\\system.text.encoding\\4.3.0\\system.text.encoding.4.3.0.nupkg.sha512",
|
||||
"C:\\Users\\timot\\.nuget\\packages\\system.text.encoding.codepages\\6.0.0\\system.text.encoding.codepages.6.0.0.nupkg.sha512",
|
||||
"C:\\Users\\timot\\.nuget\\packages\\system.text.encodings.web\\6.0.0\\system.text.encodings.web.6.0.0.nupkg.sha512",
|
||||
"C:\\Users\\timot\\.nuget\\packages\\system.text.json\\4.7.2\\system.text.json.4.7.2.nupkg.sha512",
|
||||
"C:\\Users\\timot\\.nuget\\packages\\system.threading.channels\\6.0.0\\system.threading.channels.6.0.0.nupkg.sha512",
|
||||
"C:\\Users\\timot\\.nuget\\packages\\system.threading.tasks.extensions\\4.5.4\\system.threading.tasks.extensions.4.5.4.nupkg.sha512",
|
||||
"C:\\Users\\timot\\.nuget\\packages\\system.windows.extensions\\6.0.0\\system.windows.extensions.6.0.0.nupkg.sha512",
|
||||
"C:\\Users\\timot\\.nuget\\packages\\yamldotnet\\16.3.0\\yamldotnet.16.3.0.nupkg.sha512"
|
||||
],
|
||||
"logs": []
|
||||
}
|
@@ -1 +1 @@
|
||||
"restore":{"projectUniqueName":"C:\\Users\\timot\\RiderProjects\\PF3\\AP-WEB-PF3\\PF3\\PF3.csproj","projectName":"PF3","projectPath":"C:\\Users\\timot\\RiderProjects\\PF3\\AP-WEB-PF3\\PF3\\PF3.csproj","outputPath":"C:\\Users\\timot\\RiderProjects\\PF3\\AP-WEB-PF3\\PF3\\obj\\","projectStyle":"PackageReference","fallbackFolders":["C:\\Program Files (x86)\\Microsoft Visual Studio\\Shared\\NuGetPackages"],"originalTargetFrameworks":["net8.0"],"sources":{"C:\\Program Files (x86)\\Microsoft SDKs\\NuGetPackages\\":{},"https://api.nuget.org/v3/index.json":{}},"frameworks":{"net8.0":{"targetAlias":"net8.0","projectReferences":{}}},"warningProperties":{"warnAsError":["NU1605"]},"restoreAuditProperties":{"enableAudit":"true","auditLevel":"low","auditMode":"direct"}}"frameworks":{"net8.0":{"targetAlias":"net8.0","dependencies":{"Microsoft.AspNetCore.OpenApi":{"target":"Package","version":"[8.0.20, )"},"Swashbuckle.AspNetCore":{"target":"Package","version":"[6.6.2, )"}},"imports":["net461","net462","net47","net471","net472","net48","net481"],"assetTargetFallback":true,"warn":true,"frameworkReferences":{"Microsoft.AspNetCore.App":{"privateAssets":"none"},"Microsoft.NETCore.App":{"privateAssets":"all"}},"runtimeIdentifierGraphPath":"C:\\Users\\timot\\.dotnet\\sdk\\8.0.414/PortableRuntimeIdentifierGraph.json"}}
|
||||
"restore":{"projectUniqueName":"C:\\Users\\timot\\RiderProjects\\PF3\\AP-WEB-PF3\\PF3\\PF3.csproj","projectName":"PF3","projectPath":"C:\\Users\\timot\\RiderProjects\\PF3\\AP-WEB-PF3\\PF3\\PF3.csproj","outputPath":"C:\\Users\\timot\\RiderProjects\\PF3\\AP-WEB-PF3\\PF3\\obj\\","projectStyle":"PackageReference","fallbackFolders":["C:\\Program Files (x86)\\Microsoft Visual Studio\\Shared\\NuGetPackages"],"originalTargetFrameworks":["net8.0"],"sources":{"C:\\Program Files (x86)\\Microsoft SDKs\\NuGetPackages\\":{},"https://api.nuget.org/v3/index.json":{}},"frameworks":{"net8.0":{"targetAlias":"net8.0","projectReferences":{}}},"warningProperties":{"warnAsError":["NU1605"]},"restoreAuditProperties":{"enableAudit":"true","auditLevel":"low","auditMode":"direct"}}"frameworks":{"net8.0":{"targetAlias":"net8.0","dependencies":{"FastEndpoints":{"target":"Package","version":"[7.0.1, )"},"FastEndpoints.Swagger":{"target":"Package","version":"[7.0.1, )"},"Microsoft.AspNetCore.OpenApi":{"target":"Package","version":"[8.0.20, )"},"Microsoft.EntityFrameworkCore":{"target":"Package","version":"[8.0.20, )"},"Microsoft.EntityFrameworkCore.Design":{"include":"Runtime, Build, Native, ContentFiles, Analyzers, BuildTransitive","suppressParent":"All","target":"Package","version":"[8.0.20, )"},"Microsoft.EntityFrameworkCore.SqlServer":{"target":"Package","version":"[8.0.20, )"},"Swashbuckle.AspNetCore":{"target":"Package","version":"[6.6.2, )"}},"imports":["net461","net462","net47","net471","net472","net48","net481"],"assetTargetFallback":true,"warn":true,"frameworkReferences":{"Microsoft.AspNetCore.App":{"privateAssets":"none"},"Microsoft.NETCore.App":{"privateAssets":"all"}},"runtimeIdentifierGraphPath":"C:\\Users\\timot\\.dotnet\\sdk\\8.0.414/PortableRuntimeIdentifierGraph.json"}}
|
@@ -1 +1 @@
|
||||
17594149183386428
|
||||
17594197379870438
|
@@ -1 +1 @@
|
||||
17594150751917634
|
||||
17594197379870438
|
Reference in New Issue
Block a user