use of org.eclipse.vorto.repository.comment.Comment in project vorto by eclipse.
the class CommentController method getCommentsforModelId.
@ApiOperation(value = "Returns comments for a specific Model Resource")
@ApiResponses(value = { @ApiResponse(code = 404, message = "Not found"), @ApiResponse(code = 200, message = "OK") })
@RequestMapping(method = RequestMethod.GET, value = "/comments/model/{namespace}/{name}/{version:.+}", produces = "application/json")
public List<Comment> getCommentsforModelId(@ApiParam(value = "namespace", required = true) @PathVariable String namespace, @ApiParam(value = "name", required = true) @PathVariable String name, @ApiParam(value = "version", required = true) @PathVariable String version) {
final ModelId modelId = new ModelId(name, namespace, version);
List<Comment> comments = commentService.getCommentsforModelId(modelId);
return comments;
}
Aggregations