oc-catalog/swagger/swagger.yml

825 lines
19 KiB
YAML
Raw Normal View History

2024-07-26 13:07:25 +02:00
swagger: "2.0"
info:
title: oc-catalog
2024-07-26 13:07:25 +02:00
description: |
OpenCloud catalog
2024-07-26 13:07:25 +02:00
version: 1.0.0
termsOfService: http://cloud.o-forge.io/
2024-07-26 13:07:25 +02:00
contact:
email: admin@o-cloud.io
2024-07-26 13:07:25 +02:00
license:
2024-10-15 16:22:12 +02:00
name: AGPL
url: https://www.gnu.org/licenses/agpl-3.0.html
2024-07-26 13:07:25 +02:00
basePath: /oc/
paths:
2025-01-17 17:03:32 +01:00
/compute/:
2024-07-26 13:07:25 +02:00
get:
tags:
2025-01-17 17:03:32 +01:00
- compute
2024-07-26 13:07:25 +02:00
description: |-
2025-01-17 17:03:32 +01:00
find compute by id
2024-07-26 13:07:25 +02:00
<br>
2025-01-17 17:03:32 +01:00
operationId: ComputeController.GetAll
parameters:
- in: query
name: is_draft
description: draft wished
type: string
2024-07-26 13:07:25 +02:00
responses:
"200":
2025-01-17 17:03:32 +01:00
description: '{compute} models.compute'
2024-07-26 13:07:25 +02:00
post:
tags:
2025-01-17 17:03:32 +01:00
- compute
2024-07-26 13:07:25 +02:00
description: |-
2025-01-17 17:03:32 +01:00
create compute
2024-07-26 13:07:25 +02:00
<br>
2025-01-17 17:03:32 +01:00
operationId: ComputeController.Create
2024-07-26 13:07:25 +02:00
parameters:
- in: body
2025-01-17 17:03:32 +01:00
name: compute
description: body for compute content (Json format)
2024-07-26 13:07:25 +02:00
required: true
schema:
$ref: '#/definitions/json'
responses:
"200":
2025-01-17 17:03:32 +01:00
description: '{compute} models.compute'
/compute/{id}:
2024-07-26 13:07:25 +02:00
get:
tags:
2025-01-17 17:03:32 +01:00
- compute
2024-07-26 13:07:25 +02:00
description: |-
2025-01-17 17:03:32 +01:00
find compute by id
2024-07-26 13:07:25 +02:00
<br>
2025-01-17 17:03:32 +01:00
operationId: ComputeController.Get
2024-07-26 13:07:25 +02:00
parameters:
- in: path
name: id
description: the id you want to get
required: true
type: string
responses:
"200":
2025-01-17 17:03:32 +01:00
description: '{compute} models.compute'
2024-07-26 13:07:25 +02:00
put:
tags:
2025-01-17 17:03:32 +01:00
- compute
2024-07-26 13:07:25 +02:00
description: |-
2025-01-17 17:03:32 +01:00
create computes
2024-07-26 13:07:25 +02:00
<br>
2025-01-17 17:03:32 +01:00
operationId: ComputeController.Update
2024-07-26 13:07:25 +02:00
parameters:
- in: path
name: id
2025-01-17 17:03:32 +01:00
description: the compute id you want to get
2024-07-26 13:07:25 +02:00
required: true
type: string
- in: body
name: body
2025-01-17 17:03:32 +01:00
description: The compute content
2024-07-26 13:07:25 +02:00
required: true
schema:
2025-01-17 17:03:32 +01:00
$ref: '#/definitions/models.compute'
2024-07-26 13:07:25 +02:00
responses:
"200":
2025-01-17 17:03:32 +01:00
description: '{compute} models.compute'
2024-07-26 13:07:25 +02:00
delete:
tags:
2025-01-17 17:03:32 +01:00
- compute
2024-07-26 13:07:25 +02:00
description: |-
2025-01-17 17:03:32 +01:00
delete the compute
2024-07-26 13:07:25 +02:00
<br>
2025-01-17 17:03:32 +01:00
operationId: ComputeController.Delete
2024-07-26 13:07:25 +02:00
parameters:
- in: path
name: id
description: The id you want to delete
required: true
type: string
responses:
"200":
2025-01-17 17:03:32 +01:00
description: '{compute} delete success!'
/compute/search/{search}:
get:
tags:
2025-01-17 17:03:32 +01:00
- compute
description: |-
2025-01-17 17:03:32 +01:00
find compute by key word
<br>
2025-01-17 17:03:32 +01:00
operationId: ComputeController.Get
parameters:
- in: path
name: search
description: the search you want to get
required: true
type: string
2025-01-17 17:03:32 +01:00
- in: query
name: is_draft
description: draft wished
type: string
responses:
"200":
2025-01-17 17:03:32 +01:00
description: '{compute} models.compute'
/data/:
2024-07-26 13:07:25 +02:00
get:
tags:
2025-01-17 17:03:32 +01:00
- data
2024-07-26 13:07:25 +02:00
description: |-
2025-01-17 17:03:32 +01:00
find data by id
2024-07-26 13:07:25 +02:00
<br>
2025-01-17 17:03:32 +01:00
operationId: DataController.GetAll
parameters:
- in: query
name: is_draft
description: draft wished
type: string
2024-07-26 13:07:25 +02:00
responses:
"200":
2025-01-17 17:03:32 +01:00
description: '{data} models.data'
2024-07-26 13:07:25 +02:00
post:
tags:
2025-01-17 17:03:32 +01:00
- data
2024-07-26 13:07:25 +02:00
description: |-
2025-01-17 17:03:32 +01:00
create data
2024-07-26 13:07:25 +02:00
<br>
2025-01-17 17:03:32 +01:00
operationId: DataController.Create
2024-07-26 13:07:25 +02:00
parameters:
- in: body
2025-01-17 17:03:32 +01:00
name: data
description: body for data content (Json format)
2024-07-26 13:07:25 +02:00
required: true
schema:
$ref: '#/definitions/json'
responses:
"200":
2025-01-17 17:03:32 +01:00
description: '{data} models.data'
/data/{id}:
2024-07-26 13:07:25 +02:00
get:
tags:
2025-01-17 17:03:32 +01:00
- data
2024-07-26 13:07:25 +02:00
description: |-
2025-01-17 17:03:32 +01:00
find data by id
2024-07-26 13:07:25 +02:00
<br>
2025-01-17 17:03:32 +01:00
operationId: DataController.Get
2024-07-26 13:07:25 +02:00
parameters:
- in: path
name: id
description: the id you want to get
required: true
type: string
responses:
"200":
2025-01-17 17:03:32 +01:00
description: '{data} models.data'
2024-07-26 13:07:25 +02:00
put:
tags:
2025-01-17 17:03:32 +01:00
- data
2024-07-26 13:07:25 +02:00
description: |-
2025-01-17 17:03:32 +01:00
create datas
2024-07-26 13:07:25 +02:00
<br>
2025-01-17 17:03:32 +01:00
operationId: DataController.Update
2024-07-26 13:07:25 +02:00
parameters:
- in: path
name: id
2025-01-17 17:03:32 +01:00
description: the data id you want to get
2024-07-26 13:07:25 +02:00
required: true
type: string
- in: body
name: body
2025-01-17 17:03:32 +01:00
description: The data content
2024-07-26 13:07:25 +02:00
required: true
schema:
2025-01-17 17:03:32 +01:00
$ref: '#/definitions/models.data'
2024-07-26 13:07:25 +02:00
responses:
"200":
2025-01-17 17:03:32 +01:00
description: '{data} models.data'
2024-07-26 13:07:25 +02:00
delete:
tags:
2025-01-17 17:03:32 +01:00
- data
2024-07-26 13:07:25 +02:00
description: |-
2025-01-17 17:03:32 +01:00
delete the data
2024-07-26 13:07:25 +02:00
<br>
2025-01-17 17:03:32 +01:00
operationId: DataController.Delete
2024-07-26 13:07:25 +02:00
parameters:
- in: path
name: id
description: The id you want to delete
required: true
type: string
responses:
"200":
2025-01-17 17:03:32 +01:00
description: '{data} delete success!'
/data/search/{search}:
get:
tags:
2025-01-17 17:03:32 +01:00
- data
responses:
"200":
description: '{data} models.data'
/enum/booking/status:
get:
tags:
- enum
description: |-
2025-01-17 17:03:32 +01:00
get list of Infrastructure
<br>
2025-01-17 17:03:32 +01:00
operationId: EnumController.BookingStatus
responses:
"200":
2025-01-17 17:03:32 +01:00
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'
2024-07-26 13:07:25 +02:00
/processing/:
get:
tags:
- processing
description: |-
find processing by id
<br>
operationId: ProcessingController.GetAll
2025-01-17 17:03:32 +01:00
parameters:
- in: query
name: is_draft
description: draft wished
type: string
2024-07-26 13:07:25 +02:00
responses:
"200":
description: '{processing} models.processing'
post:
tags:
- processing
description: |-
create processing
<br>
operationId: ProcessingController.Create
parameters:
- in: body
name: processing
description: body for processing content (Json format)
required: true
schema:
$ref: '#/definitions/json'
responses:
"200":
description: '{processing} models.processing'
/processing/{id}:
get:
tags:
- processing
description: |-
find processing by id
<br>
operationId: ProcessingController.Get
parameters:
- in: path
name: id
description: the id you want to get
required: true
type: string
responses:
"200":
description: '{processing} models.processing'
put:
tags:
- processing
description: |-
create processings
<br>
operationId: ProcessingController.Update
parameters:
- in: path
name: id
description: the processing id you want to get
required: true
type: string
- in: body
name: body
description: The processing content
required: true
schema:
$ref: '#/definitions/models.processing'
responses:
"200":
description: '{processing} models.processing'
delete:
tags:
- processing
description: |-
delete the processing
<br>
operationId: ProcessingController.Delete
parameters:
- in: path
name: id
description: The id you want to delete
required: true
type: string
responses:
"200":
description: '{processing} delete success!'
2024-07-30 10:07:34 +02:00
/processing/search/{search}:
get:
tags:
- processing
description: |-
find processing by key word
<br>
operationId: ProcessingController.Get
parameters:
- in: path
name: search
description: the search you want to get
required: true
type: string
2025-01-17 17:03:32 +01:00
- in: query
name: is_draft
description: draft wished
type: string
responses:
"200":
description: '{processing} models.processing'
/resource/:
get:
tags:
- resource
description: |-
find resource by id
<br>
operationId: ResourceController.GetAll
2025-01-17 17:03:32 +01:00
parameters:
- in: query
name: is_draft
description: draft wished
type: string
responses:
"200":
description: '{resource} models.resource'
/resource/{id}:
get:
tags:
- resource
description: |-
find resource by id
<br>
operationId: ResourceController.Get
parameters:
- in: path
name: id
description: the id you want to get
required: true
type: string
responses:
"200":
description: '{resource} models.resource'
delete:
tags:
- resource
description: |-
delete the resource
<br>
operationId: ResourceController.Delete
parameters:
- in: path
name: id
description: The id you want to deleteDeleteOne
required: true
type: string
responses:
"200":
description: '{resource} delete success!'
2024-07-30 10:07:34 +02:00
/resource/search/{search}:
get:
tags:
- resource
description: |-
find resource by key word
<br>
operationId: ResourceController.Get
parameters:
- in: path
name: search
description: the search you want to get
required: true
type: string
2025-01-17 17:03:32 +01:00
- in: query
name: is_draft
description: draft wished
type: string
responses:
"200":
description: '{resource} models.resource'
2024-07-26 13:07:25 +02:00
/storage/:
get:
tags:
- storage
description: |-
find storage by id
<br>
operationId: StorageController.GetAll
2025-01-17 17:03:32 +01:00
parameters:
- in: query
name: is_draft
description: draft wished
type: string
2024-07-26 13:07:25 +02:00
responses:
"200":
description: '{storage} models.storage'
post:
tags:
- storage
description: |-
create storage
<br>
operationId: StorageController.Create
parameters:
- in: body
name: storage
description: body for storage content (Json format)
required: true
schema:
$ref: '#/definitions/json'
responses:
"200":
description: '{storage} models.storage'
/storage/{id}:
get:
tags:
- storage
description: |-
find storage by id
<br>
operationId: StorageController.Get
parameters:
- in: path
name: id
description: the id you want to get
required: true
type: string
responses:
"200":
description: '{storage} models.storage'
put:
tags:
- storage
description: |-
create storages
<br>
operationId: StorageController.Update
parameters:
- in: path
name: id
description: the storage id you want to get
required: true
type: string
- in: body
name: body
description: The storage content
required: true
schema:
$ref: '#/definitions/models.storage'
responses:
"200":
description: '{storage} models.storage'
delete:
tags:
- storage
description: |-
delete the storage
<br>
operationId: StorageController.Delete
parameters:
- in: path
name: id
description: The id you want to delete
required: true
type: string
responses:
"200":
description: '{storage} delete success!'
2024-07-30 10:07:34 +02:00
/storage/search/{search}:
get:
tags:
- storage
description: |-
find storage by key word
<br>
operationId: StorageController.Get
parameters:
- in: path
name: search
description: the search you want to get
required: true
type: string
2025-01-17 17:03:32 +01:00
- in: query
name: is_draft
description: draft wished
type: string
responses:
"200":
description: '{storage} models.storage'
2024-07-26 13:07:25 +02:00
/version/:
get:
tags:
- version
description: |-
get version
<br>
operationId: VersionController.GetAll
responses:
"200":
description: ""
2024-08-21 11:57:45 +02:00
/version/status:
get:
tags:
- version
description: |-
get status
<br>
operationId: VersionController.Status
responses:
"200":
description: ""
2024-07-26 13:07:25 +02:00
/workflow/:
get:
tags:
- workflow
description: |-
find workflow by id
<br>
operationId: WorkflowController.GetAll
2025-01-17 17:03:32 +01:00
parameters:
- in: query
name: is_draft
description: draft wished
type: string
2024-07-26 13:07:25 +02:00
responses:
"200":
description: '{workflow} models.workflow'
post:
tags:
- workflow
description: |-
create workflow
<br>
operationId: WorkflowController.Create
parameters:
- in: body
name: workflow
description: body for workflow content (Json format)
required: true
schema:
$ref: '#/definitions/json'
responses:
"200":
description: '{workflow} models.workflow'
/workflow/{id}:
get:
tags:
- workflow
description: |-
find workflow by id
<br>
operationId: WorkflowController.Get
parameters:
- in: path
name: id
description: the id you want to get
required: true
type: string
responses:
"200":
description: '{workflow} models.workflow'
put:
tags:
- workflow
description: |-
create workflows
<br>
operationId: WorkflowController.Update
parameters:
- in: path
name: id
description: the workflow id you want to get
required: true
type: string
- in: body
name: body
description: The workflow content
required: true
schema:
$ref: '#/definitions/models.workflow'
responses:
"200":
description: '{workflow} models.workflow'
delete:
tags:
- workflow
description: |-
delete the workflow
<br>
operationId: WorkflowController.Delete
parameters:
- in: path
name: id
description: The id you want to delete
required: true
type: string
responses:
"200":
description: '{workflow} delete success!'
2024-07-30 10:07:34 +02:00
/workflow/search/{search}:
get:
tags:
- workflow
description: |-
find workflow by key word
<br>
operationId: WorkflowController.Get
parameters:
- in: path
name: search
description: the search you want to get
required: true
type: string
2025-01-17 17:03:32 +01:00
- in: query
name: is_draft
description: draft wished
type: string
responses:
"200":
description: '{workflow} models.workflow'
2024-07-26 13:07:25 +02:00
definitions:
json:
title: json
type: object
2024-11-07 13:42:19 +01:00
models.compute:
title: compute
2024-07-26 13:07:25 +02:00
type: object
2025-01-17 17:03:32 +01:00
models.data:
title: data
type: object
2024-07-26 13:07:25 +02:00
models.processing:
title: processing
type: object
models.storage:
title: storage
type: object
models.workflow:
title: workflow
type: object
tags:
- name: resource
description: |
Operations about resource
2024-07-26 13:07:25 +02:00
- name: data
description: |
Operations about data
2024-11-07 13:42:19 +01:00
- name: compute
2024-07-26 13:07:25 +02:00
description: |
2024-11-07 13:42:19 +01:00
Operations about compute
2024-07-26 13:07:25 +02:00
- name: storage
description: |
Operations about storage
2024-07-26 13:07:25 +02:00
- name: processing
description: |
Operations about processing
2024-07-26 13:07:25 +02:00
- name: workflow
description: |
Operations about workflow
2025-01-17 17:03:32 +01:00
- name: enum
description: |
Operations about resource
2024-07-26 13:07:25 +02:00
- name: version
description: |
VersionController operations for Version