Skip to content

Commit

Permalink
example for specificAssetIds
Browse files Browse the repository at this point in the history
  • Loading branch information
bs-sili committed Aug 8, 2023
1 parent e386fdd commit 6dfb622
Showing 1 changed file with 53 additions and 45 deletions.
98 changes: 53 additions & 45 deletions docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -425,54 +425,62 @@ You can control the visibility of specificAssetIds based on the tenantId/BPN.
Detailed example:
```
// Given specificAssetIds:
[
{
"key": "CustomerPartId",
"value": "293913",
"externalSubjectId": {
"value": [
"BPN12"
]
}
},
{
"key": "CustomerPartId",
"value": "429212",
"externalSubjectId": {
"value": [
"BPN49"
]
}
},
{
"key": "CustomerPartId",
"value": "523192",
"externalSubjectId": {
"value": [
"BPN29"
]
"specificAssetIds": [
{
"externalSubjectId": {
"type": "ExternalReference",
"keys": [
{
"type": "GlobalReference",
"value": "BPN12"
}
]
},
"name": "CustomerPartId",
"value": "293913"
},
{
"externalSubjectId": {
"type": "ExternalReference",
"keys": [
{
"type": "GlobalReference",
"value": "BPN49"
}
]
},
"name": "CustomerPartId",
"value": "429212"
},
{
"externalSubjectId": {
"type": "ExternalReference",
"keys": [
{
"type": "GlobalReference",
"value": "BPN29"
}
]
},
"name": "CustomerPartId",
"value": "523192"
}
},
{
"key": "MaterialNumber",
"value": "39192"
}
]
]
// A customer with (BPN12) will only get the specificAssetIds that contains his BPN/tenantId. Taking the above example, the response for the customer //(BPN12) would be:
[
{
"key": "CustomerPartId",
"value": "293913",
"externalSubjectId": {
"value": [
"BPN12"
]
}
},
{
"key": "MaterialNumber",
"value": "39192"
}
{
"externalSubjectId": {
"type": "ExternalReference",
"keys": [
{
"type": "GlobalReference",
"value": "BPN12"
}
]
},
"name": "CustomerPartId",
"value": "293913"
},
]
// Lookup API: GET /shells/lookup and POST /shells/lookup/query with BPN12
// REQUEST:
Expand Down

0 comments on commit 6dfb622

Please sign in to comment.