]> git.ipfire.org Git - thirdparty/patchwork.git/commit
REST: Expose '/event' fields in 'payload' field
authorStephen Finucane <stephen@that.guru>
Tue, 7 Feb 2017 13:13:34 +0000 (13:13 +0000)
committerStephen Finucane <stephen@that.guru>
Wed, 1 Mar 2017 22:17:24 +0000 (22:17 +0000)
commitcd304e424cd805a28803e2662cd3a79acd5a3f17
treeb4e7ce2ed7a8ca147ffdc7251d745c24997acafd
parente7538f19657c9dec47b62b2f5a61d08bd8f84cff
REST: Expose '/event' fields in 'payload' field

Instead of exposing differing fields depending on the event category,
expose a consistent set of 'id', 'category', 'date' and 'payload'. This
ensures we can loop through events in a somewhat standardized fashion.

Signed-off-by: Stephen Finucane <stephen@that.guru>
Tested-by: Daniel Axtens <dja@axtens.net>
patchwork/api/event.py