Skip to content
This repository was archived by the owner on Dec 19, 2021. It is now read-only.

Commit 30213a2

Browse files
authored
Merge pull request #352 from codeforpdx/issue526-ticket-author
Issue526 ticket author
2 parents 2a0cdfe + 74bf86e commit 30213a2

File tree

2 files changed

+16
-5
lines changed

2 files changed

+16
-5
lines changed

doc/using_the_api.md

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -204,16 +204,27 @@ All endpoints are prefixed with `/api/`
204204
id: 1,
205205
issue: 'Property Damage',
206206
tenant: 'Renty McRenter',
207-
senderID: 1,
208-
tenantID: 2,
207+
author_id: 1,
208+
tenant_id: 2,
209209
assignedUserID: 4,
210-
sender: "user1 tester",
211-
assigned: "Mr. Sir",
210+
author: "user1 tester",
212211
status: "new",
213212
urgency: "Low",
214213
created_at: "07-01-2020 21:29:29",
215214
updated_at: "07-08-2020 22:20:29",
216215
minsPastUpdate: 745,
216+
assigned_staff: [{
217+
archived: false,
218+
created_at: "08/05/2021 02:52:30",
219+
email: "janice@joinpdx.org",
220+
firstName: "Janice",
221+
id: 10,
222+
lastActive: "08/05/2021 02:52:30",
223+
lastName: "Joinstaff",
224+
phone: "555-555-5555",
225+
role: 3,
226+
updated_at: "08/05/2021 02:52:30"
227+
}],
217228
notes: [
218229
{
219230
id: 2,

models/tickets.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ def json(self):
4040
"author_id": self.author_id,
4141
"tenant_id": self.tenant_id,
4242
"assigned_staff": self.tenant.staff.json(),
43-
"sender": self.author.full_name(),
43+
"author": self.author.full_name(),
4444
"status": self.status,
4545
"minsPastUpdate": minsPastUpdate,
4646
"urgency": self.urgency,

0 commit comments

Comments
 (0)