-
-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Dynamic LDP containers #1151
Dynamic LDP containers #1151
Conversation
hello @srosset81, |
When the frontend GET the binary through the API, it is returned as a binary. The change is only if you call |
LdpApiService
, which itself redirects toLdpResourceService
,LdpContainerService
orActivityPubCollectionService
depending on the@type
.GET *
ldp.resource.get
ldp.container.get
activitypub.collection.get
POST *
ldp.resource.post
ldp.container.post
PUT *
ldp.resource.put
PATCH *
ldp.resource.patch
ldp.container.patch
DELETE *
ldp.resource.delete
ldp.container.delete
resourcesWithContainerPath
option for the LdpService. If true, the URI of all new resources will include the container path, otherwise it will use the root container path (default: true)uuid/v4
library instead of MongoDB-likeObjectID
. The previous method generated unique but easily guessable slugs.node-fetch
instead ofsupertest
for all API tests.Breaking changes⚠️
dereference
option has been removed. Blank nodes are now automatically found (on 4 levels of depth).disassembly
option has been removed. Use the newDisassemblyMixin
, along with theControlledContainerMixin
, if you still need this feature (which will later be moved to the frontend)ResourceWatcher
bot has been removed. UseControlledContainerMixin
instead.ldp.resource.get
action now always return the semantic representation, even for binaries. TheforceSemantic
param is thus not necessary anymore. Binaries are handled by theLdpApiService
. New tests have been added for that.catchAll: true
are always handled last. This requires a modification of Moleculer's ApiGateway (see this Moleculer issue: Improve routes priorization moleculerjs/moleculer-web#335). If you don't use SemApps CoreService, you must add this method to the service using the ApiGateway mixin or the catch-all route of the LDP service will be handled before other endpoints like VOID, SPARQL, etc.