plugins can register REST api