Commit 27eea3a5 authored by Sean Arnold's avatar Sean Arnold

Add links to incident with details path

parent b0e53a2a
......@@ -9,9 +9,14 @@ module StatusPage
expose :updated_at
expose :created_at
expose :user_notes, as: :comments, using: IncidentCommentEntity
expose :links
private
def links
{ details: StatusPage::Storage.details_path(object.iid) }
end
def user_notes
Array(options[:user_notes])
end
......
......@@ -5,6 +5,7 @@
"state",
"title",
"description",
"links",
"updated_at",
"created_at"
],
......@@ -16,6 +17,13 @@
},
"title": { "type": "string" },
"description": { "type": "string" },
"links": {
"type": "object",
"properties": {
"details": { "type": "string" }
},
"additionalProperties": false
},
"updated_at": { "type": "date" },
"created_at": { "type": "date" }
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment