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>
This commit is contained in:
Pedro Amorim 2022-10-28 22:16:34 +00:00 committed by Tomas Cohen Arazi
parent bd5350e11b
commit 0e36cbb9fb
Signed by: tomascohen
GPG key ID: 0A272EA1B2F3C15F
4 changed files with 17 additions and 2 deletions

View file

@ -48,7 +48,7 @@ properties:
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

View file

@ -36,6 +36,11 @@ properties:
- "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

View file

@ -2,8 +2,15 @@
type: object
properties:
agreement_id:
type: integer
type:
- integer
- "null"
description: Internal agreement identifier
license_id:
type:
- integer
- "null"
description: Internal license identifier
user_id:
type: integer
description: Internal patron identifier

View file

@ -182,6 +182,8 @@
permissions:
erm: 1
x-koha-embed:
- user_roles
- user_roles.patron
- documents
put:
x-mojo-to: ERM::Licenses#update
@ -242,6 +244,7 @@
permissions:
erm: 1
x-koha-embed:
- user_roles
- documents
delete:
x-mojo-to: ERM::Licenses#delete