working oc-catalog + enum ref
This commit is contained in:
@@ -12,106 +12,6 @@ info:
|
||||
url: https://www.gnu.org/licenses/agpl-3.0.html
|
||||
basePath: /oc/
|
||||
paths:
|
||||
/data/:
|
||||
get:
|
||||
tags:
|
||||
- data
|
||||
description: |-
|
||||
find data by id
|
||||
<br>
|
||||
operationId: DataController.GetAll
|
||||
responses:
|
||||
"200":
|
||||
description: '{data} models.data'
|
||||
post:
|
||||
tags:
|
||||
- data
|
||||
description: |-
|
||||
create data
|
||||
<br>
|
||||
operationId: DataController.Create
|
||||
parameters:
|
||||
- in: body
|
||||
name: data
|
||||
description: body for data content (Json format)
|
||||
required: true
|
||||
schema:
|
||||
$ref: '#/definitions/json'
|
||||
responses:
|
||||
"200":
|
||||
description: '{data} models.data'
|
||||
/data/{id}:
|
||||
get:
|
||||
tags:
|
||||
- data
|
||||
description: |-
|
||||
find data by id
|
||||
<br>
|
||||
operationId: DataController.Get
|
||||
parameters:
|
||||
- in: path
|
||||
name: id
|
||||
description: the id you want to get
|
||||
required: true
|
||||
type: string
|
||||
responses:
|
||||
"200":
|
||||
description: '{data} models.data'
|
||||
put:
|
||||
tags:
|
||||
- data
|
||||
description: |-
|
||||
create datas
|
||||
<br>
|
||||
operationId: DataController.Update
|
||||
parameters:
|
||||
- in: path
|
||||
name: id
|
||||
description: the data id you want to get
|
||||
required: true
|
||||
type: string
|
||||
- in: body
|
||||
name: body
|
||||
description: The data content
|
||||
required: true
|
||||
schema:
|
||||
$ref: '#/definitions/models.data'
|
||||
responses:
|
||||
"200":
|
||||
description: '{data} models.data'
|
||||
delete:
|
||||
tags:
|
||||
- data
|
||||
description: |-
|
||||
delete the data
|
||||
<br>
|
||||
operationId: DataController.Delete
|
||||
parameters:
|
||||
- in: path
|
||||
name: id
|
||||
description: The id you want to delete
|
||||
required: true
|
||||
type: string
|
||||
responses:
|
||||
"200":
|
||||
description: '{data} delete success!'
|
||||
/data/search/{search}:
|
||||
get:
|
||||
tags:
|
||||
- data
|
||||
description: |-
|
||||
find data by key word
|
||||
<br>
|
||||
operationId: DataController.Get
|
||||
parameters:
|
||||
- in: path
|
||||
name: search
|
||||
description: the search you want to get
|
||||
required: true
|
||||
type: string
|
||||
responses:
|
||||
"200":
|
||||
description: '{data} models.data'
|
||||
/compute/:
|
||||
get:
|
||||
tags:
|
||||
@@ -120,6 +20,11 @@ paths:
|
||||
find compute by id
|
||||
<br>
|
||||
operationId: ComputeController.GetAll
|
||||
parameters:
|
||||
- in: query
|
||||
name: is_draft
|
||||
description: draft wished
|
||||
type: string
|
||||
responses:
|
||||
"200":
|
||||
description: '{compute} models.compute'
|
||||
@@ -209,9 +114,251 @@ paths:
|
||||
description: the search you want to get
|
||||
required: true
|
||||
type: string
|
||||
- in: query
|
||||
name: is_draft
|
||||
description: draft wished
|
||||
type: string
|
||||
responses:
|
||||
"200":
|
||||
description: '{compute} models.compute'
|
||||
/data/:
|
||||
get:
|
||||
tags:
|
||||
- data
|
||||
description: |-
|
||||
find data by id
|
||||
<br>
|
||||
operationId: DataController.GetAll
|
||||
parameters:
|
||||
- in: query
|
||||
name: is_draft
|
||||
description: draft wished
|
||||
type: string
|
||||
responses:
|
||||
"200":
|
||||
description: '{data} models.data'
|
||||
post:
|
||||
tags:
|
||||
- data
|
||||
description: |-
|
||||
create data
|
||||
<br>
|
||||
operationId: DataController.Create
|
||||
parameters:
|
||||
- in: body
|
||||
name: data
|
||||
description: body for data content (Json format)
|
||||
required: true
|
||||
schema:
|
||||
$ref: '#/definitions/json'
|
||||
responses:
|
||||
"200":
|
||||
description: '{data} models.data'
|
||||
/data/{id}:
|
||||
get:
|
||||
tags:
|
||||
- data
|
||||
description: |-
|
||||
find data by id
|
||||
<br>
|
||||
operationId: DataController.Get
|
||||
parameters:
|
||||
- in: path
|
||||
name: id
|
||||
description: the id you want to get
|
||||
required: true
|
||||
type: string
|
||||
responses:
|
||||
"200":
|
||||
description: '{data} models.data'
|
||||
put:
|
||||
tags:
|
||||
- data
|
||||
description: |-
|
||||
create datas
|
||||
<br>
|
||||
operationId: DataController.Update
|
||||
parameters:
|
||||
- in: path
|
||||
name: id
|
||||
description: the data id you want to get
|
||||
required: true
|
||||
type: string
|
||||
- in: body
|
||||
name: body
|
||||
description: The data content
|
||||
required: true
|
||||
schema:
|
||||
$ref: '#/definitions/models.data'
|
||||
responses:
|
||||
"200":
|
||||
description: '{data} models.data'
|
||||
delete:
|
||||
tags:
|
||||
- data
|
||||
description: |-
|
||||
delete the data
|
||||
<br>
|
||||
operationId: DataController.Delete
|
||||
parameters:
|
||||
- in: path
|
||||
name: id
|
||||
description: The id you want to delete
|
||||
required: true
|
||||
type: string
|
||||
responses:
|
||||
"200":
|
||||
description: '{data} delete success!'
|
||||
/data/search/{search}:
|
||||
get:
|
||||
tags:
|
||||
- data
|
||||
responses:
|
||||
"200":
|
||||
description: '{data} models.data'
|
||||
/enum/booking/status:
|
||||
get:
|
||||
tags:
|
||||
- enum
|
||||
description: |-
|
||||
get list of Infrastructure
|
||||
<br>
|
||||
operationId: EnumController.BookingStatus
|
||||
responses:
|
||||
"200":
|
||||
description: '{resource} models.resource'
|
||||
/enum/infrastructure:
|
||||
get:
|
||||
tags:
|
||||
- enum
|
||||
description: |-
|
||||
get list of Infrastructure
|
||||
<br>
|
||||
operationId: EnumController.EnumInfrastructure
|
||||
responses:
|
||||
"200":
|
||||
description: '{resource} models.resource'
|
||||
/enum/pricing/refund/type:
|
||||
get:
|
||||
tags:
|
||||
- enum
|
||||
description: |-
|
||||
get list of status
|
||||
<br>
|
||||
operationId: EnumController.EnumRefundType
|
||||
responses:
|
||||
"200":
|
||||
description: '{resource} models.resource'
|
||||
/enum/pricing/strategy/buy:
|
||||
get:
|
||||
tags:
|
||||
- enum
|
||||
description: |-
|
||||
get list of status
|
||||
<br>
|
||||
operationId: EnumController.EnumStrategyBuy
|
||||
responses:
|
||||
"200":
|
||||
description: '{resource} models.resource'
|
||||
/enum/pricing/strategy/data:
|
||||
get:
|
||||
tags:
|
||||
- enum
|
||||
description: |-
|
||||
get list of status
|
||||
<br>
|
||||
operationId: EnumController.EnumStrategyData
|
||||
responses:
|
||||
"200":
|
||||
description: '{resource} models.resource'
|
||||
/enum/pricing/strategy/privilege:
|
||||
get:
|
||||
tags:
|
||||
- enum
|
||||
description: |-
|
||||
get list of status
|
||||
<br>
|
||||
operationId: EnumController.EnumStrategyPrivilege
|
||||
responses:
|
||||
"200":
|
||||
description: '{resource} models.resource'
|
||||
/enum/pricing/strategy/privilege/storage:
|
||||
get:
|
||||
tags:
|
||||
- enum
|
||||
description: |-
|
||||
get list of status
|
||||
<br>
|
||||
operationId: EnumController.EnumStrategyPrivilegeStorage
|
||||
responses:
|
||||
"200":
|
||||
description: '{resource} models.resource'
|
||||
/enum/pricing/strategy/storage:
|
||||
get:
|
||||
tags:
|
||||
- enum
|
||||
description: |-
|
||||
get list of status
|
||||
<br>
|
||||
operationId: EnumController.EnumStrategyStorage
|
||||
responses:
|
||||
"200":
|
||||
description: '{resource} models.resource'
|
||||
/enum/pricing/strategy/time:
|
||||
get:
|
||||
tags:
|
||||
- enum
|
||||
description: |-
|
||||
get list of status
|
||||
<br>
|
||||
operationId: EnumController.EnumStrategyTime
|
||||
responses:
|
||||
"200":
|
||||
description: '{resource} models.resource'
|
||||
/enum/resource/type:
|
||||
get:
|
||||
tags:
|
||||
- enum
|
||||
description: |-
|
||||
get list of status
|
||||
<br>
|
||||
operationId: EnumController.EnumResourceType
|
||||
responses:
|
||||
"200":
|
||||
description: '{resource} models.resource'
|
||||
/enum/status:
|
||||
get:
|
||||
tags:
|
||||
- enum
|
||||
description: |-
|
||||
get list of status
|
||||
<br>
|
||||
operationId: EnumController.EnumStatus
|
||||
responses:
|
||||
"200":
|
||||
description: '{resource} models.resource'
|
||||
/enum/storage/size:
|
||||
get:
|
||||
tags:
|
||||
- enum
|
||||
description: |-
|
||||
get list of StorageSize
|
||||
<br>
|
||||
operationId: EnumController.EnumStorageSize
|
||||
responses:
|
||||
"200":
|
||||
description: '{resource} models.resource'
|
||||
/enum/storage/type:
|
||||
get:
|
||||
tags:
|
||||
- enum
|
||||
description: |-
|
||||
get list of StorageType
|
||||
<br>
|
||||
operationId: EnumController.EnumStorageType
|
||||
responses:
|
||||
"200":
|
||||
description: '{resource} models.resource'
|
||||
/processing/:
|
||||
get:
|
||||
tags:
|
||||
@@ -220,6 +367,11 @@ paths:
|
||||
find processing by id
|
||||
<br>
|
||||
operationId: ProcessingController.GetAll
|
||||
parameters:
|
||||
- in: query
|
||||
name: is_draft
|
||||
description: draft wished
|
||||
type: string
|
||||
responses:
|
||||
"200":
|
||||
description: '{processing} models.processing'
|
||||
@@ -309,6 +461,10 @@ paths:
|
||||
description: the search you want to get
|
||||
required: true
|
||||
type: string
|
||||
- in: query
|
||||
name: is_draft
|
||||
description: draft wished
|
||||
type: string
|
||||
responses:
|
||||
"200":
|
||||
description: '{processing} models.processing'
|
||||
@@ -320,6 +476,11 @@ paths:
|
||||
find resource by id
|
||||
<br>
|
||||
operationId: ResourceController.GetAll
|
||||
parameters:
|
||||
- in: query
|
||||
name: is_draft
|
||||
description: draft wished
|
||||
type: string
|
||||
responses:
|
||||
"200":
|
||||
description: '{resource} models.resource'
|
||||
@@ -370,6 +531,10 @@ paths:
|
||||
description: the search you want to get
|
||||
required: true
|
||||
type: string
|
||||
- in: query
|
||||
name: is_draft
|
||||
description: draft wished
|
||||
type: string
|
||||
responses:
|
||||
"200":
|
||||
description: '{resource} models.resource'
|
||||
@@ -381,6 +546,11 @@ paths:
|
||||
find storage by id
|
||||
<br>
|
||||
operationId: StorageController.GetAll
|
||||
parameters:
|
||||
- in: query
|
||||
name: is_draft
|
||||
description: draft wished
|
||||
type: string
|
||||
responses:
|
||||
"200":
|
||||
description: '{storage} models.storage'
|
||||
@@ -470,6 +640,10 @@ paths:
|
||||
description: the search you want to get
|
||||
required: true
|
||||
type: string
|
||||
- in: query
|
||||
name: is_draft
|
||||
description: draft wished
|
||||
type: string
|
||||
responses:
|
||||
"200":
|
||||
description: '{storage} models.storage'
|
||||
@@ -503,6 +677,11 @@ paths:
|
||||
find workflow by id
|
||||
<br>
|
||||
operationId: WorkflowController.GetAll
|
||||
parameters:
|
||||
- in: query
|
||||
name: is_draft
|
||||
description: draft wished
|
||||
type: string
|
||||
responses:
|
||||
"200":
|
||||
description: '{workflow} models.workflow'
|
||||
@@ -592,6 +771,10 @@ paths:
|
||||
description: the search you want to get
|
||||
required: true
|
||||
type: string
|
||||
- in: query
|
||||
name: is_draft
|
||||
description: draft wished
|
||||
type: string
|
||||
responses:
|
||||
"200":
|
||||
description: '{workflow} models.workflow'
|
||||
@@ -599,12 +782,12 @@ definitions:
|
||||
json:
|
||||
title: json
|
||||
type: object
|
||||
models.data:
|
||||
title: data
|
||||
type: object
|
||||
models.compute:
|
||||
title: compute
|
||||
type: object
|
||||
models.data:
|
||||
title: data
|
||||
type: object
|
||||
models.processing:
|
||||
title: processing
|
||||
type: object
|
||||
@@ -633,6 +816,9 @@ tags:
|
||||
- name: workflow
|
||||
description: |
|
||||
Operations about workflow
|
||||
- name: enum
|
||||
description: |
|
||||
Operations about resource
|
||||
- name: version
|
||||
description: |
|
||||
VersionController operations for Version
|
||||
|
||||
Reference in New Issue
Block a user