diff --git a/main.go b/main.go index 1fa70e7..fdf2663 100644 --- a/main.go +++ b/main.go @@ -16,7 +16,7 @@ func main() { // Load the right config file o := oclib.GetConfLoader() - // feed the library with the loaded config, + // feed the library with the loaded config oclib.SetConfig( o.GetStringDefault("MONGO_URL", "mongodb://127.0.0.1:27017"), o.GetStringDefault("MONGO_DATABASE", "DC_myDC"), @@ -29,6 +29,6 @@ func main() { beego.BConfig.Listen.HTTPPort = o.GetIntDefault("port", 8080) beego.BConfig.WebConfig.DirectoryIndex = true beego.BConfig.WebConfig.StaticDir["/swagger"] = "swagger" - //} + beego.Run() } diff --git a/oc-catalog b/oc-catalog index b62ee46..0ddc898 100755 Binary files a/oc-catalog and b/oc-catalog differ diff --git a/routers/router.go b/routers/router.go index d9f3753..46177d1 100644 --- a/routers/router.go +++ b/routers/router.go @@ -1,10 +1,10 @@ // @APIVersion 1.0.0 -// @Title beego Test API -// @Description beego has a very cool tools to autogenerate documents for your API -// @Contact astaxie@gmail.com -// @TermsOfServiceUrl http://beego.me/ -// @License Apache 2.0 -// @LicenseUrl http://www.apache.org/licenses/LICENSE-2.0.html +// @Title oc-catalog +// @Description OpenCloud catalog +// @Contact admin@o-cloud.io +// @TermsOfServiceUrl http://cloud.o-forge.io/ +// @License MIT +// @LicenseUrl https://opensource.org/license/mit package routers import ( diff --git a/swagger/swagger.json b/swagger/swagger.json index ba709f1..738b042 100644 --- a/swagger/swagger.json +++ b/swagger/swagger.json @@ -1,16 +1,16 @@ { "swagger": "2.0", "info": { - "title": "beego Test API", - "description": "beego has a very cool tools to autogenerate documents for your API\n", + "title": "oc-catalog", + "description": "OpenCloud catalog\n", "version": "1.0.0", - "termsOfService": "http://beego.me/", + "termsOfService": "http://cloud.o-forge.io/", "contact": { - "email": "astaxie@gmail.com" + "email": "admin@o-cloud.io" }, "license": { - "name": "Apache 2.0", - "url": "http://www.apache.org/licenses/LICENSE-2.0.html" + "name": "MIT", + "url": "https://opensource.org/license/mit" } }, "basePath": "/oc/", diff --git a/swagger/swagger.yml b/swagger/swagger.yml index 8ea3bad..77952e5 100644 --- a/swagger/swagger.yml +++ b/swagger/swagger.yml @@ -1,15 +1,15 @@ swagger: "2.0" info: - title: beego Test API + title: oc-catalog description: | - beego has a very cool tools to autogenerate documents for your API + OpenCloud catalog version: 1.0.0 - termsOfService: http://beego.me/ + termsOfService: http://cloud.o-forge.io/ contact: - email: astaxie@gmail.com + email: admin@o-cloud.io license: - name: Apache 2.0 - url: http://www.apache.org/licenses/LICENSE-2.0.html + name: MIT + url: https://opensource.org/license/mit basePath: /oc/ paths: /data/: