package cz.esc.iot.cloudservice.resources;

import java.io.IOException;
import java.nio.file.Files;
import java.nio.file.Paths;

import org.restlet.ext.oauth.OAuthException;
import org.restlet.resource.Get;
import org.restlet.resource.ServerResource;

public class API extends ServerResource {

	@Get("json")
    public String returnList() throws OAuthException {		
		
        String fileName = "api.html";
        try {
            return new String(Files.readAllBytes(Paths.get(fileName)));
        } catch (IOException e) {
            e.printStackTrace();
            return null;
        }
    }
}

@@ -299,12 +299,12 @@
 et(%22
-json
+html
 %22)%0A 

return type in API's GET change to html.