implemented REST post