rest api for plugins