Feature/rest api

REST GET function done.