starting work on rest api