Compare commits
15 Commits
dc9aa8c840
...
develop
| Author | SHA1 | Date | |
|---|---|---|---|
| 1a3ca3fc2d | |||
| 07bd241e0c | |||
| 579f50a2de | |||
|
|
df6e559f00 | ||
|
|
1c1f9b2fcc | ||
|
|
641552fba2 | ||
|
|
3699b28e03 | ||
|
|
26106c5db9 | ||
| b4595c173c | |||
|
|
ecd038f020 | ||
|
|
00b79a58d0 | ||
|
|
7c2e77ed99 | ||
|
|
24613de57c | ||
| 7acd4e7e11 | |||
| 50227abc26 |
@@ -2,5 +2,5 @@ namespace Knots.DTO.Group;
|
||||
|
||||
public class DeleteGroupDto
|
||||
{
|
||||
public string? Id { get; set; }
|
||||
public int? Id { get; set; }
|
||||
}
|
||||
7
Knots/DTO/Group/UpdateGroupMembersAmountDto.cs
Normal file
7
Knots/DTO/Group/UpdateGroupMembersAmountDto.cs
Normal file
@@ -0,0 +1,7 @@
|
||||
namespace Knots.DTO.Group;
|
||||
|
||||
public class UpdateGroupMembersAmountDto
|
||||
{
|
||||
public int Id { get; set; }
|
||||
public int MembersAmount { get; set; }
|
||||
}
|
||||
7
Knots/DTO/Group/UpdateGroupNameDto.cs
Normal file
7
Knots/DTO/Group/UpdateGroupNameDto.cs
Normal file
@@ -0,0 +1,7 @@
|
||||
namespace Knots.DTO.Group;
|
||||
|
||||
public class UpdateGroupNameDto
|
||||
{
|
||||
public int Id { get; set; }
|
||||
public string? Name { get; set; }
|
||||
}
|
||||
@@ -1,6 +0,0 @@
|
||||
namespace Knots.DTO.Group;
|
||||
|
||||
public class UpdateGroupNomDto
|
||||
{
|
||||
public string? Nom { get; set; }
|
||||
}
|
||||
@@ -1,6 +0,0 @@
|
||||
namespace Knots.DTO.Group;
|
||||
|
||||
public class UpdateGroupNombreMembresDto
|
||||
{
|
||||
public int NombreMembres { get; set; }
|
||||
}
|
||||
@@ -2,5 +2,6 @@ namespace Knots.DTO.Group;
|
||||
|
||||
public class UpdateGroupProfilePictureDto
|
||||
{
|
||||
public int Id { get; set; }
|
||||
public string? ProfilePicture { get; set; }
|
||||
}
|
||||
@@ -2,6 +2,7 @@ namespace Knots.DTO.Message;
|
||||
|
||||
public class GetMessageDetailsDto
|
||||
{
|
||||
public int Id { get; set; }
|
||||
public string? Contenu { get; set; }
|
||||
public DateTime Date { get; set; }
|
||||
public Boolean Type { get; set; }
|
||||
|
||||
@@ -1,7 +0,0 @@
|
||||
namespace Knots.DTO.Message;
|
||||
|
||||
public class UpdateMessageDto
|
||||
{
|
||||
public string? Contenu { get; set; }
|
||||
public DateTime Date { get; set; }
|
||||
}
|
||||
8
Knots/DTO/User/UpdateUserContactDto.cs
Normal file
8
Knots/DTO/User/UpdateUserContactDto.cs
Normal file
@@ -0,0 +1,8 @@
|
||||
namespace Knots.DTO.User;
|
||||
|
||||
public class UpdateUserContactDto
|
||||
{
|
||||
public int Id { get; set; }
|
||||
public string? Email { get; set; }
|
||||
public string? Tel { get; set; }
|
||||
}
|
||||
@@ -2,5 +2,6 @@ namespace Knots.DTO.User;
|
||||
|
||||
public class UpdateUserDescriptionDto
|
||||
{
|
||||
public int Id { get; set; }
|
||||
public string? Description {get; set;}
|
||||
}
|
||||
@@ -2,10 +2,5 @@ namespace Knots.DTO.User;
|
||||
|
||||
public class UpdateUserDto
|
||||
{
|
||||
public string? Username { get; set; }
|
||||
public string? Description {get; set;}
|
||||
public string? Password { get; set; }
|
||||
public string? Email { get; set; }
|
||||
public string? Tel { get; set; }
|
||||
public string? ProfilePicture { get; set; }
|
||||
public int Id { get; set; }
|
||||
}
|
||||
@@ -1,6 +0,0 @@
|
||||
namespace Knots.DTO.User;
|
||||
|
||||
public class UpdateUserEmailDto
|
||||
{
|
||||
public string? Email { get; set; }
|
||||
}
|
||||
@@ -2,5 +2,6 @@ namespace Knots.DTO.User;
|
||||
|
||||
public class UpdateUserPasswordDto
|
||||
{
|
||||
public int Id { get; set; }
|
||||
public string? Password { get; set; }
|
||||
}
|
||||
@@ -2,5 +2,6 @@ namespace Knots.DTO.User;
|
||||
|
||||
public class UpdateUserProfilePictureDto
|
||||
{
|
||||
public int Id { get; set; }
|
||||
public string? ProfilePicture { get; set; }
|
||||
}
|
||||
@@ -1,6 +0,0 @@
|
||||
namespace Knots.DTO.User;
|
||||
|
||||
public class UpdateUserTelDto
|
||||
{
|
||||
public string? Tel { get; set; }
|
||||
}
|
||||
@@ -2,5 +2,6 @@ namespace Knots.DTO.User;
|
||||
|
||||
public class UpdateUsernameDto
|
||||
{
|
||||
public int Id { get; set; }
|
||||
public string? Username { get; set; }
|
||||
}
|
||||
@@ -1,32 +1,21 @@
|
||||
using FastEndpoints;
|
||||
using Knots.DTO.Discussion;
|
||||
using Knots.DTO.User;
|
||||
|
||||
namespace Knots.Endpoints.Discussion;
|
||||
|
||||
public class CreateUserEndpoint(KnotsDbContext knotsDbContext) : Endpoint<CreateDiscussionDto, GetDiscussionDto>
|
||||
public class CreateDiscussionEndpoint(KnotsDbContext db, AutoMapper.IMapper mapper) : Endpoint<CreateDiscussionDto>
|
||||
{
|
||||
public override void Configure()
|
||||
{
|
||||
Post("/users");
|
||||
Post("/discussions");
|
||||
AllowAnonymous();
|
||||
}
|
||||
|
||||
public override async Task HandleAsync(CreateDiscussionDto req, CancellationToken ct)
|
||||
{
|
||||
Models.Discussion discussion = new()
|
||||
{
|
||||
|
||||
};
|
||||
knotsDbContext.Add(discussion);
|
||||
await knotsDbContext.SaveChangesAsync(ct);
|
||||
|
||||
GetDiscussionDto response = new()
|
||||
{
|
||||
Id = discussion.Id,
|
||||
};
|
||||
|
||||
await Send.OkAsync(response, ct);
|
||||
|
||||
Models.Discussion? discussion = mapper.Map<Models.Discussion>(req);
|
||||
db.Discussions.Add(discussion);
|
||||
await db.SaveChangesAsync(ct);
|
||||
await Send.NoContentAsync(ct);
|
||||
}
|
||||
}
|
||||
@@ -1,6 +1,21 @@
|
||||
using FastEndpoints;
|
||||
using Knots.DTO.Discussion;
|
||||
|
||||
namespace Knots.Endpoints.Discussion;
|
||||
|
||||
public class DeleteDiscussionEndpoint
|
||||
public class DeleteDiscussionEndpoint(KnotsDbContext db, AutoMapper.IMapper mapper) : Endpoint<DeleteDiscussionDto>
|
||||
{
|
||||
public override void Configure()
|
||||
{
|
||||
Delete("/discussions");
|
||||
AllowAnonymous();
|
||||
}
|
||||
|
||||
public override async Task HandleAsync(DeleteDiscussionDto req, CancellationToken ct)
|
||||
{
|
||||
Models.Discussion? discussion = mapper.Map<Models.Discussion>(req);
|
||||
db.Discussions.Remove(discussion);
|
||||
await db.SaveChangesAsync(ct);
|
||||
await Send.NoContentAsync(ct);
|
||||
}
|
||||
}
|
||||
@@ -1,6 +1,29 @@
|
||||
using Knots.DTO.Discussion;
|
||||
using Knots.DTO.Key;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using FastEndpoints;
|
||||
|
||||
namespace Knots.Endpoints.Discussion;
|
||||
|
||||
public class GetDiscussionEndpoint
|
||||
public class GetDiscussionEndpoint(KnotsDbContext db, AutoMapper.IMapper mapper) : Endpoint<GetDiscussionDto>
|
||||
{
|
||||
public override void Configure()
|
||||
{
|
||||
Get("/groups");
|
||||
AllowAnonymous();
|
||||
}
|
||||
|
||||
public override async Task HandleAsync(GetDiscussionDto req, CancellationToken ct)
|
||||
{
|
||||
Models.Discussion? databaseDiscussion = await db.Discussions.SingleOrDefaultAsync(x => x.Id == req.Id, cancellationToken: ct);
|
||||
|
||||
if (databaseDiscussion == null)
|
||||
{
|
||||
await Send.NotFoundAsync(ct);
|
||||
return;
|
||||
}
|
||||
|
||||
var keyDto = mapper.Map<GetKeyDetailsDto>(databaseDiscussion);
|
||||
await Send.OkAsync(keyDto, ct);
|
||||
}
|
||||
}
|
||||
@@ -1,6 +1,21 @@
|
||||
using Knots.DTO.Group;
|
||||
using FastEndpoints;
|
||||
|
||||
namespace Knots.Endpoints.Group;
|
||||
|
||||
public class CreateGroupEndpoint
|
||||
public class CreateGroupEndpoint(KnotsDbContext db, AutoMapper.IMapper mapper) : Endpoint<CreateGroupDto>
|
||||
{
|
||||
public override void Configure()
|
||||
{
|
||||
Post("/groups");
|
||||
AllowAnonymous();
|
||||
}
|
||||
|
||||
public override async Task HandleAsync(CreateGroupDto req, CancellationToken ct)
|
||||
{
|
||||
Models.Group? group = mapper.Map<Models.Group>(req);
|
||||
db.Groups.Add(group);
|
||||
await db.SaveChangesAsync(ct);
|
||||
await Send.NoContentAsync(ct);
|
||||
}
|
||||
}
|
||||
@@ -1,6 +1,21 @@
|
||||
using FastEndpoints;
|
||||
using Knots.DTO.Group;
|
||||
|
||||
namespace Knots.Endpoints.Group;
|
||||
|
||||
public class DeleteGroupEndpoint
|
||||
public class DeleteGroupEndpoint(KnotsDbContext db, AutoMapper.IMapper mapper) : Endpoint<DeleteGroupDto>
|
||||
{
|
||||
public override void Configure()
|
||||
{
|
||||
Delete("/groups");
|
||||
AllowAnonymous();
|
||||
}
|
||||
|
||||
public override async Task HandleAsync(DeleteGroupDto req, CancellationToken ct)
|
||||
{
|
||||
Models.Group? group = mapper.Map<Models.Group>(req);
|
||||
db.Groups.Remove(group);
|
||||
await db.SaveChangesAsync(ct);
|
||||
await Send.NoContentAsync(ct);
|
||||
}
|
||||
}
|
||||
@@ -1,6 +1,29 @@
|
||||
using FastEndpoints;
|
||||
using Knots.DTO.Group;
|
||||
using Knots.DTO.Key;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
|
||||
namespace Knots.Endpoints.Group;
|
||||
|
||||
public class GetGroupEndpoint
|
||||
public class GetGroupEndpoint(KnotsDbContext db, AutoMapper.IMapper mapper) : Endpoint<GetGroupDetailsDto>
|
||||
{
|
||||
public override void Configure()
|
||||
{
|
||||
Get("/groups");
|
||||
AllowAnonymous();
|
||||
}
|
||||
|
||||
public override async Task HandleAsync(GetGroupDetailsDto req, CancellationToken ct)
|
||||
{
|
||||
Models.Group? databaseGroup = await db.Groups.SingleOrDefaultAsync(x => x.Id == req.Id, cancellationToken: ct);
|
||||
|
||||
if (databaseGroup == null)
|
||||
{
|
||||
await Send.NotFoundAsync(ct);
|
||||
return;
|
||||
}
|
||||
|
||||
var keyDto = mapper.Map<GetKeyDetailsDto>(databaseGroup);
|
||||
await Send.OkAsync(keyDto, ct);
|
||||
}
|
||||
}
|
||||
29
Knots/Endpoints/Group/PatchGroupMembersAmountEndpoint.cs
Normal file
29
Knots/Endpoints/Group/PatchGroupMembersAmountEndpoint.cs
Normal file
@@ -0,0 +1,29 @@
|
||||
using FastEndpoints;
|
||||
using Knots.DTO.Group;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
|
||||
namespace Knots.Endpoints.Group;
|
||||
|
||||
public class PatchGroupMembersAmountEndpoint(KnotsDbContext knotsDbContext) : Endpoint<UpdateGroupMembersAmountDto>
|
||||
{
|
||||
public override void Configure()
|
||||
{
|
||||
Patch("/groups/{@Id}/membersAmount/", x => new {x.Id});
|
||||
AllowAnonymous();
|
||||
}
|
||||
|
||||
public override async Task HandleAsync(UpdateGroupMembersAmountDto req, CancellationToken ct)
|
||||
{
|
||||
Models.Group? databaseGroup = await knotsDbContext.Groups.SingleOrDefaultAsync(x => x.Id == req.Id, cancellationToken: ct);
|
||||
|
||||
if (databaseGroup is null)
|
||||
{
|
||||
await Send.NotFoundAsync(ct);
|
||||
return;
|
||||
}
|
||||
|
||||
databaseGroup.MembersAmount = req.MembersAmount;
|
||||
await knotsDbContext.SaveChangesAsync(ct);
|
||||
await Send.NoContentAsync(ct);
|
||||
}
|
||||
}
|
||||
29
Knots/Endpoints/Group/PatchGroupNameEndpoint.cs
Normal file
29
Knots/Endpoints/Group/PatchGroupNameEndpoint.cs
Normal file
@@ -0,0 +1,29 @@
|
||||
using FastEndpoints;
|
||||
using Knots.DTO.Group;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
|
||||
namespace Knots.Endpoints.Group;
|
||||
|
||||
public class PatchGroupNameEndpoint(KnotsDbContext knotsDbContext) : Endpoint<UpdateGroupNameDto>
|
||||
{
|
||||
public override void Configure()
|
||||
{
|
||||
Patch("/groups/{@Id}/name/", x => new {x.Id});
|
||||
AllowAnonymous();
|
||||
}
|
||||
|
||||
public override async Task HandleAsync(UpdateGroupNameDto req, CancellationToken ct)
|
||||
{
|
||||
Models.Group? databaseGroup = await knotsDbContext.Groups.SingleOrDefaultAsync(x => x.Id == req.Id, cancellationToken: ct);
|
||||
|
||||
if (databaseGroup is null)
|
||||
{
|
||||
await Send.NotFoundAsync(ct);
|
||||
return;
|
||||
}
|
||||
|
||||
databaseGroup.Name = req.Name;
|
||||
await knotsDbContext.SaveChangesAsync(ct);
|
||||
await Send.NoContentAsync(ct);
|
||||
}
|
||||
}
|
||||
29
Knots/Endpoints/Group/PatchGroupProfilePictureEndpoint.cs
Normal file
29
Knots/Endpoints/Group/PatchGroupProfilePictureEndpoint.cs
Normal file
@@ -0,0 +1,29 @@
|
||||
using FastEndpoints;
|
||||
using Knots.DTO.Group;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
|
||||
namespace Knots.Endpoints.Group;
|
||||
|
||||
public class PatchGroupProfilePictureEndpoint(KnotsDbContext knotsDbContext) : Endpoint<UpdateGroupProfilePictureDto>
|
||||
{
|
||||
public override void Configure()
|
||||
{
|
||||
Patch("/groups/{@Id}/profilePicture/", x => new {x.Id});
|
||||
AllowAnonymous();
|
||||
}
|
||||
|
||||
public override async Task HandleAsync(UpdateGroupProfilePictureDto req, CancellationToken ct)
|
||||
{
|
||||
Models.Group? databaseGroup = await knotsDbContext.Groups.SingleOrDefaultAsync(x => x.Id == req.Id, cancellationToken: ct);
|
||||
|
||||
if (databaseGroup is null)
|
||||
{
|
||||
await Send.NotFoundAsync(ct);
|
||||
return;
|
||||
}
|
||||
|
||||
databaseGroup.ProfilePicture = req.ProfilePicture;
|
||||
await knotsDbContext.SaveChangesAsync(ct);
|
||||
await Send.NoContentAsync(ct);
|
||||
}
|
||||
}
|
||||
@@ -1,6 +1,21 @@
|
||||
using Knots.DTO.Key;
|
||||
using FastEndpoints;
|
||||
|
||||
namespace Knots.Endpoints.Key;
|
||||
|
||||
public class CreateKeyEndpoint
|
||||
public class CreateKeyEndpoint(KnotsDbContext db, AutoMapper.IMapper mapper) : Endpoint<CreateKeyDto>
|
||||
{
|
||||
public override void Configure()
|
||||
{
|
||||
Post("/groups");
|
||||
AllowAnonymous();
|
||||
}
|
||||
|
||||
public override async Task HandleAsync(CreateKeyDto req, CancellationToken ct)
|
||||
{
|
||||
Models.Key? key = mapper.Map<Models.Key>(req);
|
||||
db.Keys.Add(key);
|
||||
await db.SaveChangesAsync(ct);
|
||||
await Send.NoContentAsync(ct);
|
||||
}
|
||||
}
|
||||
@@ -1,6 +1,21 @@
|
||||
using FastEndpoints;
|
||||
using Knots.DTO.Key;
|
||||
|
||||
namespace Knots.Endpoints.Key;
|
||||
|
||||
public class DeleteKeyEndpoint
|
||||
public class DeleteKeyEndpoint(KnotsDbContext db, AutoMapper.IMapper mapper) : Endpoint<DeleteKeyDto>
|
||||
{
|
||||
public override void Configure()
|
||||
{
|
||||
Delete("/groups");
|
||||
AllowAnonymous();
|
||||
}
|
||||
|
||||
public override async Task HandleAsync(DeleteKeyDto req, CancellationToken ct)
|
||||
{
|
||||
Models.Key? key = mapper.Map<Models.Key>(req);
|
||||
db.Keys.Remove(key);
|
||||
await db.SaveChangesAsync(ct);
|
||||
await Send.NoContentAsync(ct);
|
||||
}
|
||||
}
|
||||
@@ -1,6 +1,29 @@
|
||||
using FastEndpoints;
|
||||
using Knots.DTO.Key;
|
||||
using Knots.DTO.User;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
|
||||
namespace Knots.Endpoints.Key;
|
||||
|
||||
public class GetKeyEndpoint
|
||||
public class GetKeyEndpoint(KnotsDbContext db, AutoMapper.IMapper mapper) : Endpoint <GetKeyDetailsDto>
|
||||
{
|
||||
public override void Configure()
|
||||
{
|
||||
Get("/keys/{@Id}");
|
||||
AllowAnonymous();
|
||||
}
|
||||
|
||||
public override async Task HandleAsync(GetKeyDetailsDto req, CancellationToken ct)
|
||||
{
|
||||
Models.Key? databaseKey = await db.Keys.SingleOrDefaultAsync(x => x.Id == req.Id, cancellationToken: ct);
|
||||
|
||||
if (databaseKey == null)
|
||||
{
|
||||
await Send.NotFoundAsync(ct);
|
||||
return;
|
||||
}
|
||||
|
||||
var keyDto = mapper.Map<GetKeyDetailsDto>(databaseKey);
|
||||
await Send.OkAsync(keyDto, ct);
|
||||
}
|
||||
}
|
||||
@@ -1,6 +1,21 @@
|
||||
using FastEndpoints;
|
||||
using Knots.DTO.Message;
|
||||
|
||||
namespace Knots.Endpoints.Message;
|
||||
|
||||
public class CreateMessageEndpoint
|
||||
public class CreateMessageEndpoint(KnotsDbContext db, AutoMapper.IMapper mapper) : Endpoint<CreateMessageDto>
|
||||
{
|
||||
public override void Configure()
|
||||
{
|
||||
Post("/messages");
|
||||
AllowAnonymous();
|
||||
}
|
||||
|
||||
public override async Task HandleAsync(CreateMessageDto req, CancellationToken ct)
|
||||
{
|
||||
Models.Message? message = mapper.Map<Models.Message>(req);
|
||||
db.Messages.Add(message);
|
||||
await db.SaveChangesAsync(ct);
|
||||
await Send.NoContentAsync(ct);
|
||||
}
|
||||
}
|
||||
@@ -1,6 +1,21 @@
|
||||
using FastEndpoints;
|
||||
using Knots.DTO.Message;
|
||||
|
||||
namespace Knots.Endpoints.Message;
|
||||
|
||||
public class DeleteMessageEndpoint
|
||||
public class DeleteMessageEndpoint(KnotsDbContext db, AutoMapper.IMapper mapper) : Endpoint<DeleteMessageDto>
|
||||
{
|
||||
public override void Configure()
|
||||
{
|
||||
Delete("/messages");
|
||||
AllowAnonymous();
|
||||
}
|
||||
|
||||
public override async Task HandleAsync(DeleteMessageDto req, CancellationToken ct)
|
||||
{
|
||||
Models.Message? message = mapper.Map<Models.Message>(req);
|
||||
db.Messages.Remove(message);
|
||||
await db.SaveChangesAsync(ct);
|
||||
await Send.NoContentAsync(ct);
|
||||
}
|
||||
}
|
||||
@@ -1,6 +1,29 @@
|
||||
using FastEndpoints;
|
||||
using Knots.DTO.Message;
|
||||
using Knots.DTO.User;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
|
||||
namespace Knots.Endpoints.Message;
|
||||
|
||||
public class GetMessageEndpoint
|
||||
public class GetMessageEndpoint(KnotsDbContext db, AutoMapper.IMapper mapper) : Endpoint <GetMessageDetailsDto>
|
||||
{
|
||||
public override void Configure()
|
||||
{
|
||||
Get("/messages/{@Id}");
|
||||
AllowAnonymous();
|
||||
}
|
||||
|
||||
public override async Task HandleAsync(GetMessageDetailsDto req, CancellationToken ct)
|
||||
{
|
||||
Models.Message? databaseMessage = await db.Messages.SingleOrDefaultAsync(x => x.Id == req.Id, cancellationToken: ct);
|
||||
|
||||
if (databaseMessage == null)
|
||||
{
|
||||
await Send.NotFoundAsync(ct);
|
||||
return;
|
||||
}
|
||||
|
||||
var messageDto = mapper.Map<GetMessageDetailsDto>(databaseMessage);
|
||||
await Send.OkAsync(messageDto, ct);
|
||||
}
|
||||
}
|
||||
@@ -4,7 +4,7 @@ using Knots.DTO.User;
|
||||
|
||||
namespace Knots.Endpoints.Role;
|
||||
|
||||
public class CreateRoleEndpoint(KnotsDbContext knotsDbContext) : Endpoint<CreateRoleDto, GetRoleDto>
|
||||
public class CreateRoleEndpoint(KnotsDbContext db, AutoMapper.IMapper mapper) : Endpoint<CreateRoleDto>
|
||||
{
|
||||
public override void Configure()
|
||||
{
|
||||
@@ -14,19 +14,9 @@ public class CreateRoleEndpoint(KnotsDbContext knotsDbContext) : Endpoint<Create
|
||||
|
||||
public override async Task HandleAsync(CreateRoleDto req, CancellationToken ct)
|
||||
{
|
||||
Models.Role role = new()
|
||||
{
|
||||
Libelle = req.Libelle
|
||||
};
|
||||
knotsDbContext.Add(role);
|
||||
await knotsDbContext.SaveChangesAsync(ct);
|
||||
|
||||
GetRoleDto response = new()
|
||||
{
|
||||
Libelle = role.Libelle
|
||||
};
|
||||
|
||||
await Send.OkAsync(response, ct);
|
||||
|
||||
Models.Role? role = mapper.Map<Models.Role>(req);
|
||||
db.Roles.Add(role);
|
||||
await db.SaveChangesAsync(ct);
|
||||
await Send.NoContentAsync(ct);
|
||||
}
|
||||
}
|
||||
21
Knots/Endpoints/Role/DeleteRoleEndpoint.cs
Normal file
21
Knots/Endpoints/Role/DeleteRoleEndpoint.cs
Normal file
@@ -0,0 +1,21 @@
|
||||
using FastEndpoints;
|
||||
using Knots.DTO.Role;
|
||||
|
||||
namespace Knots.Endpoints.Role;
|
||||
|
||||
public class DeleteRoleEndpoint(KnotsDbContext db, AutoMapper.IMapper mapper) : Endpoint<DeleteRoleDto>
|
||||
{
|
||||
public override void Configure()
|
||||
{
|
||||
Delete("/roles");
|
||||
AllowAnonymous();
|
||||
}
|
||||
|
||||
public override async Task HandleAsync(DeleteRoleDto req, CancellationToken ct)
|
||||
{
|
||||
Models.Role? role = mapper.Map<Models.Role>(req);
|
||||
db.Roles.Remove(role);
|
||||
await db.SaveChangesAsync(ct);
|
||||
await Send.NoContentAsync(ct);
|
||||
}
|
||||
}
|
||||
@@ -5,7 +5,7 @@ using Microsoft.EntityFrameworkCore;
|
||||
|
||||
namespace Knots.Endpoints.Role;
|
||||
|
||||
public class GetRoleEndpoint(KnotsDbContext knotsDbContext) : Endpoint <GetRoleDto>
|
||||
public class GetRoleEndpoint(KnotsDbContext db, AutoMapper.IMapper mapper) : Endpoint <GetRoleDto>
|
||||
{
|
||||
public override void Configure()
|
||||
{
|
||||
@@ -15,7 +15,7 @@ public class GetRoleEndpoint(KnotsDbContext knotsDbContext) : Endpoint <GetRoleD
|
||||
|
||||
public override async Task HandleAsync(GetRoleDto req, CancellationToken ct)
|
||||
{
|
||||
Models.Role? databaseRole = await knotsDbContext.Roles.SingleOrDefaultAsync(x => x.Libelle == req.Libelle, cancellationToken: ct);
|
||||
Models.Role? databaseRole = await db.Roles.SingleOrDefaultAsync(x => x.Libelle == req.Libelle, cancellationToken: ct);
|
||||
|
||||
if (databaseRole == null)
|
||||
{
|
||||
@@ -23,11 +23,7 @@ public class GetRoleEndpoint(KnotsDbContext knotsDbContext) : Endpoint <GetRoleD
|
||||
return;
|
||||
}
|
||||
|
||||
GetRoleDto dto = new()
|
||||
{
|
||||
Libelle = databaseRole.Libelle,
|
||||
};
|
||||
|
||||
await Send.OkAsync(dto, ct);
|
||||
var roleDto = mapper.Map<GetRoleDto>(databaseRole);
|
||||
await Send.OkAsync(roleDto, ct);
|
||||
}
|
||||
}
|
||||
@@ -3,7 +3,7 @@ using Knots.DTO.User;
|
||||
|
||||
namespace Knots.Endpoints.User;
|
||||
|
||||
public class CreateUserEndpoint(KnotsDbContext knotsDbContext) : Endpoint<CreateUserDto, GetUserDto>
|
||||
public class CreateUserEndpoint(KnotsDbContext db, AutoMapper.IMapper mapper) : Endpoint<CreateUserDto, GetUserDto>
|
||||
{
|
||||
public override void Configure()
|
||||
{
|
||||
@@ -13,24 +13,9 @@ public class CreateUserEndpoint(KnotsDbContext knotsDbContext) : Endpoint<Create
|
||||
|
||||
public override async Task HandleAsync(CreateUserDto req, CancellationToken ct)
|
||||
{
|
||||
Models.User user = new()
|
||||
{
|
||||
Username = req.Username,
|
||||
Description = req.Description,
|
||||
Password = req.Password,
|
||||
Email = req.Email,
|
||||
Tel = req.Tel,
|
||||
ProfilePicture = req.ProfilePicture
|
||||
};
|
||||
knotsDbContext.Add(user);
|
||||
await knotsDbContext.SaveChangesAsync(ct);
|
||||
|
||||
GetUserDto response = new()
|
||||
{
|
||||
Username = user.Username
|
||||
};
|
||||
|
||||
await Send.OkAsync(response, ct);
|
||||
|
||||
Models.User? user = mapper.Map<Models.User>(req);
|
||||
db.Users.Add(user);
|
||||
await db.SaveChangesAsync(ct);
|
||||
await Send.NoContentAsync(ct);
|
||||
}
|
||||
}
|
||||
@@ -4,25 +4,18 @@ using Microsoft.EntityFrameworkCore;
|
||||
|
||||
namespace Knots.Endpoints.User;
|
||||
|
||||
public class DeleteUserEndpoint(KnotsDbContext knotsDbContext) : Endpoint <GetUserDto, GetUserDetailsDto>
|
||||
public class DeleteUserEndpoint(KnotsDbContext db, AutoMapper.IMapper mapper) : Endpoint <DeleteUserDto>
|
||||
{
|
||||
public override void Configure()
|
||||
{
|
||||
Delete ("/users/{@Id}", x => new { x.Username });
|
||||
Delete ("/users/{@Id}");
|
||||
}
|
||||
|
||||
public override async Task HandleAsync(GetUserDto req, CancellationToken ct)
|
||||
public override async Task HandleAsync(DeleteUserDto req, CancellationToken ct)
|
||||
{
|
||||
Models.User? databaseUser = await knotsDbContext.Users.SingleOrDefaultAsync(x => x.Username == req.Username, cancellationToken: ct);
|
||||
|
||||
if (databaseUser == null)
|
||||
{
|
||||
await Send.NotFoundAsync(ct);
|
||||
return;
|
||||
}
|
||||
knotsDbContext.Users.Remove(databaseUser);
|
||||
await knotsDbContext.SaveChangesAsync(ct);
|
||||
|
||||
Models.User? user = mapper.Map<Models.User>(req);
|
||||
db.Users.Add(user);
|
||||
await db.SaveChangesAsync(ct);
|
||||
await Send.NoContentAsync(ct);
|
||||
}
|
||||
}
|
||||
@@ -1,10 +1,11 @@
|
||||
using AutoMapper.QueryableExtensions;
|
||||
using FastEndpoints;
|
||||
using Knots.DTO.User;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
|
||||
namespace Knots.Endpoints.User;
|
||||
|
||||
public class GetAllUsersEndpoint(KnotsDbContext knotsDbContext) : EndpointWithoutRequest<List<GetUserDto>>
|
||||
public class GetAllUsersEndpoint(KnotsDbContext db, AutoMapper.IMapper mapper) : EndpointWithoutRequest<List<GetUserDetailsDto>>
|
||||
{
|
||||
public override void Configure()
|
||||
{
|
||||
@@ -14,10 +15,9 @@ public class GetAllUsersEndpoint(KnotsDbContext knotsDbContext) : EndpointWithou
|
||||
|
||||
public override async Task HandleAsync(CancellationToken ct)
|
||||
{
|
||||
List<GetUserDto> users= await knotsDbContext.Users.Select(x => new GetUserDto()
|
||||
{
|
||||
Username = x.Username,
|
||||
}).ToListAsync(ct);
|
||||
var users = await db.Users
|
||||
.ProjectTo<GetUserDetailsDto>(mapper.ConfigurationProvider)
|
||||
.ToListAsync(ct);
|
||||
|
||||
await Send.OkAsync(users, ct);
|
||||
}
|
||||
|
||||
@@ -4,7 +4,7 @@ using Microsoft.EntityFrameworkCore;
|
||||
|
||||
namespace Knots.Endpoints.User;
|
||||
|
||||
public class GetUserEndpoint(KnotsDbContext knotsDbContext) : Endpoint <GetUserDto, GetUserDetailsDto>
|
||||
public class GetUserEndpoint(KnotsDbContext db, AutoMapper.IMapper mapper) : Endpoint <GetUserDetailsDto>
|
||||
{
|
||||
public override void Configure()
|
||||
{
|
||||
@@ -12,26 +12,17 @@ public class GetUserEndpoint(KnotsDbContext knotsDbContext) : Endpoint <GetUserD
|
||||
AllowAnonymous();
|
||||
}
|
||||
|
||||
public override async Task HandleAsync(GetUserDto req, CancellationToken ct)
|
||||
public override async Task HandleAsync(GetUserDetailsDto req, CancellationToken ct)
|
||||
{
|
||||
Models.User? databaseLogin = await knotsDbContext.Users.SingleOrDefaultAsync(x => x.Username == req.Username, cancellationToken: ct);
|
||||
Models.User? databaseUser = await db.Users.SingleOrDefaultAsync(x => x.Username == req.Username, cancellationToken: ct);
|
||||
|
||||
if (databaseLogin == null)
|
||||
if (databaseUser == null)
|
||||
{
|
||||
await Send.NotFoundAsync(ct);
|
||||
return;
|
||||
}
|
||||
|
||||
GetUserDetailsDto dto = new()
|
||||
{
|
||||
Username = databaseLogin.Username,
|
||||
Description = databaseLogin.Description,
|
||||
Password = databaseLogin.Password,
|
||||
Email = databaseLogin.Email,
|
||||
Tel = databaseLogin.Tel,
|
||||
ProfilePicture = databaseLogin.ProfilePicture
|
||||
};
|
||||
|
||||
await Send.OkAsync(dto, ct);
|
||||
var userDto = mapper.Map<GetUserDetailsDto>(databaseUser);
|
||||
await Send.OkAsync(userDto, ct);
|
||||
}
|
||||
}
|
||||
47
Knots/Endpoints/User/PatchUserContactEndpoint.cs
Normal file
47
Knots/Endpoints/User/PatchUserContactEndpoint.cs
Normal file
@@ -0,0 +1,47 @@
|
||||
using FastEndpoints;
|
||||
using Knots.DTO.User;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
|
||||
namespace Knots.Endpoints.User;
|
||||
|
||||
public class PatchUserContactEndpoint(KnotsDbContext db, AutoMapper.IMapper mapper) : Endpoint<UpdateUserContactDto>
|
||||
{
|
||||
public override void Configure()
|
||||
{
|
||||
Patch("/users/{@Id}/contact/", x => new {x.Id});
|
||||
AllowAnonymous();
|
||||
}
|
||||
|
||||
public override async Task HandleAsync(UpdateUserContactDto req, CancellationToken ct)
|
||||
{
|
||||
Models.User? databaseUser = await db.Users.SingleOrDefaultAsync(x => x.Id == req.Id, cancellationToken: ct);
|
||||
|
||||
if (databaseUser is null)
|
||||
{
|
||||
await Send.NotFoundAsync(ct);
|
||||
return;
|
||||
}
|
||||
|
||||
if (databaseUser.Email != req.Email)
|
||||
{
|
||||
databaseUser.Email = req.Email;
|
||||
}
|
||||
else
|
||||
{
|
||||
databaseUser.Email = databaseUser.Email;
|
||||
}
|
||||
|
||||
if (databaseUser.Tel != req.Tel)
|
||||
{
|
||||
databaseUser.Tel = req.Tel;
|
||||
}else
|
||||
{
|
||||
databaseUser.Tel = databaseUser.Tel;
|
||||
}
|
||||
|
||||
mapper.Map(req, databaseUser);
|
||||
|
||||
await db.SaveChangesAsync(ct);
|
||||
await Send.NoContentAsync(ct);
|
||||
}
|
||||
}
|
||||
30
Knots/Endpoints/User/PatchUserDescriptionEndpoint.cs
Normal file
30
Knots/Endpoints/User/PatchUserDescriptionEndpoint.cs
Normal file
@@ -0,0 +1,30 @@
|
||||
using FastEndpoints;
|
||||
using Knots.DTO.User;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
|
||||
namespace Knots.Endpoints.User;
|
||||
|
||||
public class PatchUserDescriptionEndpoint(KnotsDbContext db, AutoMapper.IMapper mapper) : Endpoint<UpdateUserDescriptionDto>
|
||||
{
|
||||
public override void Configure()
|
||||
{
|
||||
Patch("/users/{@Id}/description/");
|
||||
AllowAnonymous();
|
||||
}
|
||||
|
||||
public override async Task HandleAsync(UpdateUserDescriptionDto req, CancellationToken ct)
|
||||
{
|
||||
Models.User? databaseUser = await db.Users.SingleOrDefaultAsync(x => x.Id == req.Id, cancellationToken: ct);
|
||||
|
||||
if (databaseUser is null)
|
||||
{
|
||||
await Send.NotFoundAsync(ct);
|
||||
return;
|
||||
}
|
||||
|
||||
mapper.Map(req, databaseUser);
|
||||
|
||||
await db.SaveChangesAsync(ct);
|
||||
await Send.NoContentAsync(ct);
|
||||
}
|
||||
}
|
||||
30
Knots/Endpoints/User/PatchUserPasswordEndpoint.cs
Normal file
30
Knots/Endpoints/User/PatchUserPasswordEndpoint.cs
Normal file
@@ -0,0 +1,30 @@
|
||||
using FastEndpoints;
|
||||
using Knots.DTO.User;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
|
||||
namespace Knots.Endpoints.User;
|
||||
|
||||
public class PatchUserPasswordEndpoint(KnotsDbContext db, AutoMapper.IMapper mapper) : Endpoint<UpdateUserPasswordDto>
|
||||
{
|
||||
public override void Configure()
|
||||
{
|
||||
Patch("/users/{@Id}/password/", x => new {x.Id});
|
||||
AllowAnonymous();
|
||||
}
|
||||
|
||||
public override async Task HandleAsync(UpdateUserPasswordDto req, CancellationToken ct)
|
||||
{
|
||||
Models.User? databaseUser = await db.Users.SingleOrDefaultAsync(x => x.Id == req.Id, cancellationToken: ct);
|
||||
|
||||
if (databaseUser is null)
|
||||
{
|
||||
await Send.NotFoundAsync(ct);
|
||||
return;
|
||||
}
|
||||
|
||||
mapper.Map(req, databaseUser);
|
||||
|
||||
await db.SaveChangesAsync(ct);
|
||||
await Send.NoContentAsync(ct);
|
||||
}
|
||||
}
|
||||
30
Knots/Endpoints/User/PatchUserProfilePictureEndpoint.cs
Normal file
30
Knots/Endpoints/User/PatchUserProfilePictureEndpoint.cs
Normal file
@@ -0,0 +1,30 @@
|
||||
using FastEndpoints;
|
||||
using Knots.DTO.User;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
|
||||
namespace Knots.Endpoints.User;
|
||||
|
||||
public class PatchUserProfilePictureEndpoint(KnotsDbContext db, AutoMapper.IMapper mapper) : Endpoint<UpdateUserProfilePictureDto>
|
||||
{
|
||||
public override void Configure()
|
||||
{
|
||||
Patch("/users/{@Id}/profilepicture/", x => new {x.Id});
|
||||
AllowAnonymous();
|
||||
}
|
||||
|
||||
public override async Task HandleAsync(UpdateUserProfilePictureDto req, CancellationToken ct)
|
||||
{
|
||||
Models.User? databaseUser = await db.Users.SingleOrDefaultAsync(x => x.Id == req.Id, cancellationToken: ct);
|
||||
|
||||
if (databaseUser is null)
|
||||
{
|
||||
await Send.NotFoundAsync(ct);
|
||||
return;
|
||||
}
|
||||
|
||||
mapper.Map(req, databaseUser);
|
||||
|
||||
await db.SaveChangesAsync(ct);
|
||||
await Send.NoContentAsync(ct);
|
||||
}
|
||||
}
|
||||
31
Knots/Endpoints/User/PatchUsernameEndpoint.cs
Normal file
31
Knots/Endpoints/User/PatchUsernameEndpoint.cs
Normal file
@@ -0,0 +1,31 @@
|
||||
using FastEndpoints;
|
||||
using Knots.DTO.User;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
|
||||
namespace Knots.Endpoints.User;
|
||||
|
||||
|
||||
public class PatchUsernameEndpoint(KnotsDbContext db, AutoMapper.IMapper mapper) : Endpoint<UpdateUsernameDto>
|
||||
{
|
||||
public override void Configure()
|
||||
{
|
||||
Patch("/users/{@Id}/username/");
|
||||
AllowAnonymous();
|
||||
}
|
||||
|
||||
public override async Task HandleAsync(UpdateUsernameDto req, CancellationToken ct)
|
||||
{
|
||||
Models.User? databaseUser = await db.Users.SingleOrDefaultAsync(x => x.Id == req.Id, cancellationToken: ct);
|
||||
|
||||
if (databaseUser is null)
|
||||
{
|
||||
await Send.NotFoundAsync(ct);
|
||||
return;
|
||||
}
|
||||
|
||||
mapper.Map(req, databaseUser);
|
||||
|
||||
await db.SaveChangesAsync(ct);
|
||||
await Send.NoContentAsync(ct);
|
||||
}
|
||||
}
|
||||
@@ -1,46 +0,0 @@
|
||||
using FastEndpoints;
|
||||
using Knots.DTO.User;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
|
||||
namespace Knots.Endpoints.User;
|
||||
|
||||
public class UpdateUserEndpoint(KnotsDbContext knotsDbContext) : Endpoint <UpdateUserDto, GetUserDetailsDto>
|
||||
{
|
||||
public override void Configure()
|
||||
{
|
||||
Put ("/users/{@Id}", x => new { x.Username });
|
||||
}
|
||||
|
||||
public override async Task HandleAsync(UpdateUserDto req, CancellationToken ct)
|
||||
{
|
||||
Models.User? databaseUser = await knotsDbContext.Users.SingleOrDefaultAsync(x => x.Username == req.Username, cancellationToken: ct);
|
||||
|
||||
if (databaseUser == null)
|
||||
{
|
||||
await Send.NotFoundAsync(ct);
|
||||
return;
|
||||
}
|
||||
else
|
||||
{
|
||||
databaseUser.Username = req.Username;
|
||||
databaseUser.Password = req.Password;
|
||||
databaseUser.Description = req.Description;
|
||||
databaseUser.Tel = req.Tel;
|
||||
databaseUser.Email = req.Email;
|
||||
databaseUser.ProfilePicture = req.ProfilePicture;
|
||||
}
|
||||
await knotsDbContext.SaveChangesAsync(ct);
|
||||
|
||||
GetUserDetailsDto dto = new()
|
||||
{
|
||||
Username = databaseUser.Username,
|
||||
Password = databaseUser.Password,
|
||||
Description = databaseUser.Description,
|
||||
Tel = databaseUser.Tel,
|
||||
Email = databaseUser.Email,
|
||||
ProfilePicture = databaseUser.ProfilePicture
|
||||
};
|
||||
|
||||
await Send.OkAsync(dto, ct);
|
||||
}
|
||||
}
|
||||
@@ -7,6 +7,7 @@
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="AutoMapper" Version="16.1.1" />
|
||||
<PackageReference Include="FastEndpoints" Version="8.0.1" />
|
||||
<PackageReference Include="FastEndpoints.Swagger" Version="8.0.1" />
|
||||
<PackageReference Include="Microsoft.AspNetCore.OpenApi" Version="8.0.25" />
|
||||
|
||||
@@ -5,4 +5,7 @@ namespace Knots.Models;
|
||||
public class Discussion
|
||||
{
|
||||
[Key] public int Id { get; set; }
|
||||
|
||||
public List<Message> Messages { get; set; }
|
||||
public Key KeyId { get; set; }
|
||||
}
|
||||
@@ -6,7 +6,10 @@ namespace Knots.Models;
|
||||
public class Group
|
||||
{
|
||||
[Key] public int Id { get; set; }
|
||||
[Required, MaxLength(50)] public string? Nom { get; set; }
|
||||
[Required] public int NombreMembres { get; set; }
|
||||
[Required, MaxLength(50)] public string? Name { get; set; }
|
||||
[Required] public int MembersAmount { get; set; }
|
||||
public string? ProfilePicture { get; set; }
|
||||
public Key KeyId { get; set; }
|
||||
List<Message> Messages { get; set; }
|
||||
List<User> Users { get; set; }
|
||||
}
|
||||
@@ -6,4 +6,5 @@ public class Key
|
||||
{
|
||||
[Key] public int Id { get; set; }
|
||||
[Required, MaxLength(50)] public string? EnKey { get; set; }
|
||||
List<Message> Messages { get; set; }
|
||||
}
|
||||
@@ -8,4 +8,7 @@ public class Message
|
||||
[Required, MaxLength(1000)] public string? Contenu { get; set; }
|
||||
[Required] public DateTime Date { get; set; }
|
||||
[Required] public Boolean Type { get; set; }
|
||||
public Group Group { get; set; }
|
||||
public Key Key { get; set; }
|
||||
public User User { get; set; }
|
||||
}
|
||||
@@ -11,4 +11,5 @@ public class User
|
||||
[Required, MaxLength(70)] public string? Email { get; set; }
|
||||
[Required, Length(10, 10)] public string? Tel { get; set; }
|
||||
public string? ProfilePicture { get; set; }
|
||||
public List<Message> Messages { get; set; }
|
||||
}
|
||||
17
Knots/Profiles/DiscussionProfile.cs
Normal file
17
Knots/Profiles/DiscussionProfile.cs
Normal file
@@ -0,0 +1,17 @@
|
||||
using AutoMapper;
|
||||
using Knots.DTO.Discussion;
|
||||
using Knots.Models;
|
||||
|
||||
namespace Knots.Profiles;
|
||||
|
||||
public class DiscussionProfile : Profile
|
||||
{
|
||||
public DiscussionProfile()
|
||||
{
|
||||
CreateMap<Discussion, GetDiscussionDto>();
|
||||
CreateMap<Discussion, CreateDiscussionDto>();
|
||||
|
||||
CreateMap<CreateDiscussionDto, Discussion>();
|
||||
|
||||
}
|
||||
}
|
||||
15
Knots/Profiles/GroupProfile.cs
Normal file
15
Knots/Profiles/GroupProfile.cs
Normal file
@@ -0,0 +1,15 @@
|
||||
using AutoMapper;
|
||||
using Knots.DTO.Group;
|
||||
using Knots.Models;
|
||||
|
||||
namespace Knots.Profiles;
|
||||
|
||||
public class GroupProfile : Profile
|
||||
{
|
||||
public GroupProfile()
|
||||
{
|
||||
CreateMap<Group, GetGroupDto>();
|
||||
CreateMap<Group, GetGroupDetailsDto>();
|
||||
CreateMap<CreateGroupDto, Group>();
|
||||
}
|
||||
}
|
||||
16
Knots/Profiles/KeyProfile.cs
Normal file
16
Knots/Profiles/KeyProfile.cs
Normal file
@@ -0,0 +1,16 @@
|
||||
using AutoMapper;
|
||||
using Knots.DTO.Discussion;
|
||||
using Knots.DTO.Key;
|
||||
using Knots.Models;
|
||||
|
||||
namespace Knots.Profiles;
|
||||
|
||||
public class KeyProfile : Profile
|
||||
{
|
||||
public KeyProfile()
|
||||
{
|
||||
CreateMap<Key, GetKeyDetailsDto>();
|
||||
CreateMap<Key, CreateKeyDto>();
|
||||
CreateMap<CreateKeyDto, Key>();
|
||||
}
|
||||
}
|
||||
16
Knots/Profiles/MessageProfile.cs
Normal file
16
Knots/Profiles/MessageProfile.cs
Normal file
@@ -0,0 +1,16 @@
|
||||
using AutoMapper;
|
||||
using Knots.DTO.Discussion;
|
||||
using Knots.DTO.Message;
|
||||
using Knots.Models;
|
||||
|
||||
namespace Knots.Profiles;
|
||||
|
||||
public class MessageProfile : Profile
|
||||
{
|
||||
MessageProfile()
|
||||
{
|
||||
CreateMap<Message, GetMessageDetailsDto>();
|
||||
CreateMap<Message, CreateMessageDto>();
|
||||
CreateMap<CreateMessageDto, Message>();
|
||||
}
|
||||
}
|
||||
16
Knots/Profiles/RoleProfile.cs
Normal file
16
Knots/Profiles/RoleProfile.cs
Normal file
@@ -0,0 +1,16 @@
|
||||
using AutoMapper;
|
||||
using Knots.DTO.Discussion;
|
||||
using Knots.DTO.Role;
|
||||
using Knots.Models;
|
||||
|
||||
namespace Knots.Profiles;
|
||||
|
||||
public class RoleProfile : Profile
|
||||
{
|
||||
public RoleProfile()
|
||||
{
|
||||
CreateMap<Role, GetRoleDto>();
|
||||
CreateMap<Role, CreateRoleDto>();
|
||||
CreateMap<CreateRoleDto, Role>();
|
||||
}
|
||||
}
|
||||
29
Knots/Profiles/UserProfile.cs
Normal file
29
Knots/Profiles/UserProfile.cs
Normal file
@@ -0,0 +1,29 @@
|
||||
using AutoMapper;
|
||||
using Knots.DTO.Discussion;
|
||||
using Knots.DTO.User;
|
||||
using Knots.Models;
|
||||
|
||||
namespace Knots.Profiles;
|
||||
|
||||
public class UserProfile : Profile
|
||||
{
|
||||
UserProfile()
|
||||
{
|
||||
CreateMap<User, GetUserDetailsDto>();
|
||||
CreateMap<User, GetUserDto>();
|
||||
CreateMap<CreateUserDto, User>();
|
||||
CreateMap<UpdateUserDto, User>();
|
||||
CreateMap<UpdateUserContactDto, User>();
|
||||
CreateMap<UpdateUserDescriptionDto, User>();
|
||||
CreateMap<UpdateUsernameDto, User>();
|
||||
CreateMap<UpdateUserProfilePictureDto, User>();
|
||||
CreateMap<UpdateUserPasswordDto, User>();
|
||||
|
||||
CreateMap<User, UpdateUserContactDto>();
|
||||
CreateMap<User, UpdateUserDto>();
|
||||
CreateMap<User, UpdateUserDescriptionDto>();
|
||||
CreateMap<User, UpdateUserProfilePictureDto>();
|
||||
CreateMap<User, UpdateUserPasswordDto>();
|
||||
CreateMap<User, CreateUserDto>();
|
||||
}
|
||||
}
|
||||
@@ -18,6 +18,8 @@ builder.Services.AddCors(options =>
|
||||
});
|
||||
});
|
||||
|
||||
builder.Services.AddAutoMapper(cfg => { }, typeof(Program).Assembly);
|
||||
|
||||
// On construit l'application en lui donnant vie
|
||||
WebApplication app = builder.Build();
|
||||
app.UseAuthentication()
|
||||
|
||||
@@ -10,6 +10,8 @@ public class DeleteGroupDtoValidator : Validator<DeleteGroupDto>
|
||||
{
|
||||
RuleFor(x => x.Id)
|
||||
.NotEmpty()
|
||||
.WithMessage("Id is required");
|
||||
.WithMessage("Id is required")
|
||||
.GreaterThan(0)
|
||||
.WithMessage("Id cannot be less than zero");
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,21 @@
|
||||
using FastEndpoints;
|
||||
using FluentValidation;
|
||||
using Knots.DTO.Group;
|
||||
|
||||
namespace Knots.Validators.Group;
|
||||
|
||||
public class UpdateGroupMembersAmountDtoValidator : Validator<UpdateGroupMembersAmountDto>
|
||||
{
|
||||
public UpdateGroupMembersAmountDtoValidator()
|
||||
{
|
||||
RuleFor(x => x.Id)
|
||||
.NotEmpty()
|
||||
.WithMessage("L'id est requis")
|
||||
.GreaterThan(0)
|
||||
.WithMessage("L'id doit être supérieur à 0");
|
||||
|
||||
RuleFor(x => x.MembersAmount)
|
||||
.NotEmpty()
|
||||
.WithMessage("Le nombre de membres est requis");
|
||||
}
|
||||
}
|
||||
20
Knots/Validators/Group/UpdateGroupNameDtoValidator.cs
Normal file
20
Knots/Validators/Group/UpdateGroupNameDtoValidator.cs
Normal file
@@ -0,0 +1,20 @@
|
||||
using FastEndpoints;
|
||||
using FluentValidation;
|
||||
using Knots.DTO.Group;
|
||||
|
||||
namespace Knots.Validators.Group;
|
||||
|
||||
public class UpdateGroupNameDtoValidator : Validator<UpdateGroupNameDto>
|
||||
{
|
||||
public UpdateGroupNameDtoValidator()
|
||||
{
|
||||
RuleFor(x => x.Id)
|
||||
.NotNull()
|
||||
.WithMessage("L'id doit être renseigné");
|
||||
|
||||
|
||||
RuleFor(x => x.Name)
|
||||
.NotEmpty()
|
||||
.WithMessage("Le nom de groupe est requis");
|
||||
}
|
||||
}
|
||||
@@ -1,6 +1,15 @@
|
||||
using FastEndpoints;
|
||||
using FluentValidation;
|
||||
using Knots.DTO.Key;
|
||||
|
||||
namespace Knots.Validators.Key;
|
||||
|
||||
public class CreateKeyDtoValidator
|
||||
public class CreateKeyDtoValidator : Validator<CreateKeyDto>
|
||||
{
|
||||
|
||||
public CreateKeyDtoValidator()
|
||||
{
|
||||
RuleFor(x => x.EnKey)
|
||||
.NotEmpty()
|
||||
.WithMessage("La clé de chiffrement ne doit pas être nulle.");
|
||||
}
|
||||
}
|
||||
@@ -1,6 +1,17 @@
|
||||
using FastEndpoints;
|
||||
using FluentValidation;
|
||||
using Knots.DTO.Key;
|
||||
|
||||
namespace Knots.Validators.Key;
|
||||
|
||||
public class DeleteKeyDtoValidator
|
||||
public class DeleteKeyDtoValidator : Validator<DeleteKeyDto>
|
||||
{
|
||||
|
||||
public DeleteKeyDtoValidator()
|
||||
{
|
||||
RuleFor(x => x.Id)
|
||||
.NotEmpty()
|
||||
.WithMessage("L'id doit être renseigné")
|
||||
.GreaterThan(0)
|
||||
.WithMessage("L'id renseigné doit être supérieur à 0");
|
||||
}
|
||||
}
|
||||
@@ -1,6 +1,17 @@
|
||||
using FastEndpoints;
|
||||
using FluentValidation;
|
||||
using Knots.DTO.Key;
|
||||
|
||||
namespace Knots.Validators.Key;
|
||||
|
||||
public class GetKeyDtoValidator
|
||||
public class GetKeyDtoValidator : Validator<GetKeyDto>
|
||||
{
|
||||
|
||||
public GetKeyDtoValidator()
|
||||
{
|
||||
RuleFor(x => x.Id)
|
||||
.NotEmpty()
|
||||
.WithMessage("L'id est requis")
|
||||
.GreaterThan(0)
|
||||
.WithMessage("L'id doit être supérieur à 0");
|
||||
}
|
||||
}
|
||||
@@ -1,6 +1,26 @@
|
||||
using FastEndpoints;
|
||||
using FluentValidation;
|
||||
using Knots.DTO.Message;
|
||||
|
||||
namespace Knots.Validators.Message;
|
||||
|
||||
public class CreateMessageDtoValidator
|
||||
public class CreateMessageDtoValidator : Validator<CreateMessageDto>
|
||||
{
|
||||
public CreateMessageDtoValidator()
|
||||
{
|
||||
RuleFor(x => x.Contenu)
|
||||
.NotEmpty()
|
||||
.WithMessage("Le message ne peux pas être vide")
|
||||
.MaximumLength(1000)
|
||||
.WithMessage("Le message ne doit pas faire plus de 1000 caractères");
|
||||
|
||||
RuleFor(x => x.Date)
|
||||
.NotEmpty()
|
||||
.WithMessage("La date ne peut pas être vide");
|
||||
|
||||
RuleFor(x => x.Type)
|
||||
.NotEmpty()
|
||||
.WithMessage("Le type de message doit être renseigné");
|
||||
|
||||
}
|
||||
}
|
||||
@@ -1,6 +1,17 @@
|
||||
using FastEndpoints;
|
||||
using FluentValidation;
|
||||
using Knots.DTO.Role;
|
||||
|
||||
namespace Knots.Validators.Role;
|
||||
|
||||
public class CreateRoleDtoValidator
|
||||
public class CreateRoleDtoValidator : Validator<CreateRoleDto>
|
||||
{
|
||||
|
||||
public CreateRoleDtoValidator()
|
||||
{
|
||||
RuleFor(x => x.Libelle)
|
||||
.NotEmpty()
|
||||
.WithMessage("Libelle cannot be empty")
|
||||
.MaximumLength(50)
|
||||
.WithMessage("Libelle maximum length is 50");
|
||||
}
|
||||
}
|
||||
@@ -1,6 +1,15 @@
|
||||
using FastEndpoints;
|
||||
using FluentValidation;
|
||||
using Knots.DTO.Role;
|
||||
|
||||
namespace Knots.Validators.Role;
|
||||
|
||||
public class DeleteRoleDtoValidator
|
||||
public class DeleteRoleDtoValidator : Validator<DeleteRoleDto>
|
||||
{
|
||||
|
||||
public DeleteRoleDtoValidator()
|
||||
{
|
||||
RuleFor(x => x.Id)
|
||||
.NotEmpty()
|
||||
.WithMessage("Id cannot be empty");
|
||||
}
|
||||
}
|
||||
@@ -1,6 +1,17 @@
|
||||
using FastEndpoints;
|
||||
using FluentValidation;
|
||||
using Knots.DTO.Role;
|
||||
|
||||
namespace Knots.Validators.Role;
|
||||
|
||||
public class GetRoleDtoValidator
|
||||
public class GetRoleDtoValidator : Validator<GetRoleDto>
|
||||
{
|
||||
|
||||
public GetRoleDtoValidator()
|
||||
{
|
||||
RuleFor(x => x.Libelle)
|
||||
.NotEmpty()
|
||||
.WithMessage("Libelle cannot be empty")
|
||||
.MaximumLength(50)
|
||||
.WithMessage("Libelle maximum length is 50");
|
||||
}
|
||||
}
|
||||
27
Knots/Validators/User/UpdateUserContactDtoValidator.cs
Normal file
27
Knots/Validators/User/UpdateUserContactDtoValidator.cs
Normal file
@@ -0,0 +1,27 @@
|
||||
using FastEndpoints;
|
||||
using FluentValidation;
|
||||
using Knots.DTO.User;
|
||||
|
||||
namespace Knots.Validators.User;
|
||||
|
||||
public class UpdateUserContactDtoValidator : Validator<UpdateUserContactDto>
|
||||
{
|
||||
public UpdateUserContactDtoValidator()
|
||||
{
|
||||
RuleFor(x => x.Id)
|
||||
.NotEmpty()
|
||||
.WithMessage("L'id est requis")
|
||||
.GreaterThan(0)
|
||||
.WithMessage("L'id doit être supérieur à 0");
|
||||
|
||||
RuleFor(x => x.Email)
|
||||
.NotEmpty()
|
||||
.WithMessage("L'email est requis")
|
||||
.EmailAddress()
|
||||
.WithMessage("Ce n'est pas un email valide");
|
||||
|
||||
RuleFor(x => x.Tel)
|
||||
.NotEmpty()
|
||||
.WithMessage("Le numéro de téléphone est requis");
|
||||
}
|
||||
}
|
||||
15
Knots/Validators/User/UpdateUserDescriptionDtoValidator.cs
Normal file
15
Knots/Validators/User/UpdateUserDescriptionDtoValidator.cs
Normal file
@@ -0,0 +1,15 @@
|
||||
using FastEndpoints;
|
||||
using FluentValidation;
|
||||
using Knots.DTO.User;
|
||||
|
||||
namespace Knots.Validators.User;
|
||||
|
||||
public class UpdateUserDescriptionDtoValidator : Validator<UpdateUserDescriptionDto>
|
||||
{
|
||||
public UpdateUserDescriptionDtoValidator()
|
||||
{
|
||||
RuleFor(x => x.Description)
|
||||
.MaximumLength(200)
|
||||
.WithMessage("La description ne doit pas dépasser les 200 caractères");
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
using FastEndpoints;
|
||||
using FluentValidation;
|
||||
using Knots.DTO.User;
|
||||
|
||||
namespace Knots.Validators.User;
|
||||
|
||||
public class UpdateUserProfilePictureDtoValidator : Validator<UpdateUserProfilePictureDto>
|
||||
{
|
||||
public UpdateUserProfilePictureDtoValidator()
|
||||
{
|
||||
RuleFor(x => x.ProfilePicture)
|
||||
.NotEmpty()
|
||||
.WithMessage("La photo de profil ne doit pas être vide");
|
||||
}
|
||||
}
|
||||
17
Knots/Validators/User/UpdateUsernameDtoValidator.cs
Normal file
17
Knots/Validators/User/UpdateUsernameDtoValidator.cs
Normal file
@@ -0,0 +1,17 @@
|
||||
using FastEndpoints;
|
||||
using FluentValidation;
|
||||
using Knots.DTO.User;
|
||||
|
||||
namespace Knots.Validators.User;
|
||||
|
||||
public class UpdateUsernameDtoValidator : Validator<UpdateUsernameDto>
|
||||
{
|
||||
public UpdateUsernameDtoValidator()
|
||||
{
|
||||
RuleFor(x => x.Username)
|
||||
.NotEmpty()
|
||||
.WithMessage("Le nom d'utilisateur doit être renseigné")
|
||||
.MaximumLength(50)
|
||||
.WithMessage("Le nom d'utilisateur ne doit pas dépasser les 50 caractères");
|
||||
}
|
||||
}
|
||||
@@ -13,7 +13,7 @@ using System.Reflection;
|
||||
[assembly: System.Reflection.AssemblyCompanyAttribute("Knots")]
|
||||
[assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")]
|
||||
[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")]
|
||||
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+db76d50079bd8ba155bd61dd1e6de2e36e26ec1b")]
|
||||
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+df6e559f006f05706fd56c688abf1721f8594ba7")]
|
||||
[assembly: System.Reflection.AssemblyProductAttribute("Knots")]
|
||||
[assembly: System.Reflection.AssemblyTitleAttribute("Knots")]
|
||||
[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")]
|
||||
|
||||
@@ -1 +1 @@
|
||||
779fa9ee144195dcfe3057aa46e3c8c1c55ddffa9229c6d8635ec11d69b98c0b
|
||||
90acb1e49f12117818d98ae81eb2954f6e9b7aa37530698d570daa4a254b99a8
|
||||
|
||||
Binary file not shown.
Binary file not shown.
@@ -44,6 +44,10 @@
|
||||
"net8.0": {
|
||||
"targetAlias": "net8.0",
|
||||
"dependencies": {
|
||||
"AutoMapper": {
|
||||
"target": "Package",
|
||||
"version": "[16.1.1, )"
|
||||
},
|
||||
"FastEndpoints": {
|
||||
"target": "Package",
|
||||
"version": "[8.0.1, )"
|
||||
|
||||
@@ -1,8 +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.options/10.0.3/buildTransitive/net8.0/Microsoft.Extensions.Options.targets" Condition="Exists('$(NuGetPackageRoot)microsoft.extensions.options/10.0.3/buildTransitive/net8.0/Microsoft.Extensions.Options.targets')" />
|
||||
<Import Project="$(NuGetPackageRoot)microsoft.extensions.logging.abstractions/10.0.3/buildTransitive/net8.0/Microsoft.Extensions.Logging.Abstractions.targets" Condition="Exists('$(NuGetPackageRoot)microsoft.extensions.logging.abstractions/10.0.3/buildTransitive/net8.0/Microsoft.Extensions.Logging.Abstractions.targets')" />
|
||||
<Import Project="$(NuGetPackageRoot)microsoft.extensions.options/10.0.3/buildTransitive/net8.0/Microsoft.Extensions.Options.targets" Condition="Exists('$(NuGetPackageRoot)microsoft.extensions.options/10.0.3/buildTransitive/net8.0/Microsoft.Extensions.Options.targets')" />
|
||||
<Import Project="$(NuGetPackageRoot)fastendpoints.swagger/8.0.1/build/FastEndpoints.Swagger.targets" Condition="Exists('$(NuGetPackageRoot)fastendpoints.swagger/8.0.1/build/FastEndpoints.Swagger.targets')" />
|
||||
</ImportGroup>
|
||||
</Project>
|
||||
@@ -2,6 +2,24 @@
|
||||
"version": 3,
|
||||
"targets": {
|
||||
"net8.0": {
|
||||
"AutoMapper/16.1.1": {
|
||||
"type": "package",
|
||||
"dependencies": {
|
||||
"Microsoft.Extensions.Logging.Abstractions": "10.0.0",
|
||||
"Microsoft.Extensions.Options": "10.0.0",
|
||||
"Microsoft.IdentityModel.JsonWebTokens": "8.14.0"
|
||||
},
|
||||
"compile": {
|
||||
"lib/net8.0/AutoMapper.dll": {
|
||||
"related": ".xml"
|
||||
}
|
||||
},
|
||||
"runtime": {
|
||||
"lib/net8.0/AutoMapper.dll": {
|
||||
"related": ".xml"
|
||||
}
|
||||
}
|
||||
},
|
||||
"Azure.Core/1.38.0": {
|
||||
"type": "package",
|
||||
"dependencies": {
|
||||
@@ -508,15 +526,6 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"Microsoft.CSharp/4.5.0": {
|
||||
"type": "package",
|
||||
"compile": {
|
||||
"ref/netcoreapp2.0/_._": {}
|
||||
},
|
||||
"runtime": {
|
||||
"lib/netcoreapp2.0/_._": {}
|
||||
}
|
||||
},
|
||||
"Microsoft.Data.SqlClient/5.1.7": {
|
||||
"type": "package",
|
||||
"dependencies": {
|
||||
@@ -964,50 +973,47 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"Microsoft.IdentityModel.Abstractions/6.35.0": {
|
||||
"Microsoft.IdentityModel.Abstractions/8.14.0": {
|
||||
"type": "package",
|
||||
"compile": {
|
||||
"lib/net6.0/Microsoft.IdentityModel.Abstractions.dll": {
|
||||
"lib/net8.0/Microsoft.IdentityModel.Abstractions.dll": {
|
||||
"related": ".xml"
|
||||
}
|
||||
},
|
||||
"runtime": {
|
||||
"lib/net6.0/Microsoft.IdentityModel.Abstractions.dll": {
|
||||
"lib/net8.0/Microsoft.IdentityModel.Abstractions.dll": {
|
||||
"related": ".xml"
|
||||
}
|
||||
}
|
||||
},
|
||||
"Microsoft.IdentityModel.JsonWebTokens/6.35.0": {
|
||||
"Microsoft.IdentityModel.JsonWebTokens/8.14.0": {
|
||||
"type": "package",
|
||||
"dependencies": {
|
||||
"Microsoft.IdentityModel.Tokens": "6.35.0",
|
||||
"System.Text.Encoding": "4.3.0",
|
||||
"System.Text.Encodings.Web": "4.7.2",
|
||||
"System.Text.Json": "4.7.2"
|
||||
"Microsoft.IdentityModel.Tokens": "8.14.0"
|
||||
},
|
||||
"compile": {
|
||||
"lib/net6.0/Microsoft.IdentityModel.JsonWebTokens.dll": {
|
||||
"lib/net8.0/Microsoft.IdentityModel.JsonWebTokens.dll": {
|
||||
"related": ".xml"
|
||||
}
|
||||
},
|
||||
"runtime": {
|
||||
"lib/net6.0/Microsoft.IdentityModel.JsonWebTokens.dll": {
|
||||
"lib/net8.0/Microsoft.IdentityModel.JsonWebTokens.dll": {
|
||||
"related": ".xml"
|
||||
}
|
||||
}
|
||||
},
|
||||
"Microsoft.IdentityModel.Logging/6.35.0": {
|
||||
"Microsoft.IdentityModel.Logging/8.14.0": {
|
||||
"type": "package",
|
||||
"dependencies": {
|
||||
"Microsoft.IdentityModel.Abstractions": "6.35.0"
|
||||
"Microsoft.IdentityModel.Abstractions": "8.14.0"
|
||||
},
|
||||
"compile": {
|
||||
"lib/net6.0/Microsoft.IdentityModel.Logging.dll": {
|
||||
"lib/net8.0/Microsoft.IdentityModel.Logging.dll": {
|
||||
"related": ".xml"
|
||||
}
|
||||
},
|
||||
"runtime": {
|
||||
"lib/net6.0/Microsoft.IdentityModel.Logging.dll": {
|
||||
"lib/net8.0/Microsoft.IdentityModel.Logging.dll": {
|
||||
"related": ".xml"
|
||||
}
|
||||
}
|
||||
@@ -1046,42 +1052,23 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"Microsoft.IdentityModel.Tokens/6.35.0": {
|
||||
"Microsoft.IdentityModel.Tokens/8.14.0": {
|
||||
"type": "package",
|
||||
"dependencies": {
|
||||
"Microsoft.CSharp": "4.5.0",
|
||||
"Microsoft.IdentityModel.Logging": "6.35.0",
|
||||
"System.Security.Cryptography.Cng": "4.5.0"
|
||||
"Microsoft.Extensions.Logging.Abstractions": "8.0.0",
|
||||
"Microsoft.IdentityModel.Logging": "8.14.0"
|
||||
},
|
||||
"compile": {
|
||||
"lib/net6.0/Microsoft.IdentityModel.Tokens.dll": {
|
||||
"lib/net8.0/Microsoft.IdentityModel.Tokens.dll": {
|
||||
"related": ".xml"
|
||||
}
|
||||
},
|
||||
"runtime": {
|
||||
"lib/net6.0/Microsoft.IdentityModel.Tokens.dll": {
|
||||
"lib/net8.0/Microsoft.IdentityModel.Tokens.dll": {
|
||||
"related": ".xml"
|
||||
}
|
||||
}
|
||||
},
|
||||
"Microsoft.NETCore.Platforms/1.1.0": {
|
||||
"type": "package",
|
||||
"compile": {
|
||||
"lib/netstandard1.0/_._": {}
|
||||
},
|
||||
"runtime": {
|
||||
"lib/netstandard1.0/_._": {}
|
||||
}
|
||||
},
|
||||
"Microsoft.NETCore.Targets/1.1.0": {
|
||||
"type": "package",
|
||||
"compile": {
|
||||
"lib/netstandard1.0/_._": {}
|
||||
},
|
||||
"runtime": {
|
||||
"lib/netstandard1.0/_._": {}
|
||||
}
|
||||
},
|
||||
"Microsoft.OpenApi/1.4.3": {
|
||||
"type": "package",
|
||||
"compile": {
|
||||
@@ -1671,18 +1658,6 @@
|
||||
"buildTransitive/netcoreapp3.1/_._": {}
|
||||
}
|
||||
},
|
||||
"System.Runtime/4.3.0": {
|
||||
"type": "package",
|
||||
"dependencies": {
|
||||
"Microsoft.NETCore.Platforms": "1.1.0",
|
||||
"Microsoft.NETCore.Targets": "1.1.0"
|
||||
},
|
||||
"compile": {
|
||||
"ref/netstandard1.5/System.Runtime.dll": {
|
||||
"related": ".xml"
|
||||
}
|
||||
}
|
||||
},
|
||||
"System.Runtime.Caching/6.0.0": {
|
||||
"type": "package",
|
||||
"dependencies": {
|
||||
@@ -1833,19 +1808,6 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"System.Text.Encoding/4.3.0": {
|
||||
"type": "package",
|
||||
"dependencies": {
|
||||
"Microsoft.NETCore.Platforms": "1.1.0",
|
||||
"Microsoft.NETCore.Targets": "1.1.0",
|
||||
"System.Runtime": "4.3.0"
|
||||
},
|
||||
"compile": {
|
||||
"ref/netstandard1.3/System.Text.Encoding.dll": {
|
||||
"related": ".xml"
|
||||
}
|
||||
}
|
||||
},
|
||||
"System.Text.Encoding.CodePages/6.0.0": {
|
||||
"type": "package",
|
||||
"dependencies": {
|
||||
@@ -1969,6 +1931,30 @@
|
||||
}
|
||||
},
|
||||
"libraries": {
|
||||
"AutoMapper/16.1.1": {
|
||||
"sha512": "VNEky8JA15ci+oIDRGHITOGOpV4dILsf8pnn24QhDl2urtqgJ2IXiS/V2EtGU17P/+f6OeFQPJETaZXV9QOIZg==",
|
||||
"type": "package",
|
||||
"path": "automapper/16.1.1",
|
||||
"files": [
|
||||
".nupkg.metadata",
|
||||
".signature.p7s",
|
||||
"LICENSE.md",
|
||||
"README.md",
|
||||
"automapper.16.1.1.nupkg.sha512",
|
||||
"automapper.nuspec",
|
||||
"icon.png",
|
||||
"lib/net10.0/AutoMapper.dll",
|
||||
"lib/net10.0/AutoMapper.xml",
|
||||
"lib/net471/AutoMapper.dll",
|
||||
"lib/net471/AutoMapper.xml",
|
||||
"lib/net8.0/AutoMapper.dll",
|
||||
"lib/net8.0/AutoMapper.xml",
|
||||
"lib/net9.0/AutoMapper.dll",
|
||||
"lib/net9.0/AutoMapper.xml",
|
||||
"lib/netstandard2.0/AutoMapper.dll",
|
||||
"lib/netstandard2.0/AutoMapper.xml"
|
||||
]
|
||||
},
|
||||
"Azure.Core/1.38.0": {
|
||||
"sha512": "IuEgCoVA0ef7E4pQtpC3+TkPbzaoQfa77HlfJDmfuaJUCVJmn7fT0izamZiryW5sYUFKizsftIxMkXKbgIcPMQ==",
|
||||
"type": "package",
|
||||
@@ -2667,74 +2653,6 @@
|
||||
"microsoft.codeanalysis.workspaces.common.nuspec"
|
||||
]
|
||||
},
|
||||
"Microsoft.CSharp/4.5.0": {
|
||||
"sha512": "kaj6Wb4qoMuH3HySFJhxwQfe8R/sJsNJnANrvv8WdFPMoNbKY5htfNscv+LHCu5ipz+49m2e+WQXpLXr9XYemQ==",
|
||||
"type": "package",
|
||||
"path": "microsoft.csharp/4.5.0",
|
||||
"files": [
|
||||
".nupkg.metadata",
|
||||
".signature.p7s",
|
||||
"LICENSE.TXT",
|
||||
"THIRD-PARTY-NOTICES.TXT",
|
||||
"lib/MonoAndroid10/_._",
|
||||
"lib/MonoTouch10/_._",
|
||||
"lib/net45/_._",
|
||||
"lib/netcore50/Microsoft.CSharp.dll",
|
||||
"lib/netcoreapp2.0/_._",
|
||||
"lib/netstandard1.3/Microsoft.CSharp.dll",
|
||||
"lib/netstandard2.0/Microsoft.CSharp.dll",
|
||||
"lib/portable-net45+win8+wp8+wpa81/_._",
|
||||
"lib/uap10.0.16299/_._",
|
||||
"lib/win8/_._",
|
||||
"lib/wp80/_._",
|
||||
"lib/wpa81/_._",
|
||||
"lib/xamarinios10/_._",
|
||||
"lib/xamarinmac20/_._",
|
||||
"lib/xamarintvos10/_._",
|
||||
"lib/xamarinwatchos10/_._",
|
||||
"microsoft.csharp.4.5.0.nupkg.sha512",
|
||||
"microsoft.csharp.nuspec",
|
||||
"ref/MonoAndroid10/_._",
|
||||
"ref/MonoTouch10/_._",
|
||||
"ref/net45/_._",
|
||||
"ref/netcore50/Microsoft.CSharp.dll",
|
||||
"ref/netcore50/Microsoft.CSharp.xml",
|
||||
"ref/netcore50/de/Microsoft.CSharp.xml",
|
||||
"ref/netcore50/es/Microsoft.CSharp.xml",
|
||||
"ref/netcore50/fr/Microsoft.CSharp.xml",
|
||||
"ref/netcore50/it/Microsoft.CSharp.xml",
|
||||
"ref/netcore50/ja/Microsoft.CSharp.xml",
|
||||
"ref/netcore50/ko/Microsoft.CSharp.xml",
|
||||
"ref/netcore50/ru/Microsoft.CSharp.xml",
|
||||
"ref/netcore50/zh-hans/Microsoft.CSharp.xml",
|
||||
"ref/netcore50/zh-hant/Microsoft.CSharp.xml",
|
||||
"ref/netcoreapp2.0/_._",
|
||||
"ref/netstandard1.0/Microsoft.CSharp.dll",
|
||||
"ref/netstandard1.0/Microsoft.CSharp.xml",
|
||||
"ref/netstandard1.0/de/Microsoft.CSharp.xml",
|
||||
"ref/netstandard1.0/es/Microsoft.CSharp.xml",
|
||||
"ref/netstandard1.0/fr/Microsoft.CSharp.xml",
|
||||
"ref/netstandard1.0/it/Microsoft.CSharp.xml",
|
||||
"ref/netstandard1.0/ja/Microsoft.CSharp.xml",
|
||||
"ref/netstandard1.0/ko/Microsoft.CSharp.xml",
|
||||
"ref/netstandard1.0/ru/Microsoft.CSharp.xml",
|
||||
"ref/netstandard1.0/zh-hans/Microsoft.CSharp.xml",
|
||||
"ref/netstandard1.0/zh-hant/Microsoft.CSharp.xml",
|
||||
"ref/netstandard2.0/Microsoft.CSharp.dll",
|
||||
"ref/netstandard2.0/Microsoft.CSharp.xml",
|
||||
"ref/portable-net45+win8+wp8+wpa81/_._",
|
||||
"ref/uap10.0.16299/_._",
|
||||
"ref/win8/_._",
|
||||
"ref/wp80/_._",
|
||||
"ref/wpa81/_._",
|
||||
"ref/xamarinios10/_._",
|
||||
"ref/xamarinmac20/_._",
|
||||
"ref/xamarintvos10/_._",
|
||||
"ref/xamarinwatchos10/_._",
|
||||
"useSharedDesignerContext.txt",
|
||||
"version.txt"
|
||||
]
|
||||
},
|
||||
"Microsoft.Data.SqlClient/5.1.7": {
|
||||
"sha512": "awBwR6pCRyiFqB5z1iu+eMaFmt986JWgaA1+LR+vsdIRBgeBI5X8f3u+ZPnTqlHUwfTugl6ptIObzalWeAPugQ==",
|
||||
"type": "package",
|
||||
@@ -3390,72 +3308,75 @@
|
||||
"microsoft.identity.client.extensions.msal.nuspec"
|
||||
]
|
||||
},
|
||||
"Microsoft.IdentityModel.Abstractions/6.35.0": {
|
||||
"sha512": "xuR8E4Rd96M41CnUSCiOJ2DBh+z+zQSmyrYHdYhD6K4fXBcQGVnRCFQ0efROUYpP+p0zC1BLKr0JRpVuujTZSg==",
|
||||
"Microsoft.IdentityModel.Abstractions/8.14.0": {
|
||||
"sha512": "iwbCpSjD3ehfTwBhtSNEtKPK0ICun6ov7Ibx6ISNA9bfwIyzI2Siwyi9eJFCJBwxowK9xcA1mj+jBWiigeqgcQ==",
|
||||
"type": "package",
|
||||
"path": "microsoft.identitymodel.abstractions/6.35.0",
|
||||
"path": "microsoft.identitymodel.abstractions/8.14.0",
|
||||
"files": [
|
||||
".nupkg.metadata",
|
||||
".signature.p7s",
|
||||
"lib/net45/Microsoft.IdentityModel.Abstractions.dll",
|
||||
"lib/net45/Microsoft.IdentityModel.Abstractions.xml",
|
||||
"lib/net461/Microsoft.IdentityModel.Abstractions.dll",
|
||||
"lib/net461/Microsoft.IdentityModel.Abstractions.xml",
|
||||
"README.md",
|
||||
"lib/net462/Microsoft.IdentityModel.Abstractions.dll",
|
||||
"lib/net462/Microsoft.IdentityModel.Abstractions.xml",
|
||||
"lib/net472/Microsoft.IdentityModel.Abstractions.dll",
|
||||
"lib/net472/Microsoft.IdentityModel.Abstractions.xml",
|
||||
"lib/net6.0/Microsoft.IdentityModel.Abstractions.dll",
|
||||
"lib/net6.0/Microsoft.IdentityModel.Abstractions.xml",
|
||||
"lib/net8.0/Microsoft.IdentityModel.Abstractions.dll",
|
||||
"lib/net8.0/Microsoft.IdentityModel.Abstractions.xml",
|
||||
"lib/net9.0/Microsoft.IdentityModel.Abstractions.dll",
|
||||
"lib/net9.0/Microsoft.IdentityModel.Abstractions.xml",
|
||||
"lib/netstandard2.0/Microsoft.IdentityModel.Abstractions.dll",
|
||||
"lib/netstandard2.0/Microsoft.IdentityModel.Abstractions.xml",
|
||||
"microsoft.identitymodel.abstractions.6.35.0.nupkg.sha512",
|
||||
"microsoft.identitymodel.abstractions.8.14.0.nupkg.sha512",
|
||||
"microsoft.identitymodel.abstractions.nuspec"
|
||||
]
|
||||
},
|
||||
"Microsoft.IdentityModel.JsonWebTokens/6.35.0": {
|
||||
"sha512": "9wxai3hKgZUb4/NjdRKfQd0QJvtXKDlvmGMYACbEC8DFaicMFCFhQFZq9ZET1kJLwZahf2lfY5Gtcpsx8zYzbg==",
|
||||
"Microsoft.IdentityModel.JsonWebTokens/8.14.0": {
|
||||
"sha512": "4jOpiA4THdtpLyMdAb24dtj7+6GmvhOhxf5XHLYWmPKF8ApEnApal1UnJsKO4HxUWRXDA6C4WQVfYyqsRhpNpQ==",
|
||||
"type": "package",
|
||||
"path": "microsoft.identitymodel.jsonwebtokens/6.35.0",
|
||||
"path": "microsoft.identitymodel.jsonwebtokens/8.14.0",
|
||||
"files": [
|
||||
".nupkg.metadata",
|
||||
".signature.p7s",
|
||||
"lib/net45/Microsoft.IdentityModel.JsonWebTokens.dll",
|
||||
"lib/net45/Microsoft.IdentityModel.JsonWebTokens.xml",
|
||||
"lib/net461/Microsoft.IdentityModel.JsonWebTokens.dll",
|
||||
"lib/net461/Microsoft.IdentityModel.JsonWebTokens.xml",
|
||||
"README.md",
|
||||
"lib/net462/Microsoft.IdentityModel.JsonWebTokens.dll",
|
||||
"lib/net462/Microsoft.IdentityModel.JsonWebTokens.xml",
|
||||
"lib/net472/Microsoft.IdentityModel.JsonWebTokens.dll",
|
||||
"lib/net472/Microsoft.IdentityModel.JsonWebTokens.xml",
|
||||
"lib/net6.0/Microsoft.IdentityModel.JsonWebTokens.dll",
|
||||
"lib/net6.0/Microsoft.IdentityModel.JsonWebTokens.xml",
|
||||
"lib/net8.0/Microsoft.IdentityModel.JsonWebTokens.dll",
|
||||
"lib/net8.0/Microsoft.IdentityModel.JsonWebTokens.xml",
|
||||
"lib/net9.0/Microsoft.IdentityModel.JsonWebTokens.dll",
|
||||
"lib/net9.0/Microsoft.IdentityModel.JsonWebTokens.xml",
|
||||
"lib/netstandard2.0/Microsoft.IdentityModel.JsonWebTokens.dll",
|
||||
"lib/netstandard2.0/Microsoft.IdentityModel.JsonWebTokens.xml",
|
||||
"microsoft.identitymodel.jsonwebtokens.6.35.0.nupkg.sha512",
|
||||
"microsoft.identitymodel.jsonwebtokens.8.14.0.nupkg.sha512",
|
||||
"microsoft.identitymodel.jsonwebtokens.nuspec"
|
||||
]
|
||||
},
|
||||
"Microsoft.IdentityModel.Logging/6.35.0": {
|
||||
"sha512": "jePrSfGAmqT81JDCNSY+fxVWoGuJKt9e6eJ+vT7+quVS55nWl//jGjUQn4eFtVKt4rt5dXaleZdHRB9J9AJZ7Q==",
|
||||
"Microsoft.IdentityModel.Logging/8.14.0": {
|
||||
"sha512": "eqqnemdW38CKZEHS6diA50BV94QICozDZEvSrsvN3SJXUFwVB9gy+/oz76gldP7nZliA16IglXjXTCTdmU/Ejg==",
|
||||
"type": "package",
|
||||
"path": "microsoft.identitymodel.logging/6.35.0",
|
||||
"path": "microsoft.identitymodel.logging/8.14.0",
|
||||
"files": [
|
||||
".nupkg.metadata",
|
||||
".signature.p7s",
|
||||
"lib/net45/Microsoft.IdentityModel.Logging.dll",
|
||||
"lib/net45/Microsoft.IdentityModel.Logging.xml",
|
||||
"lib/net461/Microsoft.IdentityModel.Logging.dll",
|
||||
"lib/net461/Microsoft.IdentityModel.Logging.xml",
|
||||
"README.md",
|
||||
"lib/net462/Microsoft.IdentityModel.Logging.dll",
|
||||
"lib/net462/Microsoft.IdentityModel.Logging.xml",
|
||||
"lib/net472/Microsoft.IdentityModel.Logging.dll",
|
||||
"lib/net472/Microsoft.IdentityModel.Logging.xml",
|
||||
"lib/net6.0/Microsoft.IdentityModel.Logging.dll",
|
||||
"lib/net6.0/Microsoft.IdentityModel.Logging.xml",
|
||||
"lib/net8.0/Microsoft.IdentityModel.Logging.dll",
|
||||
"lib/net8.0/Microsoft.IdentityModel.Logging.xml",
|
||||
"lib/net9.0/Microsoft.IdentityModel.Logging.dll",
|
||||
"lib/net9.0/Microsoft.IdentityModel.Logging.xml",
|
||||
"lib/netstandard2.0/Microsoft.IdentityModel.Logging.dll",
|
||||
"lib/netstandard2.0/Microsoft.IdentityModel.Logging.xml",
|
||||
"microsoft.identitymodel.logging.6.35.0.nupkg.sha512",
|
||||
"microsoft.identitymodel.logging.8.14.0.nupkg.sha512",
|
||||
"microsoft.identitymodel.logging.nuspec"
|
||||
]
|
||||
},
|
||||
@@ -3505,59 +3426,30 @@
|
||||
"microsoft.identitymodel.protocols.openidconnect.nuspec"
|
||||
]
|
||||
},
|
||||
"Microsoft.IdentityModel.Tokens/6.35.0": {
|
||||
"sha512": "RN7lvp7s3Boucg1NaNAbqDbxtlLj5Qeb+4uSS1TeK5FSBVM40P4DKaTKChT43sHyKfh7V0zkrMph6DdHvyA4bg==",
|
||||
"Microsoft.IdentityModel.Tokens/8.14.0": {
|
||||
"sha512": "lKIZiBiGd36k02TCdMHp1KlNWisyIvQxcYJvIkz7P4gSQ9zi8dgh6S5Grj8NNG7HWYIPfQymGyoZ6JB5d1Lo1g==",
|
||||
"type": "package",
|
||||
"path": "microsoft.identitymodel.tokens/6.35.0",
|
||||
"path": "microsoft.identitymodel.tokens/8.14.0",
|
||||
"files": [
|
||||
".nupkg.metadata",
|
||||
".signature.p7s",
|
||||
"lib/net45/Microsoft.IdentityModel.Tokens.dll",
|
||||
"lib/net45/Microsoft.IdentityModel.Tokens.xml",
|
||||
"lib/net461/Microsoft.IdentityModel.Tokens.dll",
|
||||
"lib/net461/Microsoft.IdentityModel.Tokens.xml",
|
||||
"README.md",
|
||||
"lib/net462/Microsoft.IdentityModel.Tokens.dll",
|
||||
"lib/net462/Microsoft.IdentityModel.Tokens.xml",
|
||||
"lib/net472/Microsoft.IdentityModel.Tokens.dll",
|
||||
"lib/net472/Microsoft.IdentityModel.Tokens.xml",
|
||||
"lib/net6.0/Microsoft.IdentityModel.Tokens.dll",
|
||||
"lib/net6.0/Microsoft.IdentityModel.Tokens.xml",
|
||||
"lib/net8.0/Microsoft.IdentityModel.Tokens.dll",
|
||||
"lib/net8.0/Microsoft.IdentityModel.Tokens.xml",
|
||||
"lib/net9.0/Microsoft.IdentityModel.Tokens.dll",
|
||||
"lib/net9.0/Microsoft.IdentityModel.Tokens.xml",
|
||||
"lib/netstandard2.0/Microsoft.IdentityModel.Tokens.dll",
|
||||
"lib/netstandard2.0/Microsoft.IdentityModel.Tokens.xml",
|
||||
"microsoft.identitymodel.tokens.6.35.0.nupkg.sha512",
|
||||
"microsoft.identitymodel.tokens.8.14.0.nupkg.sha512",
|
||||
"microsoft.identitymodel.tokens.nuspec"
|
||||
]
|
||||
},
|
||||
"Microsoft.NETCore.Platforms/1.1.0": {
|
||||
"sha512": "kz0PEW2lhqygehI/d6XsPCQzD7ff7gUJaVGPVETX611eadGsA3A877GdSlU0LRVMCTH/+P3o2iDTak+S08V2+A==",
|
||||
"type": "package",
|
||||
"path": "microsoft.netcore.platforms/1.1.0",
|
||||
"files": [
|
||||
".nupkg.metadata",
|
||||
".signature.p7s",
|
||||
"ThirdPartyNotices.txt",
|
||||
"dotnet_library_license.txt",
|
||||
"lib/netstandard1.0/_._",
|
||||
"microsoft.netcore.platforms.1.1.0.nupkg.sha512",
|
||||
"microsoft.netcore.platforms.nuspec",
|
||||
"runtime.json"
|
||||
]
|
||||
},
|
||||
"Microsoft.NETCore.Targets/1.1.0": {
|
||||
"sha512": "aOZA3BWfz9RXjpzt0sRJJMjAscAUm3Hoa4UWAfceV9UTYxgwZ1lZt5nO2myFf+/jetYQo4uTP7zS8sJY67BBxg==",
|
||||
"type": "package",
|
||||
"path": "microsoft.netcore.targets/1.1.0",
|
||||
"files": [
|
||||
".nupkg.metadata",
|
||||
".signature.p7s",
|
||||
"ThirdPartyNotices.txt",
|
||||
"dotnet_library_license.txt",
|
||||
"lib/netstandard1.0/_._",
|
||||
"microsoft.netcore.targets.1.1.0.nupkg.sha512",
|
||||
"microsoft.netcore.targets.nuspec",
|
||||
"runtime.json"
|
||||
]
|
||||
},
|
||||
"Microsoft.OpenApi/1.4.3": {
|
||||
"sha512": "rURwggB+QZYcSVbDr7HSdhw/FELvMlriW10OeOzjPT7pstefMo7IThhtNtDudxbXhW+lj0NfX72Ka5EDsG8x6w==",
|
||||
"type": "package",
|
||||
@@ -4339,98 +4231,6 @@
|
||||
"useSharedDesignerContext.txt"
|
||||
]
|
||||
},
|
||||
"System.Runtime/4.3.0": {
|
||||
"sha512": "JufQi0vPQ0xGnAczR13AUFglDyVYt4Kqnz1AZaiKZ5+GICq0/1MH/mO/eAJHt/mHW1zjKBJd7kV26SrxddAhiw==",
|
||||
"type": "package",
|
||||
"path": "system.runtime/4.3.0",
|
||||
"files": [
|
||||
".nupkg.metadata",
|
||||
".signature.p7s",
|
||||
"ThirdPartyNotices.txt",
|
||||
"dotnet_library_license.txt",
|
||||
"lib/MonoAndroid10/_._",
|
||||
"lib/MonoTouch10/_._",
|
||||
"lib/net45/_._",
|
||||
"lib/net462/System.Runtime.dll",
|
||||
"lib/portable-net45+win8+wp80+wpa81/_._",
|
||||
"lib/win8/_._",
|
||||
"lib/wp80/_._",
|
||||
"lib/wpa81/_._",
|
||||
"lib/xamarinios10/_._",
|
||||
"lib/xamarinmac20/_._",
|
||||
"lib/xamarintvos10/_._",
|
||||
"lib/xamarinwatchos10/_._",
|
||||
"ref/MonoAndroid10/_._",
|
||||
"ref/MonoTouch10/_._",
|
||||
"ref/net45/_._",
|
||||
"ref/net462/System.Runtime.dll",
|
||||
"ref/netcore50/System.Runtime.dll",
|
||||
"ref/netcore50/System.Runtime.xml",
|
||||
"ref/netcore50/de/System.Runtime.xml",
|
||||
"ref/netcore50/es/System.Runtime.xml",
|
||||
"ref/netcore50/fr/System.Runtime.xml",
|
||||
"ref/netcore50/it/System.Runtime.xml",
|
||||
"ref/netcore50/ja/System.Runtime.xml",
|
||||
"ref/netcore50/ko/System.Runtime.xml",
|
||||
"ref/netcore50/ru/System.Runtime.xml",
|
||||
"ref/netcore50/zh-hans/System.Runtime.xml",
|
||||
"ref/netcore50/zh-hant/System.Runtime.xml",
|
||||
"ref/netstandard1.0/System.Runtime.dll",
|
||||
"ref/netstandard1.0/System.Runtime.xml",
|
||||
"ref/netstandard1.0/de/System.Runtime.xml",
|
||||
"ref/netstandard1.0/es/System.Runtime.xml",
|
||||
"ref/netstandard1.0/fr/System.Runtime.xml",
|
||||
"ref/netstandard1.0/it/System.Runtime.xml",
|
||||
"ref/netstandard1.0/ja/System.Runtime.xml",
|
||||
"ref/netstandard1.0/ko/System.Runtime.xml",
|
||||
"ref/netstandard1.0/ru/System.Runtime.xml",
|
||||
"ref/netstandard1.0/zh-hans/System.Runtime.xml",
|
||||
"ref/netstandard1.0/zh-hant/System.Runtime.xml",
|
||||
"ref/netstandard1.2/System.Runtime.dll",
|
||||
"ref/netstandard1.2/System.Runtime.xml",
|
||||
"ref/netstandard1.2/de/System.Runtime.xml",
|
||||
"ref/netstandard1.2/es/System.Runtime.xml",
|
||||
"ref/netstandard1.2/fr/System.Runtime.xml",
|
||||
"ref/netstandard1.2/it/System.Runtime.xml",
|
||||
"ref/netstandard1.2/ja/System.Runtime.xml",
|
||||
"ref/netstandard1.2/ko/System.Runtime.xml",
|
||||
"ref/netstandard1.2/ru/System.Runtime.xml",
|
||||
"ref/netstandard1.2/zh-hans/System.Runtime.xml",
|
||||
"ref/netstandard1.2/zh-hant/System.Runtime.xml",
|
||||
"ref/netstandard1.3/System.Runtime.dll",
|
||||
"ref/netstandard1.3/System.Runtime.xml",
|
||||
"ref/netstandard1.3/de/System.Runtime.xml",
|
||||
"ref/netstandard1.3/es/System.Runtime.xml",
|
||||
"ref/netstandard1.3/fr/System.Runtime.xml",
|
||||
"ref/netstandard1.3/it/System.Runtime.xml",
|
||||
"ref/netstandard1.3/ja/System.Runtime.xml",
|
||||
"ref/netstandard1.3/ko/System.Runtime.xml",
|
||||
"ref/netstandard1.3/ru/System.Runtime.xml",
|
||||
"ref/netstandard1.3/zh-hans/System.Runtime.xml",
|
||||
"ref/netstandard1.3/zh-hant/System.Runtime.xml",
|
||||
"ref/netstandard1.5/System.Runtime.dll",
|
||||
"ref/netstandard1.5/System.Runtime.xml",
|
||||
"ref/netstandard1.5/de/System.Runtime.xml",
|
||||
"ref/netstandard1.5/es/System.Runtime.xml",
|
||||
"ref/netstandard1.5/fr/System.Runtime.xml",
|
||||
"ref/netstandard1.5/it/System.Runtime.xml",
|
||||
"ref/netstandard1.5/ja/System.Runtime.xml",
|
||||
"ref/netstandard1.5/ko/System.Runtime.xml",
|
||||
"ref/netstandard1.5/ru/System.Runtime.xml",
|
||||
"ref/netstandard1.5/zh-hans/System.Runtime.xml",
|
||||
"ref/netstandard1.5/zh-hant/System.Runtime.xml",
|
||||
"ref/portable-net45+win8+wp80+wpa81/_._",
|
||||
"ref/win8/_._",
|
||||
"ref/wp80/_._",
|
||||
"ref/wpa81/_._",
|
||||
"ref/xamarinios10/_._",
|
||||
"ref/xamarinmac20/_._",
|
||||
"ref/xamarintvos10/_._",
|
||||
"ref/xamarinwatchos10/_._",
|
||||
"system.runtime.4.3.0.nupkg.sha512",
|
||||
"system.runtime.nuspec"
|
||||
]
|
||||
},
|
||||
"System.Runtime.Caching/6.0.0": {
|
||||
"sha512": "E0e03kUp5X2k+UAoVl6efmI7uU7JRBWi5EIdlQ7cr0NpBGjHG4fWII35PgsBY9T4fJQ8E4QPsL0rKksU9gcL5A==",
|
||||
"type": "package",
|
||||
@@ -4722,74 +4522,6 @@
|
||||
"version.txt"
|
||||
]
|
||||
},
|
||||
"System.Text.Encoding/4.3.0": {
|
||||
"sha512": "BiIg+KWaSDOITze6jGQynxg64naAPtqGHBwDrLaCtixsa5bKiR8dpPOHA7ge3C0JJQizJE+sfkz1wV+BAKAYZw==",
|
||||
"type": "package",
|
||||
"path": "system.text.encoding/4.3.0",
|
||||
"files": [
|
||||
".nupkg.metadata",
|
||||
".signature.p7s",
|
||||
"ThirdPartyNotices.txt",
|
||||
"dotnet_library_license.txt",
|
||||
"lib/MonoAndroid10/_._",
|
||||
"lib/MonoTouch10/_._",
|
||||
"lib/net45/_._",
|
||||
"lib/portable-net45+win8+wp8+wpa81/_._",
|
||||
"lib/win8/_._",
|
||||
"lib/wp80/_._",
|
||||
"lib/wpa81/_._",
|
||||
"lib/xamarinios10/_._",
|
||||
"lib/xamarinmac20/_._",
|
||||
"lib/xamarintvos10/_._",
|
||||
"lib/xamarinwatchos10/_._",
|
||||
"ref/MonoAndroid10/_._",
|
||||
"ref/MonoTouch10/_._",
|
||||
"ref/net45/_._",
|
||||
"ref/netcore50/System.Text.Encoding.dll",
|
||||
"ref/netcore50/System.Text.Encoding.xml",
|
||||
"ref/netcore50/de/System.Text.Encoding.xml",
|
||||
"ref/netcore50/es/System.Text.Encoding.xml",
|
||||
"ref/netcore50/fr/System.Text.Encoding.xml",
|
||||
"ref/netcore50/it/System.Text.Encoding.xml",
|
||||
"ref/netcore50/ja/System.Text.Encoding.xml",
|
||||
"ref/netcore50/ko/System.Text.Encoding.xml",
|
||||
"ref/netcore50/ru/System.Text.Encoding.xml",
|
||||
"ref/netcore50/zh-hans/System.Text.Encoding.xml",
|
||||
"ref/netcore50/zh-hant/System.Text.Encoding.xml",
|
||||
"ref/netstandard1.0/System.Text.Encoding.dll",
|
||||
"ref/netstandard1.0/System.Text.Encoding.xml",
|
||||
"ref/netstandard1.0/de/System.Text.Encoding.xml",
|
||||
"ref/netstandard1.0/es/System.Text.Encoding.xml",
|
||||
"ref/netstandard1.0/fr/System.Text.Encoding.xml",
|
||||
"ref/netstandard1.0/it/System.Text.Encoding.xml",
|
||||
"ref/netstandard1.0/ja/System.Text.Encoding.xml",
|
||||
"ref/netstandard1.0/ko/System.Text.Encoding.xml",
|
||||
"ref/netstandard1.0/ru/System.Text.Encoding.xml",
|
||||
"ref/netstandard1.0/zh-hans/System.Text.Encoding.xml",
|
||||
"ref/netstandard1.0/zh-hant/System.Text.Encoding.xml",
|
||||
"ref/netstandard1.3/System.Text.Encoding.dll",
|
||||
"ref/netstandard1.3/System.Text.Encoding.xml",
|
||||
"ref/netstandard1.3/de/System.Text.Encoding.xml",
|
||||
"ref/netstandard1.3/es/System.Text.Encoding.xml",
|
||||
"ref/netstandard1.3/fr/System.Text.Encoding.xml",
|
||||
"ref/netstandard1.3/it/System.Text.Encoding.xml",
|
||||
"ref/netstandard1.3/ja/System.Text.Encoding.xml",
|
||||
"ref/netstandard1.3/ko/System.Text.Encoding.xml",
|
||||
"ref/netstandard1.3/ru/System.Text.Encoding.xml",
|
||||
"ref/netstandard1.3/zh-hans/System.Text.Encoding.xml",
|
||||
"ref/netstandard1.3/zh-hant/System.Text.Encoding.xml",
|
||||
"ref/portable-net45+win8+wp8+wpa81/_._",
|
||||
"ref/win8/_._",
|
||||
"ref/wp80/_._",
|
||||
"ref/wpa81/_._",
|
||||
"ref/xamarinios10/_._",
|
||||
"ref/xamarinmac20/_._",
|
||||
"ref/xamarintvos10/_._",
|
||||
"ref/xamarinwatchos10/_._",
|
||||
"system.text.encoding.4.3.0.nupkg.sha512",
|
||||
"system.text.encoding.nuspec"
|
||||
]
|
||||
},
|
||||
"System.Text.Encoding.CodePages/6.0.0": {
|
||||
"sha512": "ZFCILZuOvtKPauZ/j/swhvw68ZRi9ATCfvGbk1QfydmcXBkIWecWKn/250UH7rahZ5OoDBaiAudJtPvLwzw85A==",
|
||||
"type": "package",
|
||||
@@ -4999,6 +4731,7 @@
|
||||
},
|
||||
"projectFileDependencyGroups": {
|
||||
"net8.0": [
|
||||
"AutoMapper >= 16.1.1",
|
||||
"FastEndpoints >= 8.0.1",
|
||||
"FastEndpoints.Swagger >= 8.0.1",
|
||||
"Microsoft.AspNetCore.OpenApi >= 8.0.25",
|
||||
@@ -5050,6 +4783,10 @@
|
||||
"net8.0": {
|
||||
"targetAlias": "net8.0",
|
||||
"dependencies": {
|
||||
"AutoMapper": {
|
||||
"target": "Package",
|
||||
"version": "[16.1.1, )"
|
||||
},
|
||||
"FastEndpoints": {
|
||||
"target": "Package",
|
||||
"version": "[8.0.1, )"
|
||||
|
||||
@@ -1,9 +1,10 @@
|
||||
{
|
||||
"version": 2,
|
||||
"dgSpecHash": "lsp1T+UmcqI=",
|
||||
"dgSpecHash": "QMXvplaiSZ0=",
|
||||
"success": true,
|
||||
"projectFilePath": "/home/carteronm@stsio.lan/RiderProjects/Knots/Knots/Knots.csproj",
|
||||
"expectedPackageFiles": [
|
||||
"/home/carteronm@stsio.lan/.nuget/packages/automapper/16.1.1/automapper.16.1.1.nupkg.sha512",
|
||||
"/home/carteronm@stsio.lan/.nuget/packages/azure.core/1.38.0/azure.core.1.38.0.nupkg.sha512",
|
||||
"/home/carteronm@stsio.lan/.nuget/packages/azure.identity/1.11.4/azure.identity.1.11.4.nupkg.sha512",
|
||||
"/home/carteronm@stsio.lan/.nuget/packages/fastendpoints/8.0.1/fastendpoints.8.0.1.nupkg.sha512",
|
||||
@@ -24,7 +25,6 @@
|
||||
"/home/carteronm@stsio.lan/.nuget/packages/microsoft.codeanalysis.csharp/4.5.0/microsoft.codeanalysis.csharp.4.5.0.nupkg.sha512",
|
||||
"/home/carteronm@stsio.lan/.nuget/packages/microsoft.codeanalysis.csharp.workspaces/4.5.0/microsoft.codeanalysis.csharp.workspaces.4.5.0.nupkg.sha512",
|
||||
"/home/carteronm@stsio.lan/.nuget/packages/microsoft.codeanalysis.workspaces.common/4.5.0/microsoft.codeanalysis.workspaces.common.4.5.0.nupkg.sha512",
|
||||
"/home/carteronm@stsio.lan/.nuget/packages/microsoft.csharp/4.5.0/microsoft.csharp.4.5.0.nupkg.sha512",
|
||||
"/home/carteronm@stsio.lan/.nuget/packages/microsoft.data.sqlclient/5.1.7/microsoft.data.sqlclient.5.1.7.nupkg.sha512",
|
||||
"/home/carteronm@stsio.lan/.nuget/packages/microsoft.data.sqlclient.sni.runtime/5.1.2/microsoft.data.sqlclient.sni.runtime.5.1.2.nupkg.sha512",
|
||||
"/home/carteronm@stsio.lan/.nuget/packages/microsoft.entityframeworkcore/8.0.25/microsoft.entityframeworkcore.8.0.25.nupkg.sha512",
|
||||
@@ -48,14 +48,12 @@
|
||||
"/home/carteronm@stsio.lan/.nuget/packages/microsoft.extensions.primitives/10.0.3/microsoft.extensions.primitives.10.0.3.nupkg.sha512",
|
||||
"/home/carteronm@stsio.lan/.nuget/packages/microsoft.identity.client/4.61.3/microsoft.identity.client.4.61.3.nupkg.sha512",
|
||||
"/home/carteronm@stsio.lan/.nuget/packages/microsoft.identity.client.extensions.msal/4.61.3/microsoft.identity.client.extensions.msal.4.61.3.nupkg.sha512",
|
||||
"/home/carteronm@stsio.lan/.nuget/packages/microsoft.identitymodel.abstractions/6.35.0/microsoft.identitymodel.abstractions.6.35.0.nupkg.sha512",
|
||||
"/home/carteronm@stsio.lan/.nuget/packages/microsoft.identitymodel.jsonwebtokens/6.35.0/microsoft.identitymodel.jsonwebtokens.6.35.0.nupkg.sha512",
|
||||
"/home/carteronm@stsio.lan/.nuget/packages/microsoft.identitymodel.logging/6.35.0/microsoft.identitymodel.logging.6.35.0.nupkg.sha512",
|
||||
"/home/carteronm@stsio.lan/.nuget/packages/microsoft.identitymodel.abstractions/8.14.0/microsoft.identitymodel.abstractions.8.14.0.nupkg.sha512",
|
||||
"/home/carteronm@stsio.lan/.nuget/packages/microsoft.identitymodel.jsonwebtokens/8.14.0/microsoft.identitymodel.jsonwebtokens.8.14.0.nupkg.sha512",
|
||||
"/home/carteronm@stsio.lan/.nuget/packages/microsoft.identitymodel.logging/8.14.0/microsoft.identitymodel.logging.8.14.0.nupkg.sha512",
|
||||
"/home/carteronm@stsio.lan/.nuget/packages/microsoft.identitymodel.protocols/6.35.0/microsoft.identitymodel.protocols.6.35.0.nupkg.sha512",
|
||||
"/home/carteronm@stsio.lan/.nuget/packages/microsoft.identitymodel.protocols.openidconnect/6.35.0/microsoft.identitymodel.protocols.openidconnect.6.35.0.nupkg.sha512",
|
||||
"/home/carteronm@stsio.lan/.nuget/packages/microsoft.identitymodel.tokens/6.35.0/microsoft.identitymodel.tokens.6.35.0.nupkg.sha512",
|
||||
"/home/carteronm@stsio.lan/.nuget/packages/microsoft.netcore.platforms/1.1.0/microsoft.netcore.platforms.1.1.0.nupkg.sha512",
|
||||
"/home/carteronm@stsio.lan/.nuget/packages/microsoft.netcore.targets/1.1.0/microsoft.netcore.targets.1.1.0.nupkg.sha512",
|
||||
"/home/carteronm@stsio.lan/.nuget/packages/microsoft.identitymodel.tokens/8.14.0/microsoft.identitymodel.tokens.8.14.0.nupkg.sha512",
|
||||
"/home/carteronm@stsio.lan/.nuget/packages/microsoft.openapi/1.4.3/microsoft.openapi.1.4.3.nupkg.sha512",
|
||||
"/home/carteronm@stsio.lan/.nuget/packages/microsoft.sqlserver.server/1.0.0/microsoft.sqlserver.server.1.0.0.nupkg.sha512",
|
||||
"/home/carteronm@stsio.lan/.nuget/packages/microsoft.win32.systemevents/6.0.0/microsoft.win32.systemevents.6.0.0.nupkg.sha512",
|
||||
@@ -91,7 +89,6 @@
|
||||
"/home/carteronm@stsio.lan/.nuget/packages/system.memory.data/1.0.2/system.memory.data.1.0.2.nupkg.sha512",
|
||||
"/home/carteronm@stsio.lan/.nuget/packages/system.numerics.vectors/4.5.0/system.numerics.vectors.4.5.0.nupkg.sha512",
|
||||
"/home/carteronm@stsio.lan/.nuget/packages/system.reflection.metadata/6.0.1/system.reflection.metadata.6.0.1.nupkg.sha512",
|
||||
"/home/carteronm@stsio.lan/.nuget/packages/system.runtime/4.3.0/system.runtime.4.3.0.nupkg.sha512",
|
||||
"/home/carteronm@stsio.lan/.nuget/packages/system.runtime.caching/6.0.0/system.runtime.caching.6.0.0.nupkg.sha512",
|
||||
"/home/carteronm@stsio.lan/.nuget/packages/system.runtime.compilerservices.unsafe/6.0.0/system.runtime.compilerservices.unsafe.6.0.0.nupkg.sha512",
|
||||
"/home/carteronm@stsio.lan/.nuget/packages/system.security.accesscontrol/6.0.0/system.security.accesscontrol.6.0.0.nupkg.sha512",
|
||||
@@ -99,7 +96,6 @@
|
||||
"/home/carteronm@stsio.lan/.nuget/packages/system.security.cryptography.protecteddata/6.0.0/system.security.cryptography.protecteddata.6.0.0.nupkg.sha512",
|
||||
"/home/carteronm@stsio.lan/.nuget/packages/system.security.permissions/6.0.0/system.security.permissions.6.0.0.nupkg.sha512",
|
||||
"/home/carteronm@stsio.lan/.nuget/packages/system.security.principal.windows/5.0.0/system.security.principal.windows.5.0.0.nupkg.sha512",
|
||||
"/home/carteronm@stsio.lan/.nuget/packages/system.text.encoding/4.3.0/system.text.encoding.4.3.0.nupkg.sha512",
|
||||
"/home/carteronm@stsio.lan/.nuget/packages/system.text.encoding.codepages/6.0.0/system.text.encoding.codepages.6.0.0.nupkg.sha512",
|
||||
"/home/carteronm@stsio.lan/.nuget/packages/system.text.encodings.web/8.0.0/system.text.encodings.web.8.0.0.nupkg.sha512",
|
||||
"/home/carteronm@stsio.lan/.nuget/packages/system.text.json/4.7.2/system.text.json.4.7.2.nupkg.sha512",
|
||||
|
||||
@@ -1 +1 @@
|
||||
"restore":{"projectUniqueName":"/home/carteronm@stsio.lan/RiderProjects/Knots/Knots/Knots.csproj","projectName":"Knots","projectPath":"/home/carteronm@stsio.lan/RiderProjects/Knots/Knots/Knots.csproj","outputPath":"/home/carteronm@stsio.lan/RiderProjects/Knots/Knots/obj/","projectStyle":"PackageReference","originalTargetFrameworks":["net8.0"],"sources":{"/usr/share/dotnet/library-packs":{},"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":"[8.0.1, )"},"FastEndpoints.Swagger":{"target":"Package","version":"[8.0.1, )"},"Microsoft.AspNetCore.OpenApi":{"target":"Package","version":"[8.0.25, )"},"Microsoft.EntityFrameworkCore":{"target":"Package","version":"[8.0.25, )"},"Microsoft.EntityFrameworkCore.Design":{"include":"Runtime, Build, Native, ContentFiles, Analyzers, BuildTransitive","suppressParent":"All","target":"Package","version":"[8.0.25, )"},"Microsoft.EntityFrameworkCore.SqlServer":{"target":"Package","version":"[8.0.25, )"}},"imports":["net461","net462","net47","net471","net472","net48","net481"],"assetTargetFallback":true,"warn":true,"frameworkReferences":{"Microsoft.AspNetCore.App":{"privateAssets":"none"},"Microsoft.NETCore.App":{"privateAssets":"all"}},"runtimeIdentifierGraphPath":"/usr/share/dotnet/sdk/8.0.416/PortableRuntimeIdentifierGraph.json"}}
|
||||
"restore":{"projectUniqueName":"/home/carteronm@stsio.lan/RiderProjects/Knots/Knots/Knots.csproj","projectName":"Knots","projectPath":"/home/carteronm@stsio.lan/RiderProjects/Knots/Knots/Knots.csproj","outputPath":"/home/carteronm@stsio.lan/RiderProjects/Knots/Knots/obj/","projectStyle":"PackageReference","originalTargetFrameworks":["net8.0"],"sources":{"/usr/share/dotnet/library-packs":{},"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":{"AutoMapper":{"target":"Package","version":"[16.1.1, )"},"FastEndpoints":{"target":"Package","version":"[8.0.1, )"},"FastEndpoints.Swagger":{"target":"Package","version":"[8.0.1, )"},"Microsoft.AspNetCore.OpenApi":{"target":"Package","version":"[8.0.25, )"},"Microsoft.EntityFrameworkCore":{"target":"Package","version":"[8.0.25, )"},"Microsoft.EntityFrameworkCore.Design":{"include":"Runtime, Build, Native, ContentFiles, Analyzers, BuildTransitive","suppressParent":"All","target":"Package","version":"[8.0.25, )"},"Microsoft.EntityFrameworkCore.SqlServer":{"target":"Package","version":"[8.0.25, )"}},"imports":["net461","net462","net47","net471","net472","net48","net481"],"assetTargetFallback":true,"warn":true,"frameworkReferences":{"Microsoft.AspNetCore.App":{"privateAssets":"none"},"Microsoft.NETCore.App":{"privateAssets":"all"}},"runtimeIdentifierGraphPath":"/usr/share/dotnet/sdk/8.0.416/PortableRuntimeIdentifierGraph.json"}}
|
||||
@@ -1 +1 @@
|
||||
17733306544048221
|
||||
17739351490327864
|
||||
@@ -1 +1 @@
|
||||
17733307741808199
|
||||
17739363871102420
|
||||
Reference in New Issue
Block a user