diff --git a/api/README.md b/api/README.md index 67bc834..35c332e 100644 --- a/api/README.md +++ b/api/README.md @@ -164,9 +164,43 @@ req: body: {UpdateUserDTO} res: body: {UserDTO} ``` -## Assign +## Assignment -TODO +Get all assignments + +``` +GET /api/assignment +res: body: {AssignmentDTO} +``` + +Get all assignments assigned to admin by lsu_id + +``` +GET /api/assignment/user/{lsu_id} +res: body: {AssignmentDTO[]} +``` + +Get all assignments assigned to ticket by ticket_id + +``` +GET /api/assignment/ticket/{ticket_id} +res: body: {AssignmentDTO[]} +``` + +Get one assignment by assignment_id + +``` +GET /api/assignment/{assignment_id} +res: body: {AssignmentDTO} +``` + +Post new assignment + +``` +POST /api/assignment +req: body: {CreateAssignmentDTO} +res: body: {AssignmentDTO} +``` ## Work