Skip to content

Commit 99a4cb1

Browse files
Make Opencast pick up the tool again
1 parent 3657222 commit 99a4cb1

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

opencast-backend/annotation-impl/pom.xml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,11 @@
5858
<version>6.0.0</version>
5959
<scope>provided</scope>
6060
</dependency>
61+
<dependency>
62+
<groupId>org.osgi</groupId>
63+
<artifactId>org.osgi.service.jaxrs</artifactId>
64+
<version>1.0.1</version>
65+
</dependency>
6166
<!-- Misc -->
6267
<dependency>
6368
<groupId>com.googlecode.json-simple</groupId>

opencast-backend/annotation-impl/src/main/java/org/opencast/annotation/endpoint/ExtendedAnnotationsRestService.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,11 @@
3333
import org.osgi.service.component.annotations.Activate;
3434
import org.osgi.service.component.annotations.Component;
3535
import org.osgi.service.component.annotations.Reference;
36+
import org.osgi.service.jaxrs.whiteboard.propertytypes.JaxrsResource;
3637

3738
import javax.ws.rs.Path;
3839

39-
@Path("/")
40+
@Path("/extended-annotations")
4041
@RestService(
4142
name = "extended-annotations",
4243
title = "Annotation Tool Backend",
@@ -48,6 +49,7 @@
4849
property = {
4950
"opencast.service.type=org.opencast.annotation",
5051
"opencast.service.path=/extended-annotations"})
52+
@JaxrsResource
5153
public class ExtendedAnnotationsRestService extends AbstractExtendedAnnotationsRestService {
5254

5355
private ExtendedAnnotationService extendedAnnotationService;

0 commit comments

Comments
 (0)