Add attachments to workflow

This commit is contained in:
2025-02-03 21:15:00 +00:00
parent 9e191f1b5b
commit 37227a3aeb
106 changed files with 3455 additions and 619 deletions

View File

@@ -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"