I am trying to strip REST example to get it's minimal version to better understand how it's work.

import vibe.d;
import std.stdio;
import std.file;

class Example1
{
	string getSomeInfo()
	{
		return "Some Info!";
	}
}

shared static this()
{

	auto router = new URLRouter;
	registerRestInterface(router, new Example1());
	auto routes = router.getAllRoutes();

	auto settings = new HTTPServerSettings;
	settings.port = 8080;

	assert (routes[0].method == HTTPMethod.GET && routes[0].pattern == "/example1_api/some_info");

}

The problem that I can't compile it.

ta\traits.d(111): Error: tuple index 0 exceeds 0
C:\Users\Dima\AppData\Roaming\dub\packages\vibe-d-0.7.23\source\vibe\web\rest.d(74): Error: template instance ibe.internal.meta.traits.baseInterface!(Example1)
 error instantiating
source\app.d(18):        instantiated from here: registerRestInterface!(Example1)
FAIL .dub\build\application-debug-windows-x86-dmd_2067-628BC163223933EC087AB9597
F021CBC\ app executable```



Could anybody show minimal example of rest that do one function?