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

fix attachment issues

parent 7403cb9a
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
"AllowedHosts": "*", "AllowedHosts": "*",
"JwtSettings": { "JwtSettings": {
"secret": "super-secret-key", "secret": "super-secret-key",
"ExpireMinutes": 60, "ExpireMinutes": 6000,
"Issuer": "HIAST-PS-Management-Server", "Issuer": "HIAST-PS-Management-Server",
"Audience": "All" "Audience": "All"
}, },
...@@ -20,6 +20,6 @@ ...@@ -20,6 +20,6 @@
"SyncIntervalInMinutes": 60 "SyncIntervalInMinutes": 60
}, },
"FileServiceSettings": { "FileServiceSettings": {
"AvailableExtension": ["png","pdf"] "AvailableExtension": [".png",".pdf"]
} }
} }
...@@ -7,8 +7,9 @@ namespace PSManagement.Application.ProjectsTypes.UseCases.Commands.CreateNewType ...@@ -7,8 +7,9 @@ namespace PSManagement.Application.ProjectsTypes.UseCases.Commands.CreateNewType
public record CreateNewTypeCommand( public record CreateNewTypeCommand(
string TypeName, string TypeName,
string Description, string Description,
int ExpectedEffort int ExpectedEffort,
int ExpectedNumberOfWorker
) : ILoggableCommand<Result<int>>; ) : ILoggableCommand<Result<int>>;
} }
...@@ -7,7 +7,9 @@ namespace PSManagement.Application.ProjectsTypes.UseCases.Commands.CreateNewType ...@@ -7,7 +7,9 @@ namespace PSManagement.Application.ProjectsTypes.UseCases.Commands.CreateNewType
int Id, int Id,
string TypeName, string TypeName,
string Description, string Description,
int ExpectedEffort int ExpectedEffort,
int ExpectedNumberOfWorker
) : ILoggableCommand<Result>; ) : ILoggableCommand<Result>;
} }
...@@ -9,8 +9,9 @@ namespace PSManagement.Contracts.ProjectsTypes.Request ...@@ -9,8 +9,9 @@ namespace PSManagement.Contracts.ProjectsTypes.Request
public record CreateNewTypeRequest( public record CreateNewTypeRequest(
string TypeName, string TypeName,
string Description, string Description,
int ExpectedEffort int ExpectedEffort,
int ExpectedNumberOfWorker
); );
} }
...@@ -4,7 +4,8 @@ ...@@ -4,7 +4,8 @@
int Id, int Id,
string TypeName, string TypeName,
string Description, string Description,
int ExpectedEffort int ExpectedEffort,
int ExpectedNumberOfWorker
); );
} }
...@@ -58,7 +58,7 @@ namespace PSManagement.Presentation.Controllers.Projects ...@@ -58,7 +58,7 @@ namespace PSManagement.Presentation.Controllers.Projects
return HandleResult(result); return HandleResult(result);
} }
[HttpGet("ParticipationChangeHistory")] [HttpGet("ParticipationChangeHistory/{id}")]
public async Task<IActionResult> GetPartiipationChangesHistory(int id ) public async Task<IActionResult> GetPartiipationChangesHistory(int id )
{ {
var query = new GetParticipationChangeHistoryQuery(id); var query = new GetParticipationChangeHistoryQuery(id);
...@@ -260,7 +260,7 @@ namespace PSManagement.Presentation.Controllers.Projects ...@@ -260,7 +260,7 @@ namespace PSManagement.Presentation.Controllers.Projects
return HandleResult(result); return HandleResult(result);
} }
[HttpGet("Attachments/{id}")] [HttpGet("Attachments")]
public async Task<IActionResult> GetAttachments([FromQuery] GetProjectAttachmentsRequest request) public async Task<IActionResult> GetAttachments([FromQuery] GetProjectAttachmentsRequest request)
{ {
var query = _mapper.Map<GetProjectAttachmentsQuery>(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