create REST service