upgrade main.go (oc-lib refactor)

This commit is contained in:
ycc
2024-09-04 17:32:30 +02:00
parent 3404be776e
commit f07ca3c1ea
8 changed files with 64 additions and 701 deletions

View File

@@ -1,12 +1,12 @@
{
"swagger": "2.0",
"info": {
"title": "beego Test API",
"description": "beego has a very cool tools to autogenerate documents for your API\n",
"title": "oc-datacenter",
"description": "Monitor owned datacenter activity\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",
@@ -56,7 +56,7 @@
}
}
},
"/booking/check/{datacenter_id}/{start_date}/{end_date}": {
"/booking/check/{id}/{start_date}/{end_date}": {
"get": {
"tags": [
"booking"
@@ -66,7 +66,7 @@
"parameters": [
{
"in": "path",
"name": "datacenter_id",
"name": "id",
"description": "id of the datacenter",
"type": "string"
},