2024-08-13 11:17:09 +02:00
|
|
|
swagger: "2.0"
|
|
|
|
info:
|
|
|
|
title: beego Test API
|
|
|
|
description: |
|
|
|
|
beego has a very cool tools to autogenerate documents for your API
|
|
|
|
version: 1.0.0
|
|
|
|
termsOfService: http://beego.me/
|
|
|
|
contact:
|
|
|
|
email: astaxie@gmail.com
|
|
|
|
license:
|
|
|
|
name: Apache 2.0
|
|
|
|
url: http://www.apache.org/licenses/LICENSE-2.0.html
|
|
|
|
basePath: /oc/
|
|
|
|
paths:
|
|
|
|
/booking/:
|
|
|
|
get:
|
|
|
|
tags:
|
|
|
|
- booking
|
|
|
|
description: |-
|
|
|
|
find booking by id
|
|
|
|
<br>
|
|
|
|
operationId: BookingController.GetAll
|
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: '{booking} models.booking'
|
2024-08-21 12:04:12 +02:00
|
|
|
post:
|
|
|
|
tags:
|
|
|
|
- booking
|
|
|
|
description: |-
|
|
|
|
create booking
|
|
|
|
<br>
|
|
|
|
operationId: BookingController.Post
|
|
|
|
parameters:
|
|
|
|
- in: body
|
|
|
|
name: booking
|
|
|
|
description: the booking you want to post
|
|
|
|
required: true
|
|
|
|
schema:
|
|
|
|
type: string
|
|
|
|
type: string
|
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: ""
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/models.object'
|
2024-08-13 11:17:09 +02:00
|
|
|
/booking/{id}:
|
|
|
|
get:
|
|
|
|
tags:
|
|
|
|
- booking
|
|
|
|
description: |-
|
|
|
|
find booking by id
|
|
|
|
<br>
|
|
|
|
operationId: BookingController.Get
|
|
|
|
parameters:
|
|
|
|
- in: path
|
|
|
|
name: id
|
|
|
|
description: the id you want to get
|
|
|
|
required: true
|
|
|
|
type: string
|
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: '{booking} models.booking'
|
|
|
|
/booking/check/{start_date}/{end_date}:
|
|
|
|
get:
|
|
|
|
tags:
|
|
|
|
- booking
|
|
|
|
description: |-
|
|
|
|
check booking
|
|
|
|
<br>
|
|
|
|
operationId: BookingController.Check
|
|
|
|
parameters:
|
|
|
|
- in: path
|
|
|
|
name: start_date
|
|
|
|
description: 2006-01-02T15:04:05
|
|
|
|
type: string
|
|
|
|
default: the booking start date
|
|
|
|
- in: path
|
|
|
|
name: end_date
|
|
|
|
description: 2006-01-02T15:04:05
|
|
|
|
type: string
|
|
|
|
default: the booking end date
|
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: ""
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/models.object'
|
|
|
|
/booking/search/{search}:
|
|
|
|
get:
|
|
|
|
tags:
|
|
|
|
- booking
|
|
|
|
description: |-
|
|
|
|
search booking
|
|
|
|
<br>
|
|
|
|
operationId: BookingController.Search
|
|
|
|
parameters:
|
|
|
|
- in: path
|
|
|
|
name: search
|
|
|
|
description: the word search you want to get
|
|
|
|
required: true
|
|
|
|
type: string
|
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: '{booking} models.booking'
|
|
|
|
/version/:
|
|
|
|
get:
|
|
|
|
tags:
|
|
|
|
- version
|
|
|
|
description: |-
|
|
|
|
get version
|
|
|
|
<br>
|
|
|
|
operationId: VersionController.GetAll
|
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: ""
|
2024-08-21 12:04:12 +02:00
|
|
|
/version/status:
|
|
|
|
get:
|
|
|
|
tags:
|
|
|
|
- version
|
|
|
|
description: |-
|
|
|
|
get status
|
|
|
|
<br>
|
|
|
|
operationId: VersionController.Status
|
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: ""
|
2024-08-13 11:17:09 +02:00
|
|
|
definitions:
|
|
|
|
models.object:
|
|
|
|
title: object
|
|
|
|
type: object
|
|
|
|
tags:
|
|
|
|
- name: booking
|
|
|
|
description: |
|
|
|
|
Operations about workspace
|
|
|
|
- name: version
|
|
|
|
description: |
|
|
|
|
VersionController operations for Version
|