String Hateoas link to a void method
<p>I am working with Spring Hateoas for HAL standards in HTTP response. I have a HTTP DELETE method in my controller which returns nothing (void). And in the response for same entity I want to provide a link to delete a resource. I tried to do with following code but it gives error </p>

<blockquote>
  <p>Cannot resolve method linkTo(void)</p>
</blockquote>

<pre><code>    resource.add(linkTo(
            methodOn(DokumenteController.class)
                    .loeschenEinDokument(filenetDokumentZuordnung.getDokumentId()))
                            .withRel("download"));
</code></pre>

<p>Is there any way I can add a link to a method which returns void? </p>