Finish the RestApi