diff --git a/src/ReC.API/Controllers/RecActionController.cs b/src/ReC.API/Controllers/RecActionController.cs index 5d49c08..524c886 100644 --- a/src/ReC.API/Controllers/RecActionController.cs +++ b/src/ReC.API/Controllers/RecActionController.cs @@ -37,7 +37,7 @@ public class RecActionController(IMediator mediator) : ControllerBase CancellationToken cancel, [FromBody] FakeRequest? request = null, [FromQuery] string endpointUri = "https://jsonplaceholder.typicode.com/posts", - [FromQuery] string? endpointPath = null, + [FromQuery] string? endpointPath = "1", [FromQuery] string type = "GET") { if (endpointPath is not null) diff --git a/src/ReC.Application/Endpoints/MappingProfile.cs b/src/ReC.Application/Endpoints/MappingProfile.cs index 68653a9..4e9d02e 100644 --- a/src/ReC.Application/Endpoints/MappingProfile.cs +++ b/src/ReC.Application/Endpoints/MappingProfile.cs @@ -7,6 +7,7 @@ public class MappingProfile : AutoMapper.Profile { public MappingProfile() { - CreateMap(); + CreateMap() + .ForMember(e => e.Active, exp => exp.MapFrom(cmd => true)); } }