Add changeset comment search api json format

This commit is contained in:
Anton Khorev 2023-11-21 18:56:41 +03:00
parent 1f59507e78
commit 2a5051376a
4 changed files with 26 additions and 8 deletions

View file

@ -0,0 +1,8 @@
json.id changeset_comment.id
json.visible changeset_comment.visible
json.date changeset_comment.created_at.xmlschema
if changeset_comment.author.data_public?
json.uid changeset_comment.author.id
json.user changeset_comment.author.display_name
end
json.text changeset_comment.body