Bug 32030: ERM - Agreement documents - REST API

Signed-off-by: Jonathan Field <jonathan.field@ptfs-europe.com>

Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
This commit is contained in:
Jonathan Druart 2022-05-16 18:30:56 +02:00 committed by Tomas Cohen Arazi
parent c29f0ec1fe
commit c03c616bc2
No known key found for this signature in database
GPG Key ID: 0A272EA1B2F3C15F
3 changed files with 63 additions and 0 deletions

View File

@ -59,6 +59,11 @@ properties:
description: agreement licenses
items:
$ref: erm_agreement_license.yaml
documents:
type: array
description: documents
items:
$ref: erm_agreement_document.yaml
additionalProperties: false
required:

View File

@ -0,0 +1,56 @@
---
type: object
properties:
document_id:
type: integer
description: internally assigned identifier
readOnly: true
agreement_id:
type: integer
description: Internal agreement identifier
file_name:
type:
- string
- "null"
description: Name of the file
file_type:
type:
- string
- "null"
description: Name of the file
file_description:
type:
- string
- "null"
description: Description of the file
file_content:
type:
- string
- "null"
description: Content of the file
uploaded_on:
type:
- string
- "null"
format: date-time
description: Datetime of the upload
file_type:
type:
- string
- "null"
description: Name of the file
physical_location:
type:
- string
- "null"
description: Physical location of the document
uri:
description: URI of the document
type:
- string
- "null"
notes:
type:
- string
- "null"
additionalProperties: false

View File

@ -192,6 +192,7 @@
- agreement_relationships
- agreement_relationships.agreement
- agreement_relationships.related_agreement
- documents
put:
x-mojo-to: ERM::Agreements#update
operationId: updateErmAgreements
@ -251,6 +252,7 @@
- user_roles
- agreement_licenses
- agreement_relationships
- documents
delete:
x-mojo-to: ERM::Agreements#delete
operationId: deleteErmAgreements