oc-workspace/swagger/swagger.yml

151 lines
3.5 KiB
YAML
Raw Normal View History

2024-07-26 10:37:13 +02:00
swagger: "2.0"
info:
2024-09-05 09:25:21 +02:00
title: oc-workspace
2024-07-26 10:37:13 +02:00
description: |
2024-09-05 09:25:21 +02:00
Manage user's named resource sets, kind of shopping carts
2024-07-26 10:37:13 +02:00
version: 1.0.0
2024-09-05 09:25:21 +02:00
termsOfService: http://cloud.o-forge.io/
2024-07-26 10:37:13 +02:00
contact:
2024-09-05 09:25:21 +02:00
email: admin@o-cloud.io
2024-07-26 10:37:13 +02:00
license:
2024-09-05 09:25:21 +02:00
name: MIT
url: https://opensource.org/license/mit
2024-07-26 10:37:13 +02:00
basePath: /oc/
paths:
2024-10-15 10:56:39 +02:00
/:
2024-07-26 10:37:13 +02:00
get:
tags:
2024-10-15 10:56:39 +02:00
- oc-workspace/controllersWorkspaceController
2024-07-26 10:37:13 +02:00
description: |-
find workspace by id
<br>
operationId: WorkspaceController.GetAll
responses:
"200":
description: '{workspace} models.workspace'
post:
tags:
2024-10-15 10:56:39 +02:00
- oc-workspace/controllersWorkspaceController
2024-07-26 10:37:13 +02:00
description: |-
create workspace
<br>
operationId: WorkspaceController.Create
parameters:
- in: body
name: data
description: body for data content (Json format)
required: true
schema:
$ref: '#/definitions/json'
responses:
"200":
description: '{workspace} models.workspace'
2024-10-15 10:56:39 +02:00
/{id}:
2024-07-26 10:37:13 +02:00
get:
tags:
2024-10-15 10:56:39 +02:00
- oc-workspace/controllersWorkspaceController
2024-07-26 10:37:13 +02:00
description: |-
find workflow by id
<br>
operationId: WorkspaceController.Get
parameters:
- in: path
name: id
description: the id you want to get
required: true
type: string
responses:
"200":
description: '{workspace} models.workspace'
put:
tags:
2024-10-15 10:56:39 +02:00
- oc-workspace/controllersWorkspaceController
2024-07-26 10:37:13 +02:00
description: |-
create workspaces
<br>
operationId: WorkspaceController.Update
parameters:
- in: path
name: id
description: the workspace id you want to get
required: true
type: string
- in: body
name: body
description: The workspace content
required: true
schema:
$ref: '#/definitions/models.workspace'
responses:
"200":
description: '{workspace} models.workspace'
delete:
tags:
2024-10-15 10:56:39 +02:00
- oc-workspace/controllersWorkspaceController
2024-07-26 10:37:13 +02:00
description: |-
delete the workspace
<br>
operationId: WorkspaceController.Delete
parameters:
- in: path
name: id
description: The id you want to delete
required: true
type: string
responses:
"200":
description: '{workspace} delete success!'
2024-10-15 10:56:39 +02:00
/search/{search}:
2024-08-08 08:38:40 +02:00
get:
tags:
2024-10-15 10:56:39 +02:00
- oc-workspace/controllersWorkspaceController
2024-08-08 08:38:40 +02:00
description: |-
search workspace
<br>
operationId: WorkspaceController.Search
parameters:
- in: path
name: search
description: the word search you want to get
required: true
type: string
responses:
"200":
description: '{workspace} models.workspace'
2024-10-15 10:56:39 +02:00
/version/:
get:
tags:
- version
description: |-
get version
<br>
operationId: VersionController.GetAll
responses:
"200":
description: ""
/version/status:
get:
tags:
- version
description: |-
get status
<br>
operationId: VersionController.Status
responses:
"200":
description: ""
2024-07-26 10:37:13 +02:00
definitions:
json:
title: json
type: object
models.workspace:
title: workspace
type: object
tags:
2024-10-15 10:56:39 +02:00
- name: oc-workspace/controllersWorkspaceController
2024-07-26 10:37:13 +02:00
description: |
Operations about workspace
- name: version
description: |
VersionController operations for Version