Creating pluggable REST endpoints