Skip to content

Commit

Permalink
Updated interface version and permissions
Browse files Browse the repository at this point in the history
  • Loading branch information
RomanChernetskyi committed May 28, 2024
1 parent 7f2ccb4 commit 0b16bf3
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 7 deletions.
11 changes: 8 additions & 3 deletions descriptors/ModuleDescriptor-template.json
Original file line number Diff line number Diff line change
Expand Up @@ -538,14 +538,15 @@
},
{
"id": "inventory-update-ownership",
"version": "0.1",
"version": "1.0",
"handlers": [
{
"methods": ["POST"],
"pathPattern": "/inventory/items/update-ownership",
"permissionsRequired": ["inventory.items.update-ownership.item.post"],
"modulePermissions": [
"inventory-storage.items.item.put",
"inventory-storage.items.item.post",
"inventory-storage.items.item.delete",
"inventory-storage.items.collection.get",
"inventory-storage.holdings.item.get"
]
Expand All @@ -555,8 +556,12 @@
"pathPattern": "/inventory/holdings/update-ownership",
"permissionsRequired": ["inventory.holdings.update-ownership.item.post"],
"modulePermissions": [
"inventory-storage.holdings.item.put",
"inventory-storage.holdings.item.post",
"inventory-storage.holdings.item.delete",
"inventory-storage.holdings.collection.get",
"inventory-storage.items.item.post",
"inventory-storage.items.item.delete",
"inventory-storage.items.collection.get",
"inventory-storage.instances.item.get"
]
}
Expand Down
4 changes: 2 additions & 2 deletions ramls/holdings_update_ownership.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"type": "object",
"properties": {
"toInstanceId": {
"description": "Id of the instance which contains holdings to update ownership.",
"description": "Id of the shared Instance, ownership of Holdings linked to this Instance will be changed.",
"$ref": "uuid.json"
},
"holdingsRecordIds": {
Expand All @@ -15,7 +15,7 @@
}
},
"targetTenantId": {
"description": "Id of the tenant to update ownership.",
"description": "Target tenant Id, where selected Holdings will be created.",
"type": "string"
}
},
Expand Down
4 changes: 2 additions & 2 deletions ramls/items_update_ownership.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"type": "object",
"properties": {
"toHoldingsRecordId": {
"description": "Id of the holding to which the items are updating ownership.",
"description": "Id of the Holdings Record, ownership of Items linked to this Holdings Record will be changed.",
"$ref": "uuid.json"
},
"itemIds": {
Expand All @@ -15,7 +15,7 @@
}
},
"targetTenantId": {
"description": "Id of the tenant to update ownership.",
"description": "Target tenant Id, where selected Items will be created.",
"type": "string"
}
},
Expand Down

0 comments on commit 0b16bf3

Please sign in to comment.