mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-22 23:53:50 +00:00
Add attachments to workflow
This commit is contained in:
@@ -10,6 +10,50 @@ servers:
|
||||
|
||||
components:
|
||||
schemas:
|
||||
EntityWorkflowAttachment:
|
||||
type: object
|
||||
properties:
|
||||
id:
|
||||
type: number
|
||||
format: u64
|
||||
minimum: 0
|
||||
relatedGenericDocKey:
|
||||
type: string
|
||||
relatedGenericDocIdentifiers:
|
||||
type: object
|
||||
AddAttachmentRequest:
|
||||
description: "A request to add attachment in an entity workflow"
|
||||
type: object
|
||||
properties:
|
||||
relatedGenericDocKey:
|
||||
type: string
|
||||
relatedGenericDocIdentifiers:
|
||||
type: object
|
||||
PaginatedResult:
|
||||
type: object
|
||||
properties:
|
||||
count:
|
||||
type: number
|
||||
format: u64
|
||||
pagination:
|
||||
type: object
|
||||
properties:
|
||||
first:
|
||||
type: number
|
||||
format: u64
|
||||
minimum: 0
|
||||
items_per_page:
|
||||
type: number
|
||||
format: u64
|
||||
minimum: 0
|
||||
next:
|
||||
type: string
|
||||
nullable: true
|
||||
previous:
|
||||
type: string
|
||||
nullable: true
|
||||
more:
|
||||
type: boolean
|
||||
Date:
|
||||
type: object
|
||||
properties:
|
||||
@@ -990,3 +1034,70 @@ paths:
|
||||
$ref: '#/components/schemas/UserGroup'
|
||||
403:
|
||||
description: "Unauthorized"
|
||||
/1.0/main/workflow/{id}/attachment:
|
||||
get:
|
||||
tags:
|
||||
- workflow
|
||||
summary: Get a list of attachements for a given workflow
|
||||
parameters:
|
||||
- name: id
|
||||
in: path
|
||||
required: true
|
||||
description: The entity workflow id
|
||||
schema:
|
||||
type: integer
|
||||
format: integer
|
||||
minimum: 1
|
||||
responses:
|
||||
200:
|
||||
description: "ok"
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
type: array
|
||||
items:
|
||||
$ref: '#/components/schemas/EntityWorkflowAttachment'
|
||||
post:
|
||||
tags:
|
||||
- workflow
|
||||
summary: Create a new attachment
|
||||
parameters:
|
||||
- name: id
|
||||
in: path
|
||||
required: true
|
||||
description: The entity workflow id
|
||||
schema:
|
||||
type: integer
|
||||
format: integer
|
||||
minimum: 1
|
||||
requestBody:
|
||||
required: true
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
$ref: '#/components/schemas/AddAttachmentRequest'
|
||||
responses:
|
||||
200:
|
||||
description: "ok"
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
$ref: '#/components/schemas/EntityWorkflowAttachment'
|
||||
/1.0/main/workflow/attachment/{id}:
|
||||
delete:
|
||||
tags:
|
||||
- workflow
|
||||
summary: Remove an attachment
|
||||
parameters:
|
||||
- name: id
|
||||
in: path
|
||||
required: true
|
||||
description: The entity workflow 's attachment id
|
||||
schema:
|
||||
type: integer
|
||||
format: integer
|
||||
minimum: 1
|
||||
responses:
|
||||
204:
|
||||
description: "resource was deleted successfully"
|
||||
|
||||
|
Reference in New Issue
Block a user