JcrDeliveryEndpoint
instead for multiple endpoint support and better reference resolving.@Deprecated @Path(value="/delivery/{endpointPrefix}/v1") public class JcrDeliveryEndpoint extends info.magnolia.rest.AbstractEndpoint<JcrDeliveryEndpointDefinition>
It offers two methods for consuming content:
The endpoint behavior can be configured with a JcrDeliveryEndpointDefinition
to match specific workspaces or node types.
Nodes are represented in the JSON output as plain object-graph, resembling the tree-structure of JCR nodes and properties.
Additionally, UUID references to other workspaces can be resolved and expanded within returned records.
Constructor and Description |
---|
JcrDeliveryEndpoint(JcrDeliveryEndpointDefinition endpointDefinition,
javax.inject.Provider<info.magnolia.context.Context> contextProvider)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
protected <R> R |
doSessionOperation(String workspace,
boolean bypassWorkspaceAcls,
info.magnolia.cms.security.JCRSessionOp<R> operation)
Deprecated.
|
NodesResult |
queryNodes(String endpointPrefix,
String keyword,
String orderByParam,
Long offsetParam,
Long limitParam)
Deprecated.
Returns a list of nodes.
|
javax.jcr.Node |
readNode(String endpointPrefix,
String path)
Deprecated.
Returns a node including its properties and child nodes down to a certain depth.
|
@Inject public JcrDeliveryEndpoint(JcrDeliveryEndpointDefinition endpointDefinition, javax.inject.Provider<info.magnolia.context.Context> contextProvider)
@GET @Path(value="/{path:.*}") @Produces(value="application/json") public javax.jcr.Node readNode(@PathParam(value="endpointPrefix") String endpointPrefix, @PathParam(value="path") @DefaultValue(value="/") String path) throws javax.jcr.RepositoryException
javax.jcr.RepositoryException
@GET @Produces(value="application/json") public NodesResult queryNodes(@PathParam(value="endpointPrefix") String endpointPrefix, @QueryParam(value="q") String keyword, @QueryParam(value="orderBy") String orderByParam, @QueryParam(value="offset") Long offsetParam, @QueryParam(value="limit") Long limitParam) throws javax.jcr.RepositoryException
javax.jcr.RepositoryException
protected <R> R doSessionOperation(String workspace, boolean bypassWorkspaceAcls, info.magnolia.cms.security.JCRSessionOp<R> operation) throws javax.jcr.RepositoryException
javax.jcr.RepositoryException
Copyright © 2020 Magnolia International Ltd.. All rights reserved.