type: array
description: documents
items:
- $ref: erm_agreement_document.yaml
+ $ref: erm_document.yaml
vendor:
description: Information about the vendor
type:
+++ /dev/null
----
-type: object
-properties:
- document_id:
- type: integer
- description: internally assigned identifier
- agreement_id:
- type: integer
- description: Internal agreement identifier
- file_name:
- type:
- - string
- - "null"
- description: Name of the file
- file_type:
- type:
- - string
- - "null"
- readOnly: true
- description: Type 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"
- readOnly: true
- format: date-time
- description: Datetime of the upload
- 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
--- /dev/null
+---
+type: object
+properties:
+ document_id:
+ type: integer
+ description: internally assigned identifier
+ agreement_id:
+ type:
+ - integer
+ - "null"
+ description: Internal agreement identifier
+ license_id:
+ type:
+ - integer
+ - "null"
+ description: Internal license identifier
+ file_name:
+ type:
+ - string
+ - "null"
+ description: Name of the file
+ file_type:
+ type:
+ - string
+ - "null"
+ readOnly: true
+ description: Type 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"
+ readOnly: true
+ format: date-time
+ description: Datetime of the upload
+ 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
- "null"
format: date
description: End of the license
+ documents:
+ type: array
+ description: documents
+ items:
+ $ref: erm_document.yaml
vendor:
description: Information about the vendor
type:
---
-"/erm/agreements/{agreement_id}/documents/{document_id}/file/content":
+"/erm/documents/{document_id}/file/content":
get:
x-mojo-to: ERM::Documents#get
- operationId: downloadErmAgreementDocument
+ operationId: downloadErmDocument
tags:
- document
- summary: Download agreement document
+ summary: Download erm document
produces:
- application/octet-stream
parameters:
- - description: Case insensitive search on agreement agreement_id
- in: path
- name: agreement_id
- required: true
- type: integer
- - description: Case insensitive search on agreement document_id
+ - description: Case insensitive search on document_id
in: path
name: document_id
required: true
erm: 1
x-koha-embed:
- agreements
+ - documents
put:
x-mojo-to: ERM::Licenses#update
operationId: updateERMlicenses
erm: 1
x-koha-embed:
- agreements
+ - documents
delete:
x-mojo-to: ERM::Licenses#delete
operationId: deleteERMlicenses
$ref: ./paths/erm_agreements.yaml#/~1erm~1agreements
"/erm/agreements/{agreement_id}":
$ref: "./paths/erm_agreements.yaml#/~1erm~1agreements~1{agreement_id}"
- "/erm/agreements/{agreement_id}/documents/{document_id}/file/content":
- $ref: "./paths/erm_documents.yaml#/~1erm~1agreements~1{agreement_id}~1documents~1{document_id}~1file~1content"
+ "/erm/documents/{document_id}/file/content":
+ $ref: "./paths/erm_documents.yaml#/~1erm~1documents~1{document_id}~1file~1content"
"/erm/eholdings/{provider}/titles":
$ref: "./paths/erm_eholdings_titles.yaml#/~1erm~1eholdings~1{provider}~1titles"
/erm/eholdings/local/titles/import: