Feature/api endpoint