feat: Add APIs to create custom views on the dashboard (#2498)
This commit is contained in:
@@ -0,0 +1 @@
|
||||
json.partial! 'api/v1/models/custom_filter.json.jbuilder', resource: @custom_filter
|
||||
@@ -0,0 +1,3 @@
|
||||
json.array! @custom_filters do |custom_filter|
|
||||
json.partial! 'api/v1/models/custom_filter.json.jbuilder', resource: custom_filter
|
||||
end
|
||||
@@ -0,0 +1 @@
|
||||
json.partial! 'api/v1/models/custom_filter.json.jbuilder', resource: @custom_filter
|
||||
@@ -0,0 +1 @@
|
||||
json.partial! 'api/v1/models/custom_filter.json.jbuilder', resource: @custom_filter
|
||||
6
app/views/api/v1/models/_custom_filter.json.jbuilder
Normal file
6
app/views/api/v1/models/_custom_filter.json.jbuilder
Normal file
@@ -0,0 +1,6 @@
|
||||
json.id resource.id
|
||||
json.name resource.name
|
||||
json.filter_type resource.filter_type
|
||||
json.query resource.query
|
||||
json.created_at resource.created_at
|
||||
json.updated_at resource.updated_at
|
||||
Reference in New Issue
Block a user