package de.tum.in.www1.artemis.web.rest;

import java.time.Instant;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class TimeResource {

    /**
     * {@code GET /time}:
     * @return the current server time as Instant
     */
    @GetMapping("/time")
    public Instant time() {
        return Instant.now();
    }
}

@@ -58,24 +58,67 @@
 e.Instant;%0A%0A
+import org.springframework.http.MediaType;%0A
 import org.s
@@ -385,15 +385,62 @@
 ing(
-%22/time%22
+value = %22/time%22, produces = MediaType.TEXT_PLAIN_VALUE
 )%0A  
@@ -448,23 +448,22 @@
  public 
-Instant
+String
  time() 
@@ -492,16 +492,27 @@
 nt.now()
+.toString()
 ;%0A    %7D%0A

Set MediaType for /time