Commit 3a5afd36 authored by Robert Speicher's avatar Robert Speicher

Add web_url attribute to API response for Commits

parent ecabb9b8
---
title: Add web_url attribute to API response for Commits
merge_request: 26173
author:
type: added
......@@ -9,6 +9,10 @@ module API
expose :safe_message, as: :message
expose :author_name, :author_email, :authored_date
expose :committer_name, :committer_email, :committed_date
expose :web_url do |commit, _options|
Gitlab::UrlBuilder.build(commit)
end
end
end
end
......@@ -12,7 +12,8 @@
"authored_date",
"committer_name",
"committer_email",
"committed_date"
"committed_date",
"web_url"
],
"properties" : {
"id": { "type": ["string", "null"] },
......@@ -32,6 +33,7 @@
"authored_date": { "type": "date" },
"committer_name": { "type": "string" },
"committer_email": { "type": "string" },
"committed_date": { "type": "date" }
"committed_date": { "type": "date" },
"web_url": { "type": "string" }
}
}
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