Commit 944b8ce2 authored by hasan khaddour's avatar hasan khaddour

fix attachment issues

parent 7403cb9a
......@@ -9,7 +9,7 @@
"AllowedHosts": "*",
"JwtSettings": {
"secret": "super-secret-key",
"ExpireMinutes": 60,
"ExpireMinutes": 6000,
"Issuer": "HIAST-PS-Management-Server",
"Audience": "All"
},
......@@ -20,6 +20,6 @@
"SyncIntervalInMinutes": 60
},
"FileServiceSettings": {
"AvailableExtension": ["png","pdf"]
"AvailableExtension": [".png",".pdf"]
}
}
......@@ -7,8 +7,9 @@ namespace PSManagement.Application.ProjectsTypes.UseCases.Commands.CreateNewType
public record CreateNewTypeCommand(
string TypeName,
string Description,
int ExpectedEffort
int ExpectedEffort,
int ExpectedNumberOfWorker
) : ILoggableCommand<Result<int>>;
}
......@@ -7,7 +7,9 @@ namespace PSManagement.Application.ProjectsTypes.UseCases.Commands.CreateNewType
int Id,
string TypeName,
string Description,
int ExpectedEffort
int ExpectedEffort,
int ExpectedNumberOfWorker
) : ILoggableCommand<Result>;
}
......@@ -9,8 +9,9 @@ namespace PSManagement.Contracts.ProjectsTypes.Request
public record CreateNewTypeRequest(
string TypeName,
string Description,
int ExpectedEffort
int ExpectedEffort,
int ExpectedNumberOfWorker
);
}
......@@ -4,7 +4,8 @@
int Id,
string TypeName,
string Description,
int ExpectedEffort
int ExpectedEffort,
int ExpectedNumberOfWorker
);
}
......@@ -58,7 +58,7 @@ namespace PSManagement.Presentation.Controllers.Projects
return HandleResult(result);
}
[HttpGet("ParticipationChangeHistory")]
[HttpGet("ParticipationChangeHistory/{id}")]
public async Task<IActionResult> GetPartiipationChangesHistory(int id )
{
var query = new GetParticipationChangeHistoryQuery(id);
......@@ -260,7 +260,7 @@ namespace PSManagement.Presentation.Controllers.Projects
return HandleResult(result);
}
[HttpGet("Attachments/{id}")]
[HttpGet("Attachments")]
public async Task<IActionResult> GetAttachments([FromQuery] GetProjectAttachmentsRequest request)
{
var query = _mapper.Map<GetProjectAttachmentsQuery>(request);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment