diff --git a/Gopkg.lock b/Gopkg.lock index 817b462..fee061c 100644 --- a/Gopkg.lock +++ b/Gopkg.lock @@ -277,7 +277,7 @@ version = "v2.0.2" [[projects]] - digest = "1:b6f5c19baa132c1bb51fa07430738948910b516326dc923febb8ba6e24b0f7dc" + digest = "1:194932f6894a42dd62acd1092c529befbe576abf50fe929a0e30ae3544ceb6ee" name = "github.com/integration-system/isp-lib" packages = [ "backend", @@ -292,8 +292,8 @@ "utils", ] pruneopts = "UT" - revision = "abfa9a9776d64e6d04d495bfe00db8ca4dcbe7fc" - version = "v2.0.1" + revision = "4ea9449f1b3f2565b9038b0d4cdda3b02089aa8c" + version = "v2.1.0" [[projects]] digest = "1:1562269205ab0c6685c8b0b99511e91b9d3627e4cac3f0288378bc8930e658f1" diff --git a/docs/swagger.yaml b/docs/swagger.yaml index 7761874..8729202 100644 --- a/docs/swagger.yaml +++ b/docs/swagger.yaml @@ -63,7 +63,7 @@ definitions: type: object endpoints: items: - $ref: '#/definitions/structure.EndpointConfig' + $ref: '#/definitions/structure.EndpointDescriptor' type: array establishedAt: type: string @@ -610,7 +610,7 @@ definitions: type: object endpoints: items: - $ref: '#/definitions/structure.EndpointConfig' + $ref: '#/definitions/structure.EndpointDescriptor' type: array libVersion: type: string @@ -619,14 +619,16 @@ definitions: version: type: string type: object - structure.EndpointConfig: + structure.EndpointDescriptor: properties: - ignoreOnRouter: - type: boolean + extra: + type: object inner: type: boolean path: type: string + userAuthRequired: + type: boolean required: - path type: object diff --git a/domain/response.go b/domain/response.go index 8ce7a38..d9868b7 100644 --- a/domain/response.go +++ b/domain/response.go @@ -27,7 +27,7 @@ type Connection struct { LibVersion string Version string Address structure.AddressConfiguration - Endpoints []structure.EndpointConfig `json:",omitempty"` + Endpoints []structure.EndpointDescriptor `json:",omitempty"` EstablishedAt time.Time } diff --git a/main.go b/main.go index 9cf638a..a751cd0 100644 --- a/main.go +++ b/main.go @@ -57,6 +57,9 @@ func init() { // @host localhost:9003 // @BasePath /api/config + +//go:generate swag init --parseVendor +//go:generate rm -f docs/docs.go docs/swagger.json func main() { ctx := context.Background() cfg := config.Get().(*conf.Configuration)