From 4eef1ab4ba451ed3cf8d2316e7ede25879a81835 Mon Sep 17 00:00:00 2001 From: Alex Date: Sat, 28 Nov 2020 18:18:43 -0600 Subject: [PATCH] updated README with current working endpoints --- api/README.md | 38 ++++++++++++++++++++++++++++++++++++-- 1 file changed, 36 insertions(+), 2 deletions(-) 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