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:
parent
bd5350e11b
commit
0e36cbb9fb
4 changed files with 17 additions and 2 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue