To set up a route that parses parameters from the path info:
[RestRoute(HttpMethod = HttpMethod.GET, PathInfo = "/cars/[carId]")]
public IHttpContext GetCarById(IHttpContext context)
{
// Get the car id from the incoming context:
Console.WriteLine(context.Request.PathParameters["carId"]);
}