Feature: Label APIs (#931)
This commit is contained in:
5
app/views/api/v1/accounts/labels/create.json.jbuilder
Normal file
5
app/views/api/v1/accounts/labels/create.json.jbuilder
Normal file
@@ -0,0 +1,5 @@
|
||||
json.id @label.id
|
||||
json.title @label.title
|
||||
json.description @label.description
|
||||
json.color @label.color
|
||||
json.show_on_sidebar @label.show_on_sidebar
|
||||
@@ -1,8 +1,9 @@
|
||||
json.data do
|
||||
json.meta do
|
||||
end
|
||||
|
||||
json.payload do
|
||||
json.labels @labels
|
||||
json.payload do
|
||||
json.array! @labels do |label|
|
||||
json.id label.id
|
||||
json.title label.title
|
||||
json.description label.description
|
||||
json.color label.color
|
||||
json.show_on_sidebar label.show_on_sidebar
|
||||
end
|
||||
end
|
||||
|
||||
@@ -1,3 +0,0 @@
|
||||
json.payload do
|
||||
json.labels @labels
|
||||
end
|
||||
5
app/views/api/v1/accounts/labels/show.json.jbuilder
Normal file
5
app/views/api/v1/accounts/labels/show.json.jbuilder
Normal file
@@ -0,0 +1,5 @@
|
||||
json.id @label.id
|
||||
json.title @label.title
|
||||
json.description @label.description
|
||||
json.color @label.color
|
||||
json.show_on_sidebar @label.show_on_sidebar
|
||||
5
app/views/api/v1/accounts/labels/update.json.jbuilder
Normal file
5
app/views/api/v1/accounts/labels/update.json.jbuilder
Normal file
@@ -0,0 +1,5 @@
|
||||
json.id @label.id
|
||||
json.title @label.title
|
||||
json.description @label.description
|
||||
json.color @label.color
|
||||
json.show_on_sidebar @label.show_on_sidebar
|
||||
Reference in New Issue
Block a user