implementation of post/new resource creation