Skip to content

Commit

Permalink
more fcrepo 3.x compatibility. hydra uses /history not /version
Browse files Browse the repository at this point in the history
  • Loading branch information
cbeer committed Jan 31, 2013
1 parent 18326dc commit c903992
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion src/main/java/org/fcrepo/modeshape/FedoraDatastreams.java
Expand Up @@ -240,7 +240,18 @@ public Response getDatastreamHistory(@PathParam("pid") final String pid,

}

@DELETE

@GET
@Path("/{dsid}/history")
@Produces("text/xml")
public Response getDatastreamHistoryOld(@PathParam("pid") final String pid,
@PathParam("dsid") final String dsid) throws RepositoryException,
IOException, TemplateException {
return getDatastreamHistory(pid, dsid);
}


@DELETE
@Path("/{dsid}")
public Response deleteDatastream(@PathParam("pid") String pid,
@PathParam("dsid") String dsid) throws RepositoryException {
Expand Down

0 comments on commit c903992

Please sign in to comment.