On Tue, 06 Jan 2015 14:37:45 GMT, Drasha wrote:

interface IRESTApi
{
  @method(HTTPMethod.GET)
  @path("/status/:item/")
  @property Json status(string item);
}

...

auto router = new URLRouter();
router.registerRestInterface(cast(IRESTApi)this);

Ultimately, what's wrong is that your parameter needs to be called '_item', not 'item'.

There is however a bug here (reported recently: https://github.com/rejectedsoftware/vibe.d/issues/949 ), as the interface should report the error.

Side note: Unless your interface implements multiple interfaces, you don't need to cast.