upgrade main.go (oc-lib refactor)
This commit is contained in:
@@ -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"
|
||||
},
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
swagger: "2.0"
|
||||
info:
|
||||
title: beego Test API
|
||||
title: oc-datacenter
|
||||
description: |
|
||||
beego has a very cool tools to autogenerate documents for your API
|
||||
Monitor owned datacenter activity
|
||||
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
|
||||
@@ -60,7 +60,7 @@ paths:
|
||||
responses:
|
||||
"200":
|
||||
description: '{booking} models.booking'
|
||||
/booking/check/{datacenter_id}/{start_date}/{end_date}:
|
||||
/booking/check/{id}/{start_date}/{end_date}:
|
||||
get:
|
||||
tags:
|
||||
- booking
|
||||
@@ -70,7 +70,7 @@ paths:
|
||||
operationId: BookingController.Check
|
||||
parameters:
|
||||
- in: path
|
||||
name: datacenter_id
|
||||
name: id
|
||||
description: id of the datacenter
|
||||
type: string
|
||||
- in: path
|
||||
|
||||
Reference in New Issue
Block a user