oc-shared/swagger/swagger.yml

326 lines
8.0 KiB
YAML
Raw Permalink 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-10-30 10:45:04 +01:00
name: AGPL
url: https://www.gnu.org/licenses/agpl-3.0.html
basePath: /oc/
2024-08-12 14:12:51 +02:00
paths:
2024-10-15 11:00:39 +02:00
/collaborative_area/:
2024-08-12 14:12:51 +02:00
get:
tags:
2024-10-15 11:00:39 +02:00
- 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-10-15 11:00:39 +02:00
- 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-10-15 11:00:39 +02:00
/collaborative_area/{id}:
2024-08-12 14:12:51 +02:00
get:
tags:
2024-10-15 11:00:39 +02:00
- 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-10-15 11:00:39 +02:00
- 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-10-15 11:00:39 +02:00
- 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-10-15 11:00:39 +02:00
/collaborative_area/{id}/peer/{id2}:
2024-08-26 13:45:50 +02:00
post:
tags:
2024-10-15 11:00:39 +02:00
- 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-10-15 11:00:39 +02:00
- 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-10-15 11:00:39 +02:00
/collaborative_area/{id}/rule/{id2}:
2024-08-26 13:50:11 +02:00
post:
tags:
2024-10-15 11:00:39 +02:00
- 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-10-15 11:00:39 +02:00
- 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-10-15 11:00:39 +02:00
/collaborative_area/{id}/workflow/{id2}:
2024-08-26 13:45:50 +02:00
post:
tags:
2024-10-15 11:00:39 +02:00
- 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-10-15 11:00:39 +02:00
- 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-10-15 11:00:39 +02:00
/collaborative_area/{id}/workspace/{id2}:
2024-08-26 13:45:50 +02:00
post:
tags:
2024-10-15 11:00:39 +02:00
- 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-10-15 11:00:39 +02:00
- 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-10-15 11:00:39 +02:00
/collaborative_area/search/{search}:
2024-08-12 14:12:51 +02:00
get:
tags:
2024-10-15 11:00:39 +02:00
- 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-10-15 11:00:39 +02:00
- name: collaborative_area
2024-08-12 14:12:51 +02:00
description: |
Operations about workspace
- name: version
description: |
VersionController operations for Version