starting to build rest api