Feature/api

Maybe we should move validation to CoreBundle