Koha-clms/api/v1/swagger/paths/erm_documents.yaml

47 lines
1.2 KiB
YAML

---
"/erm/documents/{document_id}/file/content":
get:
x-mojo-to: ERM::Documents#get
operationId: downloadErmDocument
tags:
- document
summary: Download erm document
produces:
- application/octet-stream
parameters:
- description: Case insensitive search on document_id
in: path
name: document_id
required: true
type: integer
responses:
200:
description: Anagreement
schema:
type: file
401:
description: Authentication required
schema:
$ref: "../swagger.yaml#/definitions/error"
403:
description: Access forbidden
schema:
$ref: "../swagger.yaml#/definitions/error"
404:
description: Ressource not found
schema:
$ref: "../swagger.yaml#/definitions/error"
500:
description: |-
Internal server error. Possible `error_code` attribute values:
* `internal_server_error`
schema:
$ref: "../swagger.yaml#/definitions/error"
503:
description: Under maintenance
schema:
$ref: "../swagger.yaml#/definitions/error"
x-koha-authorization:
permissions:
erm: 1