Crud API implementing all the fields from the spec
minor fixes to crud api