Skip to content

Commit

Permalink
updated README with current working endpoints
Browse files Browse the repository at this point in the history
  • Loading branch information
alxford45 committed Nov 29, 2020
1 parent 6ff2e8f commit 4eef1ab
Showing 1 changed file with 36 additions and 2 deletions.
38 changes: 36 additions & 2 deletions api/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 4eef1ab

Please sign in to comment.