Koha/api/v1/swagger/definitions/erm_license.yaml
Pedro Amorim 0e36cbb9fb
Bug 32030: Add users to licenses - REST API Spec
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:49 -03:00

60 lines
No EOL
1.1 KiB
YAML

---
type: object
properties:
license_id:
type: integer
description: internally assigned license identifier
readOnly: true
vendor_id:
description: foreign key to aqbooksellers
type:
- integer
- "null"
name:
description: name of the license
type: string
description:
description: description of the license
type:
- string
- "null"
type:
description: description of the license
type: string
status:
description: status of the license
type: string
started_on:
type:
- string
- "null"
format: date
description: Start of the license
ended_on:
type:
- string
- "null"
format: date
description: End of the license
user_roles:
type: array
description: role for users
items:
$ref: erm_user_role.yaml
documents:
type: array
description: documents
items:
$ref: erm_document.yaml
vendor:
description: Information about the vendor
type:
- object
- "null"
additionalProperties: false
required:
- license_id
- name
- status
- type