refactoring getMethods shortcut on plugins
introspect for rest api