Permissioning API Specification
We want to enrich the dumb dataserver from @adrien for the frontend module to be able to send two PUT requests associating the scopes "ReadEnterprise" and "ReadProducts" to the only existing portal for now.
The PUT request for ReadEnterprise will target URI https://mydataserver.com/producers/{producerId}/scopes/ReadEnterprise and should look like:
{
"@context": "https://github.com/datafoodconsortium/ontology/blob/master/src/DFC_TechnicalOntology.owl",
"@id": "https://mydataserver.com/producers/{producerId}/scopes/ReadEnterprise",
"dfc-t:scope": "ReadEnterprise",
"dfc-t:name": "Read enterprise",
"dfc-t:hasDescription": "This scope allows portals to read the associated producers enterprise data",
"dfc-t:hasAssignedPortals": {
"@type": "rdf:List",
"@list": [
{
"@id": "https://myportalserver.com/profile"
}
]
}
}
It should then return a 200 OK with the exact same representation as response.
The GET request for ReadEnterprise will target URI: https://mydataserver.com/producers/{producerId}/scopes/ReadEnterprise and return the same response.
Ping @garethe for more details if needed.
Edited by Benoit Alessandroni