How to set the data-src
How the data-src
of this component should be set?
Currently, we need to load 2 containers:
- customer invoices
- freelance invoices
I think we need a global resource invoices
which references these 2 containers. It could give something like this:
{
"@id": "https://server/my_project/invoices/",
"freelance-invoices": {
"@id": "https://server/my_project/invoices/freelance-invoices/",
"@type": "ldp:Container",
"ldp:contains": [
{
"@id": "https://server/freelance-invoices/1/"
}
]
},
"customer-invoices": {
"@id": "https://server/my_project/invoices/customer-invoices/",
"@type": "ldp:Container",
"ldp:contains": [
{
"@id": "https://server/freelance-invoices/1/"
}
]
},
"@context": "https://cdn.happy-dev.fr/owl/hdcontext.jsonld"
}
Like this, we could rely on these resource and look for the properties freelance-invoices
and customer-invoices
@sylvain do you agree with this?