Simplify but Complete Catalog
This commit is contained in:
@@ -10,212 +10,8 @@ info:
|
||||
license:
|
||||
name: AGPL
|
||||
url: https://www.gnu.org/licenses/agpl-3.0.html
|
||||
basePath: /oc/
|
||||
basePath: /oc
|
||||
paths:
|
||||
/compute/:
|
||||
get:
|
||||
tags:
|
||||
- compute
|
||||
description: |-
|
||||
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'
|
||||
post:
|
||||
tags:
|
||||
- compute
|
||||
description: |-
|
||||
create compute
|
||||
<br>
|
||||
operationId: ComputeController.Create
|
||||
parameters:
|
||||
- in: body
|
||||
name: compute
|
||||
description: body for compute content (Json format)
|
||||
required: true
|
||||
schema:
|
||||
$ref: '#/definitions/json'
|
||||
responses:
|
||||
"200":
|
||||
description: '{compute} models.compute'
|
||||
/compute/{id}:
|
||||
get:
|
||||
tags:
|
||||
- compute
|
||||
description: |-
|
||||
find compute by id
|
||||
<br>
|
||||
operationId: ComputeController.Get
|
||||
parameters:
|
||||
- in: path
|
||||
name: id
|
||||
description: the id you want to get
|
||||
required: true
|
||||
type: string
|
||||
responses:
|
||||
"200":
|
||||
description: '{compute} models.compute'
|
||||
put:
|
||||
tags:
|
||||
- compute
|
||||
description: |-
|
||||
create computes
|
||||
<br>
|
||||
operationId: ComputeController.Update
|
||||
parameters:
|
||||
- in: path
|
||||
name: id
|
||||
description: the compute id you want to get
|
||||
required: true
|
||||
type: string
|
||||
- in: body
|
||||
name: body
|
||||
description: The compute content
|
||||
required: true
|
||||
schema:
|
||||
$ref: '#/definitions/models.compute'
|
||||
responses:
|
||||
"200":
|
||||
description: '{compute} models.compute'
|
||||
delete:
|
||||
tags:
|
||||
- compute
|
||||
description: |-
|
||||
delete the compute
|
||||
<br>
|
||||
operationId: ComputeController.Delete
|
||||
parameters:
|
||||
- in: path
|
||||
name: id
|
||||
description: The id you want to delete
|
||||
required: true
|
||||
type: string
|
||||
responses:
|
||||
"200":
|
||||
description: '{compute} delete success!'
|
||||
/compute/search/{search}:
|
||||
get:
|
||||
tags:
|
||||
- compute
|
||||
description: |-
|
||||
find compute by key word
|
||||
<br>
|
||||
operationId: ComputeController.Get
|
||||
parameters:
|
||||
- in: path
|
||||
name: search
|
||||
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:
|
||||
@@ -378,115 +174,6 @@ paths:
|
||||
description: '{compute} models.workflow'
|
||||
"406":
|
||||
description: '{string} string "Bad request"'
|
||||
/processing/:
|
||||
get:
|
||||
tags:
|
||||
- processing
|
||||
description: |-
|
||||
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'
|
||||
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!'
|
||||
/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
|
||||
- in: query
|
||||
name: is_draft
|
||||
description: draft wished
|
||||
type: string
|
||||
responses:
|
||||
"200":
|
||||
description: '{processing} models.processing'
|
||||
/purchase/:
|
||||
get:
|
||||
tags:
|
||||
@@ -558,51 +245,18 @@ paths:
|
||||
responses:
|
||||
"200":
|
||||
description: '{compute} models.compute'
|
||||
/resource/:
|
||||
/resource/{type}:
|
||||
get:
|
||||
tags:
|
||||
- resource
|
||||
description: |-
|
||||
find resource by id
|
||||
list all resources across all types
|
||||
<br>
|
||||
operationId: ResourceController.GetAll
|
||||
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'
|
||||
/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
|
||||
name: type
|
||||
description: the type you want to get
|
||||
required: true
|
||||
type: string
|
||||
- in: query
|
||||
@@ -612,103 +266,120 @@ paths:
|
||||
responses:
|
||||
"200":
|
||||
description: '{resource} models.resource'
|
||||
/storage/:
|
||||
get:
|
||||
tags:
|
||||
- storage
|
||||
description: |-
|
||||
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'
|
||||
post:
|
||||
tags:
|
||||
- storage
|
||||
- resource
|
||||
description: |-
|
||||
create storage
|
||||
search resources across all types
|
||||
<br>
|
||||
operationId: StorageController.Create
|
||||
operationId: ResourceController.Post
|
||||
parameters:
|
||||
- in: path
|
||||
name: type
|
||||
description: the type you want to get
|
||||
required: true
|
||||
type: string
|
||||
- in: body
|
||||
name: storage
|
||||
description: body for storage content (Json format)
|
||||
name: data
|
||||
description: body for data content (Json format)
|
||||
required: true
|
||||
schema:
|
||||
$ref: '#/definitions/json'
|
||||
responses:
|
||||
"200":
|
||||
description: '{storage} models.storage'
|
||||
/storage/{id}:
|
||||
description: '{resource} models.resource'
|
||||
/resource/{type}/{id}:
|
||||
get:
|
||||
tags:
|
||||
- storage
|
||||
- resource
|
||||
description: |-
|
||||
find storage by id
|
||||
search resources across all types
|
||||
<br>
|
||||
operationId: StorageController.Get
|
||||
operationId: ResourceController.Get
|
||||
parameters:
|
||||
- in: path
|
||||
name: type
|
||||
description: the type you want to get
|
||||
required: true
|
||||
type: string
|
||||
- in: path
|
||||
name: id
|
||||
description: the id you want to get
|
||||
required: true
|
||||
type: string
|
||||
- in: query
|
||||
name: is_draft
|
||||
description: draft wished
|
||||
type: string
|
||||
responses:
|
||||
"200":
|
||||
description: '{storage} models.storage'
|
||||
description: '{resource} models.resource'
|
||||
put:
|
||||
tags:
|
||||
- storage
|
||||
- resource
|
||||
description: |-
|
||||
create storages
|
||||
search resources across all types
|
||||
<br>
|
||||
operationId: StorageController.Update
|
||||
operationId: ResourceController.Put
|
||||
parameters:
|
||||
- in: path
|
||||
name: type
|
||||
description: the type you want to get
|
||||
required: true
|
||||
type: string
|
||||
- in: path
|
||||
name: id
|
||||
description: the storage id you want to get
|
||||
description: the id you want to get
|
||||
required: true
|
||||
type: string
|
||||
- in: body
|
||||
name: body
|
||||
description: The storage content
|
||||
name: data
|
||||
description: body for data content (Json format)
|
||||
required: true
|
||||
schema:
|
||||
$ref: '#/definitions/models.storage'
|
||||
$ref: '#/definitions/json'
|
||||
responses:
|
||||
"200":
|
||||
description: '{storage} models.storage'
|
||||
description: '{resource} models.resource'
|
||||
delete:
|
||||
tags:
|
||||
- storage
|
||||
- resource
|
||||
description: |-
|
||||
delete the storage
|
||||
search resources across all types
|
||||
<br>
|
||||
operationId: StorageController.Delete
|
||||
operationId: ResourceController.Delete
|
||||
parameters:
|
||||
- in: path
|
||||
name: id
|
||||
description: The id you want to delete
|
||||
name: type
|
||||
description: the type you want to get
|
||||
required: true
|
||||
type: string
|
||||
- in: path
|
||||
name: id
|
||||
description: the id you want to get
|
||||
required: true
|
||||
type: string
|
||||
- in: query
|
||||
name: is_draft
|
||||
description: draft wished
|
||||
type: string
|
||||
responses:
|
||||
"200":
|
||||
description: '{storage} delete success!'
|
||||
/storage/search/{search}:
|
||||
description: '{resource} models.resource'
|
||||
/resource/{type}/search/{search}:
|
||||
get:
|
||||
tags:
|
||||
- storage
|
||||
- resource
|
||||
description: |-
|
||||
find storage by key word
|
||||
search resources across all types
|
||||
<br>
|
||||
operationId: StorageController.Get
|
||||
operationId: ResourceController.Search
|
||||
parameters:
|
||||
- in: path
|
||||
name: type
|
||||
description: the type you want to get
|
||||
required: true
|
||||
type: string
|
||||
- in: path
|
||||
name: search
|
||||
description: the search you want to get
|
||||
@@ -720,7 +391,7 @@ paths:
|
||||
type: string
|
||||
responses:
|
||||
"200":
|
||||
description: '{storage} models.storage'
|
||||
description: '{resource} models.resource'
|
||||
/version/:
|
||||
get:
|
||||
tags:
|
||||
@@ -743,134 +414,10 @@ paths:
|
||||
responses:
|
||||
"200":
|
||||
description: ""
|
||||
/workflow/:
|
||||
get:
|
||||
tags:
|
||||
- workflow
|
||||
description: |-
|
||||
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'
|
||||
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!'
|
||||
/workflow/search/{search}:
|
||||
get:
|
||||
tags:
|
||||
- workflow
|
||||
description: |-
|
||||
find workflow by key word
|
||||
<br>
|
||||
operationId: WorkflowController.Search
|
||||
parameters:
|
||||
- in: path
|
||||
name: search
|
||||
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'
|
||||
definitions:
|
||||
json:
|
||||
title: json
|
||||
type: object
|
||||
models.compute:
|
||||
title: compute
|
||||
type: object
|
||||
models.data:
|
||||
title: data
|
||||
type: object
|
||||
models.processing:
|
||||
title: processing
|
||||
type: object
|
||||
models.storage:
|
||||
title: storage
|
||||
type: object
|
||||
models.workflow:
|
||||
title: workflow
|
||||
type: object
|
||||
tags:
|
||||
- name: generic
|
||||
description: |
|
||||
@@ -880,22 +427,7 @@ tags:
|
||||
Operations about compute
|
||||
- name: resource
|
||||
description: |
|
||||
Operations about resource
|
||||
- name: data
|
||||
description: |
|
||||
Operations about data
|
||||
- name: compute
|
||||
description: |
|
||||
Operations about compute
|
||||
- name: storage
|
||||
description: |
|
||||
Operations about storage
|
||||
- name: processing
|
||||
description: |
|
||||
Operations about processing
|
||||
- name: workflow
|
||||
description: |
|
||||
Operations about workflow
|
||||
ResourceController aggregates all resource types.
|
||||
- name: enum
|
||||
description: |
|
||||
Operations about resource
|
||||
|
||||
Reference in New Issue
Block a user