From c35ba81d5f04da7906bc7a37bf877ac98ae690ec Mon Sep 17 00:00:00 2001 From: Tim Raymond Date: Tue, 27 Sep 2016 15:39:48 -0700 Subject: [PATCH] Add Default param to Source We want to be able to specify that a particular Source is the default source. This has semantic meaning that the front end will manage. --- models/source.go | 4 ++++ swagger.yaml | 3 +++ 2 files changed, 7 insertions(+) diff --git a/models/source.go b/models/source.go index 54dac7eca5..bf1034daca 100644 --- a/models/source.go +++ b/models/source.go @@ -19,6 +19,10 @@ swagger:model Source */ type Source struct { + /* Indicates whether this source is the default source + */ + Default bool `json:"default,omitempty"` + /* Unique identifier representing a specific data source. Read Only: true diff --git a/swagger.yaml b/swagger.yaml index a95474c6b5..e4ff3c7ba8 100644 --- a/swagger.yaml +++ b/swagger.yaml @@ -764,6 +764,9 @@ definitions: type: string format: url description: URL for the time series data source backend (e.g. http://localhost:8086) + default: + type: boolean + description: Indicates whether this source is the default source links: type: object properties: