generated from Terranaut/template_container_service
feature/api #2
Labels
No labels
bug
duplicate
enhancement
help wanted
invalid
question
wontfix
No milestone
No project
3 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
Terranaut/UserProfile!2
Loading…
Reference in a new issue
No description provided.
Delete branch "feature/api"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Add a GetAvatarById endpoint in the user ApiUser
Check difference between typedResults and results.
@ -0,0 +6,4 @@static public class ApiUser{static public async Task<IResult> PutUser(int id, User.UserDtoPut UserDtoEntity, UserDbContext db)Avatar isn't properly fetched
@ -0,0 +36,4 @@if (entry.State == EntityState.Modified || entry.State == EntityState.Added){if (updatedAtProp != null)entry.Property("Update_at").CurrentValue = DateTime.UtcNow;Re add the created at like on the #1 PR
@ -0,0 +64,4 @@public string? Bio { get; set;}public string? Country { get; set; }public string FriendCode { get; init; } = RandomNumberGenerator.GetHexString(10);public DateTime Created_at { get; init; } = DateTime.UtcNow;Remove the management of created at, stay on the #1 PR version
@ -42,0 +45,4 @@api.MapPatch("/country", ApiUser.PatchCountryById);api.MapPatch("/bio", ApiUser.PatchBioById);api.MapPatch("/avatar", ApiUser.PatchAvatarById).DisableAntiforgery();api.MapGet("/avatar/{avatarName}", ApiUser.getAvatarByName);You can do sub groups for user and avatar (Sucesses in the future)
@ -0,0 +118,4 @@}}public class SuccesTypo : Sucess
@ -0,0 +128,4 @@public DateTime? Update_at { get; set; }}public class SuccesUserSucessUser*
@ -0,0 +124,4 @@public int Id { get; set; }public required string Name { get; set; }public string? Legend { get; set; }public DateTime? Created_at { get; set; } = DateTime.UtcNow;Needs to be managed at interceptor
@ -0,0 +136,4 @@public required int Id_user { get; set; }[ForeignKey("Succes")]public required int Id_succes { get; set; }public DateTime? Created_at { get; set; } = DateTime.UtcNow;Needs to be managed at interceptor
Perfect, thanks
great work but pls make a check to not give the same friend code to 2 people.
Pull request closed