Commit 58121d89 by utkarshcmu

Updated http_api docs

parent 6a119217
......@@ -70,13 +70,15 @@ Creates a new dashboard or updates an existing dashboard.
"schemaVersion": 6,
"version": 0
},
"overwrite": false
"overwrite": false,
"userId:": 3
}
JSON Body schema:
- **dashboard** – The complete dashboard model, id = null to create a new dashboard
- **dashboard** – The complete dashboard model, id = null to create a new dashboard.
- **overwrite** – Set to true if you want to overwrite existing dashboard with newer version or with same dashboard title.
- **userId** - Set userId if you want to record who created or updated a dashboard.
**Example Response**:
......
......@@ -67,7 +67,7 @@ func (dash *Dashboard) GetTags() []string {
return b
}
func NewDashboardFromJson(data map[string]interface {}) *Dashboard {
func NewDashboardFromJson(data map[string]interface{}) *Dashboard {
dash := &Dashboard{}
dash.Data = data
dash.Title = dash.Data["title"].(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