-
Notifications
You must be signed in to change notification settings - Fork 135
Open
Description
Thankyou for this helpful spec. I would like to request an addition to the spec - an optional key "log" which would be a list of log data generated during any given transaction.
For example:
{
status : "success",
data : {
"posts" : [
{ "id" : 1, "title" : "A blog post", "body" : "Some useful content" }
]
},
log: [
"New post created",
"Editor notified"
]
}
I don't think it is needed to specify what the type of itmes in the log key are. For example they could be dictionaries.
{
status : "success",
log: [
{"level": "DEBUG", "message": "Workflow state changed to published"}
]
}
Motivation: Particularly in admin interfaces it is helpful to have more detail on actions taken. For example an application could detect that a user is a system admin and generate more information in the return objects.
artyuum, asiby, eman1986 and st-matskevich
Metadata
Metadata
Assignees
Labels
No labels