Fix missing media type

This commit is contained in:
René Pfeuffer
2018-09-26 17:33:07 +02:00
parent 357ccc7ddb
commit 987cd54dc7
2 changed files with 7 additions and 0 deletions

View File

@@ -1,8 +1,12 @@
package sonia.scm.api.v2.resources;
import com.webcohesion.enunciate.metadata.rs.TypeHint;
import sonia.scm.web.VndMediaType;
import javax.inject.Inject;
import javax.ws.rs.GET;
import javax.ws.rs.Path;
import javax.ws.rs.Produces;
@Path(IndexResource.INDEX_PATH_V2)
public class IndexResource {
@@ -16,6 +20,8 @@ public class IndexResource {
}
@GET
@Produces(VndMediaType.INDEX)
@TypeHint(IndexDto.class)
public IndexDto getIndex() {
return indexDtoGenerator.generate();
}