diff --git a/e-suite.API.Common/e-suite.API.Common/PostAssignmentComplete.cs b/e-suite.API.Common/e-suite.API.Common/PostAssignmentComplete.cs new file mode 100644 index 0000000..e78d86c --- /dev/null +++ b/e-suite.API.Common/e-suite.API.Common/PostAssignmentComplete.cs @@ -0,0 +1,10 @@ +using eSuite.Core.Miscellaneous; + +namespace e_suite.API.Common; + +public class PostAssignmentComplete +{ + public GeneralIdRef AssignmentId { get; set; } + + public Dictionary TaskData { get; set; } = []; +} \ No newline at end of file diff --git a/e-suite.API/eSuite.API/Controllers/TasksController.cs b/e-suite.API/eSuite.API/Controllers/TasksController.cs index 3f6b69d..78b4de0 100644 --- a/e-suite.API/eSuite.API/Controllers/TasksController.cs +++ b/e-suite.API/eSuite.API/Controllers/TasksController.cs @@ -60,5 +60,22 @@ public class TasksController : ESuiteControllerBase return Ok(result); } - + /// + /// Get the details of an assignment + /// + /// + /// + /// + /// + [Route("completeAssignment")] + [AccessKey(SecurityAccess.ViewTasks)] + [HttpPost] + public async Task CompleteAssignment([FromBody] PostAssignmentComplete completeAssignment, CancellationToken cancellationToken = default! + ) + { + throw new NotImplementedException(); + //var result = await _activityManager.GetAssignmentDetails(AuditUserDetails, assignmentId, cancellationToken); + //return Ok(result); + } + } \ No newline at end of file