mirror of
https://github.com/CommunitySolidServer/CommunitySolidServer.git
synced 2024-10-03 14:55:10 +00:00
48 lines
1.5 KiB
JSON
48 lines
1.5 KiB
JSON
{
|
|
"@context": "https://linkedsoftwaredependencies.org/bundles/npm/@solid/community-server/^4.0.0/components/context.jsonld",
|
|
"@graph": [
|
|
{
|
|
"comment": "Determines required modes based on HTTP methods.",
|
|
"@id": "urn:solid-server:default:ModesExtractor",
|
|
"@type": "WaterfallHandler",
|
|
"handlers": [
|
|
{
|
|
"comment": "Extract access modes for PATCH requests based on the request body.",
|
|
"@id": "urn:solid-server:default:PatchModesExtractor"
|
|
},
|
|
{
|
|
"comment": "Extract access modes based on the HTTP method.",
|
|
"@type": "MethodModesExtractor",
|
|
"resourceSet": { "@id": "urn:solid-server:default:CachedResourceSet" }
|
|
},
|
|
{
|
|
"@type": "StaticThrowHandler",
|
|
"error": { "@type": "MethodNotAllowedHttpError" }
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"@id": "urn:solid-server:default:PatchModesExtractor",
|
|
"@type": "MethodFilterHandler",
|
|
"methods": [ "PATCH" ],
|
|
"source": {
|
|
"@type": "WaterfallHandler",
|
|
"handlers": [
|
|
{
|
|
"@type": "N3PatchModesExtractor",
|
|
"resourceSet": { "@id": "urn:solid-server:default:CachedResourceSet" }
|
|
},
|
|
{
|
|
"@type": "SparqlUpdateModesExtractor",
|
|
"resourceSet": { "@id": "urn:solid-server:default:CachedResourceSet" }
|
|
},
|
|
{
|
|
"@type": "StaticThrowHandler",
|
|
"error": { "@type": "UnsupportedMediaTypeHttpError" }
|
|
}
|
|
]
|
|
}
|
|
}
|
|
]
|
|
}
|