@@ -254,6 +254,9 @@ file_writeable_metadata = [
254254 :parent_path , :filename , :parent , :share_key_enabled , :world_readable
255255]
256256grid_writable_metadata = vcat (file_writeable_metadata, [:])
257+ dashboard_writeable_metadata = [
258+ :content , :filename , :parent , :parent_path , :world_readable
259+ ]
257260for _api in [
258261 # search
259262 ApiCall (:search_list , :get , :search , false , required= [:q ])
@@ -328,6 +331,16 @@ for _api in [
328331 ApiCall (:comment_create , :post , :comments , false , required_json= [:fid , :comment ])
329332 ApiCall (:comment_delete , :delete , :comments , true )
330333
334+ # dashboards
335+ ApiCall (:dashboard_create , :post , :dashboards , false , required_json= [:content ])
336+ ApiCall (:dashboard_list , :get , :dashboards , false )
337+ ApiCall (:dashboard_retrieve , :get , :dashboards , true )
338+ ApiCall (:dashboard_update , :put , :dashboards , true , json= dashboard_writeable_metadata)
339+ ApiCall (:dashboard_partial_update , :patch , :dashboards , true , json= dashboard_writeable_metadata)
340+ ApiCall (:dashboard_trash , :post , :dashboards , true , :trash )
341+ ApiCall (:dashboard_permanent_delete , :delete , :dashboards , true , :permanent_delete , data_out= false )
342+ ApiCall (:dashboard_schema , :get , :dashboards , false , :schema )
343+
331344 # plot-schema
332345 ApiCall (:plot_schema_get , :get , Symbol (" plot-schema" ), required= [:sha1 ])
333346 ]
0 commit comments