building rest api part is completed.