Koha/api/v1/swagger/paths/erm_documents.yaml
Pedro Amorim 5234bc22f4
Bug 32030: Add document to license - REST API spec
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>
2022-11-08 09:44:31 -03:00

46 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