Compare commits

...

2 Commits

Author SHA1 Message Date
ycc
17aeef4ad0 Update API documentation and license information 2024-09-05 09:22:06 +02:00
ycc
e9ff0bd58c API doc and license setting 2024-09-05 09:21:35 +02:00
5 changed files with 20 additions and 20 deletions

View File

@ -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()
}

BIN
oc-catalog Executable file

Binary file not shown.

View File

@ -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 (

View File

@ -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/",

View File

@ -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/: