Example of a plugin with REST endpoint