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>
type: array
description: role for users
items:
- $ref: erm_agreement_user_role.yaml
+ $ref: erm_user_role.yaml
agreement_relationships:
type: array
description: agreement relationships
+++ /dev/null
----
-type: object
-properties:
- agreement_id:
- type: integer
- description: Internal agreement identifier
- user_id:
- type: integer
- description: Internal patron identifier
- role:
- description: role of the user
- type:
- - string
- patron:
- type:
- - object
- - "null"
-additionalProperties: false
-required:
- - user_id
- - role
- "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
--- /dev/null
+---
+type: object
+properties:
+ agreement_id:
+ type:
+ - integer
+ - "null"
+ description: Internal agreement identifier
+ license_id:
+ type:
+ - integer
+ - "null"
+ description: Internal license identifier
+ user_id:
+ type: integer
+ description: Internal patron identifier
+ role:
+ description: role of the user
+ type:
+ - string
+ patron:
+ type:
+ - object
+ - "null"
+additionalProperties: false
+required:
+ - user_id
+ - role
permissions:
erm: 1
x-koha-embed:
+ - user_roles
+ - user_roles.patron
- documents
put:
x-mojo-to: ERM::Licenses#update
permissions:
erm: 1
x-koha-embed:
+ - user_roles
- documents
delete:
x-mojo-to: ERM::Licenses#delete