Added simple restful api