fixed incompatible express-resource vs express versions
fixed wrongly double nesting of req param objects
can set mark on server side
updated model to contain not null constraints