Feature/api

Is there any problem with validation?