oc-shared/swagger/swagger.yml

429 lines
11 KiB
YAML
Raw Normal View History

2024-08-12 14:12:51 +02:00
swagger: "2.0"
info:
2024-09-05 09:30:42 +02:00
title: oc-shared
2024-08-12 14:12:51 +02:00
description: |
2024-09-05 09:30:42 +02:00
Manages shared workspaces and their synchronization
2024-08-12 14:12:51 +02:00
version: 1.0.0
2024-09-05 09:30:42 +02:00
termsOfService: http://cloud.o-forge.io/
2024-08-12 14:12:51 +02:00
contact:
2024-09-05 09:30:42 +02:00
email: admin@o-cloud.io
2024-08-12 14:12:51 +02:00
license:
2024-09-05 09:30:42 +02:00
name: MIT
url: https://opensource.org/license/mit
2024-08-22 10:49:26 +02:00
basePath: /oc
2024-08-12 14:12:51 +02:00
paths:
2024-09-27 14:08:14 +02:00
/shared/collaborative_area/:
2024-08-12 14:12:51 +02:00
get:
tags:
2024-09-27 14:08:14 +02:00
- shared/collaborative_area
2024-08-12 14:12:51 +02:00
description: |-
find shared workspace by id
<br>
2024-09-27 14:08:14 +02:00
operationId: CollaborativeAreaController.GetAll
2024-08-12 14:12:51 +02:00
responses:
"200":
description: '{shared_workspace} models.shared_workspace'
post:
tags:
2024-09-27 14:08:14 +02:00
- shared/collaborative_area
2024-08-12 14:12:51 +02:00
description: |-
create shared workspace
<br>
2024-09-27 14:08:14 +02:00
operationId: CollaborativeAreaController.Create
2024-08-12 14:12:51 +02:00
parameters:
- in: body
name: data
description: body for data content (Json format)
required: true
schema:
$ref: '#/definitions/json'
responses:
"200":
description: '{shared workspace} models.shared_workspace'
2024-09-27 14:08:14 +02:00
/shared/collaborative_area/{id}:
2024-08-12 14:12:51 +02:00
get:
tags:
2024-09-27 14:08:14 +02:00
- shared/collaborative_area
2024-08-12 14:12:51 +02:00
description: |-
find shared workspace by id
<br>
2024-09-27 14:08:14 +02:00
operationId: CollaborativeAreaController.Get
2024-08-12 14:12:51 +02:00
parameters:
- in: path
name: id
description: the id you want to get
required: true
type: string
responses:
"200":
description: '{shared workspace} models.shared_workspace'
put:
tags:
2024-09-27 14:08:14 +02:00
- shared/collaborative_area
2024-08-12 14:12:51 +02:00
description: |-
create shared workspaces
<br>
2024-09-27 14:08:14 +02:00
operationId: CollaborativeAreaController.Update
2024-08-12 14:12:51 +02:00
parameters:
- in: path
name: id
description: the shared workspace id you want to get
required: true
type: string
- in: body
name: body
description: The shared workspace content
required: true
schema:
$ref: '#/definitions/models.workspace'
responses:
"200":
description: '{shared workspace} models.shared_workspace'
delete:
tags:
2024-09-27 14:08:14 +02:00
- shared/collaborative_area
2024-08-12 14:12:51 +02:00
description: |-
delete the shared workspace
<br>
2024-09-27 14:08:14 +02:00
operationId: CollaborativeAreaController.Delete
2024-08-12 14:12:51 +02:00
parameters:
- in: path
name: id
description: The id you want to delete
required: true
type: string
responses:
"200":
description: '{shared workspace} delete success!'
2024-09-27 14:08:14 +02:00
/shared/collaborative_area/{id}/peer/{id2}:
2024-08-26 13:45:50 +02:00
post:
tags:
2024-09-27 14:08:14 +02:00
- shared/collaborative_area
2024-08-26 13:45:50 +02:00
description: |-
find shared workspace by id
<br>
2024-09-27 14:08:14 +02:00
operationId: CollaborativeAreaController.Add Peer
2024-08-26 13:45:50 +02:00
parameters:
- in: path
name: id
2024-08-26 13:50:11 +02:00
description: the id you want to get
required: true
type: string
- in: path
name: id2
description: the id you want to add
required: true
type: string
responses:
"200":
description: '{shared workspace} models.shared_workspace'
2024-08-26 15:39:56 +02:00
delete:
tags:
2024-09-27 14:08:14 +02:00
- shared/collaborative_area
2024-08-26 15:39:56 +02:00
description: |-
find shared workspace by id
<br>
2024-09-27 14:08:14 +02:00
operationId: CollaborativeAreaController.Remove Peer
2024-08-26 15:39:56 +02:00
parameters:
- in: path
name: id
description: the id you want to get
required: true
type: string
- in: path
name: id2
description: the id you want to add
required: true
type: string
responses:
"200":
description: '{shared workspace} models.shared_workspace'
2024-09-27 14:08:14 +02:00
/shared/collaborative_area/{id}/rule/{id2}:
2024-08-26 13:50:11 +02:00
post:
tags:
2024-09-27 14:08:14 +02:00
- shared/collaborative_area
2024-08-26 13:50:11 +02:00
description: |-
find shared workspace by id
<br>
2024-09-27 14:08:14 +02:00
operationId: CollaborativeAreaController.Add Rule
2024-08-26 13:50:11 +02:00
parameters:
- in: path
name: id
2024-08-26 13:45:50 +02:00
description: the id you want to get
required: true
type: string
- in: path
name: id2
description: the id you want to add
required: true
type: string
responses:
"200":
description: '{shared workspace} models.shared_workspace'
2024-08-26 15:39:56 +02:00
delete:
tags:
2024-09-27 14:08:14 +02:00
- shared/collaborative_area
2024-08-26 15:39:56 +02:00
description: |-
find shared workspace by id
<br>
2024-09-27 14:08:14 +02:00
operationId: CollaborativeAreaController.Remove Rule
2024-08-26 15:39:56 +02:00
parameters:
- in: path
name: id
description: the id you want to get
required: true
type: string
- in: path
name: id2
description: the id you want to add
required: true
type: string
responses:
"200":
description: '{shared workspace} models.shared_workspace'
2024-09-27 14:08:14 +02:00
/shared/collaborative_area/{id}/workflow/{id2}:
2024-08-26 13:45:50 +02:00
post:
tags:
2024-09-27 14:08:14 +02:00
- shared/collaborative_area
2024-08-26 13:45:50 +02:00
description: |-
find shared workspace by id
<br>
2024-09-27 14:08:14 +02:00
operationId: CollaborativeAreaController.Add Workflow
2024-08-26 13:45:50 +02:00
parameters:
- in: path
name: id
description: the id you want to get
required: true
type: string
- in: path
name: id2
description: the id you want to add
required: true
type: string
responses:
"200":
description: '{shared workspace} models.shared_workspace'
2024-08-26 15:39:56 +02:00
delete:
tags:
2024-09-27 14:08:14 +02:00
- shared/collaborative_area
2024-08-26 15:39:56 +02:00
description: |-
find shared workspace by id
<br>
2024-09-27 14:08:14 +02:00
operationId: CollaborativeAreaController.Remove Workflow
2024-08-26 15:39:56 +02:00
parameters:
- in: path
name: id
description: the id you want to get
required: true
type: string
- in: path
name: id2
description: the id you want to add
required: true
type: string
responses:
"200":
description: '{shared workspace} models.shared_workspace'
2024-09-27 14:08:14 +02:00
/shared/collaborative_area/{id}/workspace/{id2}:
2024-08-26 13:45:50 +02:00
post:
tags:
2024-09-27 14:08:14 +02:00
- shared/collaborative_area
2024-08-26 13:45:50 +02:00
description: |-
find shared workspace by id
2024-08-26 15:39:56 +02:00
<br>
2024-09-27 14:08:14 +02:00
operationId: CollaborativeAreaController.Add Workspace
2024-08-26 15:39:56 +02:00
parameters:
- in: path
name: id
description: the id you want to get
required: true
type: string
- in: path
name: id2
description: the id you want to add
required: true
type: string
responses:
"200":
description: '{shared workspace} models.shared_workspace'
delete:
tags:
2024-09-27 14:08:14 +02:00
- shared/collaborative_area
2024-08-26 15:39:56 +02:00
description: |-
find shared workspace by id
2024-08-26 13:45:50 +02:00
<br>
2024-09-27 14:08:14 +02:00
operationId: CollaborativeAreaController.Add Workspace
2024-08-26 13:45:50 +02:00
parameters:
- in: path
name: id
description: the id you want to get
required: true
type: string
- in: path
name: id2
description: the id you want to add
required: true
type: string
responses:
"200":
description: '{shared workspace} models.shared_workspace'
2024-09-27 14:08:14 +02:00
/shared/collaborative_area/rule/:
2024-08-12 14:12:51 +02:00
get:
tags:
2024-09-27 14:08:14 +02:00
- shared/collaborative_area/rule
2024-08-12 14:12:51 +02:00
description: |-
find rule by id
<br>
operationId: RuleController.GetAll
responses:
"200":
description: '{rule} models.rule'
post:
tags:
2024-09-27 14:08:14 +02:00
- shared/collaborative_area/rule
2024-08-12 14:12:51 +02:00
description: |-
create rule
<br>
operationId: RuleController.Create
parameters:
- in: body
name: data
description: body for data content (Json format)
required: true
schema:
$ref: '#/definitions/json'
responses:
"200":
description: '{rule} models.rule'
2024-09-27 14:08:14 +02:00
/shared/collaborative_area/rule/{id}:
2024-08-12 14:12:51 +02:00
get:
tags:
2024-09-27 14:08:14 +02:00
- shared/collaborative_area/rule
2024-08-12 14:12:51 +02:00
description: |-
find rule by id
<br>
operationId: RuleController.Get
parameters:
- in: path
name: id
description: the id you want to get
required: true
type: string
responses:
"200":
description: '{rule} models.rule'
put:
tags:
2024-09-27 14:08:14 +02:00
- shared/collaborative_area/rule
2024-08-12 14:12:51 +02:00
description: |-
create rules
<br>
operationId: RuleController.Update
parameters:
- in: path
name: id
description: the rule id you want to get
required: true
type: string
- in: body
name: body
description: The rule content
required: true
schema:
$ref: '#/definitions/models.rule'
responses:
"200":
description: '{rule} models.rule'
delete:
tags:
2024-09-27 14:08:14 +02:00
- shared/collaborative_area/rule
2024-08-12 14:12:51 +02:00
description: |-
delete the rule
<br>
operationId: RuleController.Delete
parameters:
- in: path
name: id
description: The id you want to delete
required: true
type: string
responses:
"200":
description: '{rule} delete success!'
2024-09-27 14:08:14 +02:00
/shared/collaborative_area/rule/search/{search}:
2024-08-12 14:12:51 +02:00
get:
tags:
2024-09-27 14:08:14 +02:00
- shared/collaborative_area/rule
2024-08-12 14:12:51 +02:00
description: |-
search rule
<br>
operationId: RuleController.Search
parameters:
- in: path
name: search
description: the word search you want to get
required: true
type: string
responses:
"200":
description: '{rule} models.rule'
2024-09-27 14:08:14 +02:00
/shared/collaborative_area/search/{search}:
2024-08-12 14:12:51 +02:00
get:
tags:
2024-09-27 14:08:14 +02:00
- shared/collaborative_area
2024-08-12 14:12:51 +02:00
description: |-
search shared workspace
<br>
2024-09-27 14:08:14 +02:00
operationId: CollaborativeAreaController.Search
2024-08-12 14:12:51 +02:00
parameters:
- in: path
name: search
description: the word search you want to get
required: true
type: string
responses:
"200":
description: '{shared workspace} models.shared_workspace'
2024-08-22 10:49:26 +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-08-12 14:12:51 +02:00
definitions:
json:
title: json
type: object
models.rule:
title: rule
type: object
models.workspace:
title: workspace
type: object
tags:
2024-09-27 14:08:14 +02:00
- name: shared/collaborative_area
2024-08-12 14:12:51 +02:00
description: |
Operations about workspace
2024-09-27 14:08:14 +02:00
- name: shared/collaborative_area/rule
2024-08-12 14:12:51 +02:00
description: |
Operations about rule
- name: version
description: |
VersionController operations for Version