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