Rest api component implementation.