Adding the RestAPI