source for rest api demo